6
0
Fork 0

调整 入口页面跳转逻辑

hui.zhou
panliang 2022-11-07 16:37:22 +08:00
parent 4a489c04cf
commit 9740568620
1 changed files with 5 additions and 35 deletions

View File

@ -23,9 +23,7 @@
// invite_code
if (scene.i) {
uni.setStorageSync('INVITE_CODE', scene.i)
}
//
if (scene.p) {
uni.redirectTo({
@ -33,45 +31,17 @@
})
}
//
// else if (scene.o) {
// setTimeout(async () => {
// uni.showLoading({
// title: '',
// mask: true
// });
// const obj = {
// id: scene.order_pre
// }
// const { order_id } = await this.$api.post(`/v1/order-pre/order`, obj)
// uni.hideLoading()
// uni.redirectTo({
// url: '/pages/order_details/index?id=' + order_id
// })
// }, 1000)
// }
if (scene.o) {
uni.redirectTo({
url: '/pageB/select_product/com_order?id=' + scene.o
})
}
//
else {
uni.switchTab({
url: '/pages/index/index'
})
}
},
onShow() {
if (this.scene.o) {
this.getOrder(this.scene.o)
}
},
methods: {
//
async getOrder(id) {
uni.redirectTo({
url: '/pageB/select_product/com_order?id=' + id
})
}
}
}
</script>
<style lang="scss">
</style>