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: '',
} }

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({