个人信息
This commit is contained in:
parent
a07ffbca47
commit
e0c5cf32e8
16
api/login/index.js
Normal file
16
api/login/index.js
Normal file
@ -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'
|
||||||
|
})
|
||||||
|
}
|
||||||
16
api/myinformation/myinformation.js
Normal file
16
api/myinformation/myinformation.js
Normal file
@ -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'
|
||||||
|
})
|
||||||
|
}
|
||||||
30
pages.json
30
pages.json
@ -4,6 +4,28 @@
|
|||||||
},
|
},
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"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",
|
"path": "pages/homepage/homepage",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "工单",
|
"navigationBarTitleText": "工单",
|
||||||
@ -26,13 +48,7 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/login/login",
|
|
||||||
"style": {
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"navigationStyle": "custom"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/myinformation/myinformation",
|
"path": "pages/myinformation/myinformation",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
107
pages/Changepassword/Changepassword.vue
Normal file
107
pages/Changepassword/Changepassword.vue
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
<template>
|
||||||
|
<view class="app">
|
||||||
|
<view class="name">
|
||||||
|
密码
|
||||||
|
<u-input v-model="list.personPassword" :type="type" :border="border" placeholder="请输入密码" />
|
||||||
|
</view>
|
||||||
|
<view class="submit">提交
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
list: [{
|
||||||
|
personPassword: '',
|
||||||
|
}],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
if (e) {
|
||||||
|
this.list = JSON.parse(e.list)
|
||||||
|
console.log(this.list)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.app {
|
||||||
|
height: 100vh;
|
||||||
|
background-color: #fff;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.submit {
|
||||||
|
width: 496rpx;
|
||||||
|
height: 61rpx;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 20%;
|
||||||
|
background: #18CBB3;
|
||||||
|
// border-radius: 5px;
|
||||||
|
// width: 20rpx;
|
||||||
|
// height: 100rpx;
|
||||||
|
color: white;
|
||||||
|
line-height: 60rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 18rpx;
|
||||||
|
font-size: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
padding: 25rpx 30rpx 0 30rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 38rpx;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
::v-deep .u-input {
|
||||||
|
width: 636rpx;
|
||||||
|
height: 63rpx;
|
||||||
|
background: #F6F6F6;
|
||||||
|
margin: 12rpx auto;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select {
|
||||||
|
width: 636rpx;
|
||||||
|
height: 63rpx;
|
||||||
|
background: #F6F6F6;
|
||||||
|
margin: 12rpx auto;
|
||||||
|
border-radius: 5rpx;
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
text {
|
||||||
|
padding-left: 20rpx;
|
||||||
|
line-height: 63rpx;
|
||||||
|
font-size: 20rpx;
|
||||||
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #8E8E8E;
|
||||||
|
}
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 9rpx;
|
||||||
|
height: 17rpx;
|
||||||
|
position: absolute;
|
||||||
|
right: 40rpx;
|
||||||
|
top: 50%;
|
||||||
|
-webkit-transform: translateY(-50%);
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
105
pages/Modifyphonenumber/Modifyphonenumber.vue
Normal file
105
pages/Modifyphonenumber/Modifyphonenumber.vue
Normal file
@ -0,0 +1,105 @@
|
|||||||
|
<template>
|
||||||
|
<view class="app">
|
||||||
|
<view class="name">
|
||||||
|
手机号
|
||||||
|
<u-input v-model="list.personPhone" type="number" placeholder="请输入手机号" />
|
||||||
|
</view>
|
||||||
|
<view class="submit">提交
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
list: [],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
if (e) {
|
||||||
|
this.list = JSON.parse(e.list)
|
||||||
|
console.log(this.list)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.app {
|
||||||
|
height: 100vh;
|
||||||
|
background-color: #fff;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
.submit {
|
||||||
|
width: 496rpx;
|
||||||
|
height: 61rpx;
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
bottom: 20%;
|
||||||
|
background: #18CBB3;
|
||||||
|
// border-radius: 5px;
|
||||||
|
// width: 20rpx;
|
||||||
|
// height: 100rpx;
|
||||||
|
color: white;
|
||||||
|
line-height: 60rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 18rpx;
|
||||||
|
font-size: 36rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
padding: 25rpx 30rpx 0 30rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #333333;
|
||||||
|
line-height: 38rpx;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
::v-deep .u-input {
|
||||||
|
width: 636rpx;
|
||||||
|
height: 63rpx;
|
||||||
|
background: #F6F6F6;
|
||||||
|
margin: 12rpx auto;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select {
|
||||||
|
width: 636rpx;
|
||||||
|
height: 63rpx;
|
||||||
|
background: #F6F6F6;
|
||||||
|
margin: 12rpx auto;
|
||||||
|
border-radius: 5rpx;
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
text {
|
||||||
|
padding-left: 20rpx;
|
||||||
|
line-height: 63rpx;
|
||||||
|
font-size: 20rpx;
|
||||||
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #8E8E8E;
|
||||||
|
}
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 9rpx;
|
||||||
|
height: 17rpx;
|
||||||
|
position: absolute;
|
||||||
|
right: 40rpx;
|
||||||
|
top: 50%;
|
||||||
|
-webkit-transform: translateY(-50%);
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -2,7 +2,7 @@
|
|||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="myorder titles">
|
<view class="myorder titles">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
姓 名:99999
|
姓 名:{{list.personName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="myorder titles">
|
<view class="myorder titles">
|
||||||
@ -12,12 +12,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="myorder titles">
|
<view class="myorder titles">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
身份证号:372926199812158850
|
身份证号:{{list.cardNo}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="myorder titles">
|
<view class="myorder titles">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
家庭住址:山东省济南市
|
家庭住址:{{list.personAddress}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -27,7 +27,13 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
list: [],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
console.log(e)
|
||||||
|
if (e) {
|
||||||
|
this.list = JSON.parse(e.list)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<view class="app">
|
||||||
<!-- 家医 -->
|
<!-- 家医 -->
|
||||||
<!-- <view class="Familydoctor">
|
<view class="Familydoctor" v-if="status=='1'">
|
||||||
<div class="imgs">
|
<div class="imgs">
|
||||||
<image src="../../static/top.png" mode=""></image>
|
<image src="../../static/top.png" mode=""></image>
|
||||||
<view class="my">
|
<view class="my">
|
||||||
@ -51,11 +51,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view> -->
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<!-- 泉医 -->
|
<!-- 泉医 -->
|
||||||
<view class="Quanyi">
|
<view class="Quanyi" v-if="status=='2'">
|
||||||
<div class="imgs">
|
<div class="imgs">
|
||||||
<image src="../../static/top.png" mode=""></image>
|
<image src="../../static/top.png" mode=""></image>
|
||||||
<!-- <view class="my">
|
<!-- <view class="my">
|
||||||
@ -66,11 +64,11 @@
|
|||||||
</image>
|
</image>
|
||||||
<view class="bodys">
|
<view class="bodys">
|
||||||
<view class="name">
|
<view class="name">
|
||||||
张三族
|
{{list.personName}}
|
||||||
</view>
|
</view>
|
||||||
<image src="../../static/time.png" mode="" class="fist" @tap="gotime"></image>
|
<image src="../../static/time.png" mode="" class="fist" @tap="gotime"></image>
|
||||||
<image src="../../static/see.png" mode="" class="two" @tap="gotime"></image>
|
<image src="../../static/see.png" mode="" class="two" @tap="gotime"></image>
|
||||||
<view class="myorder titles" @tap="personlinfo">
|
<view class="myorder titles" @tap="personlinfo()">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
个人信息
|
个人信息
|
||||||
</view>
|
</view>
|
||||||
@ -78,7 +76,7 @@
|
|||||||
<image src="../../static/huijiantou.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="myorder titles">
|
<view class="myorder titles" @tap="gophone">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
修改手机号
|
修改手机号
|
||||||
</view>
|
</view>
|
||||||
@ -86,7 +84,7 @@
|
|||||||
<image src="../../static/huijiantou.png" mode=""></image>
|
<image src="../../static/huijiantou.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="myorder titles">
|
<view class="myorder titles" @tap="gopassword">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
修改密码
|
修改密码
|
||||||
</view>
|
</view>
|
||||||
@ -101,22 +99,50 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
|
hospitalPerson,
|
||||||
|
createMobileToken
|
||||||
|
} from '@/api/myinformation/myinformation.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
form: {
|
form: {
|
||||||
name: ''
|
name: ''
|
||||||
}
|
},
|
||||||
|
status: '',
|
||||||
|
id:'',
|
||||||
|
list:[],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.status = uni.getStorageSync("status")
|
||||||
|
this.info()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
info(){
|
||||||
|
this.id=uni.getStorageSync("id")
|
||||||
|
hospitalPerson(this.id).then(res=>{
|
||||||
|
this.list=res.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
gopassword() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/Changepassword/Changepassword?list=${JSON.stringify(this.list)}`
|
||||||
|
})
|
||||||
|
},
|
||||||
|
gophone() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/Modifyphonenumber/Modifyphonenumber?list=${JSON.stringify(this.list)}`
|
||||||
|
})
|
||||||
|
},
|
||||||
// 个人信息
|
// 个人信息
|
||||||
personlinfo() {
|
personlinfo() {
|
||||||
|
console.log(this.list,'66')
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/Personalinfo/Personalinfo'
|
url: `/pages/Personalinfo/Personalinfo?list=${JSON.stringify(this.list)}`
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user