Commit f5c7eb29 authored by 潘永坪's avatar 潘永坪

组合票页面开发

parent df5e45a9
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
</scroll-view> </scroll-view>
<text class="no-time" v-if="item.timeList&&item.timeList.length==0"> 该日票种已售罄,请选择其他日期 </text> <text class="no-time" v-if="item.timeList&&item.timeList.length==0"> 该日票种已售罄,请选择其他日期 </text>
<text class="no-time" v-if="!item.startDate || !item.endDate"> 请先选游玩日期 </text> <text class="no-time" v-if="!item.startDate || !item.endDate"> 请先选游玩日期 </text>
<view class="timeMore" @click="showTime()"> <view class="timeMore" @click="showTime(item,index)">
<view class="time-more-content"> <view class="time-more-content">
<view>更多</view> <view>更多</view>
<view>场次</view> <view>场次</view>
...@@ -403,7 +403,6 @@ export default { ...@@ -403,7 +403,6 @@ export default {
productCode: '', //产品code productCode: '', //产品code
chooseContact: [], //选中的游客信息列表 chooseContact: [], //选中的游客信息列表
cruisePlanId: '', //班次Id cruisePlanId: '', //班次Id
chooseTimeData: '', //选中的时间传给子组件
timeNumber: '', //当前时间转化为数字 timeNumber: '', //当前时间转化为数字
startPlayTime: '', //开始时间 startPlayTime: '', //开始时间
endPlayTime: '', //结束时间 endPlayTime: '', //结束时间
...@@ -430,6 +429,8 @@ export default { ...@@ -430,6 +429,8 @@ export default {
productIdList:[],//产品id列表入参 productIdList:[],//产品id列表入参
productList:[],//初始化产品数据 productList:[],//初始化产品数据
orderStatus:'',//上下架状态,任何一个产品状态为下架,该状态为下架 orderStatus:'',//上下架状态,任何一个产品状态为下架,该状态为下架
chooseTimeList:[],//选中产品时间列表
chooseTimeData: '', //选中的时间传给子组件
} }
}, },
onLoad(option) { onLoad(option) {
...@@ -552,7 +553,7 @@ export default { ...@@ -552,7 +553,7 @@ export default {
showCalendar() { showCalendar() {
this.$refs.calendar.show = true this.$refs.calendar.show = true
}, },
//---日期选择 //---日期选择---已改
dateChoose(item,item2,index) { dateChoose(item,item2,index) {
item.active=index//修改选中样式 item.active=index//修改选中样式
item.maxBookNum=Math.min(item2.maxBookNum,item2.surplus) //剩余量变化 item.maxBookNum=Math.min(item2.maxBookNum,item2.surplus) //剩余量变化
...@@ -601,11 +602,18 @@ export default { ...@@ -601,11 +602,18 @@ export default {
this.dateScroll = (data[index].width + 4) * index this.dateScroll = (data[index].width + 4) * index
}).exec() }).exec()
}, },
//---展示更多时间 //---展示更多时间---已改好
showTime() { showTime(item,index) {
this.chooseTimeList=item.timeList
this.moreTimeIndex=index
if(item.timeActive>=0){
this.timeActive=item.timeActive//组件的默认下标
}else{
this.timeActive=10000
}
this.$refs.times.showPop = true this.$refs.times.showPop = true
}, },
//---时间选择 //---时间选择---已改好,数据更新需要测试
chooseTime(item,item2,index) { chooseTime(item,item2,index) {
if(item2.copyLast!='售罄'){ if(item2.copyLast!='售罄'){
item.timeActive=index item.timeActive=index
......
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