Authored by 王水玲

mip

@@ -29,16 +29,11 @@ const shop = { @@ -29,16 +29,11 @@ const shop = {
29 */ 29 */
30 entry(req, res, next) { 30 entry(req, res, next) {
31 const shopId = _.parseInt(stringProcess.paramsFilter(req.params.shop_id || req.query.shop_id)); 31 const shopId = _.parseInt(stringProcess.paramsFilter(req.params.shop_id || req.query.shop_id));
32 - const brandId = _.parseInt(stringProcess.paramsFilter(req.query.brand_id));  
33 const domain = req.params.domain || req.query.domain; 32 const domain = req.params.domain || req.query.domain;
34 const uid = req.user.uid; 33 const uid = req.user.uid;
35 34
36 req.shopInfo = {}; 35 req.shopInfo = {};
37 36
38 - if (brandId) {  
39 - return shop.brand(req, res, next); // 品牌列表,有品牌ID就直接展示为品牌  
40 - }  
41 -  
42 return co(function* () { 37 return co(function* () {
43 if (shopId) { 38 if (shopId) {
44 let shopInfoApi = (yield req.ctx(shopModel).getShopInfo(shopId, uid)) || {}; 39 let shopInfoApi = (yield req.ctx(shopModel).getShopInfo(shopId, uid)) || {};
@@ -194,6 +189,7 @@ const shop = { @@ -194,6 +189,7 @@ const shop = {
194 }) 189 })
195 }, 190 },
196 title: `${shopInfo.shop_name}_${shopInfo.shop_name}品牌官方旗舰店-YOHO!BUY 有货官网`, 191 title: `${shopInfo.shop_name}_${shopInfo.shop_name}品牌官方旗舰店-YOHO!BUY 有货官网`,
  192 + pageTitle: shopInfo.shop_name || '',
197 allGoodsUrl: helpers.urlFormat('', { 193 allGoodsUrl: helpers.urlFormat('', {
198 shop_id: shopId, 194 shop_id: shopId,
199 title: '全部商品', 195 title: '全部商品',
@@ -565,4 +565,5 @@ @@ -565,4 +565,5 @@
565 border-bottom: 1px solid #e0e0e0; 565 border-bottom: 1px solid #e0e0e0;
566 float: left; 566 float: left;
567 margin-top: 20px; 567 margin-top: 20px;
  568 + font-size: 12px;
568 } 569 }
@@ -173,6 +173,7 @@ ol, ul { @@ -173,6 +173,7 @@ ol, ul {
173 .mip-footer .option { 173 .mip-footer .option {
174 background-color: #fff; 174 background-color: #fff;
175 font-size: 0; 175 font-size: 0;
  176 + overflow: hidden;
176 } 177 }
177 178
178 .mip-footer .option a { 179 .mip-footer .option a {
@@ -371,7 +372,18 @@ ol, ul { @@ -371,7 +372,18 @@ ol, ul {
371 color: #fff; 372 color: #fff;
372 float: right; 373 float: right;
373 font-weight: normal; 374 font-weight: normal;
374 - padding-right: 60px; 375 + position: absolute;
  376 + right: 60px;
  377 +}
  378 +
  379 +.page-header .head-title {
  380 + max-width: 39%;
  381 + height: 40px;
  382 + overflow: hidden;
  383 + display: inline-block;
  384 + text-overflow: ellipsis;
  385 + white-space: nowrap;
  386 +
375 } 387 }
376 /*header*/ 388 /*header*/
377 389
@@ -160,4 +160,5 @@ @@ -160,4 +160,5 @@
160 border-top: 1px solid #e0e0e0; 160 border-top: 1px solid #e0e0e0;
161 float: left; 161 float: left;
162 width: 100%; 162 width: 100%;
  163 + font-size: 12px;
163 } 164 }
@@ -10,7 +10,6 @@ @@ -10,7 +10,6 @@
10 10
11 .reds-shop .branner-top { 11 .reds-shop .branner-top {
12 width: 100%; 12 width: 100%;
13 - height: 117px;  
14 position: relative; 13 position: relative;
15 overflow: hidden; 14 overflow: hidden;
16 background-size: 100%; 15 background-size: 100%;
@@ -26,6 +25,8 @@ @@ -26,6 +25,8 @@
26 .reds-shop .branner-top .shop-back-img img { 25 .reds-shop .branner-top .shop-back-img img {
27 z-index: -1; 26 z-index: -1;
28 position: relative; 27 position: relative;
  28 + width: 100%;
  29 + height: 100%;
29 } 30 }
30 31
31 .reds-shop .logo { 32 .reds-shop .logo {
@@ -389,6 +390,7 @@ @@ -389,6 +390,7 @@
389 border-top: 1px solid #e0e0e0; 390 border-top: 1px solid #e0e0e0;
390 float: left; 391 float: left;
391 width: 100%; 392 width: 100%;
  393 + font-size: 12px;
392 } 394 }
393 395
394 .shop-foot-wrapper { 396 .shop-foot-wrapper {
1 <div class="page-header"> 1 <div class="page-header">
2 {{#if pageHead}} 2 {{#if pageHead}}
  3 + <span class="head-title">{{pageTitle}}</span>
3 <a href="{{pageHead.url}}" class="head-a">{{pageHead.text}}</a> 4 <a href="{{pageHead.url}}" class="head-a">{{pageHead.text}}</a>
4 {{else}} 5 {{else}}
5 {{pageTitle}} 6 {{pageTitle}}