welcome
parent
c93fe4adbd
commit
4a489c04cf
|
|
@ -18,23 +18,22 @@
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
console.log(111111111111111, e);
|
|
||||||
const scene = strToParams(decodeURIComponent(e.scene))
|
const scene = strToParams(decodeURIComponent(e.scene))
|
||||||
this.scene = scene
|
this.scene = scene
|
||||||
// 优先存储 invite_code
|
// 优先存储 invite_code
|
||||||
if (scene.invite_code) {
|
if (scene.i) {
|
||||||
uni.setStorageSync('INVITE_CODE', scene.invite_code)
|
uni.setStorageSync('INVITE_CODE', scene.i)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 产品详细页
|
// 产品详细页
|
||||||
if (scene.product) {
|
if (scene.p) {
|
||||||
uni.redirectTo({
|
uni.redirectTo({
|
||||||
url: '/pages/product_details/index?skuId=' + scene.product
|
url: '/pages/product_details/index?skuId=' + scene.product
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 扫码下单
|
// 扫码下单
|
||||||
else if (scene.order_pre) {
|
// else if (scene.o) {
|
||||||
// setTimeout(async () => {
|
// setTimeout(async () => {
|
||||||
// uni.showLoading({
|
// uni.showLoading({
|
||||||
// title: '加载中',
|
// title: '加载中',
|
||||||
|
|
@ -49,7 +48,7 @@
|
||||||
// url: '/pages/order_details/index?id=' + order_id
|
// url: '/pages/order_details/index?id=' + order_id
|
||||||
// })
|
// })
|
||||||
// }, 1000)
|
// }, 1000)
|
||||||
}
|
// }
|
||||||
// 默认跳转首页
|
// 默认跳转首页
|
||||||
else {
|
else {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
|
|
@ -58,8 +57,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (this.scene.order_pre) {
|
if (this.scene.o) {
|
||||||
this.getOrder(this.scene.order_pre)
|
this.getOrder(this.scene.o)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue