This commit is contained in:
2023-12-20 13:36:30 +08:00
parent cf092099fb
commit dfd5665ca4
3 changed files with 21 additions and 16 deletions

View File

@ -142,7 +142,7 @@
uni.connectSocket({ uni.connectSocket({
url: that.SOCKETURL url: that.SOCKETURL
}) })
}, 3 * 1000) }, 1000)
} }
}) })
uni.onSocketClose(err => { uni.onSocketClose(err => {
@ -153,7 +153,7 @@
uni.connectSocket({ uni.connectSocket({
url: that.SOCKETURL url: that.SOCKETURL
}) })
}, 3 * 1000) }, 1000)
} }
}) })
} catch (e) { } catch (e) {
@ -184,7 +184,7 @@
}) })
} }
}) })
}, 5000) }, 1000)
}, },
// //
goseekadvicefrom(item) { goseekadvicefrom(item) {

View File

@ -14,7 +14,8 @@
</view> </view>
<view class="name"> <view class="name">
<u-form :model="form" ref="uForm" label-width="110"> <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-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> --> <!-- <span class="pwd">忘记密码</span> -->
@ -37,8 +38,8 @@
export default { export default {
data() { data() {
return { return {
personAccount: 'wangxiaoyan', personAccount: '',
personPassword: 'Ww851108.', personPassword: '',
form: { form: {
name: '', name: '',
} }
@ -61,13 +62,13 @@
if (res.data.code == 200) { if (res.data.code == 200) {
uni.setStorageSync("id", res.data.data.id) uni.setStorageSync("id", res.data.data.id)
uni.setStorageSync("status", res.data.data.status) uni.setStorageSync("status", res.data.data.status)
if(res.data.data.status==3){ if (res.data.data.status == 3) {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '当前用户无权限', title: '当前用户无权限',
type: 'error', type: 'error',
duration: '1500' 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({ that.$refs.uToast.show({
title: '登录成功', title: '登录成功',
type: 'success', type: 'success',

View File

@ -543,6 +543,10 @@
content: JSON.parse(res.data).message, content: JSON.parse(res.data).message,
messageType: Number(JSON.parse(res.data).messageType) 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() that.Read()
}) })
} catch (e) { } catch (e) {
@ -567,7 +571,7 @@
}) })
} }
}) })
}, that.timeout) }, 1000)
}, },
back() { back() {
uni.navigateBack({ uni.navigateBack({