完成服务

This commit is contained in:
Mr.jiang 2024-06-28 23:39:40 +08:00
parent 9aaf0999a5
commit d1c8aab546
1 changed files with 28 additions and 25 deletions

View File

@ -709,31 +709,34 @@
cancel(e) {
console.log(11)
let that = this
uni.showModal({
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('用户点击取消');
}
}
});
uni.navigateTo({
url:'/my/order/revenueDetails?ordersId='+e.ordersId
})
// uni.showModal({
// 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) {