1
0
forked from dyf/APP

完成008A功能开发

This commit is contained in:
liub
2026-05-19 17:38:56 +08:00
parent 6d9df4c945
commit 8f53a45280
63 changed files with 4162 additions and 766 deletions

View File

@ -68,6 +68,8 @@
login,
resourceSmsCode
} from '@/api/common/login.js';
import mqplus from '@/utils/MqPlus.js';
var mqcommon=null;
export default {
data() {
return {
@ -85,6 +87,7 @@
},
onLoad() {
this.phone= uni.getStorageSync('phone');
mqcommon=mqplus.getMqPlus();
if (uni.getStorageSync("token") && uni.getStorageSync("clientID")) { //免登陆
let time = uni.getStorageSync("tokenTime");
if (!time) {
@ -258,10 +261,14 @@
uni.showToast({
title: '登录成功',
icon: 'success'
})
});
uni.switchTab({
url: '/pages/common/index/index'
})
});
if(mqcommon){
mqcommon.sendUsrLogin();
}
} else {
uni.showToast({
title: res.msg || '服务器异常,请稍后重试',
@ -294,8 +301,9 @@
},
// 同意
handleAgree() {
this.isChecked = !this.isChecked
this.showAgreement = false
this.isChecked = !this.isChecked;
this.showAgreement = false;
this.handleLogin();
},
},
}