修改充值后内容不刷新的问题,修改部分接口传参空值的问题,调整接口地址,,正在做分页

This commit is contained in:
2024-07-24 17:33:37 +08:00
parent 526e775cd8
commit 42412cb4ff
17 changed files with 281 additions and 21 deletions

View File

@@ -43,9 +43,10 @@ Component({
})
},
async setAdmin(e) {
const { user, tenement } = e.currentTarget.dataset;
const { user } = e.currentTarget.dataset;
const tenement = wx.getStorageSync('tenement');
await wxModal({ content: `你的管理员身份将转交给${user.name}` })
const { code, message } = await approveUser({ userId: user.id, type: 2, tenement })
const { code, message } = await approveUser({ userId: user.id, type: 2, tenement: tenement?.id })
if (code !== OK) {
alertInfo(message)
return;
@@ -57,9 +58,10 @@ Component({
alertSuccess("转交成功")
},
async remove(e) {
const { user, tenement } = e.currentTarget.dataset;
const { user } = e.currentTarget.dataset;
const tenement = wx.getStorageSync('tenement');
await wxModal({ content: `将移除${user.name}` })
const { code, message } = await removeUser(user.id, tenement)
const { code, message } = await removeUser(user.id, tenement?.id)
if (code !== OK) {
alertInfo(message)
return;