修改了经理端部分代码

This commit is contained in:
2025-08-07 11:45:28 +08:00
parent 3996895c0d
commit d1b4fa8ca3
11 changed files with 61 additions and 66 deletions

View File

@ -22,15 +22,6 @@ Page({
const phoneNumber = this.data.phoneNumber.trim();
const { supervisorUserId } = this.data;
if (!nickName) {
wx.showToast({ title: '请输入主管名称', icon: 'none' });
return;
}
if (!/^1[3-9]\d{9}$/.test(phoneNumber)) {
wx.showToast({ title: '请输入正确的手机号', icon: 'none' });
return;
}
wx.request({
url: baseUrl + '/perform/query/staff',
method: 'POST',
@ -67,7 +58,7 @@ Page({
onSearchSupId() {
const { supervisorUserId } = this.data;
wx.request({
url: baseUrl + '/perform/query/staff',
method: 'POST',
@ -107,9 +98,8 @@ Page({
},
onLoad(options) {
console.log('--->',options);
this.setData({
supervisorUserId: options.id,
supervisorUserId: options.supId,
})
this.onSearchSupId();
},