From e0c5cf32e869318af7ef99e128e4ae71b3ee47ff 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 16:30:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/login/index.js | 16 +++
api/myinformation/myinformation.js | 16 +++
pages.json | 30 +++--
pages/Changepassword/Changepassword.vue | 107 ++++++++++++++++++
pages/Modifyphonenumber/Modifyphonenumber.vue | 105 +++++++++++++++++
pages/Personalinfo/Personalinfo.vue | 14 ++-
pages/myinformation/myinformation.vue | 48 ++++++--
7 files changed, 314 insertions(+), 22 deletions(-)
create mode 100644 api/login/index.js
create mode 100644 api/myinformation/myinformation.js
create mode 100644 pages/Changepassword/Changepassword.vue
create mode 100644 pages/Modifyphonenumber/Modifyphonenumber.vue
diff --git a/api/login/index.js b/api/login/index.js
new file mode 100644
index 0000000..e497681
--- /dev/null
+++ b/api/login/index.js
@@ -0,0 +1,16 @@
+import request from "../request.js"
+
+//密码
+export function appLogin(personAccount, personPassword) {
+ return request({
+ url: `/newapp/login/appLogin?personAccount=${personAccount}&personPassword=${personPassword}`,
+ method: 'POST'
+ })
+}
+
+export function createMobileToken() {
+ return request({
+ url: `/nurseApplet/authorization/createMobileToken`,
+ method: 'GET'
+ })
+}
diff --git a/api/myinformation/myinformation.js b/api/myinformation/myinformation.js
new file mode 100644
index 0000000..989500c
--- /dev/null
+++ b/api/myinformation/myinformation.js
@@ -0,0 +1,16 @@
+import request from "../request.js"
+
+//密码
+export function hospitalPerson(id) {
+ return request({
+ url: '/system/hospitalPerson/' + id,
+ method: 'get'
+ })
+}
+
+export function createMobileToken() {
+ return request({
+ url: `/nurseApplet/authorization/createMobileToken`,
+ method: 'GET'
+ })
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index e2159f5..6561708 100644
--- a/pages.json
+++ b/pages.json
@@ -4,6 +4,28 @@
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
+ "path": "pages/login/login",
+ "style": {
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/Changepassword/Changepassword",
+ "style": {
+ "navigationBarTitleText": "修改密码",
+ "onReachBottomDistance": 20, //距离底部多远时触发 单位为px
+ "enablePullDownRefresh": true //设置参数为true
+ }
+ },
+ {
+ "path": "pages/Modifyphonenumber/Modifyphonenumber",
+ "style": {
+ "navigationBarTitleText": "修改手机号",
+ "onReachBottomDistance": 20, //距离底部多远时触发 单位为px
+ "enablePullDownRefresh": true //设置参数为true
+ }
+ },{
"path": "pages/homepage/homepage",
"style": {
"navigationBarTitleText": "工单",
@@ -26,13 +48,7 @@
"navigationStyle": "custom"
}
},
- {
- "path": "pages/login/login",
- "style": {
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
- },
+
{
"path": "pages/myinformation/myinformation",
"style": {
diff --git a/pages/Changepassword/Changepassword.vue b/pages/Changepassword/Changepassword.vue
new file mode 100644
index 0000000..f47a51f
--- /dev/null
+++ b/pages/Changepassword/Changepassword.vue
@@ -0,0 +1,107 @@
+
+
+
+ 密码
+
+
+ 提交
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/Modifyphonenumber/Modifyphonenumber.vue b/pages/Modifyphonenumber/Modifyphonenumber.vue
new file mode 100644
index 0000000..2e30b58
--- /dev/null
+++ b/pages/Modifyphonenumber/Modifyphonenumber.vue
@@ -0,0 +1,105 @@
+
+
+
+ 手机号
+
+
+ 提交
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/Personalinfo/Personalinfo.vue b/pages/Personalinfo/Personalinfo.vue
index b224ce9..95a5b49 100644
--- a/pages/Personalinfo/Personalinfo.vue
+++ b/pages/Personalinfo/Personalinfo.vue
@@ -2,7 +2,7 @@
- 姓 名:99999
+ 姓 名:{{list.personName}}
@@ -12,12 +12,12 @@
- 身份证号:372926199812158850
+ 身份证号:{{list.cardNo}}
- 家庭住址:山东省济南市
+ 家庭住址:{{list.personAddress}}
@@ -27,7 +27,13 @@
export default {
data() {
return {
-
+ list: [],
+ }
+ },
+ onLoad(e) {
+ console.log(e)
+ if (e) {
+ this.list = JSON.parse(e.list)
}
},
methods: {
diff --git a/pages/myinformation/myinformation.vue b/pages/myinformation/myinformation.vue
index ece4823..6574588 100644
--- a/pages/myinformation/myinformation.vue
+++ b/pages/myinformation/myinformation.vue
@@ -1,7 +1,7 @@
-
-
-
+
-
+