From dc52c0c51444910d10c7340ce12c589879bace7f Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 8 Jul 2021 18:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/api.js | 11 ++--------- src/views/setting/Person.vue | 10 +++++----- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/utils/api.js b/src/utils/api.js index f643723..5a2d348 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -6,10 +6,8 @@ let host3 = 'http://192.168.31.140:9000'//7 export default { logins: `${host}/liuwanr/userInfo/adminLogins`, //登录 - addUser: `${host}/liuwanr/userInfo/addUser`, //增加用户新版 queryUser: `${host}/liuwanr/userInfo/queryUserInfo`, //查询用户新版 deleteUser: `${host}/liuwanr/userInfo/deleteUserInfo`, //删除用户新版 - updateUser: `${host}/liuwanr/user/updateUser`, //编辑用户 queryAccountIsExist: `${host}/liuwanr/userInfo/queryServerAccountIsExist`, //查询账号是否存在 queryUserOR: `${host}/liuwanr/userInfo/queryUserOR`, //查询系统列表详情 queryWorkNumberIsExist:`${host}/liuwanr/userInfo/queryWorkNumberIsExist`,//查询学号、工号是否存在 @@ -19,12 +17,7 @@ export default { queryStuPro: `${host}/liuwanr/stuProfessionalArchitecture/queryStuProfessionalArchitecture`, //查询学生专业 queryStuGrade: `${host}/liuwanr/stuProfessionalArchitecture/queryStuGrade`, //查询学生年级 queryStuClass: `${host}/liuwanr/stuProfessionalArchitecture/queryStuClass`, //查询学生班级 - userQueryCustomer: `${host}/liuwanr/userInfo/queryCustomer`, //查询客户列表 - updateUserInfo: `${host}/liuwanr/userInfo/updateUserInfo`, //查询更新用户 - updateUserProfiles: `${host}/liuwanr/userInfo/updateUserProfiles`, //更新用户个人档案 updateOR: `${host}/liuwanr/userInfo/updateOR`, //更新用户组织架构 - deletePlatform: `${host}/liuwanr/userInfo/deletePlatform`, //更新用户组织架构 - updateUserRoleId: `${host}/liuwanr/userInfo/updateUserRoleId`, //更新用户角色id接口 // 客户管理 delCustomers: `${host3}/nakadai/customer/delCustomers`, @@ -51,8 +44,8 @@ export default { updatePersonCenter: `${host3}/users/userAccount/updatePersonCenter`, updateUserAvatars: `${host3}/users/userAccount/updateUserAvatars`, userInfo: `${host3}/users/userAccount/userInfo`, - checkCode: `${host3}/users/userAccount/checkCode`, - findPasswordByEmail: `${host3}/users/userAccount/findPasswordByEmail`, + bindPhone: `${host3}/users/userAccount/bindPhone`, + sendPhoneCode: `${host3}/users/userAccount/sendPhoneCode`, findPasswordByPhone: `${host3}/users/userAccount/findPasswordByPhone`, updateAccountEnable: `${host3}/users/userAccount/updateAccountEnable`, updateAccountAllEnable: `${host3}/users/userAccount/updateAccountAllEnable`, diff --git a/src/views/setting/Person.vue b/src/views/setting/Person.vue index 270c5d2..2df6857 100644 --- a/src/views/setting/Person.vue +++ b/src/views/setting/Person.vue @@ -866,6 +866,7 @@ export default { userId: form.userId, }], hrUserInfo: { + provinceId: form.provinceId, cityId: form.cityId, countries: form.countries, dateBirth: form.dateBirth, @@ -965,17 +966,16 @@ export default { sendPhoneCode(){ if(!this.phone) return this.$message.warning('请输入手机号') if(!/^1[3456789]\d{9}$/.test(this.phone)) return this.$message.warning('请输入正确的手机号') - let data = { + this.$post(this.api.sendPhoneCode,{ userId: this.userId, phone: this.phone, types: 2 - } - this.$post(this.api.sendPhoneCode,data).then(res => { - if(res.errmessage == 'success'){ + }).then(res => { + if(res.status == 200){ this.phoneCountdown() this.phoneOpener = res.data } - }).catch(res => {}); + }).catch(res => {}) }, phoneSubmit(){ if(!this.phone) return this.$message.warning('请输入手机号')