|
|
@ -1,7 +1,8 @@ |
|
|
import { |
|
|
import { |
|
|
zconfig, |
|
|
zconfig, |
|
|
getBaseInfo, |
|
|
getBaseInfo, |
|
|
updateUserInfoZtb |
|
|
|
|
|
|
|
|
updateUserInfoZtb, |
|
|
|
|
|
postRelation |
|
|
} from '../../api/ztb' |
|
|
} from '../../api/ztb' |
|
|
import { |
|
|
import { |
|
|
updateUserInfo |
|
|
updateUserInfo |
|
|
@ -102,6 +103,8 @@ Page({ |
|
|
companyAddress: res.data.fullAddress, |
|
|
companyAddress: res.data.fullAddress, |
|
|
userType: res.data.userType, |
|
|
userType: res.data.userType, |
|
|
realName: res.data.realName || res.data.userName, |
|
|
realName: res.data.realName || res.data.userName, |
|
|
|
|
|
bizUserId:res.data.bizUserId, |
|
|
|
|
|
bizUserName:res.data.bizUserName, |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
this.cascaderView = this.cascaderView || this.selectComponent('#wux-cascader') |
|
|
this.cascaderView = this.cascaderView || this.selectComponent('#wux-cascader') |
|
|
@ -158,6 +161,9 @@ Page({ |
|
|
} else if (e1.currentTarget.dataset.tag == '昵称') { |
|
|
} else if (e1.currentTarget.dataset.tag == '昵称') { |
|
|
placeholderName = that.data.userInfo.nickname |
|
|
placeholderName = that.data.userInfo.nickname |
|
|
} |
|
|
} |
|
|
|
|
|
else if (e1.currentTarget.dataset.tag == '业务人员邀请码') { |
|
|
|
|
|
placeholderName = that.data.userInfo.bizUserId |
|
|
|
|
|
} |
|
|
this.wuxDialog.prompt({ |
|
|
this.wuxDialog.prompt({ |
|
|
resetOnClose: true, |
|
|
resetOnClose: true, |
|
|
title: e1.currentTarget.dataset.tag, |
|
|
title: e1.currentTarget.dataset.tag, |
|
|
@ -174,6 +180,19 @@ Page({ |
|
|
packageFactoryName: response |
|
|
packageFactoryName: response |
|
|
}) |
|
|
}) |
|
|
} else |
|
|
} else |
|
|
|
|
|
if (e1.currentTarget.dataset.tag == '业务人员邀请码') { |
|
|
|
|
|
// that.updateUserInfoFct({
|
|
|
|
|
|
// bizUserId: response
|
|
|
|
|
|
// })
|
|
|
|
|
|
postRelation(response).then(result => { |
|
|
|
|
|
//成功回调
|
|
|
|
|
|
wx.hideLoading() |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
//异常回调
|
|
|
|
|
|
wx.hideLoading() |
|
|
|
|
|
util.showToast(err) |
|
|
|
|
|
}) |
|
|
|
|
|
} else |
|
|
if (e1.currentTarget.dataset.tag == '打包站占地面积') { |
|
|
if (e1.currentTarget.dataset.tag == '打包站占地面积') { |
|
|
if (parseInt(response)>0 && parseInt(response)==Number(response)) { |
|
|
if (parseInt(response)>0 && parseInt(response)==Number(response)) { |
|
|
that.updateUserInfoFct({ |
|
|
that.updateUserInfoFct({ |
|
|
|