diff --git a/config/index.js b/config/index.js index 8b259c2..0e576b9 100644 --- a/config/index.js +++ b/config/index.js @@ -22,6 +22,7 @@ if(process.env.NODE_ENV === 'development'){ fileUrl = 'https://u-pre.boe.com/upload'; //fileUrl = 'https://u-pre.boe.com/cdn/upload'; loginPath='/mobile/pages/login/login'; + loginPathLogin='/mobile/pages/login/loginuser'; scormPlayer='https://u-pre.boe.com/scorm-player'; apiActivityUrl='/activityApi'; }else if(process.env.ENV_TYPE === 'preview'){ @@ -34,6 +35,7 @@ if(process.env.NODE_ENV === 'development'){ socialApiBaseUrl='/socialApi-release'; fileUrl = 'https://u.boe.com/upload'; loginPath='https://u.boe.com/m/login'; + loginPathLogin='/mobile/pages/login/loginuser'; scormPlayer='https://u.boe.com/newscorm/scorm-player'; apiActivityUrl='/activityApi'; }else if(process.env.ENV_TYPE === 'testing'){ @@ -44,6 +46,7 @@ if(process.env.NODE_ENV === 'development'){ socialApiBaseUrl='/socialApi'; fileUrl = 'https://u-pre.boe.com/upload'; loginPath='https://u-pre.boe.com/m/login'; + loginPathLogin='/mobile/pages/login/loginuser'; scormPlayer='https://u-pre.boe.com/newscorm/scorm-player'; apiActivityUrl='/activityApi'; }else{ @@ -55,6 +58,7 @@ if(process.env.NODE_ENV === 'development'){ socialApiBaseUrl='/socialApi'; fileUrl = 'https://u.boe.com/upload'; loginPath='https://u.boe.com/m/login'; + loginPathLogin='/mobile/pages/login/loginuser'; scormPlayer='https://u.boe.com/newscorm/scorm-player'; apiActivityUrl='/activityApi'; } @@ -69,6 +73,7 @@ export default { context:context, appId:appId, loginPath:loginPath, + loginPathLogin:loginPathLogin, fileUrl:fileUrl, version:version, scormPlayer:scormPlayer diff --git a/pages/my/setting.vue b/pages/my/setting.vue index c354cbb..f82739e 100644 --- a/pages/my/setting.vue +++ b/pages/my/setting.vue @@ -196,7 +196,7 @@ that.$store.dispatch("LogOut").then(rs =>{ that.clearShow=false; if(rs.status==200){ - let loginPath=this.$config.loginPath; + let loginPath=this.$config.loginPathLogin; if(loginPath.startsWith('http')){ // #ifdef APP-PLUS plus.runtime.openURL(loginPath) //这里默认使用外部浏览器打开而不是内部web-view组件打开 diff --git a/unpackage/dist/build/h5/index.html b/unpackage/dist/build/h5/index.html index 60a49b6..c12a493 100644 --- a/unpackage/dist/build/h5/index.html +++ b/unpackage/dist/build/h5/index.html @@ -19,4 +19,4 @@ hm.src = "https://hm.baidu.com/hm.js?ea89f02dca369037a73c5e3907e2c14a"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); - })();