Commit 440f9022 authored by qipeng's avatar qipeng

调用修改

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