Commit 4b305ddc authored by youjie's avatar youjie

优化

parent 6e47ec1e
...@@ -146,16 +146,18 @@ ...@@ -146,16 +146,18 @@
</view> </view>
<!-- #endif --> <!-- #endif -->
<view class="busTispBox" style="margin-top: 20rpx;"> <view class="busTispBox" style="margin-top: 20rpx;">
<template v-if="(dataList.PriceIncludeList&&dataList.PriceIncludeList.length>0)||
(dataList.PriceNotIncludeList&&dataList.PriceNotIncludeList.length>0)">
<view class="busTispTitle">费用说明</view> <view class="busTispTitle">费用说明</view>
<view class="busTispInfor"> <view class="busTispInfor">
<view class="busTispFY"> <view class="busTispFY" v-if="dataList.PriceIncludeList&&dataList.PriceIncludeList.length>0">
费用包含: 费用包含:
<text class="bus-tagText" v-for="(item,index) in dataList.PriceIncludeList" <text class="bus-tagText" v-for="(item,index) in dataList.PriceIncludeList"
:key="index"> :key="index">
{{ item }} {{ item }}
</text> </text>
</view> </view>
<view class="busTispFY"> <view class="busTispFY" v-if="dataList.PriceNotIncludeList&&dataList.PriceNotIncludeList.length>0">
费用不包含: 费用不包含:
<text class="bus-tagText active" v-for="(item,index) in dataList.PriceNotIncludeList" <text class="bus-tagText active" v-for="(item,index) in dataList.PriceNotIncludeList"
:key="index"> :key="index">
...@@ -163,10 +165,13 @@ ...@@ -163,10 +165,13 @@
</text> </text>
</view> </view>
</view> </view>
<view class="busTispTitle">购买须知</view> </template>
<view class="busTispInfor"> <template v-if="dataList.BuyNotes">
{{ dataList.BuyNotes }} <view class="busTispTitle">购买须知</view>
</view> <view class="busTispInfor">
{{ dataList.BuyNotes }}
</view>
</template>
<view class="busTispTitle"> <view class="busTispTitle">
<view>接送点范围</view> <view>接送点范围</view>
<view v-for="(item,index) in dataList.PlaceList" <view v-for="(item,index) in dataList.PlaceList"
...@@ -184,10 +189,13 @@ ...@@ -184,10 +189,13 @@
:scale="scale"> :scale="scale">
</map> </map>
</view> </view>
<view class="busTispTitle">取消政策</view> <template v-if="dataList.CancelPolicy">
<view class="busTispInfor" style="border: 0;"> <view class="busTispTitle">取消政策</view>
{{ dataList.CancelPolicy }} <view class="busTispInfor" style="border: 0;">
</view> {{ dataList.CancelPolicy }}
</view>
</template>
</view> </view>
</view> </view>
...@@ -626,9 +634,19 @@ ...@@ -626,9 +634,19 @@
this.includePoints = [] this.includePoints = []
this.dataList = res.data; this.dataList = res.data;
if(!this.orderMsg.CarId) { if(!this.orderMsg.CarId) {
this.orderMsg.CarId = this.dataList.CarTypeList[0].Id if(this.busInfor.CarType!=3&&this.busInfor.peopleNum){
this.orderMsg.CarName = this.dataList.CarTypeList[0].CarName let i = this.dataList.CarTypeList.findIndex(item=>{
this.orderMsg.PeopleNum = this.dataList.CarTypeList[0].PeopleNum return item.PeopleNum>=this.busInfor.peopleNum
})
let item = this.dataList.CarTypeList[i]
this.orderMsg.CarId = item.Id
this.orderMsg.CarName = item.CarName
this.orderMsg.PeopleNum = item.PeopleNum
}else{
this.orderMsg.CarId = this.dataList.CarTypeList[0].Id
this.orderMsg.CarName = this.dataList.CarTypeList[0].CarName
this.orderMsg.PeopleNum = this.dataList.CarTypeList[0].PeopleNum
}
} }
this.getPrices() this.getPrices()
for (let i = 0; i < res.data.ImageList.length; i++) { for (let i = 0; i < res.data.ImageList.length; i++) {
......
...@@ -272,6 +272,18 @@ ...@@ -272,6 +272,18 @@
startYear: 2025, startYear: 2025,
} }
}, },
onLoad(options) {
},
onShow() {
// uni.getStorage({
// key: "busInfor",
// success: (res) => {
// let obj = JSON.parse(res.data);
// this.busInfor = obj;
// },
// });
},
created() { created() {
this.startYear = this.$utils.GetDateFewFaysLater(0).year this.startYear = this.$utils.GetDateFewFaysLater(0).year
}, },
......
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
</view> </view>
</view> </view>
<view class="buyTispBox"> <view class="buyTispBox" v-if="dataList.BuyNotes">
<view class="big-title"> <view class="big-title">
<text class="">购买说明</text> <text class="">购买说明</text>
</view> </view>
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<view class="ResInforL">人数</view> <view class="ResInforL">人数</view>
<view class="ResInforR">最多坐{{ orderInfor.PeopleNum}}</view> <view class="ResInforR">最多坐{{ orderInfor.PeopleNum}}</view>
</view> </view>
<view class="ResInforText row"> <view class="ResInforText row" v-if="dataList.CancelPolicy">
<view class="ResInforL">取消政策</view> <view class="ResInforL">取消政策</view>
<view class="ResInforR"> <view class="ResInforR">
<text> <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