diff --git a/pages/Modifyinformation/Modifyinformation.vue b/pages/Modifyinformation/Modifyinformation.vue
index 514a426..fd951e3 100644
--- a/pages/Modifyinformation/Modifyinformation.vue
+++ b/pages/Modifyinformation/Modifyinformation.vue
@@ -104,7 +104,7 @@
}
})
},
- // 引入一下
+
myInfo() {
nursePerson(this.phonenumber, this.password).then(res => {
console.log(res, 'resresres')
@@ -120,7 +120,7 @@
this.$refs.uToast.show({
title: '修改成功',
type: 'success',
- url: '/pages/personal/personal',
+ url:'/pages/personal/personal',
duration: '1500'
})
} else {
@@ -130,7 +130,6 @@
type: 'error'
})
}
-
})
},
},
diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue
index 9cab8d6..bf6923b 100644
--- a/pages/homepage/homepage.vue
+++ b/pages/homepage/homepage.vue
@@ -23,6 +23,8 @@
data() {
return {};
},
+ onLoad(options) {
+ },
methods: {
gomymission() {
uni.navigateTo({
diff --git a/pages/login/login.vue b/pages/login/login.vue
index b44132d..373c16b 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -47,9 +47,9 @@
//密码登录
pwdlogin() {
+ var that = this
appLogin(this.phonenumber, this.password).then(res => {
console.log(res)
-
if (res.code == 200) {
this.$refs.uToast.show({
title: '登录成功',
@@ -57,6 +57,15 @@
url: '/pages/homepage/homepage',
duration: '1500'
})
+
+ uni.setStorage({
+ key:'phonenumber',
+ data:that.phonenumber
+ })
+ uni.setStorage({
+ key:'password',
+ data:that.password
+ })
} else {
console.log(res)
this.$refs.uToast.show({
@@ -108,7 +117,7 @@
font-size: 41rpx;
color: #FFFFFF;
position: absolute;
- top: 56%;
+ top: 58%;
left: 10%;
}
diff --git a/pages/personal/personal.vue b/pages/personal/personal.vue
index 9f07547..1bcc54b 100644
--- a/pages/personal/personal.vue
+++ b/pages/personal/personal.vue
@@ -7,8 +7,8 @@
电话:{{appPersonallist.phonenumber}}
-
- 点此设置昵称
+ 昵称:
+ {{appPersonallist.userName}}
修改信息
@@ -68,6 +68,7 @@
},
onLoad(options) {
+
//获取传值
const that=this
this.baseurl = baseurl;
@@ -192,13 +193,13 @@
.nickname {
position: absolute;
top: 26%;
- left: 33%;
+ left: 30%;
}
.phone {
position: absolute;
top: 13%;
- left: 33%;
+ left: 30%;
}
.img {
diff --git a/pages/register/register.vue b/pages/register/register.vue
index 2382a97..6c65ef7 100644
--- a/pages/register/register.vue
+++ b/pages/register/register.vue
@@ -4,7 +4,7 @@
姓名
-
+
@@ -126,7 +126,6 @@
//注册功能
getInfo() {
- this.appPersonallist.nurseStationIds = JSON.stringify(this.appPersonallist.nurseStationIds)
nurseAppLoginSysUser(this.appPersonallist).then(res => {
console.log(res)
if (this.password !== this.newpassword) {