Commit 36e1e2e9 authored by qipeng's avatar qipeng

bug修改

parent 7ac2dfa2
...@@ -91,11 +91,9 @@ ...@@ -91,11 +91,9 @@
</view> </view>
</template> </template>
<!-- 预售票当日取票--> <!-- 预售票当日取票-->
<template v-if="showNumberBtn==true"> <view class="sameDayCollection" v-if="showNumberBtn==true">
<view class="sameDayCollection" v-for="(item,index) in sortData" :key="index"> <view class="collectionBtn" @click="sortFirst()">取号</view>
<view class="collectionBtn" @click="sortFirst(item)">取号</view> </view>
</view>
</template>
<!--sceneSortStatus 是否上下架 1是上架--> <!--sceneSortStatus 是否上下架 1是上架-->
<view class="order-queueUp order-allType order-positionTop" v-if="orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==4||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==2||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==5||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==7"> <view class="order-queueUp order-allType order-positionTop" v-if="orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==4||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==2||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==5||orderInfo.isFetch==1&&sortsInfo&&sortData[0].config.sceneSortStatus==1&&orderInfo.orderStatus==7">
<view class="alltype-title"> <view class="alltype-title">
...@@ -817,16 +815,16 @@ export default { ...@@ -817,16 +815,16 @@ export default {
} }
if(this.orderInfo.isFetch==1){//isFetch==1需要排队 if(this.orderInfo.isFetch==1){//isFetch==1需要排队
if(this.orderInfo.orderStatus==2||this.orderInfo.orderStatus==4||this.orderInfo.orderStatus==5||this.orderInfo.orderStatus==7){ //订单状态==2 4 5 7才可以调用排号接口 if(this.orderInfo.orderStatus==2||this.orderInfo.orderStatus==4||this.orderInfo.orderStatus==5||this.orderInfo.orderStatus==7){ //订单状态==2 4 5 7才可以调用排号接口
//console.log(this.orderInfo.orderStatus)
//为了提高性能,游玩时间等于今天才获取排号信息 //为了提高性能,游玩时间等于今天才获取排号信息
if(this.orderInfo.playDate.substr(0,10)==this.$commonjs.today()){ if(this.orderInfo.playDate.substr(0,10)==this.$commonjs.today()){
if(this.orderInfo.fetchNumberVoList&&this.orderInfo.fetchNumberVoList.length>0){ if(this.orderInfo.fetchNumberVoList&&this.orderInfo.fetchNumberVoList.length>0){
//购买的当天票已经取号 //购买的当天票已经取号
this.getSortInfo() this.getSortInfo()
}else{ }else{
//还未取号的,显示取号按钮 //还未取号的,显示取号按钮.
this.showNumberBtn=true this.showNumberBtn=true
console.log(this.showNumberBtn)
} }
} }
...@@ -1042,13 +1040,13 @@ export default { ...@@ -1042,13 +1040,13 @@ export default {
}) })
}, },
//---购票时未排号,第一次排号 //---购票时未排号,第一次排号
sortFirst(item){ sortFirst(){
let data={ let data={
againNumber:0,//是否重排 againNumber:0,//是否重排
userId:this.openId, userId:this.openId,
thirdId:this.sortsInfo.order.orderId,//三方订单id thirdId:this.orderInfo.thirdOrderId,//三方订单id
areaCode:item.projectId,//站点 areaCode:this.orderInfo.areaCode,//站点
merchantCode:this.companyId, merchantCode:this.orderInfo.orderMoneyDetailVo.companyId,
orderId:this.orderInfo.id,//订单id orderId:this.orderInfo.id,//订单id
orderNum:this.orderInfo.orderNum,//订单数量 orderNum:this.orderInfo.orderNum,//订单数量
} }
...@@ -1056,7 +1054,7 @@ export default { ...@@ -1056,7 +1054,7 @@ export default {
if(res.code=='00'){ if(res.code=='00'){
//隐藏取号按钮 //隐藏取号按钮
this.showNumberBtn=false this.showNumberBtn=false
this.getSortInfo(item) this.getSortInfo()
}else{ }else{
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
......
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