Commit 440f9022 authored by qipeng's avatar qipeng

调用修改

parent 9e790e93
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
</view> </view>
</view> </view>
</template> </template>
<!--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">
<!-- <view class="title-line"> <!-- <view class="title-line">
...@@ -660,7 +661,7 @@ export default { ...@@ -660,7 +661,7 @@ export default {
this.ifyukuaiCode = option.ifyukuaiCode||'' this.ifyukuaiCode = option.ifyukuaiCode||''
//this.id = "z00167956572219584dc15634b62cf75" //this.id = "z00167956572219584dc15634b62cf75"
this.openId = uni.getStorageSync('openid') //openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ this.openId = uni.getStorageSync('openid') //openid oroHZ5FaUQ_SOOC_uQQP92fJpBRE oh2UV1lyYABHMZ1rMlgjhVHyyYDQ
//this.openId = 'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ'//'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ' oroHZ5FaUQ_SOOC_uQQP92fJpBRE //this.openId = 'oroHZ5FaUQ_SOOC_uQQP92fJpBRE'//'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ' oroHZ5FaUQ_SOOC_uQQP92fJpBRE
this.getDetail() this.getDetail()
}, },
onUnload() { onUnload() {
...@@ -793,8 +794,11 @@ export default { ...@@ -793,8 +794,11 @@ export default {
if(this.orderInfo.subOrderType!=4&&this.orderInfo.subOrderType!=5){ if(this.orderInfo.subOrderType!=4&&this.orderInfo.subOrderType!=5){
this.$nextTick(() => { this.$nextTick(() => {
if(this.orderInfo.playDate.substr(0,10)==this.$commonjs.today()&&this.orderInfo.exchangeMode==4||this.orderInfo.playDate.substr(0,10)==this.$commonjs.today()&&this.orderInfo.exchangeMode==5){ if(this.orderInfo.playDate.substr(0,10)==this.$commonjs.today()&&this.orderInfo.exchangeMode==4||this.orderInfo.playDate.substr(0,10)==this.$commonjs.today()&&this.orderInfo.exchangeMode==5){
this.dynamicCode() if(this.orderInfo.orderStatus==2||this.orderInfo.orderStatus==4||this.orderInfo.orderStatus==5||this.orderInfo.orderStatus==7){ //订单状态==2 4 5 7才调用动态二维码
this.qrCodeType=true this.dynamicCode()
this.qrCodeType=true
}
}else if(this.orderInfo.exchangeMode==1){ }else if(this.orderInfo.exchangeMode==1){
this.qecode() this.qecode()
this.qrCodeType=false this.qrCodeType=false
...@@ -803,18 +807,22 @@ export default { ...@@ -803,18 +807,22 @@ export default {
} }
} }
} }
if(this.orderInfo.isFetch==1){//isFetch==1需要排队 if(this.orderInfo.isFetch==1){//isFetch==1需要排队
this.getSortInfo() if(this.orderInfo.orderStatus==2||this.orderInfo.orderStatus==4||this.orderInfo.orderStatus==5||this.orderInfo.orderStatus==7){ //订单状态==2 4 5 7才可以调用排号接口
var sortRefresh = new Date().getTime() console.log(this.orderInfo.orderStatus)
this.sortRefreshNew = JSON.parse(JSON.stringify(sortRefresh)) this.getSortInfo()
this.timer2=setInterval(()=>{ var sortRefresh = new Date().getTime()
var sortRefresh2 = new Date().getTime() this.sortRefreshNew = JSON.parse(JSON.stringify(sortRefresh))
var sorNum = sortRefresh2-this.sortRefreshNew this.timer2=setInterval(()=>{
if(sorNum>=120000){ var sortRefresh2 = new Date().getTime()
this.sortRefreshNew = JSON.parse(JSON.stringify(sortRefresh2)) var sorNum = sortRefresh2-this.sortRefreshNew
this.getSortInfo() if(sorNum>=120000){
} this.sortRefreshNew = JSON.parse(JSON.stringify(sortRefresh2))
},1000) this.getSortInfo()
}
},1000)
}
// this.$once('hook:beforeDestroy',()=>{ // this.$once('hook:beforeDestroy',()=>{
// clearInterval(timer) // clearInterval(timer)
// }) // })
......
...@@ -444,7 +444,7 @@ export default { ...@@ -444,7 +444,7 @@ export default {
}, },
onLoad(option) { onLoad(option) {
this.openId = uni.getStorageSync('openid') this.openId = uni.getStorageSync('openid')
//this.openId = 'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ'//oh2UV1lyYABHMZ1rMlgjhVHyyYDQ oroHZ5FaUQ_SOOC_uQQP92fJpBRE //this.openId = 'oroHZ5FaUQ_SOOC_uQQP92fJpBRE'//oh2UV1lyYABHMZ1rMlgjhVHyyYDQ oroHZ5FaUQ_SOOC_uQQP92fJpBRE
this.orderStatus = option.orderStatus||'' this.orderStatus = option.orderStatus||''
this.ifyukuaiCode = option.ifyukuaiCode||'' this.ifyukuaiCode = option.ifyukuaiCode||''
this.getData(1) this.getData(1)
......
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