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
5b5b3277
authored
May 20, 2023
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
confirm
parent
cd47d147
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
2 deletions
assets/css/confirm/confirm.scss
pages.json
pages/confirm/confirm.vue
router/index.js
assets/css/confirm/confirm.scss
0 → 100644
View file @
5b5b3277
File mode changed
pages.json
View file @
5b5b3277
...
...
@@ -42,11 +42,17 @@
}
},
{
"path"
:
"pages/detail/detail
/
"
,
"path"
:
"pages/detail/detail"
,
"style"
:
{
"navigationBarTitleText"
:
"商品详情"
}
},
{
"path"
:
"pages/confirm/confirm"
,
"style"
:
{
"navigationBarTitleText"
:
"提交订单"
}
},
{
"path"
:
"pages/mine/login"
,
"style"
:
{
...
...
@@ -155,6 +161,15 @@
"navigationBarTitleText"
:
"绑定邮箱"
}
}
,{
"path"
:
"pages/confirm/confirm"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
}
],
"globalStyle"
:
{
...
...
pages/confirm/confirm.vue
0 → 100644
View file @
5b5b3277
<
template
>
<view
class=
"confirmpage"
>
asdasd
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
'../../assets/css/confirm/confirm.scss'
;
</
style
>
router/index.js
View file @
5b5b3277
...
...
@@ -66,12 +66,20 @@ const router = new Router({
}
},
{
path
:
'/pages/detail/detail
/
'
,
path
:
'/pages/detail/detail'
,
aliasPath
:
'/item'
,
meta
:
{
title
:
'商品详情'
}
},
{
path
:
'/pages/confirm/confirm'
,
aliasPath
:
'/order/confirm'
,
meta
:
{
title
:
'提交订单'
,
auth
:
true
}
},
{
path
:
'/pages/mine/login'
,
aliasPath
:
'/login'
,
...
...
@@ -213,6 +221,7 @@ const router = new Router({
//全局路由前置守卫
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
to
.
meta
.
auth
)
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