刷新
This commit is contained in:
parent
6ab6654f1a
commit
824230893e
@ -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'
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@ -23,6 +23,8 @@
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
onLoad(options) {
|
||||
},
|
||||
methods: {
|
||||
gomymission() {
|
||||
uni.navigateTo({
|
||||
|
||||
@ -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%;
|
||||
|
||||
}
|
||||
|
||||
@ -7,8 +7,8 @@
|
||||
<view class="phone">
|
||||
电话:{{appPersonallist.phonenumber}}
|
||||
</view>
|
||||
<view class="nickname">
|
||||
点此设置昵称
|
||||
<view class="nickname">昵称:
|
||||
{{appPersonallist.userName}}
|
||||
</view>
|
||||
<view class="modify" @tap='updatainfo()'>
|
||||
修改信息
|
||||
@ -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 {
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<view class="lefttext">
|
||||
姓名
|
||||
</view>
|
||||
<input class="righttext" type="text" placeholder="请输入" v-model="appPersonallist.nickName" />
|
||||
<input class="righttext" type="text" placeholder="请输入" v-model="appPersonallist.nickName" maxlength="30"/>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="lefttext">
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user