同步优化店务小程序员工详情页
This commit is contained in:
@@ -25,7 +25,9 @@ Page({
|
||||
deleteConfirmVisible: false,
|
||||
deletingEmployee: false,
|
||||
resetConfirmVisible: false,
|
||||
resettingPassword: false
|
||||
resettingPassword: false,
|
||||
moreInfoVisible: false,
|
||||
dangerExpanded: false
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
@@ -82,6 +84,14 @@ Page({
|
||||
wx.navigateTo({ url: `${event.currentTarget.dataset.url}?id=${this.data.id}` })
|
||||
},
|
||||
|
||||
toggleMoreInfo() {
|
||||
this.setData({ moreInfoVisible: !this.data.moreInfoVisible })
|
||||
},
|
||||
|
||||
toggleDangerZone() {
|
||||
this.setData({ dangerExpanded: !this.data.dangerExpanded })
|
||||
},
|
||||
|
||||
requestDeleteEmployee() {
|
||||
if (this.data.deletingEmployee) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user