wangfukang 17 hours ago
parent
commit
17fdf1e265
  1. 11
      package2/partTimeJob/partTimeJobCenter.vue
  2. 9
      package2/shop/merchantCenter.vue

11
package2/partTimeJob/partTimeJobCenter.vue

@ -195,6 +195,7 @@
pageSize:100,
statusList:[0,3]
},
type:'worker',
returnFormData:{},
groupOrderIdList:[],
goodsList:[],
@ -219,7 +220,10 @@
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
this.searchCountForm.linkId = uni.getStorageSync('worker').workerId
},
onLoad() {
onLoad(option) {
if(option.type){
this.type = option.type
}
this.getReturnCount()
},
methods: {
@ -242,6 +246,11 @@
},
getReturnCount(){
let that = this
if(this.type == 'worker'){
this.searchCountForm.linkId = uni.getStorageSync('worker').workerId
}else{
this.searchCountForm.linkId = uni.getStorageSync('shopId')
}
this.tui.request("/mall/refund/page", "POST", this.searchCountForm, false, false).then((res) => {
if (res.code == 200 && res.result != null) {
that.returnCount = res.result.records.length;

9
package2/shop/merchantCenter.vue

@ -65,7 +65,7 @@
待消费
</view>
</view>
<view class="order33" @tap="goDetail('db',11)">
<view class="order33" @tap="goDetail('tui',11)">
<view class="order44">
{{shopData.refundCount == undefined?0:shopData.refundCount}}
</view>
@ -97,7 +97,7 @@
<view class="data2">
<view class="data22">
<view class="data222">
{{shopData.orderRevenueAndCount.amount == undefined?0:shopData.orderRevenueAndCount.count}}
{{shopData.orderRevenueAndCount.count == undefined?0:shopData.orderRevenueAndCount.count}}
</view>
<view class="data333">
今日订单
@ -275,6 +275,11 @@
case 'dd':
url = '/package2/shop/shopOrderList'
break;
case 'tui':
uni.navigateTo({
url: '/package2/partTimeJob/partTimeJobCenter?type=shop'
})
break;
case 'zd':
url = '/package2/shop/shopBill'
break;

Loading…
Cancel
Save