完成008A功能开发
This commit is contained in:
@ -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();
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user