feat: 新增预约二维码弹窗功能
This commit is contained in:
@@ -7,7 +7,9 @@ Page({
|
||||
records: [],
|
||||
filteredRecords: [],
|
||||
currentTab: 'all',
|
||||
loading: true
|
||||
loading: true,
|
||||
qrcodeVisible: false,
|
||||
qrcodeId: ''
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
@@ -81,5 +83,14 @@ Page({
|
||||
wx.navigateTo({
|
||||
url: '/pages/appointment/appointment'
|
||||
})
|
||||
},
|
||||
|
||||
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