|
@@ -64,10 +64,20 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 平日价格 -->
|
|
|
-
|
|
|
+ <view class="priceBoxWeek" v-if="!weekedChecked">
|
|
|
+ <view class="weekendBox">
|
|
|
+ <view>
|
|
|
+ <text style="font-size: 30rpx; margin-right: 90rpx; ">固定房价</text>
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;">
|
|
|
+ <text style="font-size: 30rpx;">¥</text> <input v-model="form.price" type="text"
|
|
|
+ placeholder="请输入价格" style="width: 210rpx;height: 42rpx; font-size: 30rpx;" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
<!-- 每日价格 -->
|
|
|
- <view class="priceBoxWeek">
|
|
|
+ <view class="priceBoxWeek" v-if="weekedChecked">
|
|
|
<view class="weekendBox">
|
|
|
<view>
|
|
|
<text style="font-size: 30rpx; margin-right: 90rpx; ">周一</text>
|
|
@@ -79,7 +89,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="priceBoxWeek">
|
|
|
+ <view class="priceBoxWeek" v-if="weekedChecked">
|
|
|
<view class="weekendBox">
|
|
|
<view>
|
|
|
<text style="font-size: 30rpx; margin-right: 90rpx; ">周二</text>
|
|
@@ -91,7 +101,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="priceBoxWeek">
|
|
|
+ <view class="priceBoxWeek" v-if="weekedChecked">
|
|
|
<view class="weekendBox">
|
|
|
<view>
|
|
|
<text style="font-size: 30rpx; margin-right: 90rpx; ">周三</text>
|
|
@@ -103,7 +113,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="priceBoxWeek">
|
|
|
+ <view class="priceBoxWeek" v-if="weekedChecked">
|
|
|
<view class="weekendBox">
|
|
|
<view>
|
|
|
<text style="font-size: 30rpx; margin-right: 90rpx; ">周四</text>
|
|
@@ -115,7 +125,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="priceBoxWeek">
|
|
|
+ <view class="priceBoxWeek" v-if="weekedChecked">
|
|
|
<view class="weekendBox">
|
|
|
<view>
|
|
|
<text style="font-size: 30rpx; margin-right: 90rpx; ">周五</text>
|
|
@@ -127,7 +137,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="priceBoxWeek">
|
|
|
+ <view class="priceBoxWeek" v-if="weekedChecked">
|
|
|
<view class="weekendBox">
|
|
|
<view>
|
|
|
<text style="font-size: 30rpx; margin-right: 90rpx; ">周六</text>
|
|
@@ -139,7 +149,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="priceBoxWeek">
|
|
|
+ <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>
|
|
@@ -209,6 +219,7 @@
|
|
|
fileList: [],
|
|
|
|
|
|
form: {
|
|
|
+ price:'',
|
|
|
homestayId: '',
|
|
|
mondayPrice: '',
|
|
|
tuesdayPrice: '',
|
|
@@ -219,6 +230,7 @@
|
|
|
sundayPrice: '',
|
|
|
name: '',
|
|
|
shortName: '',
|
|
|
+ isPutaway:'',
|
|
|
roomFloor: [{
|
|
|
floor: '',
|
|
|
roomNumber: ''
|
|
@@ -277,13 +289,14 @@
|
|
|
},
|
|
|
// 添加&编辑房屋
|
|
|
addNewRoom(){
|
|
|
+
|
|
|
+ // console.log(this.form)
|
|
|
+ if(!this.id){
|
|
|
if(this.checked===true){
|
|
|
- this.form.isPutAway=1
|
|
|
+ this.form.isPutaway=1
|
|
|
}else{
|
|
|
- this.form.isPutAway=0
|
|
|
+ this.form.isPutaway=0
|
|
|
}
|
|
|
- // console.log(this.form)
|
|
|
- if(!this.id){
|
|
|
this.$api.post('/merchant/hotel/mine/addHouseBase',this.form).then(res=>{
|
|
|
// console.log(res)
|
|
|
if(res.data.code===0){
|
|
@@ -299,6 +312,11 @@
|
|
|
}else{
|
|
|
// console.log('这是修改')
|
|
|
// if(this.)
|
|
|
+ if(this.checked===true){
|
|
|
+ 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){
|
|
@@ -312,6 +330,8 @@
|
|
|
})
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
// 添加房间
|
|
|
addRoom(){
|
|
@@ -429,7 +449,7 @@
|
|
|
// }
|
|
|
.priceInfo {
|
|
|
width: 690rpx;
|
|
|
- height: 908rpx;
|
|
|
+ // height: 908rpx;
|
|
|
background-color: #fff;
|
|
|
border-radius: 10rpx;
|
|
|
margin-top: 20rpx;
|