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({
routes
:
[...
modules
]
//路由表
});
console
.
log
(
router
)
const
whiteList
=
[
'/pages/login/login'
]
const
whiteList
=
[
'/pages/login/login'
,
'/pages/login/cusmerLogin'
]
//全局路由前置守卫
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
from
)
...
...
common/router/modules/routes.js
View file @
6b99c952
...
...
@@ -324,6 +324,15 @@ const routes = [
title
:
'收发汇总明细查询'
,
},
},
// 云erp
{
path
:
'/pages/login/cusmerLogin'
,
name
:
'cusmerLogin'
,
meta
:
{
title
:
'erplogin'
,
},
}
//
]
export
default
routes
\ No newline at end of file
pages.json
View file @
6b99c952
{
"pages"
:
[
//
云erp
{
"path"
:
"pages/login/cusmerLogin"
,
"style"
:
{}
},
{
"path"
:
"pages/login/login"
,
"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 @@
<!--
<image
src=
"https://static.jeecg.com/upload/test/login4_1595818039175.png"
mode=
"aspectFit"
class=
"round"
></image>
-->
<view
class=
"gray-text"
>
登录中...
</view>
</view>
<view
@
tap=
"changErp()"
style=
"position: absolute;bottom: 20px;right: 10px;text-decoration:underline"
>
切换到格物云erp登录
</view>
</view>
</
template
>
...
...
@@ -141,24 +144,6 @@
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
var
that
=
this
plus
.
runtime
.
getProperty
(
plus
.
runtime
.
appid
,
function
(
wgtinfo
)
{
...
...
@@ -186,7 +171,9 @@
},
methods
:
{
...
mapActions
([
"mLogin"
,
"PhoneLogin"
,
"ThirdLogin"
]),
changErp
(){
this
.
$Router
.
replaceAll
({
name
:
'cusmerLogin'
})
},
gofwqsz
(){
this
.
$Router
.
push
({
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