diff --git a/pages/index/index.vue b/pages/index/index.vue index 1c023b3..0ed4071 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -650,6 +650,7 @@ groupId:item.groupId ? item.groupId : '', deliveryId:item.id, workerId:uni.getStorageSync('worker') ? uni.getStorageSync('worker').workerId : '', + workerPhone:uni.getStorageSync('worker') ? uni.getStorageSync('worker').mobile : '', workerName:uni.getStorageSync('worker') ? uni.getStorageSync('worker').workerName : '', regionId:JSON.parse(uni.getStorageSync('area')).id } @@ -657,6 +658,9 @@ this.tui.request("/mall/delivery/accept", "POST",data, false, true).then((res) => { that.loadStatus = 'nomore'; if (res.code == 200) { + if(!uni.getStorageSync('worker') && res.result != null){ + uni.setStorageSync('worker',res.result) + } that.deliveryItem.splice(index,1) that.tui.toast(res.message); if(item.workerId != null && item.workerId != undefined && item.workerId != ''){