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
郭成尧
2016-07-22 14:37:51 +0800
Commit
331b2606c0cad8cc9f54603738f6fdbc03b98b8c
1 parent
eaa78a2d
新建店铺分享页面
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
0 deletions
apps/channel/controllers/brand.js
apps/channel/router.js
apps/channel/views/action/brand/brand-share.hbs
public/js/channel/brand-share.page.js
public/vue/channel/brand-share-box.vue
apps/channel/controllers/brand.js
View file @
331b260
...
...
@@ -53,6 +53,7 @@ module.exports = {
});
},
/* 获取品牌列表数据 */
getBrandList
:
(
req
,
res
)
=>
{
brandModel
.
getBrandListData
({
...
...
@@ -62,6 +63,14 @@ module.exports = {
});
},
/* 品牌店铺分享页面 */
brandShare
:
(
req
,
res
)
=>
{
res
.
render
(
'brand/brand-share'
,
{
module
:
'channel'
,
page
:
'brand-share'
});
},
/* 全部分类 */
cate
:
(
req
,
res
)
=>
{
res
.
render
(
'brand/cate'
,
{
...
...
apps/channel/router.js
View file @
331b260
...
...
@@ -20,6 +20,7 @@ router.get('/get-brand-intro', brand.getBrandIntro); // 店铺介绍
router
.
get
(
'/get-brand-shop-goods'
,
brand
.
getBrandShopGoods
);
// 店铺介绍
router
.
get
(
'/brand-list'
,
brand
.
brandList
);
// 品牌列表页
router
.
get
(
'/get-brand-list'
,
brand
.
getBrandList
);
// 获取品牌列表数据
router
.
get
(
'/brand-share'
,
brand
.
brandShare
);
// 获取品牌列表数据
router
.
get
(
'/cate'
,
brand
.
cate
);
// 全部分类
router
.
get
(
'/get-cate-list'
,
brand
.
getCateList
);
// 全部分类数据列表
...
...
apps/channel/views/action/brand/brand-share.hbs
0 → 100644
View file @
331b260
<div
id=
"brand-share"
>
<brand-share-box></brand-share-box>
</div>
...
...
public/js/channel/brand-share.page.js
0 → 100644
View file @
331b260
/**
* Created by PhpStorm.
* User: Targaryen
* Date: 2016/7/22
* Time: 14:30
*/
const
Vue
=
require
(
'yoho-vue'
);
const
lazyload
=
require
(
'yoho-vue-lazyload'
);
const
brandShareBox
=
require
(
'channel/brand-share-box.vue'
);
require
(
'common/vue-filter'
);
Vue
.
use
(
lazyload
);
new
Vue
({
el
:
'#brand-share'
,
components
:
{
brandShareBox
}
});
...
...
public/vue/channel/brand-share-box.vue
0 → 100644
View file @
331b260
<template>
</template>
<style>
body{
background-color:#ff0000;
}
</style>
<script>
</script>
...
...
Please
register
or
login
to post a comment