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