|
@@ -133,8 +133,6 @@ Page({
|
|
|
}],
|
|
|
//是否禁用拜访信息
|
|
|
isAudit: false,
|
|
|
- //是否开启自定义字段
|
|
|
- isShowApplet: false,
|
|
|
//自定义字段内容
|
|
|
customField: null,
|
|
|
//是否仅需认证
|
|
@@ -190,11 +188,6 @@ Page({
|
|
|
}
|
|
|
//有选中的楼宇id
|
|
|
if (buildingIndex != null) {
|
|
|
- console.log(buildingIndex);
|
|
|
- //获取企业列表
|
|
|
- // this.getCompanyList();
|
|
|
- //获取是否开启自定义字段
|
|
|
- this.getContextStatusByAdminId(this.data.buildingAdminId)
|
|
|
//获取楼宇账号配置
|
|
|
this.getAdminConfig()
|
|
|
}
|
|
@@ -224,31 +217,12 @@ Page({
|
|
|
this.jugdeInfo();
|
|
|
})
|
|
|
},
|
|
|
- //获取是否有自定义字段
|
|
|
- getContextStatusByAdminId(orgId) {
|
|
|
- getContextByAdminId(orgId).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.setData({
|
|
|
- isShowApplet: res.data,
|
|
|
- isFillFields: !res.data,
|
|
|
- })
|
|
|
- this.canOperation()
|
|
|
- } else {
|
|
|
- wx.showToast({
|
|
|
- title: res.msg,
|
|
|
- icon: 'none'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
// 获取用户填写的自定义字段内容
|
|
|
getContextByAdminId() {
|
|
|
if (!this.data.companyAdminId || !this.data.userInfo) {
|
|
|
return;
|
|
|
}
|
|
|
selectContextByCardId(this.data.companyAdminId, this.data.userInfo.userId).then(res => {
|
|
|
- console.log(res.data);
|
|
|
- console.log(this.data.isShowApplet);
|
|
|
this.setData({
|
|
|
customField: res.data
|
|
|
})
|
|
@@ -332,7 +306,6 @@ Page({
|
|
|
isDisabled: true,
|
|
|
});
|
|
|
this.updateSetting()
|
|
|
- this.getContextStatusByAdminId(this.data.buildingAdminId)
|
|
|
this.getContextByAdminId();
|
|
|
},
|
|
|
// 更改信息
|
|
@@ -381,7 +354,6 @@ Page({
|
|
|
})
|
|
|
break;
|
|
|
case 'visiteeBuilding':
|
|
|
- console.log(e);
|
|
|
this.setData({
|
|
|
'form.visiteeBuilding': e.detail.name,
|
|
|
'form.visiteeBuildingId': e.detail.adminId,
|
|
@@ -389,7 +361,6 @@ Page({
|
|
|
buildingName: e.detail.name,
|
|
|
})
|
|
|
this.getAdminConfig()
|
|
|
- this.getContextStatusByAdminId(e.detail.adminId)
|
|
|
break;
|
|
|
case "visiteeCompany":
|
|
|
if (buildingCheckType == 1) {
|
|
@@ -611,7 +582,6 @@ Page({
|
|
|
})
|
|
|
this.matchCorrectPhone();
|
|
|
if (this.data.userInfo) {
|
|
|
- this.getContextStatusByAdminId(res.data.visiteeCompanyId)
|
|
|
this.getContextByAdminId()
|
|
|
}
|
|
|
this.doCheckAdmin();
|
|
@@ -648,7 +618,6 @@ Page({
|
|
|
} else {
|
|
|
stepsList[1].complete = (!disableComplete && isFillFields) ? true : false
|
|
|
}
|
|
|
- console.log(this.data.isShowApplet);
|
|
|
this.setData({
|
|
|
stepsList
|
|
|
})
|
|
@@ -677,7 +646,6 @@ Page({
|
|
|
cancelText: "使用上次",
|
|
|
confirmText: "使用本次",
|
|
|
complete: (res) => {
|
|
|
- console.log(res);
|
|
|
if (res.cancel) {
|
|
|
app.data.temporaryAdminInfo = null
|
|
|
}
|
|
@@ -735,9 +703,6 @@ Page({
|
|
|
this.setData({
|
|
|
currentIndex: 1,
|
|
|
})
|
|
|
- if (userInfo && userInfo.userId && !isShowApplet) {
|
|
|
- this.getContextStatusByAdminId(this.data.buildingAdminId)
|
|
|
- }
|
|
|
},
|
|
|
// 上一步
|
|
|
previous_step(e) {
|
|
@@ -757,7 +722,6 @@ Page({
|
|
|
return;
|
|
|
}
|
|
|
//判断常客信息的严格等级是否大于等于登录要求 实名认证>非实名
|
|
|
- console.log(!(!this.data.needRealname || app.data.userInfo.needRealname));
|
|
|
if (!(!this.data.needRealname || app.data.userInfo.needRealname)) {
|
|
|
return;
|
|
|
}
|