wangfukang 1 week ago
parent
commit
c2684e5b9f
  1. 10
      pages/index/index.vue

10
pages/index/index.vue

@ -412,7 +412,7 @@
<view class="qu-right"> <view class="qu-right">
<img @tap.stop="makeCall(item.shopPhone)" <img @tap.stop="makeCall(item.shopPhone)"
src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png"
alt="" style="width: 40rpx;height: 40rpx;" /> alt="" style="width: 55rpx;height: 55rpx;" />
</view> </view>
</view> </view>
</view> </view>
@ -428,7 +428,7 @@
<view class="qu-right"> <view class="qu-right">
<img @tap.stop="makeCall(item.receiverPhone)" <img @tap.stop="makeCall(item.receiverPhone)"
src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png" src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/869a7af6a1c24bf3a0d523c4a18b55c6.png"
alt="" style="width: 40rpx;height: 40rpx;" /> alt="" style="width: 55rpx;height: 55rpx;" />
</view> </view>
</view> </view>
</view> </view>
@ -1050,9 +1050,11 @@
if (!uni.getStorageSync('worker') && res.result != null) { if (!uni.getStorageSync('worker') && res.result != null) {
this.$refs.tishiPopup.open() this.$refs.tishiPopup.open()
uni.setStorageSync('worker', res.result) uni.setStorageSync('worker', res.result)
that.$refs.tabBar.indexWorkerCount ++
}else{ }else{
if(res.message == '接单成功'){ if(res.message == '接单成功'){
that.tui.toast(res.message); that.tui.toast(res.message);
that.$refs.tabBar.indexWorkerCount ++
}else{ }else{
that.tui.toast(res.message,2000); that.tui.toast(res.message,2000);
} }
@ -1070,7 +1072,7 @@
that.paotuiCount -= 1 that.paotuiCount -= 1
} }
} }
that.$refs.tabBar.indexWorkerCount ++
setTimeout(res => { setTimeout(res => {
this.getUserLocation(uni.getStorageSync('worker') ? uni.getStorageSync('worker').workerId : res.result.workerId) this.getUserLocation(uni.getStorageSync('worker') ? uni.getStorageSync('worker').workerId : res.result.workerId)
}, 2000) }, 2000)
@ -1080,9 +1082,7 @@
that.tui.toast(res.message); that.tui.toast(res.message);
return; return;
} }
uni.hideLoading();
}).catch((res) => {}); }).catch((res) => {});
}, },
rejectOrder(item, index) { rejectOrder(item, index) {
let that = this let that = this

Loading…
Cancel
Save