ソースを参照

id设置更改

htc 1 年間 前
コミット
f296971493
1 ファイル変更4 行追加4 行削除
  1. 4 4
      pagesHouse/home/index.vue

+ 4 - 4
pagesHouse/home/index.vue

@@ -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'
 						})