Commit 1639c264 authored by Damon's avatar Damon

feat: 完工页跳转订单质量页提醒

parent be843564
......@@ -105,7 +105,7 @@
text-overflow: ellipsis;
}
.progress{
flex:5;
flex:7;
text-align: left;
padding-right: 10rpx;
......
......@@ -133,9 +133,9 @@
},
{
pathName: 'portrait/index',
title: '用户画像',
title: '订单数据',
value: '',
icon: 'wodeziliao.png',
icon: 'dingdanshuju.png',
imageStyle: 'width:32rpx;height:32rpx'
},
{
......
......@@ -402,7 +402,7 @@ const actions = (name, pass, type, submit) => {
confirmText: '确定',
action: 'nextAction',
cancelText: '取消',
cancelAction: 'closeCheckResult',
cancelAction: 'closeResult',
},
}
if (name === 'partnerInspectItem') {
......@@ -880,6 +880,9 @@ export default {
this.completeCheck.result = checkResult
return pass
},
closeResult() {
},
// 检查结果窗口取消回调
closeCheckResult() {
......@@ -1042,22 +1045,7 @@ export default {
if (this.inGuaranteePeriod === 'Y') {
this.$u.api.inOrderFinish(this.orderId).then((res) => {
if (res.code == 200) {
this.$refs.uToast.show({
title: '提交成功',
type: 'success',
callback: () => {
if (this.completeBack) {
// 从订单管理和浏览记录进来
uni.navigateBack({
delta: this.completeBack,
})
} else {
uni.reLaunch({
url: '/pages/index/order?type=audit',
})
}
},
})
this.successTips()
} else {
this.$refs.uToast.show({
title: res.data,
......@@ -1070,22 +1058,7 @@ export default {
.outOrderFinish({ customerPayType: 'CASH' }, this.orderId)
.then((res) => {
if (res.code == 200) {
this.$refs.uToast.show({
title: '提交成功',
type: 'success',
callback: () => {
if (this.completeBack) {
// 从订单管理和浏览记录进来
uni.navigateBack({
delta: this.completeBack,
})
} else {
uni.reLaunch({
url: '/pages/index/order?type=audit',
})
}
},
})
this.successTips()
} else {
this.$refs.uToast.show({
title: res.data,
......@@ -1102,6 +1075,33 @@ export default {
}
})
},
// 提交成功后续
successTips() {
uni.showModal({
title: '提交成功',
content: '是否查看本单服务质量详情?',
confirmText: '好的',
cancelText: '算了',
success: function (res) {
if (res.confirm) {
uni.reLaunch({
url: '/pages/mine/portrait/index',
})
} else if (res.cancel) {
if (this.completeBack) {
// 从订单管理和浏览记录进来
uni.navigateBack({
delta: this.completeBack,
})
} else {
uni.reLaunch({
url: '/pages/index/order?type=audit',
})
}
}
}
})
},
calMaterialCraftListAmount(arr) {
let amount = 0
if (arr) {
......
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