Commit a198237c by zhangzhen

细节优化

parent 8bc4e6ca
...@@ -333,12 +333,16 @@ ...@@ -333,12 +333,16 @@
}) })
}, },
onNavToOrder(){ onNavToOrder(){
uni.showLoading({
title:'加载中'
})
listSortDistance({ listSortDistance({
storeId: this.orderInfo.storeId, storeId: this.orderInfo.storeId,
roomId: this.orderInfo.roomId, roomId: this.orderInfo.roomId,
day: this.orderInfo.endDate, day: this.orderInfo.endDate,
orderType:2 orderType:2
}).then(res=>{ }).then(res=>{
uni.hideLoading()
if(res.data.code != 200){ if(res.data.code != 200){
uni.showToast({ uni.showToast({
icon:"none", icon:"none",
...@@ -416,6 +420,13 @@ ...@@ -416,6 +420,13 @@
} }
} }
} }
}).catch(err=>{
uni.hideLoading()
uni.showToast({
icon:"none",
title:err.msg || err.message||'请求数据出错'
})
}) })
}, },
onOrderRefund(){ onOrderRefund(){
......
...@@ -110,6 +110,7 @@ ...@@ -110,6 +110,7 @@
// eventChannel.emit('acceptDataFromOpenedPage', {data: 'data from test page'}); // eventChannel.emit('acceptDataFromOpenedPage', {data: 'data from test page'});
this.eventChannel.on('sendData', (data) => { this.eventChannel.on('sendData', (data) => {
console.log(data,99999)
this.selectId = data.selectId || '' this.selectId = data.selectId || ''
this.onLoading(data); 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