|
|
|
|
@ -5,12 +5,12 @@
|
|
|
|
|
<view class="content">
|
|
|
|
|
|
|
|
|
|
<block v-for="(item,index) in info">
|
|
|
|
|
<view >
|
|
|
|
|
<view>
|
|
|
|
|
<view class="indexbox">
|
|
|
|
|
<boxtitle :title="item.name">
|
|
|
|
|
<text>{{item.data.recharge==null?0:item.data.recharge.total}}</text>
|
|
|
|
|
</boxtitle>
|
|
|
|
|
<view class="statBox" @click="toinfo(item,'recharge')">
|
|
|
|
|
<view class="statBox" @click="toinfo(item,'recharge')">
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader">
|
|
|
|
|
<view class="statItemCBar "></view>
|
|
|
|
|
@ -19,6 +19,15 @@
|
|
|
|
|
<view class="statNum mf-26">{{item.data.recharge==null?0:item.data.recharge.cash}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader ">
|
|
|
|
|
<view class="statItemCBar green"></view>
|
|
|
|
|
<text class="statItemTitele">扫码(元)</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">
|
|
|
|
|
{{item.data.recharge==null?0:item.data.recharge.total_online}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader ">
|
|
|
|
|
<view class="statItemCBar blue"></view>
|
|
|
|
|
@ -26,46 +35,72 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">{{item.data.recharge==null?0:item.data.recharge.pos}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<boxtitle title="退款">
|
|
|
|
|
<text style="color: crimson;">{{item.data.refund}}</text>
|
|
|
|
|
</boxtitle>
|
|
|
|
|
<view class="statBox" @click="toinfo(item,'refund')">
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader">
|
|
|
|
|
<view class="statItemCBar "></view>
|
|
|
|
|
<text class="statItemTitele">现金(元)</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">
|
|
|
|
|
{{item.data.refund_by_methods==null?0:item.data.refund_by_methods.cash}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader ">
|
|
|
|
|
<view class="statItemCBar green"></view>
|
|
|
|
|
<view class="statItemCBar blue"></view>
|
|
|
|
|
<text class="statItemTitele">扫码(元)</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">
|
|
|
|
|
{{item.data.recharge==null?0:item.data.recharge.total_online}}
|
|
|
|
|
{{item.data.refund_by_methods==null?0:(item.data.refund_by_methods.weixin+item.data.refund_by_methods.alipay)}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader ">
|
|
|
|
|
<view class="statItemCBar green"></view>
|
|
|
|
|
<text class="statItemTitele"></text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<boxtitle title="退款">
|
|
|
|
|
<text style="color: crimson;">{{item.data.refund}}</text>
|
|
|
|
|
</boxtitle>
|
|
|
|
|
<view class="statBox" @click="toinfo(item,'refund')">
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader">
|
|
|
|
|
<view class="statItemCBar "></view>
|
|
|
|
|
<text class="statItemTitele">现金(元)</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">{{item.data.refund_by_methods==null?0:item.data.refund_by_methods.cash}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader ">
|
|
|
|
|
<view class="statItemCBar blue"></view>
|
|
|
|
|
<text class="statItemTitele">微信(元)</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">{{item.data.refund_by_methods==null?0:item.data.refund_by_methods.weixin}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader ">
|
|
|
|
|
<view class="statItemCBar green"></view>
|
|
|
|
|
<text class="statItemTitele">扫码(元)</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">
|
|
|
|
|
{{item.data.refund_by_methods==null?0:item.data.refund_by_methods.alipay}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<boxtitle title="交账">
|
|
|
|
|
<text style="color: blue;">{{item.data.budget.total}}</text>
|
|
|
|
|
</boxtitle>
|
|
|
|
|
<view class="statBox">
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader">
|
|
|
|
|
<view class="statItemCBar "></view>
|
|
|
|
|
<text class="statItemTitele">现金(元)</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">{{item.data.budget.cash}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader ">
|
|
|
|
|
<view class="statItemCBar blue"></view>
|
|
|
|
|
<text class="statItemTitele">扫码(元)</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">{{item.data.budget.online}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statItem" style="width: 33.33%;">
|
|
|
|
|
<view class="statItemHeader ">
|
|
|
|
|
<view class="statItemCBar green"></view>
|
|
|
|
|
<text class="statItemTitele"></text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="statNum mf-26">
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="lCircle lc_1"></view>
|
|
|
|
|
<view class="lCircle lc_2"></view>
|
|
|
|
|
</view>
|
|
|
|
|
@ -106,16 +141,27 @@
|
|
|
|
|
var that = this;
|
|
|
|
|
var i = 0;
|
|
|
|
|
for (var m of that.info) {
|
|
|
|
|
that.loadData(m.type, i, function(r, i) {
|
|
|
|
|
that.info[i].data = r;
|
|
|
|
|
})
|
|
|
|
|
that.loadData(m.type, i,
|
|
|
|
|
function(r, i) {
|
|
|
|
|
console.log(r.recharge)
|
|
|
|
|
that.info[i].data = r;
|
|
|
|
|
|
|
|
|
|
that.info[i].data.budget = {
|
|
|
|
|
|
|
|
|
|
total: r.recharge.total - r.refund,
|
|
|
|
|
|
|
|
|
|
cash: r.recharge.cash - r.refund_by_methods.cash,
|
|
|
|
|
|
|
|
|
|
online: r.recharge.total_online - r.refund_by_methods.weixin-r.refund_by_methods.alipay
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
toinfo: function(item,type) {
|
|
|
|
|
toinfo: function(item, type) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:"../statinfo/statinfo?type="+type+"&from=" + item.type
|
|
|
|
|
url: "../statinfo/statinfo?type=" + type + "&from=" + item.type
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
tohome: function() {
|
|
|
|
|
|