添加了修改头像的功能

This commit is contained in:
2025-08-08 13:48:37 +08:00
parent 990f1850b1
commit 85df7bfc4e
8 changed files with 107 additions and 27 deletions

View File

@ -47,7 +47,7 @@ Page({
break;
}
this.setData({ showRole });
if (options.role === 'manger') this.setData({isShowArr: [true, true, true]})
if (options.role === 'manager') this.setData({isShowArr: [true, true, true]})
else if (options.role === 'supervisor') this.setData({isShowArr: [false, true, true]})
else if (options.role === 'staff') this.setData({isShowArr: [false, false, true]})
const trueCount = this.data.isShowArr.filter(v => v === true).length;