point.blade.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <script src="{{static_url('js/echarts.js')}}" type="text/javascript"></script>
  2. @extends('layouts.base')
  3. @section('title', '积分数据统计')
  4. <script src="{{resource_get('plugins/shop-statistics/assets/js/echarts.min.js')}}"></script>
  5. @section('content')
  6. <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/vue-goods1.css')}}" />
  7. <link rel="stylesheet" href="{{resource_get('plugins/shop-statistics/assets/css/common.css')}}">
  8. <link rel="stylesheet" href="{{resource_get('plugins/shop-statistics/assets/css/statistics.css')}}">
  9. <div class="all">
  10. <div id="app">
  11. <panel>
  12. <statistics-card-title>
  13. 数据情况
  14. </statistics-card-title>
  15. <ul class="statistics-overall">
  16. <li>
  17. <statistics-card colorful count-color="#da9a01" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_6.png') !!}" :border="false" title="累计可使用积分" tip="累计剩余积分总数" :count="overall.usePoint">
  18. </statistics-card>
  19. </li>
  20. <li>
  21. <statistics-card colorful count-color="#4652a9" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_2.png') !!}" :border="false" title="累计已消耗积分" tip="累计消耗积分总数" :count="overall.usedPoint">
  22. </statistics-card>
  23. </li>
  24. <li>
  25. <statistics-card colorful count-color="#28b183" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_4.png') !!}" :border="false" title="累计已赠送积分" tip="累计已赠送积分总数" :count="overall.pointGivenCount">
  26. </statistics-card>
  27. </li>
  28. <li>
  29. <statistics-card colorful count-color="#f26163" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_1.png') !!}" :border="false" title="累计充值积分" tip="累计后台充值积分总数" :count="overall.pointRechargeCount">
  30. </statistics-card>
  31. </li>
  32. </ul>
  33. </panel>
  34. <panel>
  35. <el-row :gutter="20">
  36. <el-col :span="4">
  37. <statistics-card :title="statisticsItem.title" :tip="statisticsItem.tip" :count="statisticsItem.count" v-for="statisticsItem in pointStatistics.data" :key="statisticsItem.title" style="margin-bottom:15px;" :decimals="statisticsItem.decimals">
  38. </statistics-card>
  39. </el-col>
  40. <el-col :span="20">
  41. <panel-form inline style="text-align: right;">
  42. <el-form-item>
  43. <el-date-picker v-model="pointStatistics.dataTime" type="date" placeholder="选择日期" @change="getPointStatisticsData">
  44. </el-date-picker>
  45. </el-form-item>
  46. </panel-form>
  47. <div ref="pointChart" style="width:100%;height:500px;"></div>
  48. </el-col>
  49. </el-row>
  50. </panel>
  51. <panel>
  52. <statistics-card-title>
  53. 会员积分使用情况排名
  54. <panel-form inline slot="right">
  55. <el-form-item>
  56. <el-select v-model="pointRank.search.type">
  57. <el-option :value="1" label="会员id"></el-option>
  58. <el-option :value="2" label="手机昵称"></el-option>
  59. <el-option :value="3" label="手机号"></el-option>
  60. </el-select>
  61. </el-form-item>
  62. <el-form-item>
  63. <el-input placholder="会员id" v-model="pointRank.search.value"></el-input>
  64. </el-form-item>
  65. <el-form-item>
  66. <el-button type="primary" plain @click="searchMemberPointUseData" :loading="pointRank.loading">搜索</el-button>
  67. </el-form-item>
  68. </panel-form>
  69. </statistics-card-title>
  70. <el-table :data="pointRank.data">
  71. <el-table-column label="排行" prop="rank" width="100">
  72. <template slot-scope="scope">
  73. <div class="member-rank" :data-rank="scope.row.rank" plain mini>
  74. [[ scope.row.rank ]]
  75. </div>
  76. </template>
  77. </el-table-column>
  78. <el-table-column label="会员id" prop="uid" width="100"></el-table-column>
  79. <el-table-column label="会员昵称/手机号" prop="nickname" width="400">
  80. <template slot-scope="scope">
  81. <div class="member-info">
  82. <el-avatar class="member-avatar" :src="scope.row.avatar"></el-avatar>
  83. [[ scope.row.nickname ]] / [[ scope.row.mobile ]]
  84. </div>
  85. </template>
  86. </el-table-column>
  87. <el-table-column label="可使用积分" prop="usePoint"></el-table-column>
  88. <el-table-column label="已使用积分" prop="usedPoint"></el-table-column>
  89. <el-table-column label="已赠送积分" prop="givenPoint"></el-table-column>
  90. <el-table-column label="充值积分" prop="recharge"></el-table-column>
  91. </el-table>
  92. <el-row style="margin-top:20px;">
  93. <el-col align="right">
  94. <el-pagination :current-page="pointRank.pagination.pages" :total="pointRank.pagination.total" :page-size="pointRank.pagination.limit" @current-change="getPointUseData"></el-pagination>
  95. </el-col>
  96. </el-row>
  97. </panel>
  98. </div>
  99. </div>
  100. <script>
  101. const GetPointOverallDataUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.point.get-point-statistic') !!}"; //* 获取整体数据
  102. const GetPointStatisticsDataUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.point.search-point-statistic') !!}"; //* 获取积分统计数据
  103. const GetPointUseDataUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.point.search-point-ranking') !!}"; //* 获取积分使用情况数据
  104. </script>
  105. <script src="{{resource_get('plugins/shop-statistics/assets/js/components.js')}}"></script>
  106. <script src="{{resource_get('plugins/shop-statistics/assets/js/point.js')}}?timestamp={{ time() }}"></script>
  107. <script src="{{resource_get('plugins/shop-statistics/assets/js/common.js')}}"></script>
  108. @endsection