Commit 73069e3b authored by qipeng's avatar qipeng

动态码 增加visitorIndex 判定

parent 7a33b060
...@@ -709,16 +709,10 @@ ...@@ -709,16 +709,10 @@
// height: 180, // height: 180,
// text:this.codeNo // text:this.codeNo
// }) // })
let verifyCode=""
if(this.visitorIndex!==""){
verifyCode=this.codeNo+":"+this.visitorIndex
}else{
verifyCode=this.codeNo
}
uQRCode.make({ uQRCode.make({
canvasId: 'qrcode', canvasId: 'qrcode',
componentInstance: this, componentInstance: this,
text: verifyCode, text: this.codeNo,
size: 180, size: 180,
margin: 10, margin: 10,
backgroundColor: '#ffffff', backgroundColor: '#ffffff',
...@@ -738,6 +732,12 @@ ...@@ -738,6 +732,12 @@
orderId:this.id,//订单号 orderId:this.id,//订单号
userId:this.openId//openid userId:this.openId//openid
} }
let verifyCode=""
if(this.visitorIndex!==""){
data.codeNo=this.ticketCode+":"+this.visitorIndex
}else{
data.codeNo=this.ticketCode
}
clearInterval(this.codeFlag) clearInterval(this.codeFlag)
this.$request('distribution/distribution/getAutoCode',data).then((res)=>{ this.$request('distribution/distribution/getAutoCode',data).then((res)=>{
if(res.code == '00'){ if(res.code == '00'){
......
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