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

路由里配置优惠券

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