Commit 6b99c952 authored by 李苏's avatar 李苏 💬

调整

parent 79a25025
...@@ -10,7 +10,7 @@ const router = new Router({ ...@@ -10,7 +10,7 @@ const router = new Router({
routes: [...modules]//路由表 routes: [...modules]//路由表
}); });
console.log(router) console.log(router)
const whiteList = ['/pages/login/login'] const whiteList = ['/pages/login/login','/pages/login/cusmerLogin']
//全局路由前置守卫 //全局路由前置守卫
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
console.log(from) console.log(from)
......
...@@ -324,6 +324,15 @@ const routes = [ ...@@ -324,6 +324,15 @@ const routes = [
title: '收发汇总明细查询', title: '收发汇总明细查询',
}, },
}, },
// 云erp
{
path: '/pages/login/cusmerLogin',
name: 'cusmerLogin',
meta: {
title: 'erplogin',
},
}
//
] ]
export default routes export default routes
\ No newline at end of file
{ {
"pages": [ "pages": [
// 云erp
{
"path": "pages/login/cusmerLogin",
"style": {}
},
{ {
"path": "pages/login/login", "path": "pages/login/login",
"style": {} "style": {}
......
This diff is collapsed.
...@@ -76,6 +76,9 @@ ...@@ -76,6 +76,9 @@
<!-- <image src="https://static.jeecg.com/upload/test/login4_1595818039175.png" mode="aspectFit" class="round"></image> --> <!-- <image src="https://static.jeecg.com/upload/test/login4_1595818039175.png" mode="aspectFit" class="round"></image> -->
<view class="gray-text">登录中...</view> <view class="gray-text">登录中...</view>
</view> </view>
<view @tap="changErp()" style="position: absolute;bottom: 20px;right: 10px;text-decoration:underline">
切换到格物云erp登录
</view>
</view> </view>
</template> </template>
...@@ -141,24 +144,6 @@ ...@@ -141,24 +144,6 @@
console.log("获取失败,请手动输入") console.log("获取失败,请手动输入")
} }
}) })
// uni.getStorage({
// key:'fwq',
// success:function(e){
// that.fwq=e.data
// },
// fail() {
// console.log("获取失败,请手动输入")
// }
// })
// uni.getStorage({
// key:'dkh',
// success:function(e){
// that.dkh=e.data
// },
// fail() {
// console.log("获取失败,请手动输入")
// }
// })
// #ifdef APP-PLUS // #ifdef APP-PLUS
var that=this var that=this
plus.runtime.getProperty( plus.runtime.appid, function ( wgtinfo ) { plus.runtime.getProperty( plus.runtime.appid, function ( wgtinfo ) {
...@@ -186,7 +171,9 @@ ...@@ -186,7 +171,9 @@
}, },
methods: { methods: {
...mapActions([ "mLogin","PhoneLogin","ThirdLogin" ]), ...mapActions([ "mLogin","PhoneLogin","ThirdLogin" ]),
changErp(){
this.$Router.replaceAll({name:'cusmerLogin'})
},
gofwqsz(){ gofwqsz(){
this.$Router.push({ this.$Router.push({
path: '/pages/login/fwqsz', query:{ path: '/pages/login/fwqsz', query:{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment