Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
H5_2.0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
379b97b1
authored
May 20, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
4474a2b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
40 deletions
pages.json
router/index.js
pages.json
View file @
379b97b1
...
...
@@ -47,12 +47,12 @@
"navigationBarTitleText"
:
"商品详情"
}
},
{
"path"
:
"pages/confirm/confirm"
,
"style"
:
{
"navigationBarTitleText"
:
"提交订单"
}
},
{
"path"
:
"pages/confirm/confirm"
,
"style"
:
{
"navigationBarTitleText"
:
"提交订单"
}
},
{
"path"
:
"pages/mine/login"
,
"style"
:
{
...
...
router/index.js
View file @
379b97b1
...
...
@@ -72,13 +72,13 @@ const router = new Router({
title
:
'商品详情'
}
},
{
path
:
'/pages/confirm/confirm'
,
aliasPath
:
'/order/confirm'
,
meta
:
{
title
:
'确认订单'
}
},
{
path
:
'/pages/confirm/confirm'
,
aliasPath
:
'/order/confirm'
,
meta
:
{
title
:
'确认订单'
}
},
{
path
:
'/pages/mine/login'
,
aliasPath
:
'/login'
,
...
...
@@ -125,30 +125,6 @@ const router = new Router({
}
},
{
path
:
'/pages/mine/userAddress'
,
aliasPath
:
'/user/reciveaddress'
,
meta
:
{
title
:
'收货地址'
,
auth
:
true
}
},
{
path
:
'/pages/mine/userAddressAdd'
,
aliasPath
:
'/user/userAddressAdd'
,
meta
:
{
title
:
'新增地址'
,
auth
:
true
}
},
{
path
:
'/pages/mine/userAddressEdit'
,
aliasPath
:
'/user/userAddressEdit'
,
meta
:
{
title
:
'编辑地址'
,
auth
:
true
}
},
{
path
:
'/pages/mine/coupdz'
,
aliasPath
:
'/user/coupdz'
,
meta
:
{
...
...
@@ -252,6 +228,30 @@ const router = new Router({
}
},
{
path
:
'/pages/mine/userAddress'
,
aliasPath
:
'/user/reciveaddress'
,
meta
:
{
title
:
'收货地址'
,
auth
:
true
}
},
{
path
:
'/pages/mine/userAddressAdd'
,
aliasPath
:
'/user/userAddressAdd'
,
meta
:
{
title
:
'新增地址'
,
auth
:
true
}
},
{
path
:
'/pages/mine/userAddressEdit'
,
aliasPath
:
'/user/userAddressEdit'
,
meta
:
{
title
:
'编辑地址'
,
auth
:
true
}
},
{
path
:
'/pages/mine/invoice'
,
aliasPath
:
'/user/invoice'
,
meta
:
{
...
...
@@ -260,7 +260,7 @@ const router = new Router({
}
},
{
path
:
'/pages/mine/invoice'
,
path
:
'/pages/mine/invoice
Add
'
,
aliasPath
:
'/user/invoiceAdd'
,
meta
:
{
title
:
'新增发票'
,
...
...
@@ -268,7 +268,7 @@ const router = new Router({
}
},
{
path
:
'/pages/mine/invoice'
,
path
:
'/pages/mine/invoice
Edit
'
,
aliasPath
:
'/user/invoiceEdit'
,
meta
:
{
title
:
'编辑发票'
,
...
...
@@ -280,7 +280,7 @@ const router = new Router({
//全局路由前置守卫
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
if
(
to
.
meta
.
auth
)
{
if
(
!
getCookie
(
'Yo4teW_uid'
)
||
getCookie
(
'Yo4teW_uid'
)
==
0
)
{
uni
.
navigateTo
({
...
...
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