Showing
2 changed files
with
37 additions
and
2 deletions
@@ -56,7 +56,7 @@ const _baseShop = (req, res, data) => { | @@ -56,7 +56,7 @@ const _baseShop = (req, res, data) => { | ||
56 | }; | 56 | }; |
57 | 57 | ||
58 | /** | 58 | /** |
59 | - * 店铺首页 || 若店铺使用基础模板跳转品牌页 | 59 | + * 店铺首页 || 若店铺使用基础模板就使用基础模板 |
60 | * @return int | 60 | * @return int |
61 | */ | 61 | */ |
62 | const _shop = (req, res, shopId) => { | 62 | const _shop = (req, res, shopId) => { |
@@ -125,12 +125,18 @@ const category = (req, res) => { | @@ -125,12 +125,18 @@ const category = (req, res) => { | ||
125 | // 品牌|店铺落地页 | 125 | // 品牌|店铺落地页 |
126 | const brand = (req, res, next) => { | 126 | const brand = (req, res, next) => { |
127 | let params = Object.assign({}, req.query); | 127 | let params = Object.assign({}, req.query); |
128 | - let domain = req.query.domain || 'colormad'; | 128 | + let domain = req.query.domain; |
129 | let uid = req.user.uid; | 129 | let uid = req.user.uid; |
130 | let brandId = 0; | 130 | let brandId = 0; |
131 | let brandLogo = {}; | 131 | let brandLogo = {}; |
132 | let title = ''; | 132 | let title = ''; |
133 | 133 | ||
134 | + /* tar add 160909 如果有 shop_id 直接跳转 */ | ||
135 | + if (req.query.shop_id) { | ||
136 | + _shop(req, res, req.query.shop_id); | ||
137 | + return; | ||
138 | + } | ||
139 | + | ||
134 | if (!domain) { | 140 | if (!domain) { |
135 | res.redirect('/?go=1'); | 141 | res.redirect('/?go=1'); |
136 | } | 142 | } |
@@ -57,6 +57,35 @@ | @@ -57,6 +57,35 @@ | ||
57 | </div> | 57 | </div> |
58 | {{/ brandHome}} | 58 | {{/ brandHome}} |
59 | 59 | ||
60 | + <!-- 基础店铺页面 --> | ||
61 | + {{# baseShopHome}} | ||
62 | + <div id="brand-header" class="brand-header" data-id={{id}} data-isbaseshop="{{isBaseShop}}"> | ||
63 | + <img class="lazy" data-original={{banner}}> | ||
64 | + <a class="btn-intro" href="javascript:void(0);"> | ||
65 | + 店铺介绍 | ||
66 | + </a> | ||
67 | + <a class="btn-col{{#if collected}} coled{{/if}}" href="javascript:void(0);"> | ||
68 | + <span class="iconfont"></span> | ||
69 | + <span class="txt"></span> | ||
70 | + </a> | ||
71 | + </div> | ||
72 | + <div id="intro-box" class="brand-intro-box hide"> | ||
73 | + <div id="brand-intro" class="brand-intro"> | ||
74 | + <h2>店铺介绍</h2> | ||
75 | + <div class="con"> | ||
76 | + {{{intro}}} | ||
77 | + </div> | ||
78 | + <p class="fo"> | ||
79 | + <span class="iconfont"></span> | ||
80 | + 100%品牌授权正品 | ||
81 | + </p> | ||
82 | + <span class="iconfont close-intro"></span> | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + <input type="hidden" name="app_version" value="{{appVersion}}"> | ||
86 | + {{/ baseShopHome}} | ||
87 | + <!-- /基础店铺页面 --> | ||
88 | + | ||
60 | <ul id="list-nav" class="list-nav clearfix"> | 89 | <ul id="list-nav" class="list-nav clearfix"> |
61 | {{#if isSearch}} | 90 | {{#if isSearch}} |
62 | <li class="new active buriedpoint" data-bp-id=""> | 91 | <li class="new active buriedpoint" data-bp-id=""> |
-
Please register or login to post a comment