|
@@ -151,14 +151,14 @@
|
|
|
console.log('000', t);
|
|
|
if (t) {
|
|
|
if (t.merchantType != 2) { //酒店民宿
|
|
|
- uni.setStorageSync('homestayId', t.merchantId);
|
|
|
- uni.setStorageSync('merchantId', '');
|
|
|
+ uni.setStorageSync('homestayId', '');
|
|
|
+ uni.setStorageSync('merchantId', t.merchantId);
|
|
|
this.list = [];
|
|
|
} else {
|
|
|
this.item = null;
|
|
|
this.list = [];
|
|
|
- uni.setStorageSync('homestayId', '');
|
|
|
- uni.setStorageSync('merchantId', t.merchantId);
|
|
|
+ uni.setStorageSync('homestayId', t.merchantId);
|
|
|
+ uni.setStorageSync('merchantId', '');
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/home/index'
|
|
|
})
|