Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cxerpapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
cxerpapp
Commits
6b99c952
Commit
6b99c952
authored
Feb 11, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
79a25025
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
446 additions
and
20 deletions
+446
-20
index.js
common/router/index.js
+1
-1
routes.js
common/router/modules/routes.js
+9
-0
pages.json
pages.json
+5
-0
cusmerLogin.vue
pages/login/cusmerLogin.vue
+425
-0
login.vue
pages/login/login.vue
+6
-19
No files found.
common/router/index.js
View file @
6b99c952
...
@@ -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
)
...
...
common/router/modules/routes.js
View file @
6b99c952
...
@@ -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.json
View file @
6b99c952
{
{
"pages"
:
[
"pages"
:
[
//
云erp
{
"path"
:
"pages/login/cusmerLogin"
,
"style"
:
{}
},
{
{
"path"
:
"pages/login/login"
,
"path"
:
"pages/login/login"
,
"style"
:
{}
"style"
:
{}
...
...
pages/login/cusmerLogin.vue
0 → 100644
View file @
6b99c952
This diff is collapsed.
Click to expand it.
pages/login/login.vue
View file @
6b99c952
...
@@ -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
:{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment