welcome
parent
c93fe4adbd
commit
4a489c04cf
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue