Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
7 years ago
Commit
0c5672806bc8f8e1fa20d55b02ef548d546a078c
1 parent
d4e4b762
commit
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
src/components/layout/header-box.vue
src/components/layout/layout-body.vue
src/pages/channel/home/home.vue
src/pages/product/detail/detail.vue
src/router/index.js
src/components/layout/header-box.vue
View file @
0c56728
...
...
@@ -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>
...
...
src/components/layout/layout-body.vue
View file @
0c56728
<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>
...
...
src/pages/channel/home/home.vue
View file @
0c56728
<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>
...
...
src/pages/product/detail/detail.vue
View file @
0c56728
<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>
...
...
src/router/index.js
View file @
0c56728
...
...
@@ -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'
,
...
...
Please
register
or
login
to post a comment