|
@@ -67,35 +67,47 @@ module.exports = (vm) => {
|
|
|
// console.log('setStorage success');
|
|
|
}
|
|
|
});
|
|
|
+ // console.log('commonConfig.authUrl',commonConfig.authUrl);
|
|
|
tryHideFullScreenLoading()
|
|
|
if(showModal){return}
|
|
|
showModal = true;
|
|
|
- uni.showModal({
|
|
|
- title: '提示',
|
|
|
- content: '你需要登录后,才可使用此功能!',
|
|
|
- success: res => {
|
|
|
- if (res.confirm) {
|
|
|
- window.location.href = commonConfig.authUrl;
|
|
|
- // uni.$u.route(commonConfig.authUrl);
|
|
|
- }else{
|
|
|
- uni.removeStorage({
|
|
|
- key: 'backUrl',
|
|
|
- success: function (res) {
|
|
|
- // console.log('success');
|
|
|
- }
|
|
|
- });
|
|
|
- let pages = getCurrentPages();
|
|
|
- // console.log('pages',pages);
|
|
|
- if(pages.length>1){
|
|
|
- uni.navigateBack()
|
|
|
- }
|
|
|
+ uni.showToast({
|
|
|
+ title: '你需要登录后,才可使用!',
|
|
|
+ icon:'none',
|
|
|
+ duration: 2000,
|
|
|
+ complete:function(){
|
|
|
+ showModal = false;
|
|
|
+ uni.$u.vuex('vuex_member_info', {});
|
|
|
+ window.location.href = commonConfig.authUrl
|
|
|
+ // uni.$u.route(commonConfig.authUrl);
|
|
|
}
|
|
|
- },
|
|
|
- complete() {
|
|
|
- showModal = false
|
|
|
- uni.$u.vuex('vuex_member_info', {});
|
|
|
- }
|
|
|
- })
|
|
|
+ });
|
|
|
+ // uni.showModal({
|
|
|
+ // title: '提示',
|
|
|
+ // content: '你需要登录后,才可使用此功能!',
|
|
|
+ // success: res => {
|
|
|
+ // if (res.confirm) {
|
|
|
+ // window.location.href = commonConfig.authUrl;
|
|
|
+ // // uni.$u.route(commonConfig.authUrl);
|
|
|
+ // }else{
|
|
|
+ // uni.removeStorage({
|
|
|
+ // key: 'backUrl',
|
|
|
+ // success: function (res) {
|
|
|
+ // // console.log('success');
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // let pages = getCurrentPages();
|
|
|
+ // // console.log('pages',pages);
|
|
|
+ // if(pages.length>1){
|
|
|
+ // uni.navigateBack()
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // complete() {
|
|
|
+ // showModal = false
|
|
|
+ // uni.$u.vuex('vuex_member_info', {});
|
|
|
+ // }
|
|
|
+ // })
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -121,7 +133,7 @@ module.exports = (vm) => {
|
|
|
unlogin()
|
|
|
}
|
|
|
|
|
|
- if(data.msg == "用户不存在!"||data.msg == "用户未注册"){
|
|
|
+ if(data.msg == "用户不存在!"||data.msg == "用户未注册"||data.msg == "用户信息不能为空"||data.msg == "团队用户信息不能为空"){
|
|
|
uni.clearStorage();
|
|
|
unlogin()
|
|
|
}
|