Authored by 郭成尧

新建店铺分享页面

... ... @@ -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', {
... ...
... ... @@ -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); // 全部分类数据列表
... ...
<div id="brand-share">
<brand-share-box></brand-share-box>
</div>
... ...
/**
* 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
}
});
... ...
<template>
</template>
<style>
body{
background-color:#ff0000;
}
</style>
<script>
</script>
... ...