提交 050618de 编写于 作者: guangjun.yang's avatar guangjun.yang

路由里配置优惠券

上级 f6dbc070
...@@ -99,6 +99,11 @@ router.beforeEach((to, from, next) => { ...@@ -99,6 +99,11 @@ router.beforeEach((to, from, next) => {
next({ path: to.path, query: newQuery, replace: true }); next({ path: to.path, query: newQuery, replace: true });
return; return;
} }
if (to.meta.title) {
document.title = to.meta.title
}
next(); next();
}) })
......
...@@ -68,7 +68,10 @@ export default [{ ...@@ -68,7 +68,10 @@ export default [{
}, },
{ {
path: '/coupon-list', path: '/coupon-list',
component: couponList component: couponList,
meta: {
title: '优惠券'
}
} }
] ]
}] }]
<template> <template>
<section class="coupon-list-wrapper"> <section class="coupon-list-wrapper" :class="{'no-pt': isWeb}">
<CommonNavbar <CommonNavbar
:isWeb="false" :isWeb="isWeb"
ref="navBarCom" ref="navBarCom"
:bgColor="bgColor" :bgColor="bgColor"
v-if="isShowNavbar" v-if="isShowNavbar"
...@@ -296,5 +296,8 @@ export default { ...@@ -296,5 +296,8 @@ export default {
padding-top: 88px; padding-top: 88px;
min-height: 100vh; min-height: 100vh;
background: #f8f9fa; background: #f8f9fa;
&.no-pt {
padding-top: 10px;
}
} }
</style> </style>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册