This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</view>
|
||||
<view class="input-row">
|
||||
<image class="iconfont2" src="/static/ic_login_code.png" />
|
||||
<input class="login-input" type="text" placeholder="请输入验证码" v-model="password"/>
|
||||
<input class="login-input" type="text" placeholder="请输入验证码" v-model="password" />
|
||||
<button class="code-btn">获取校验码</button>
|
||||
</view>
|
||||
<view class="protocol-row">
|
||||
@@ -57,9 +57,9 @@
|
||||
activeColor: '#007aff',
|
||||
checked: false
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getUserInfo()
|
||||
},
|
||||
onLoad() {
|
||||
this.getUserInfo()
|
||||
},
|
||||
methods: {
|
||||
async submit() {
|
||||
@@ -85,27 +85,30 @@
|
||||
this.$store.commit('$uStore', {
|
||||
name: 'vuex_token',
|
||||
value: res.data.access_token
|
||||
});
|
||||
});
|
||||
this.getUserInfo()
|
||||
// setTimeout(() => {
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/sys/home/home'
|
||||
// });
|
||||
// uni.reLaunch({
|
||||
// url: '/pages/sys/home/home'
|
||||
// });
|
||||
// }, 500);
|
||||
}
|
||||
},
|
||||
getUserInfo(){
|
||||
this.$u.api.getUserInfo({loginCheck: true}).then(res => {
|
||||
if (res.code == '200'){
|
||||
this.$store.commit('$uStore', {
|
||||
name: 'vuex_user',
|
||||
value: res.data.user
|
||||
});
|
||||
uni.reLaunch({
|
||||
url: '/pages/sys/home/home'
|
||||
});
|
||||
}
|
||||
});
|
||||
getUserInfo() {
|
||||
this.$u.api.getUserInfo({
|
||||
loginCheck: true
|
||||
}).then(res => {
|
||||
if (res.code == '200') {
|
||||
this.$store.commit('$uStore', {
|
||||
name: 'vuex_user',
|
||||
value: res.data.user
|
||||
});
|
||||
uni.$emit("loginSuccess");
|
||||
uni.reLaunch({
|
||||
url: '/pages/sys/home/home'
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
handleCheckboxChange(e) {
|
||||
this.checked = e.target.checked;
|
||||
|
@@ -31,7 +31,8 @@
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<script>
|
||||
import ws from "@/utils/websocket.js"; // WebSocket 封装类
|
||||
export default {
|
||||
name: 'Mine',
|
||||
data() {
|
||||
@@ -119,6 +120,8 @@
|
||||
uni.navigateTo({
|
||||
url: '/pages/sys/user/myRecord/myRecord'
|
||||
});
|
||||
}else if(idx === 7){
|
||||
ws.send({"data":"{\"bigType\":10,\"createBy\":-1,\"createDept\":103,\"createTime\":\"2025-09-13 16:40:43\",\"description\":\"非法停车\",\"deviceGroupId\":1961274194171736066,\"deviceIp\":\"192.168.24.33\",\"deviceName\":\"2号岗亭监控IP33\",\"id\":1966784089537634305,\"level\":2,\"params\":{},\"reportTime\":\"2025-09-13 16:40:43\",\"servBeginTime\":\"2025-09-13 16:40:43\",\"servEndTime\":\"2025-09-13 18:40:43\",\"smallType\":1028,\"state\":10,\"tenantId\":\"000000\",\"updateTime\":\"2025-09-13 16:40:43\"}","type":"100","title":"预警消息","content":"预警内功"})
|
||||
}
|
||||
},
|
||||
logout() {
|
||||
|
Reference in New Issue
Block a user