| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <template>
- <view class="withdrawal safe-area">
- <view class="withdrawal_item">
- <view class="withdrawal_title">
- <view class="withdrawal_title_info">
- <text class="line color-base-bg margin-right"></text>
- <text>实时概况</text>
- </view>
- <picker :value="pickerCurr.gaikuang" @change="pickerChangeShop" :range="picker.gaikuang" range-key="date_text">
- <view class="select color-tip">
- {{ picker.gaikuang[pickerCurr.gaikuang].date_text }}
- <text class="iconfont iconiconangledown"></text>
- </view>
- </picker>
- </view>
- <view class="withdrawal_content margin-top">
- <view class="flex_two">
- <view class="flex_two-item">
- <view class="tip">新增商品(件)</view>
- <view class="num">{{ shop_info.add_goods_count }}</view>
- </view>
- <view class="flex_two-item">
- <view class="tip">商品浏览(条)</view>
- <view class="num">{{ shop_info.visit_count }}</view>
- </view>
- <view class="flex_two-item border_none">
- <view class="tip">商品收藏(件)</view>
- <view class="num">{{ shop_info.collect_goods }}</view>
- </view>
- <view class="flex_two-item border_none">
- <view class="tip">订单商品(件)</view>
- <view class="num">{{ shop_info.goods_pay_count }}</view>
- </view>
- </view>
- </view>
- </view>
- <block v-for="(item, index) in arr" :key="index">
- <view class="withdrawal_item margin-top">
- <view class="withdrawal_title">
- <view class="withdrawal_title_info">
- <text class="line color-base-bg margin-right"></text>
- {{ item.title }}
- <text v-if="item.opts.unit">({{ item.opts.unit }})</text>
- <text class="margin-left total">{{ total_money[item.id] }}</text>
- </view>
- <picker :value="pickerCurr.table" @change="bindPickerChange(item.id, $event)" :range="picker.table" range-key="date_text" @click="selectCharts(item.id)">
- <view class="select color-tip color-base-text">
- {{ picker.table[pickerCurr[item.id]].date_text }}
- <text class="iconfont iconiconangledown"></text>
- </view>
- </picker>
- </view>
- <view class="withdrawal_content margin-top">
- <view class="charts">
- <view @click="refCurr = item.id">
- <uCharts
- :scroll="item.opts.enableScroll"
- :show="canvas"
- :canvasId="item.id"
- :chartType="item.chartType"
- :extraType="item.extraType"
- :cWidth="cWidth"
- :cHeight="cHeight"
- :opts="item.opts"
- :ref="item.id"
- />
- </view>
- </view>
- </view>
- </view>
- </block>
- <loading-cover ref="loadingCover"></loading-cover>
- </view>
- </template>
- <script>
- import uCharts from '@/components/u-charts/u-charts.vue';
- import goods from './js/goods.js';
- export default {
- components: {
- uCharts
- },
- mixins: [goods]
- };
- </script>
- <style lang="scss">
- @import './css/overview.scss';
- </style>
|