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 @@