Fix:3608 【商城小程序】当前用户有店铺时,从寻趣味选择任意店铺进入店铺详情,显示的是自己的店铺详情
This commit is contained in:
@@ -518,6 +518,8 @@ export default {
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
const id = options.id || ''
|
const id = options.id || ''
|
||||||
const from = options.from
|
const from = options.from
|
||||||
|
console.log(from);
|
||||||
|
|
||||||
switch (from) {
|
switch (from) {
|
||||||
// 特产
|
// 特产
|
||||||
case 'techan':
|
case 'techan':
|
||||||
@@ -552,7 +554,7 @@ export default {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
if (id) {
|
if (id) {
|
||||||
this.id = uni.getStorageSync('homeId') || id
|
this.id = from ? id : uni.getStorageSync('homeId') || id
|
||||||
this.partnerId = options.partnerId || null
|
this.partnerId = options.partnerId || null
|
||||||
} else {
|
} else {
|
||||||
let obj = uni.getEnterOptionsSync()
|
let obj = uni.getEnterOptionsSync()
|
||||||
|
|||||||
Reference in New Issue
Block a user