Commit 5b5b3277 by 肖康

confirm

parent cd47d147
......@@ -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": {
......
<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,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({
......
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