Browse Source

bug修复

htc 11 months ago
parent
commit
7d2d8661bc
1 changed files with 26 additions and 27 deletions
  1. 26 27
      pages/my/houseList.vue

+ 26 - 27
pages/my/houseList.vue

@@ -49,11 +49,11 @@
 			<!-- 价格信息 -->
 			<view class="priceInfo">
 				<!-- 标题 -->
-				<view class="titleInfo">
+				<!-- <view class="titleInfo">
 					<text style="font-size: 32rpx; font-weight: 700; margin-left: 10rpx;">价格信息</text>
-				</view>
+				</view> -->
 				<!-- 周末周日区分 -->
-				<view class="week">
+				<!-- <view class="week">
 					<view class="weekend">
 						<view>
 							<text style="font-size: 30rpx; ">区分平日周末</text>
@@ -62,9 +62,9 @@
 							<u-switch v-model="weekedChecked" size="50" active-color="#07C160"></u-switch>
 						</view>
 					</view>
-				</view>
+				</view> -->
 				<!-- 平日价格 -->
-				<view class="priceBoxWeek" v-if="!weekedChecked">
+				<!-- <view class="priceBoxWeek" v-if="!weekedChecked">
 					<view class="weekendBox" @scroll="scroll">
 						<view>
 							<text style="font-size: 30rpx; margin-right: 90rpx; ">固定房价</text>
@@ -75,10 +75,10 @@
 								style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
 						</view>
 					</view>
-				</view>
+				</view> -->
 
 				<!-- 每日价格 -->
-				<view class="priceBoxWeek" v-if="weekedChecked">
+				<!-- <view class="priceBoxWeek" v-if="weekedChecked">
 					<view class="weekendBox">
 						<view>
 							<text style="font-size: 30rpx; margin-right: 90rpx; ">周一</text>
@@ -88,9 +88,9 @@
 								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
 						</view>
 					</view>
-				</view>
+				</view> -->
 
-				<view class="priceBoxWeek" v-if="weekedChecked">
+				<!-- <view class="priceBoxWeek" v-if="weekedChecked">
 					<view class="weekendBox">
 						<view>
 							<text style="font-size: 30rpx; margin-right: 90rpx; ">周二</text>
@@ -100,9 +100,9 @@
 								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
 						</view>
 					</view>
-				</view>
+				</view> -->
 
-				<view class="priceBoxWeek" v-if="weekedChecked">
+				<!-- <view class="priceBoxWeek" v-if="weekedChecked">
 					<view class="weekendBox">
 						<view>
 							<text style="font-size: 30rpx; margin-right: 90rpx; ">周三</text>
@@ -112,9 +112,9 @@
 								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
 						</view>
 					</view>
-				</view>
+				</view> -->
 
-				<view class="priceBoxWeek" v-if="weekedChecked">
+			<!-- 	<view class="priceBoxWeek" v-if="weekedChecked">
 					<view class="weekendBox">
 						<view>
 							<text style="font-size: 30rpx; margin-right: 90rpx; ">周四</text>
@@ -124,9 +124,9 @@
 								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
 						</view>
 					</view>
-				</view>
+				</view> -->
 
-				<view class="priceBoxWeek" v-if="weekedChecked">
+				<!-- <view class="priceBoxWeek" v-if="weekedChecked">
 					<view class="weekendBox">
 						<view>
 							<text style="font-size: 30rpx; margin-right: 90rpx; ">周五</text>
@@ -136,9 +136,9 @@
 								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
 						</view>
 					</view>
-				</view>
+				</view> -->
 
-				<view class="priceBoxWeek" v-if="weekedChecked">
+				<!-- <view class="priceBoxWeek" v-if="weekedChecked">
 					<view class="weekendBox">
 						<view>
 							<text style="font-size: 30rpx; margin-right: 90rpx; ">周六</text>
@@ -148,9 +148,9 @@
 								placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
 						</view>
 					</view>
-				</view>
+				</view> -->
 
-				<view class="priceBoxWeek" v-if="weekedChecked">
+				<!-- <view class="priceBoxWeek" v-if="weekedChecked">
 					<view class="weekendBox" style=" border-bottom: 1rpx solid #fff;">
 						<view style="margin-top: 10rpx;">
 							<text style="font-size: 30rpx; margin-right: 90rpx; ">周日</text>
@@ -161,7 +161,7 @@
 								 " />
 						</view>
 					</view>
-				</view>
+				</view> -->
 			</view>
 			<!-- 房间列表 -->
 			<view class="everyHouseList" style="padding-top: 20rpx;">
@@ -237,11 +237,9 @@
 					roomFloor: [{
 						floor: '',
 						roomNumber: ''
-					}]
-
+					}],
+					cover:''
 				},
-
-
 			}
 
 		},
@@ -292,7 +290,8 @@
 							let data = JSON.parse(res.data) //最终传给的是字符串,这里需要转换格式
 							this.fileList.push({
 								url: data.data.url
-							})
+							})
+							this.form.cover = data.data.url;
 							resolve(data.data.url)
 						}
 					});
@@ -307,7 +306,7 @@
 						this.form.isPutaway = 1
 					} else {
 						this.form.isPutaway = 0
-					}
+					}
 					this.$api.post('/merchant/hotel/mine/addHouseBase', this.form).then(res => {
 						// console.log(res)
 						if (res.data.code === 0) {
@@ -327,7 +326,7 @@
 						this.form.isPutaway = 1
 					} else {
 						this.form.isPutaway = 0
-					}
+					}
 					this.$api.put('/merchant/hotel/mine/updHouseBase', this.form).then(res => {
 						// console.log('修改成功')
 						if (res.data.code === 0) {