goods.vue 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 border_none">
  27. <view class="tip">商品收藏(件)</view>
  28. <view class="num">{{ shop_info.collect_goods }}</view>
  29. </view>
  30. <view class="flex_two-item border_none">
  31. <view class="tip">订单商品(件)</view>
  32. <view class="num">{{ shop_info.goods_pay_count }}</view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <block v-for="(item, index) in arr" :key="index">
  38. <view class="withdrawal_item margin-top">
  39. <view class="withdrawal_title">
  40. <view class="withdrawal_title_info">
  41. <text class="line color-base-bg margin-right"></text>
  42. {{ item.title }}
  43. <text v-if="item.opts.unit">({{ item.opts.unit }})</text>
  44. <text class="margin-left total">{{ total_money[item.id] }}</text>
  45. </view>
  46. <picker :value="pickerCurr.table" @change="bindPickerChange(item.id, $event)" :range="picker.table" range-key="date_text" @click="selectCharts(item.id)">
  47. <view class="select color-tip color-base-text">
  48. {{ picker.table[pickerCurr[item.id]].date_text }}
  49. <text class="iconfont iconiconangledown"></text>
  50. </view>
  51. </picker>
  52. </view>
  53. <view class="withdrawal_content margin-top">
  54. <view class="charts">
  55. <view @click="refCurr = item.id">
  56. <uCharts
  57. :scroll="item.opts.enableScroll"
  58. :show="canvas"
  59. :canvasId="item.id"
  60. :chartType="item.chartType"
  61. :extraType="item.extraType"
  62. :cWidth="cWidth"
  63. :cHeight="cHeight"
  64. :opts="item.opts"
  65. :ref="item.id"
  66. />
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </block>
  72. <loading-cover ref="loadingCover"></loading-cover>
  73. </view>
  74. </template>
  75. <script>
  76. import uCharts from '@/components/u-charts/u-charts.vue';
  77. import goods from './js/goods.js';
  78. export default {
  79. components: {
  80. uCharts
  81. },
  82. mixins: [goods]
  83. };
  84. </script>
  85. <style lang="scss">
  86. @import './css/overview.scss';
  87. </style>