Commit 8efd2635 authored by Damon's avatar Damon

refactor: 订单详情页返回逻辑修改

parent c9751c4f
......@@ -484,9 +484,16 @@ export default {
},
methods: {
goBack() {
uni.switchTab({
url:'pages/index/order'
})
let pages = getCurrentPages()
if (pages.length === 1) {
uni.switchTab({
url:'pages/index/order'
})
} else {
uni.navigateBack({
delta: 1
})
}
},
updateLocation() {
let self = this
......
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