修改
This commit is contained in:
parent
cf092099fb
commit
dfd5665ca4
@ -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) {
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="body">
|
<view class="body">
|
||||||
<view class="login">
|
<view class="login">
|
||||||
<view class="logins" @tap="pwdlogin">
|
<view class="logins" @tap="pwdlogin">
|
||||||
登录
|
登录
|
||||||
</view>
|
</view>
|
||||||
<view class="border">
|
<view class="border">
|
||||||
@ -14,9 +14,10 @@
|
|||||||
</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> -->
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</u-form>
|
</u-form>
|
||||||
@ -37,8 +38,8 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
personAccount: 'wangxiaoyan',
|
personAccount: '',
|
||||||
personPassword: 'Ww851108.',
|
personPassword: '',
|
||||||
form: {
|
form: {
|
||||||
name: '',
|
name: '',
|
||||||
}
|
}
|
||||||
@ -47,7 +48,7 @@
|
|||||||
// onReady() {
|
// onReady() {
|
||||||
// this.$refs.uForm.setRules(this.rules);
|
// this.$refs.uForm.setRules(this.rules);
|
||||||
// },
|
// },
|
||||||
//获取到传值
|
//获取到传值
|
||||||
// onLoad(options) {
|
// onLoad(options) {
|
||||||
// if (options.phonenumber && options.password) {
|
// if (options.phonenumber && options.password) {
|
||||||
// this.phonenumber = options.phonenumber
|
// this.phonenumber = options.phonenumber
|
||||||
@ -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',
|
||||||
|
|||||||
@ -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({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user