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

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

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