完成服务

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) { 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) { // uni.showModal({
if (res.confirm) { // title: '',
let data = { // content: '?',
ordersId: e.ordersId, // success: function(res) {
accomplishLongitude: that.longitude, // if (res.confirm) {
accomplishLatitude: that.latitude // let data = {
} // ordersId: e.ordersId,
that.$queue.showLoading('提交中...') // accomplishLongitude: that.longitude,
that.$Request.post('/app/artificer/accomplishOrders', data).then(res => { // accomplishLatitude: that.latitude
uni.hideLoading(); // }
if (res.code == 0) { // that.$queue.showLoading('...')
that.mescroll.resetUpScroll() // that.$Request.post('/app/artificer/accomplishOrders', data).then(res => {
websocketUtils.uploadAudioEnd(); // // uni.hideLoading();
} else { // if (res.code == 0) {
that.$queue.showToast(res.msg); // that.mescroll.resetUpScroll()
} // websocketUtils.uploadAudioEnd(); //
}) // } else {
} else if (res.cancel) { // that.$queue.showToast(res.msg);
console.log('用户点击取消'); // }
} // })
} // } else if (res.cancel) {
}); // console.log('');
// }
// }
// });
}, },
// //
bindData(index) { bindData(index) {