刷新
This commit is contained in:
parent
6ab6654f1a
commit
824230893e
@ -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'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -23,6 +23,8 @@
|
|||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
gomymission() {
|
gomymission() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
@ -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%;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user