完成服务
This commit is contained in:
parent
9aaf0999a5
commit
d1c8aab546
|
@ -709,31 +709,34 @@
|
||||||
cancel(e) {
|
cancel(e) {
|
||||||
console.log(11)
|
console.log(11)
|
||||||
let that = this
|
let that = this
|
||||||
uni.showModal({
|
uni.navigateTo({
|
||||||
title: '提示',
|
url:'/my/order/revenueDetails?ordersId='+e.ordersId
|
||||||
content: '如果服务未完成点击完成订单会遭到平台违规处理,请确认服务是否完毕?',
|
|
||||||
success: function(res) {
|
|
||||||
if (res.confirm) {
|
|
||||||
let data = {
|
|
||||||
ordersId: e.ordersId,
|
|
||||||
accomplishLongitude: that.longitude,
|
|
||||||
accomplishLatitude: that.latitude
|
|
||||||
}
|
|
||||||
that.$queue.showLoading('提交中...')
|
|
||||||
that.$Request.post('/app/artificer/accomplishOrders', data).then(res => {
|
|
||||||
uni.hideLoading();
|
|
||||||
if (res.code == 0) {
|
|
||||||
that.mescroll.resetUpScroll()
|
|
||||||
websocketUtils.uploadAudioEnd(); //关闭音频上传
|
|
||||||
} else {
|
|
||||||
that.$queue.showToast(res.msg);
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
} else if (res.cancel) {
|
// uni.showModal({
|
||||||
console.log('用户点击取消');
|
// title: '提示',
|
||||||
}
|
// content: '如果服务未完成点击完成订单会遭到平台违规处理,请确认服务是否完毕?',
|
||||||
}
|
// success: function(res) {
|
||||||
});
|
// if (res.confirm) {
|
||||||
|
// let data = {
|
||||||
|
// ordersId: e.ordersId,
|
||||||
|
// accomplishLongitude: that.longitude,
|
||||||
|
// accomplishLatitude: that.latitude
|
||||||
|
// }
|
||||||
|
// that.$queue.showLoading('提交中...')
|
||||||
|
// that.$Request.post('/app/artificer/accomplishOrders', data).then(res => {
|
||||||
|
// uni.hideLoading();
|
||||||
|
// if (res.code == 0) {
|
||||||
|
// that.mescroll.resetUpScroll()
|
||||||
|
// websocketUtils.uploadAudioEnd(); //关闭音频上传
|
||||||
|
// } else {
|
||||||
|
// that.$queue.showToast(res.msg);
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// } else if (res.cancel) {
|
||||||
|
// console.log('用户点击取消');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
//时间弹框开关
|
//时间弹框开关
|
||||||
bindData(index) {
|
bindData(index) {
|
||||||
|
|
Loading…
Reference in New Issue