feat: 新增预约二维码弹窗功能
This commit is contained in:
+12
-1
@@ -6,7 +6,9 @@ Page({
|
||||
data: {
|
||||
isLoggedIn: false,
|
||||
loginFailed: false,
|
||||
latestRecord: null
|
||||
latestRecord: null,
|
||||
qrcodeVisible: false,
|
||||
qrcodeId: ''
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
@@ -77,5 +79,14 @@ Page({
|
||||
wx.navigateTo({
|
||||
url: '/pages/records/records'
|
||||
})
|
||||
},
|
||||
|
||||
showQrcode(e) {
|
||||
const id = e.currentTarget.dataset.id
|
||||
this.setData({ qrcodeVisible: true, qrcodeId: id })
|
||||
},
|
||||
|
||||
hideQrcode() {
|
||||
this.setData({ qrcodeVisible: false, qrcodeId: '' })
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user