shop.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="withdrawal safe-area">
  3. <view class="withdrawal_item">
  4. <view class="withdrawal_title">
  5. <view class="withdrawal_title_info">
  6. <text class="line color-base-bg margin-right"></text>
  7. <text>实时概况</text>
  8. </view>
  9. <picker :value="pickerCurr.gaikuang" @change="pickerChangeShop" :range="picker.gaikuang" range-key="date_text">
  10. <view class="select color-tip">
  11. {{ picker.gaikuang[pickerCurr.gaikuang].date_text }}
  12. <text class="iconfont iconiconangledown"></text>
  13. </view>
  14. </picker>
  15. </view>
  16. <view class="withdrawal_content margin-top">
  17. <view class="flex_two">
  18. <view class="flex_two-item">
  19. <view class="tip">新增商品(件)</view>
  20. <view class="num">{{ shop_info.add_goods_count }}</view>
  21. </view>
  22. <view class="flex_two-item">
  23. <view class="tip">商品浏览(条)</view>
  24. <view class="num">{{ shop_info.visit_count }}</view>
  25. </view>
  26. <view class="flex_two-item">
  27. <view class="tip">商品收藏(件)</view>
  28. <view class="num">{{ shop_info.collect_goods }}</view>
  29. </view>
  30. <view class="flex_two-item">
  31. <view class="tip">订单商品(件)</view>
  32. <view class="num">{{ shop_info.goods_pay_count }}</view>
  33. </view>
  34. <!-- <view class="flex_two-item">
  35. <view class="tip">店铺收藏(个)</view>
  36. <view class="num">{{ shop_info.collect_shop }}</view>
  37. </view> -->
  38. <view class="flex_two-item">
  39. <view class="tip">订单金额(元)</view>
  40. <view class="num">{{ shop_info.order_total }}</view>
  41. </view>
  42. <view class="flex_two-item border_none">
  43. <view class="tip">订单数(笔)</view>
  44. <view class="num">{{ shop_info.order_pay_count }}</view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <block v-for="(item, index) in arr" :key="index">
  50. <view class="withdrawal_item margin-top">
  51. <view class="withdrawal_title">
  52. <view class="withdrawal_title_info">
  53. <text class="line color-base-bg margin-right"></text>
  54. {{ item.title }}
  55. <text v-if="item.opts.unit">({{ item.opts.unit }})</text>
  56. <text class="margin-left total">{{ total_money[item.id] }}</text>
  57. </view>
  58. <picker :value="pickerCurr.table" @change="bindPickerChange(item.id, $event)" :range="picker.table" range-key="date_text" @click="selectCharts(item.id)">
  59. <view class="select color-tip color-base-text">
  60. {{ picker.table[pickerCurr[item.id]].date_text }}
  61. <text class="iconfont iconiconangledown"></text>
  62. </view>
  63. </picker>
  64. </view>
  65. <view class="withdrawal_content margin-top">
  66. <view class="charts">
  67. <view @click="refCurr = item.id">
  68. <uCharts
  69. :scroll="item.opts.enableScroll"
  70. :show="canvas"
  71. :canvasId="item.id"
  72. :chartType="item.chartType"
  73. :extraType="item.extraType"
  74. :cWidth="cWidth"
  75. :cHeight="cHeight"
  76. :opts="item.opts"
  77. :ref="item.id"
  78. />
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </block>
  84. <loading-cover ref="loadingCover"></loading-cover>
  85. </view>
  86. </template>
  87. <script>
  88. import uCharts from '@/components/u-charts/u-charts.vue';
  89. import shop from './js/shop.js';
  90. export default {
  91. components: {
  92. uCharts
  93. },
  94. mixins: [shop]
  95. };
  96. </script>
  97. <style lang="scss">
  98. @import './css/overview.scss';
  99. </style>