Authored by 陈峰

commit

... ... @@ -10,7 +10,7 @@
<slot name="right"></slot>
</div>
<div class="blk-header-main">
<span class="blk-header-title">{{yoho.title}}</span>
<span class="blk-header-title"><slot name="title">{{yoho.title}}</slot></span>
</div>
</div>
<div class="blk-header-gap"></div>
... ...
<template>
<div class="page">
<header-box v-if="(yoho.env.isApp || yoho.env.isYohoBuy) && !hideHeader" :auto-hide="autoHideHeader"></header-box>
<slot name="header"></slot>
<div class="page-content">
<slot></slot>
</div>
... ...
<template>
<div>
helow
</div>
<layout-body class="page-detail">
<header-box slot="header">
<span slot="left"></span>
<span slot="title">asd</span>
<span slot="right">right</span>
</header-box>
</layout-body>
</template>
<script>
export default {
name: 'Channel'
name: 'Channel',
};
</script>
... ...
<template>
<layout-body :auto-hide-header="true" class="page-detail">
<header-box slot="header" :auto-hide="true"></header-box>
<product-swipe :goods="detail.goods_list" ref="imageSwiper"></product-swipe>
<div class="detail-box border-bottom">
<shop-fav :entity="detail" class="border-bottom"></shop-fav>
... ...
... ... @@ -39,7 +39,7 @@ const loadRoutes = (rous, paths, children) => {
};
const routes = _.flattenDeep(loadRoutes(pages));
console.log(routes)
export function createRouter() {
return new Router({
mode: 'history',
... ...