Commit 5b5b3277 by 肖康

confirm

parent cd47d147
...@@ -42,12 +42,18 @@ ...@@ -42,12 +42,18 @@
} }
}, },
{ {
"path": "pages/detail/detail/", "path": "pages/detail/detail",
"style": { "style": {
"navigationBarTitleText": "商品详情" "navigationBarTitleText": "商品详情"
} }
}, },
{ {
"path": "pages/confirm/confirm",
"style": {
"navigationBarTitleText": "提交订单"
}
},
{
"path": "pages/mine/login", "path": "pages/mine/login",
"style": { "style": {
"navigationBarTitleText": "登录" "navigationBarTitleText": "登录"
...@@ -155,6 +161,15 @@ ...@@ -155,6 +161,15 @@
"navigationBarTitleText": "绑定邮箱" "navigationBarTitleText": "绑定邮箱"
} }
} }
,{
"path" : "pages/confirm/confirm",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
], ],
"globalStyle": { "globalStyle": {
......
<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>
...@@ -66,13 +66,21 @@ const router = new Router({ ...@@ -66,13 +66,21 @@ const router = new Router({
} }
}, },
{ {
path: '/pages/detail/detail/', path: '/pages/detail/detail',
aliasPath: '/item', aliasPath: '/item',
meta: { meta: {
title: '商品详情' title: '商品详情'
} }
}, },
{ {
path: '/pages/confirm/confirm',
aliasPath: '/order/confirm',
meta: {
title:'提交订单',
auth: true
}
},
{
path: '/pages/mine/login', path: '/pages/mine/login',
aliasPath: '/login', aliasPath: '/login',
meta: { meta: {
...@@ -213,6 +221,7 @@ const router = new Router({ ...@@ -213,6 +221,7 @@ const router = new Router({
//全局路由前置守卫 //全局路由前置守卫
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
console.log(to.meta.auth)
if (to.meta.auth) { if (to.meta.auth) {
if (!getCookie('Yo4teW_uid') || getCookie('Yo4teW_uid') == 0) { if (!getCookie('Yo4teW_uid') || getCookie('Yo4teW_uid') == 0) {
uni.navigateTo({ uni.navigateTo({
......
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 sign in to comment