篮球场馆错误提示自定义

This commit is contained in:
2023-12-13 21:24:30 +08:00
parent 859ec4fa21
commit cc57722446
3 changed files with 38 additions and 27 deletions

View File

@@ -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);
})