refactor: 重构二维码弹窗组件为命令式调用
This commit is contained in:
@@ -7,9 +7,7 @@ Page({
|
||||
records: [],
|
||||
filteredRecords: [],
|
||||
currentTab: 'all',
|
||||
loading: true,
|
||||
qrcodeVisible: false,
|
||||
qrcodeId: ''
|
||||
loading: true
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
@@ -86,11 +84,6 @@ Page({
|
||||
},
|
||||
|
||||
showQrcode(e) {
|
||||
const id = e.currentTarget.dataset.id
|
||||
this.setData({ qrcodeVisible: true, qrcodeId: id })
|
||||
},
|
||||
|
||||
hideQrcode() {
|
||||
this.setData({ qrcodeVisible: false, qrcodeId: '' })
|
||||
this.selectComponent('#qrcodeModal').show(e.currentTarget.dataset.id)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user