소스 검색

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