6
0
Fork 0
hui.zhou
panliang 2022-11-07 11:52:19 +08:00
parent c93fe4adbd
commit 4a489c04cf
1 changed files with 21 additions and 22 deletions

View File

@ -18,23 +18,22 @@
};
},
onLoad(e) {
console.log(111111111111111, e);
const scene = strToParams(decodeURIComponent(e.scene))
this.scene = scene
// invite_code
if (scene.invite_code) {
uni.setStorageSync('INVITE_CODE', scene.invite_code)
if (scene.i) {
uni.setStorageSync('INVITE_CODE', scene.i)
}
//
if (scene.product) {
if (scene.p) {
uni.redirectTo({
url: '/pages/product_details/index?skuId=' + scene.product
})
}
//
else if (scene.order_pre) {
// else if (scene.o) {
// setTimeout(async () => {
// uni.showLoading({
// title: '',
@ -49,7 +48,7 @@
// url: '/pages/order_details/index?id=' + order_id
// })
// }, 1000)
}
// }
//
else {
uni.switchTab({
@ -58,8 +57,8 @@
}
},
onShow() {
if (this.scene.order_pre) {
this.getOrder(this.scene.order_pre)
if (this.scene.o) {
this.getOrder(this.scene.o)
}
},
methods: {