|
@@ -51,18 +51,16 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
toHome(item) { //1711268640588517378 1721450548101648385
|
|
toHome(item) { //1711268640588517378 1721450548101648385
|
|
|
|
+ uni.setStorageSync('merchantType',item.merchantType);
|
|
if (item.merchantType == 2) {//民宿
|
|
if (item.merchantType == 2) {//民宿
|
|
uni.setStorageSync('homestayId', item.merchantId);
|
|
uni.setStorageSync('homestayId', item.merchantId);
|
|
uni.setStorageSync('merchantId','');
|
|
uni.setStorageSync('merchantId','');
|
|
- uni.setStorageSync('merchantType',item.merchantType);
|
|
|
|
- uni.reLaunch({
|
|
|
|
url: '/pages/home/index'
|
|
url: '/pages/home/index'
|
|
})
|
|
})
|
|
} else {//渔家乐和餐饮
|
|
} else {//渔家乐和餐饮
|
|
uni.setStorageSync('homestayId', '');
|
|
uni.setStorageSync('homestayId', '');
|
|
uni.setStorageSync('merchantId', item.merchantId);
|
|
uni.setStorageSync('merchantId', item.merchantId);
|
|
uni.setStorageSync('merchantName', item.merchantName);
|
|
uni.setStorageSync('merchantName', item.merchantName);
|
|
- uni.setStorageSync('merchantType',item.merchantType);
|
|
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|
|
url: '/pagesHouse/home/index'
|
|
url: '/pagesHouse/home/index'
|
|
})
|
|
})
|