暂存c端账号管理和商户信息

This commit is contained in:
2025-02-24 17:35:18 +08:00
parent 93ee759092
commit d6e93d9f36
22 changed files with 497 additions and 61 deletions

View File

@@ -102,6 +102,9 @@ Component({
this.initUserList()
this.handleCancel();
},
onUpdatePhoneConfirm() {
that.getTenementInfo();
},
async getTenementInfo() {
const { tenement, park } = this.data;
const { code, message, tenement: data } = await getTenementBackInfo(park, tenement)
@@ -132,20 +135,29 @@ Component({
})
},
handleChangeMain() {
const { list = [] } = this.data;
const main = list?.find(item => item.Permissions)
if (!main) {
alertInfo("没有主账号")
return
}
console.log("main", main)
// const { list = [] } = this.data;
// const main = list?.find(item => item.Permissions)
// if (!main) {
// alertInfo("没有主账号")
// return
// }
// console.log("main", main)
this.setData({
visible: true,
updatePhoneVisible: true,
type: "update",
title: "编辑管理员",
phone: main.WechatPhone,
name: main.WechatUserName,
id: main.WechatUserID,
// phone: main.WechatPhone,
// name: main.WechatUserName,
// id: main.WechatUserID,
})
},
handleUpdatePhoneCancel() {
this.setData({
updatePhoneVisible: false,
type: "",
phone: "",
name: "",
id: "",
})
},
handleCancel() {