Commit 81af0cbd authored by 郭晓清's avatar 郭晓清

详情路由关闭上个页面

parent a44c4882
...@@ -543,14 +543,21 @@ ...@@ -543,14 +543,21 @@
return return
} }
this.$u.api[this.submitType](data, this.order.orderId).then(res => { this.$u.api[this.submitType](data, this.order.orderId).then(res => {
let self = this
if ((res.data.code!==undefined && res.data.code === 200) if ((res.data.code!==undefined && res.data.code === 200)
|| (res.code!==undefined && res.code === 200) ) { || (res.code!==undefined && res.code === 200) ) {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: this.centerButtonText + '操作成功', title: this.centerButtonText + '操作成功',
type: 'success', type: 'success',
url: 'pages/order/detail', // isTab:true,
params: { // url: 'pages/order/detail',
id: this.order.orderId // params: {
// id: this.order.orderId
// }
callback : function(){
uni.redirectTo({
url: 'pages/order/detail?id='+self.order.orderId
});
} }
}) })
} else { } else {
......
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