This commit is contained in:
闫晓茹 2022-11-04 17:43:31 +08:00
parent 6ab6654f1a
commit 824230893e
5 changed files with 21 additions and 11 deletions

View File

@ -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'
})
}
})
},
},

View File

@ -23,6 +23,8 @@
data() {
return {};
},
onLoad(options) {
},
methods: {
gomymission() {
uni.navigateTo({

View File

@ -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%;
}

View File

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

View File

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