修改
This commit is contained in:
parent
cf092099fb
commit
dfd5665ca4
@ -142,7 +142,7 @@
|
||||
uni.connectSocket({
|
||||
url: that.SOCKETURL
|
||||
})
|
||||
}, 3 * 1000)
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
uni.onSocketClose(err => {
|
||||
@ -153,7 +153,7 @@
|
||||
uni.connectSocket({
|
||||
url: that.SOCKETURL
|
||||
})
|
||||
}, 3 * 1000)
|
||||
}, 1000)
|
||||
}
|
||||
})
|
||||
} catch (e) {
|
||||
@ -184,7 +184,7 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
}, 5000)
|
||||
}, 1000)
|
||||
},
|
||||
//前往聊天
|
||||
goseekadvicefrom(item) {
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
</view>
|
||||
<view class="body">
|
||||
<view class="login">
|
||||
<view class="logins" @tap="pwdlogin">
|
||||
<view class="logins" @tap="pwdlogin">
|
||||
登录
|
||||
</view>
|
||||
<view class="border">
|
||||
@ -14,9 +14,10 @@
|
||||
</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="请输入用户名" maxlength="11"
|
||||
v-model="personAccount" /></u-form-item>
|
||||
<u-form-item label="密码:">
|
||||
<u-input placeholder="请输入密码" :password-icon="true" type="password" v-model="personPassword" />
|
||||
<u-input placeholder="请输入密码" :password-icon="true" type="password" v-model="personPassword" />
|
||||
<!-- <span class="pwd">忘记密码</span> -->
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
@ -37,8 +38,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
personAccount: 'wangxiaoyan',
|
||||
personPassword: 'Ww851108.',
|
||||
personAccount: '',
|
||||
personPassword: '',
|
||||
form: {
|
||||
name: '',
|
||||
}
|
||||
@ -47,7 +48,7 @@
|
||||
// onReady() {
|
||||
// this.$refs.uForm.setRules(this.rules);
|
||||
// },
|
||||
//获取到传值
|
||||
//获取到传值
|
||||
// onLoad(options) {
|
||||
// if (options.phonenumber && options.password) {
|
||||
// this.phonenumber = options.phonenumber
|
||||
@ -61,13 +62,13 @@
|
||||
if (res.data.code == 200) {
|
||||
uni.setStorageSync("id", res.data.data.id)
|
||||
uni.setStorageSync("status", res.data.data.status)
|
||||
if(res.data.data.status==3){
|
||||
if (res.data.data.status == 3) {
|
||||
that.$refs.uToast.show({
|
||||
title: '当前用户无权限',
|
||||
type: 'error',
|
||||
duration: '1500'
|
||||
})
|
||||
}else if(res.data.data.status==2||res.data.data.status==1){
|
||||
} else if (res.data.data.status == 2 || res.data.data.status == 1) {
|
||||
that.$refs.uToast.show({
|
||||
title: '登录成功',
|
||||
type: 'success',
|
||||
@ -82,11 +83,11 @@
|
||||
})
|
||||
}, 1500)
|
||||
}
|
||||
|
||||
|
||||
// uni.setStorageSync("nursePersonName", res.data.nursePersonName)
|
||||
// uni.setStorageSync("nurseStationId", res.data.nurseStationId)
|
||||
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
that.$refs.uToast.show({
|
||||
title: res.data.msg,
|
||||
@ -228,4 +229,4 @@
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@ -543,6 +543,10 @@
|
||||
content: JSON.parse(res.data).message,
|
||||
messageType: Number(JSON.parse(res.data).messageType)
|
||||
})
|
||||
query.select('.input-box').boundingClientRect(data => {
|
||||
that.inputboxtop = data.height //赋值,待会要用
|
||||
that.scrollTop = that.scrollTop + 1;
|
||||
}).exec();
|
||||
that.Read()
|
||||
})
|
||||
} catch (e) {
|
||||
@ -567,7 +571,7 @@
|
||||
})
|
||||
}
|
||||
})
|
||||
}, that.timeout)
|
||||
}, 1000)
|
||||
},
|
||||
back() {
|
||||
uni.navigateBack({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user