篮球场馆错误提示自定义
This commit is contained in:
@@ -26,6 +26,7 @@ Page({
|
||||
showUnclickMask: false,
|
||||
showCardMask: false,
|
||||
flg: 100,
|
||||
msg: '',
|
||||
isWxLogin: false,
|
||||
isGoHome: false,
|
||||
},
|
||||
@@ -173,18 +174,21 @@ Page({
|
||||
venueId: id
|
||||
}).then(res => {
|
||||
this.setData({
|
||||
flg: res.join.flg
|
||||
})
|
||||
drawQrcode({
|
||||
width: 180,
|
||||
height: 180,
|
||||
x: 10,
|
||||
y: 10,
|
||||
canvasId: 'myQrcode',
|
||||
// ctx: wx.createCanvasContext('myQrcode'),
|
||||
typeNumber: 10,
|
||||
text: res.join.barcode
|
||||
flg: res.join.flg,
|
||||
msg: res.join.msg
|
||||
})
|
||||
if (res.join.flg == 0) {
|
||||
drawQrcode({
|
||||
width: 180,
|
||||
height: 180,
|
||||
x: 10,
|
||||
y: 10,
|
||||
canvasId: 'myQrcode',
|
||||
// ctx: wx.createCanvasContext('myQrcode'),
|
||||
typeNumber: 10,
|
||||
text: res.join.barcode
|
||||
})
|
||||
}
|
||||
}, err => {
|
||||
console.log(err);
|
||||
})
|
||||
@@ -197,18 +201,21 @@ Page({
|
||||
venueId: id
|
||||
}).then(res => {
|
||||
this.setData({
|
||||
flg: res.out.flg
|
||||
})
|
||||
drawQrcode({
|
||||
width: 180,
|
||||
height: 180,
|
||||
x: 10,
|
||||
y: 10,
|
||||
canvasId: 'myQrcode',
|
||||
// ctx: wx.createCanvasContext('myQrcode'),
|
||||
typeNumber: 10,
|
||||
text: res.out.barcode
|
||||
flg: res.out.flg,
|
||||
msg: res.out.msg
|
||||
})
|
||||
if (res.out.flg == 0){
|
||||
drawQrcode({
|
||||
width: 180,
|
||||
height: 180,
|
||||
x: 10,
|
||||
y: 10,
|
||||
canvasId: 'myQrcode',
|
||||
// ctx: wx.createCanvasContext('myQrcode'),
|
||||
typeNumber: 10,
|
||||
text: res.out.barcode
|
||||
})
|
||||
}
|
||||
}, err => {
|
||||
console.log(err);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user