二维码

This commit is contained in:
406803045 2019-06-10 15:05:15 +08:00
parent 026e1a0767
commit 1b8ac74fe5

View File

@ -113,15 +113,21 @@ export default {
}, },
// //
async doorAccessKey () { doorAccessKey () {
this.qrTitle = '小蚁货仓入场券' this.qrTitle = '小蚁货仓入场券'
this.qrTips = '<p>凭入场券二维码入场</p>' this.qrTips = '<p>凭入场券二维码入场</p>'
//
if (!this.accesskey) { if (!this.accesskey) {
const { data } = await getDoorKey() //
this.accesskey = data.doorKey getDoorKey().then(res => {
} this.accesskey = res.data.doorKey
this.qrSrc = this.accesskey this.qrSrc = this.accesskey
this.qrcodeVisible = true this.qrcodeVisible = true
}).catch(() => { })
} else {
this.qrSrc = this.accesskey
this.qrcodeVisible = true
}
} }
} }
} }