Commit 571bf4af authored by youjie's avatar youjie

no message

parent f09ffbef
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
<view>包含成人和儿童</view> <view>包含成人和儿童</view>
</view> </view>
<view class="peopleCenterR row items-center"> <view class="peopleCenterR row items-center">
<u-number-box :min="1" v-model="busInfor.peopleNum" @change="getPeople"/> <u-number-box :min="1" v-model="busInfor.peopleNum" @change="(e)=>{busInfor.peopleNum=e.value,getPeople()}"/>
<text></text> <text></text>
</view> </view>
</view> </view>
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
<view></view> <view></view>
</view> </view>
<view class="peopleCenterR row items-center"> <view class="peopleCenterR row items-center">
<u-number-box :min="1" v-model="busInfor.days" @change="getPeople"/> <u-number-box :min="1" v-model="busInfor.days" @change="(e)=>{busInfor.days=e.value}"/>
<text></text> <text></text>
</view> </view>
</view> </view>
...@@ -372,7 +372,7 @@ ...@@ -372,7 +372,7 @@
}, },
getPeople(){ getPeople(){
if(this.busInfor.CarType<3&&(this.busInfor.peopleNum<1||!this.busInfor.peopleNum)) this.busInfor.peopleNum = 1 if(this.busInfor.CarType<3&&(this.busInfor.peopleNum<1||!this.busInfor.peopleNum)) this.busInfor.peopleNum = 1
if(this.busInfor.CarType==3&&(this.busInfor.days<1||!this.busInfor.days)) this.busInfor.peopleNum = 1 // if(this.busInfor.CarType==3&&(this.busInfor.days<1||!this.busInfor.days)) this.busInfor.peopleNum = 1
}, },
setType(type){ setType(type){
if(type) { if(type) {
......
...@@ -167,8 +167,8 @@ ...@@ -167,8 +167,8 @@
成人 成人
</view> </view>
<view class="LastNameBox" style="width: 1px;flex: 1;"> <view class="LastNameBox" style="width: 1px;flex: 1;">
<u-number-box :min="1" v-model="orderMsg.ManNum" <u-number-box :min="1" v-model="orderMsg.ManNum" placeholder="成人数"
placeholder="请输入成人数" @change="getPeoples"/> @change="(e)=>{orderMsg.ManNum=e.value,getPeoples()}" />
</view> </view>
</view> </view>
<view class="row-sbas-n"> <view class="row-sbas-n">
...@@ -178,7 +178,8 @@ ...@@ -178,7 +178,8 @@
</view> </view>
<view class="LastNameBox" style="width: 1px;flex: 1;"> <view class="LastNameBox" style="width: 1px;flex: 1;">
<view class="row items-center"> <view class="row items-center">
<u-number-box :min="0" v-model="orderMsg.ChildNum" placeholder="儿童数" @change="getPeoples"/> <u-number-box :min="0" v-model="orderMsg.ChildNum" placeholder="儿童数"
@change="(e)=>{orderMsg.ChildNum=e.value,getPeoples()}"/>
</view> </view>
</view> </view>
</view> </view>
...@@ -188,7 +189,8 @@ ...@@ -188,7 +189,8 @@
</view> </view>
<view class="LastNameBox" style="width: 1px;flex: 1;"> <view class="LastNameBox" style="width: 1px;flex: 1;">
<view class="row items-center"> <view class="row items-center">
<u-number-box :min="0" v-model="orderMsg.BabyNum" placeholder="婴儿数" @change="getPeoples"/> <u-number-box :min="0" v-model="orderMsg.BabyNum" placeholder="婴儿数"
@change="(e)=>{orderMsg.BabyNum=e.value,getPeoples()}"/>
</view> </view>
</view> </view>
</view> </view>
......
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