From 6d06545d9e3fdfcb29711e4cec8d53a5579348fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Tue, 24 Oct 2023 17:04:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA=E5=8F=B7?= =?UTF-8?q?=E5=92=8C=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/Modifyphonenumber/Modifyphonenumber.js | 17 ++++++++++ pages/Changepassword/Changepassword.vue | 33 +++++++++++++++---- pages/Modifyphonenumber/Modifyphonenumber.vue | 31 ++++++++++++++--- pages/myinformation/myinformation.vue | 18 +++++----- 4 files changed, 80 insertions(+), 19 deletions(-) create mode 100644 api/Modifyphonenumber/Modifyphonenumber.js diff --git a/api/Modifyphonenumber/Modifyphonenumber.js b/api/Modifyphonenumber/Modifyphonenumber.js new file mode 100644 index 0000000..c739b60 --- /dev/null +++ b/api/Modifyphonenumber/Modifyphonenumber.js @@ -0,0 +1,17 @@ +import request from "../request.js" + +//修改手机号 +export function update(data) { + return request({ + url: '/system/hospitalPerson/update', + method: 'post', + data:data, + }) +} + +// export function createMobileToken() { +// return request({ +// url: `/nurseApplet/authorization/createMobileToken`, +// method: 'GET' +// }) +// } \ No newline at end of file diff --git a/pages/Changepassword/Changepassword.vue b/pages/Changepassword/Changepassword.vue index f47a51f..2b36e47 100644 --- a/pages/Changepassword/Changepassword.vue +++ b/pages/Changepassword/Changepassword.vue @@ -2,23 +2,25 @@ 密码 - + - 提交 + 提交 + diff --git a/pages/Modifyphonenumber/Modifyphonenumber.vue b/pages/Modifyphonenumber/Modifyphonenumber.vue index 2e30b58..0f1a3c2 100644 --- a/pages/Modifyphonenumber/Modifyphonenumber.vue +++ b/pages/Modifyphonenumber/Modifyphonenumber.vue @@ -2,20 +2,23 @@ 手机号 - + - 提交 + 提交 + diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue index 73fff13..f53d2a5 100644 --- a/pages/myinformation/myinformation.vue +++ b/pages/myinformation/myinformation.vue @@ -46,7 +46,7 @@ - +
@@ -100,8 +100,8 @@ name: '' }, status: '', - id:'', - list:[], + id: '', + list: [], } }, onLoad() { @@ -112,10 +112,10 @@ this.info() }, methods: { - info(){ - this.id=uni.getStorageSync("id") - hospitalPerson(this.id).then(res=>{ - this.list=res.data + info() { + this.id = uni.getStorageSync("id") + hospitalPerson(this.id).then(res => { + this.list = res.data }) }, gopassword() { @@ -130,7 +130,7 @@ }, // 个人信息 personlinfo() { - console.log(this.list,'66') + console.log(this.list, '66') uni.navigateTo({ url: `/pages/Personalinfo/Personalinfo?list=${JSON.stringify(this.list)}` }) @@ -367,4 +367,4 @@ } } } - + \ No newline at end of file