Commit a198237c by zhangzhen

细节优化

parent 8bc4e6ca
......@@ -333,12 +333,16 @@
})
},
onNavToOrder(){
uni.showLoading({
title:'加载中'
})
listSortDistance({
storeId: this.orderInfo.storeId,
roomId: this.orderInfo.roomId,
day: this.orderInfo.endDate,
orderType:2
}).then(res=>{
uni.hideLoading()
if(res.data.code != 200){
uni.showToast({
icon:"none",
......@@ -416,6 +420,13 @@
}
}
}
}).catch(err=>{
uni.hideLoading()
uni.showToast({
icon:"none",
title:err.msg || err.message||'请求数据出错'
})
})
},
onOrderRefund(){
......
......@@ -110,6 +110,7 @@
// eventChannel.emit('acceptDataFromOpenedPage', {data: 'data from test page'});
this.eventChannel.on('sendData', (data) => {
console.log(data,99999)
this.selectId = data.selectId || ''
this.onLoading(data);
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment