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

9
package2/shop/merchantCenter.vue

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

Loading…
Cancel
Save