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() { myInfo() {
nursePerson(this.phonenumber, this.password).then(res => { nursePerson(this.phonenumber, this.password).then(res => {
console.log(res, 'resresres') console.log(res, 'resresres')
@ -130,7 +130,6 @@
type: 'error' type: 'error'
}) })
} }
}) })
}, },
}, },

View File

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

View File

@ -47,9 +47,9 @@
// //
pwdlogin() { pwdlogin() {
var that = this
appLogin(this.phonenumber, this.password).then(res => { appLogin(this.phonenumber, this.password).then(res => {
console.log(res) console.log(res)
if (res.code == 200) { if (res.code == 200) {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '登录成功', title: '登录成功',
@ -57,6 +57,15 @@
url: '/pages/homepage/homepage', url: '/pages/homepage/homepage',
duration: '1500' duration: '1500'
}) })
uni.setStorage({
key:'phonenumber',
data:that.phonenumber
})
uni.setStorage({
key:'password',
data:that.password
})
} else { } else {
console.log(res) console.log(res)
this.$refs.uToast.show({ this.$refs.uToast.show({
@ -108,7 +117,7 @@
font-size: 41rpx; font-size: 41rpx;
color: #FFFFFF; color: #FFFFFF;
position: absolute; position: absolute;
top: 56%; top: 58%;
left: 10%; left: 10%;
} }

View File

@ -7,8 +7,8 @@
<view class="phone"> <view class="phone">
电话{{appPersonallist.phonenumber}} 电话{{appPersonallist.phonenumber}}
</view> </view>
<view class="nickname"> <view class="nickname">昵称
点此设置昵称 {{appPersonallist.userName}}
</view> </view>
<view class="modify" @tap='updatainfo()'> <view class="modify" @tap='updatainfo()'>
修改信息 修改信息
@ -68,6 +68,7 @@
}, },
onLoad(options) { onLoad(options) {
// //
const that=this const that=this
this.baseurl = baseurl; this.baseurl = baseurl;
@ -192,13 +193,13 @@
.nickname { .nickname {
position: absolute; position: absolute;
top: 26%; top: 26%;
left: 33%; left: 30%;
} }
.phone { .phone {
position: absolute; position: absolute;
top: 13%; top: 13%;
left: 33%; left: 30%;
} }
.img { .img {

View File

@ -4,7 +4,7 @@
<view class="lefttext"> <view class="lefttext">
姓名 姓名
</view> </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>
<view class="item"> <view class="item">
<view class="lefttext"> <view class="lefttext">
@ -126,7 +126,6 @@
// //
getInfo() { getInfo() {
this.appPersonallist.nurseStationIds = JSON.stringify(this.appPersonallist.nurseStationIds)
nurseAppLoginSysUser(this.appPersonallist).then(res => { nurseAppLoginSysUser(this.appPersonallist).then(res => {
console.log(res) console.log(res)
if (this.password !== this.newpassword) { if (this.password !== this.newpassword) {