xg
This commit is contained in:
parent
583487a52e
commit
47558cdaee
@ -31,7 +31,6 @@
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(e)
|
||||
if (e) {
|
||||
this.list = JSON.parse(e.list)
|
||||
}
|
||||
|
||||
@ -14,8 +14,7 @@
|
||||
</view> -->
|
||||
<view class="name">
|
||||
<u-form :model="form" ref="uForm" label-width="110">
|
||||
<u-form-item label="用户名:"><u-input placeholder="请输入用户名" maxlength="11"
|
||||
v-model="personAccount" /></u-form-item>
|
||||
<u-form-item label="用户名:"><u-input placeholder="请输入用户名" v-model="personAccount" /></u-form-item>
|
||||
<u-form-item label="密码:">
|
||||
<u-input placeholder="请输入密码" :password-icon="true" type="password" v-model="personPassword" />
|
||||
<!-- <span class="pwd">忘记密码</span> -->
|
||||
@ -58,6 +57,10 @@
|
||||
// this.password = options.password
|
||||
// }
|
||||
// },
|
||||
onShow() {
|
||||
this.personAccount = uni.getStorageSync('loginform').personAccount
|
||||
this.personPassword = uni.getStorageSync('loginform').personPassword
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['scoket']),
|
||||
login() {
|
||||
@ -76,6 +79,11 @@
|
||||
duration: '1500'
|
||||
})
|
||||
} else if (res.data.data.status == 2 || res.data.data.status == 1) {
|
||||
let form = {
|
||||
personAccount: this.personAccount,
|
||||
personPassword: this.personPassword
|
||||
}
|
||||
uni.setStorageSync('loginform', form);
|
||||
that.$refs.uToast.show({
|
||||
title: '登录成功',
|
||||
type: 'success',
|
||||
|
||||
@ -213,7 +213,8 @@
|
||||
uni.closeSocket();
|
||||
}
|
||||
uni.closeSocket();
|
||||
uni.clearStorageSync();
|
||||
uni.removeStorageSync('id');
|
||||
uni.removeStorageSync('status');
|
||||
that.$refs.uToast.show({
|
||||
title: '退出账号成功',
|
||||
type: 'success',
|
||||
|
||||
@ -339,7 +339,8 @@
|
||||
senderName: that.currentItem.doctorName,
|
||||
messageType: 1,
|
||||
sendTime: new Date(),
|
||||
content: this.formData.content
|
||||
content: this.formData.content,
|
||||
sourcePlatform: 'APP'
|
||||
}
|
||||
that.formData.content = '' //清空输入框的文本
|
||||
sendMessage(obj).then(res => {
|
||||
@ -491,7 +492,8 @@
|
||||
senderName: that.currentItem.doctorName,
|
||||
messageType: 2,
|
||||
sendTime: new Date(),
|
||||
content: fileurls.fileUrl
|
||||
content: fileurls.fileUrl,
|
||||
sourcePlatform: 'APP'
|
||||
}
|
||||
sendMessage(obj).then(respp => {
|
||||
if (respp.code == 200) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user