Commit 8efd2635 authored by Damon's avatar Damon

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

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