Browse Source

this.$store.state.moduleHouse.homestayId改为uni.getStorageSync('homestayId')

htc 1 year ago
parent
commit
a6964aecc1

+ 1 - 1
pages/house/breast.vue

@@ -40,7 +40,7 @@
 	export default {
 		data() {
 			return {
-				homestayId: this.$store.state.moduleHouse.homestayId,
+				homestayId: uni.getStorageSync('homestayId'),
 				list: [],
 				list2: []
 			}

+ 1 - 1
pages/house/createOrder.vue

@@ -180,7 +180,7 @@
 					guestPhone: "",
 					guestSourceId: null,
 					guestSourceName: null,
-					homestayId: this.$store.state.moduleHouse.homestayId,
+					homestayId: uni.getStorageSync('homestayId'),
 					houseBaseId: 0,
 					houseBaseName: '',
 					leaveDate: "",

+ 1 - 1
pages/house/index.vue

@@ -78,7 +78,7 @@
 	export default {
 		data() {
 			return {
-				homestayId:this.$store.state.moduleHouse.homestayId,
+				homestayId:uni.getStorageSync('homestayId'),
 				areaShow: false,
 				passengerDefault: [0],
 				areaTxt: [

+ 1 - 1
pages/my/roomType.vue

@@ -29,7 +29,7 @@
 	export default {
 		data(){
 			return {
-				homestayId:this.$store.state.moduleHouse.homestayId,
+				homestayId:uni.getStorageSync('homestayId'),
 				roomType:[]
 			}
 		},

+ 1 - 1
pagesMy/orderList/orderList.vue

@@ -80,7 +80,7 @@
 				dataList: [],
 				limit: 10,
 				page: 1,
-				homestayId: this.$store.state.moduleHouse.homestayId,
+				homestayId: uni.getStorageSync('homestayId'),
 				statusClass: [
 					'',
 					'green',