Commit 51611c38 authored by 潘永坪's avatar 潘永坪

组合票跳转,单产品单个站点排号处理

parent 48a14b97
......@@ -608,16 +608,19 @@ export default {
return item.id
})
let query ='?productIdList=' + JSON.stringify(productIdList) + '&groupId=' + this.groupId + '&groupChannelId=' + this.groupChannelId + '&orderSource=3'
//如果有联票
if(this.chooseProduct.find(item=>item.ticketType==2)){
uni.navigateTo({
url: '/pages/combination/combiOrder/combiOrder' + query
})
}else{
uni.navigateTo({
url: '/pages/scenic/scenicCombiOrder/scenicCombiOrder' + query
})
}
uni.navigateTo({
url: '/pages/combination/combiOrder/combiOrder' + query
})
// //如果有联票
// if(this.chooseProduct.find(item=>item.ticketType==2)){
// uni.navigateTo({
// url: '/pages/combination/combiOrder/combiOrder' + query
// })
// }else{
// uni.navigateTo({
// url: '/pages/scenic/scenicCombiOrder/scenicCombiOrder' + query
// })
// }
}
},
//---跳转影集页面
......
......@@ -40,7 +40,7 @@
</view>
</view>
<!--需要排队并且为一个站点-->
<!-- <view class="middle-place" v-if="productIfo.isFetch == 1 && productIfo.productAreaList.length == 1 && areaUp" @click="getSortInfo()">
<view class="middle-place" v-if="productIfo.isFetch == 1 && productIfo.productAreaList.length == 1 && areaUp" @click="getSortInfo()">
<view> 获取排队信息 </view>
<view>
......@@ -50,7 +50,7 @@
<view>
<u-icon name="arrow-right" color="#3688FF"></u-icon>
</view>
</view> -->
</view>
<view class="middle-Date">
<view class="title-text">游玩日期</view>
......@@ -353,7 +353,7 @@
></contactList>
<orderCoupon :couponData="couponData" ref="orderCoupon" @couponChoose="couponChoose" :chooseCouponObj="chooseCouponObj"></orderCoupon>
<!--一个站点时获取排队信息弹窗-->
<!-- <u-popup :show="sortInforPop" :round="10" closeable @close="sortInforPop = false">
<u-popup :show="sortInforPop" :round="10" closeable @close="sortInforPop = false">
<view style="padding: 40rpx 60rpx">
<view>
景区名称:
......@@ -378,7 +378,7 @@
<text class="middle-btn">确定</text>
</view>
</view>
</u-popup> -->
</u-popup>
</view>
</template>
......@@ -714,7 +714,7 @@ export default {
}
})
},
//---获取排号信息
//---获取排号信息--单个站点
getSortInfo() {
let data = {
areaCode: this.areaObj.areaCode,
......@@ -723,13 +723,13 @@ export default {
this.$request('distribution/distribution/findNewFetchInfoFromSceinc', data).then(res => {
if (res.code == '00') {
this.sortInforPop = true
res.data.forEach(item => {
res.data.data.forEach(item => {
item.peopleNumber = Math.max(item.sortTotalCapacity - item.showEnd, 0)
})
let index = res.data.findIndex(item => {
let index = res.data.data.findIndex(item => {
return item.projectId == this.areaObj.areaCode
})
this.sortIfo = res.data[index]
this.sortIfo = res.data.data[index]
}
})
},
......@@ -1739,6 +1739,6 @@ export default {
.sortPoptext {
font-size: 30rpx;
font-weight: bolder;
color: #f32048;
color: $red;
}
</style>
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