暂存c端账号管理和商户信息
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user