Commit c69f70df by zhangzhen

细节优化

parent 75073c0c
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</view> </view>
<view v-if="item.couponType == 4" class="flex-row margin-top"> <view v-if="item.couponType == 4" class="flex-row margin-top">
<text class="">使用说明:</text> <text class="">使用说明:</text>
<text>{{item.remark}}</text> <text>{{item.remark || ''}}</text>
</view> </view>
<view v-else class="flex-row margin-top"> <view v-else class="flex-row margin-top">
<text class="">使用说明:</text> <text class="">使用说明:</text>
......
...@@ -836,7 +836,9 @@ ...@@ -836,7 +836,9 @@
roomId: this.roomInfo.id, roomId: this.roomInfo.id,
orderMode: this.orderTypeList[this.index].type, orderMode: this.orderTypeList[this.index].type,
preStartDate: this.dateObj.startDate, preStartDate: this.dateObj.startDate,
preEndDate: this.dateObj.endDate preEndDate: this.dateObj.endDate,
orderType: this.orderType,
packageId:this.packageMode[this.modeIndex].id
}).then(res => { }).then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {
...@@ -937,11 +939,7 @@ ...@@ -937,11 +939,7 @@
onChangeMode(i) { onChangeMode(i) {
if (this.modeIndex === i) return; if (this.modeIndex === i) return;
this.modeIndex = i; this.modeIndex = i;
this.duration = Number(this.packageMode[this.modeIndex].duration); this.duration = Number(this.packageMode[this.modeIndex].duration);
let val = this.intervalList.findIndex(item=>item.status === 2) let val = this.intervalList.findIndex(item=>item.status === 2)
let len = this.intervalList.filter(item=> item.status ===2).length; let len = this.intervalList.filter(item=> item.status ===2).length;
let duration = Number(this.packageMode[this.modeIndex].duration); let duration = Number(this.packageMode[this.modeIndex].duration);
...@@ -987,7 +985,8 @@ ...@@ -987,7 +985,8 @@
} }
}) })
} }
// this.onComputePrice(); this.dateObj = this.onSetDateTime(this.startTime, this.endTime);
this.onGetUseCoupon();
}, },
onDurationChange(i) { onDurationChange(i) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</view> </view>
<view v-if="item.couponType == 4" class="flex-row margin-top"> <view v-if="item.couponType == 4" class="flex-row margin-top">
<text class="">使用说明:</text> <text class="">使用说明:</text>
<text>{{item.remark}}</text> <text>{{item.remark || ''}}</text>
</view> </view>
<view v-else class="flex-row margin-top"> <view v-else class="flex-row margin-top">
<text class="">使用说明:</text> <text class="">使用说明:</text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment