Authored by 陈峰

移除shop css统一改为js require 样式资源

@@ -112,7 +112,8 @@ const shop = { @@ -112,7 +112,8 @@ const shop = {
112 description: title + '|Yoho!Buy有货' + title + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。', 112 description: title + '|Yoho!Buy有货' + title + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。',
113 domain: req.query.domain, 113 domain: req.query.domain,
114 shopPage: true, 114 shopPage: true,
115 - _noLazy: true 115 + _noLazy: true,
  116 + localCss: true
116 }); 117 });
117 } 118 }
118 119
@@ -190,7 +191,8 @@ const shop = { @@ -190,7 +191,8 @@ const shop = {
190 shopPage: true, 191 shopPage: true,
191 _noLazy: true, 192 _noLazy: true,
192 appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' + 193 appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' +
193 - shopId + '","shop_name":"' + baseShop.shopName + '"}}' 194 + shopId + '","shop_name":"' + baseShop.shopName + '"}}',
  195 + localCss: true
194 }); 196 });
195 }); 197 });
196 } else { 198 } else {
@@ -222,7 +224,8 @@ const shop = { @@ -222,7 +224,8 @@ const shop = {
222 shopId: shopId, 224 shopId: shopId,
223 shopPage: true, 225 shopPage: true,
224 appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' + 226 appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' +
225 - shopId + '","shop_name":"' + result.seoTitle + '"}}' 227 + shopId + '","shop_name":"' + result.seoTitle + '"}}',
  228 + localCss: true
226 }); 229 });
227 230
228 }); 231 });
@@ -46,11 +46,8 @@ @@ -46,11 +46,8 @@
46 {{#ifor localCss vue}} 46 {{#ifor localCss vue}}
47 <link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/{{module}}.{{page}}.css"> 47 <link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/{{module}}.{{page}}.css">
48 {{^}} 48 {{^}}
49 - {{#if shopPage}}  
50 - <link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/shop.css">  
51 - {{^}}  
52 - <link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/index.css">  
53 - {{/if}} 49 +
  50 + <link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/index.css">
54 {{/ifor}} 51 {{/ifor}}
55 {{^}} 52 {{^}}
56 53
@@ -60,11 +57,7 @@ @@ -60,11 +57,7 @@
60 {{#ifor localCss vue}} 57 {{#ifor localCss vue}}
61 <link rel="stylesheet" media="all" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.css"> 58 <link rel="stylesheet" media="all" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.css">
62 {{^}} 59 {{^}}
63 - {{#if shopPage}}  
64 - <link rel="stylesheet" media="all" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/shop.css">  
65 - {{^}}  
66 - <link rel="stylesheet" media="all" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css">  
67 - {{/if}} 60 + <link rel="stylesheet" media="all" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css">
68 {{/ifor}} 61 {{/ifor}}
69 {{/if}} 62 {{/if}}
70 <link rel="apple-touch-icon-precomposed" href="http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png"> 63 <link rel="apple-touch-icon-precomposed" href="http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png">
@@ -148,7 +148,7 @@ gulp.task('dist', ['ge'], () => { @@ -148,7 +148,7 @@ gulp.task('dist', ['ge'], () => {
148 148
149 // postcss compile in dev 149 // postcss compile in dev
150 gulp.task('postcss-dev', () => { 150 gulp.task('postcss-dev', () => {
151 - return gulp.src(['scss/shop.css', 'scss/index.css', 'scss/common.css']) 151 + return gulp.src(['scss/index.css', 'scss/common.css'])
152 .pipe(sourcemaps.init()) 152 .pipe(sourcemaps.init())
153 .pipe(postcss(postcssPlugin(env.dev), { 153 .pipe(postcss(postcssPlugin(env.dev), {
154 parser: require('postcss-scss') 154 parser: require('postcss-scss')
@@ -179,7 +179,7 @@ gulp.task('font', () => { @@ -179,7 +179,7 @@ gulp.task('font', () => {
179 179
180 // postcss compile in pro 180 // postcss compile in pro
181 gulp.task('postcss', ['assets'], () => { 181 gulp.task('postcss', ['assets'], () => {
182 - return gulp.src(['scss/shop.css', 'scss/index.css', 'scss/common.css']) 182 + return gulp.src(['scss/index.css', 'scss/common.css'])
183 .pipe(postcss(postcssPlugin(env.pro), { 183 .pipe(postcss(postcssPlugin(env.pro), {
184 parser: require('postcss-scss') 184 parser: require('postcss-scss')
185 })) 185 }))
1 /** 1 /**
2 * 品牌店铺首页 2 * 品牌店铺首页
3 */ 3 */
  4 +
4 require('./shop/coupon'); 5 require('./shop/coupon');
  6 +require('../../scss/product/shop/shop.page.css');
5 var $ = require('yoho-jquery'), 7 var $ = require('yoho-jquery'),
6 lazyLoad = require('yoho-jquery-lazyload'), 8 lazyLoad = require('yoho-jquery-lazyload'),
7 Swiper = require('yoho-swiper'); 9 Swiper = require('yoho-swiper');
@@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
5 * @date: 2015/10/20 5 * @date: 2015/10/20
6 */ 6 */
7 7
  8 +require('../../../scss/product/shop/shop.page.css');
8 var $ = require('yoho-jquery'), 9 var $ = require('yoho-jquery'),
9 Hammer = require('yoho-hammer'), 10 Hammer = require('yoho-hammer'),
10 ellipsis = require('yoho-mlellipsis'), 11 ellipsis = require('yoho-mlellipsis'),
  1 +@charset "utf-8";
  2 +
  3 +/* base */
  4 +@import "../../layout/loading";
  5 +@import "../../layout/swiper";
  6 +
  7 +/* page */
  8 +/*@import "channel/index";*/
  9 +@import "../../channel/banner-top";
  10 +@import "../../channel/floor-header";
  11 +@import "../../channel/search";
  12 +
  13 +@import "../../common/index";
  14 +
  15 +/*@import "product/index";*/
  16 +@import "../search/search";
  17 +@import "../search/list";
  18 +@import "../sale/sale";
  19 +@import "../shop/shop-index";
  20 +@import "../shop/shop-prodfile";
  21 +@import "../shop/product-category";
  22 +@import "../shop/shop-index-coupon";
  23 +@import "../../home/hot-category";
1 -@charset "utf-8";  
2 -  
3 -/* base */  
4 -@import "layout/reset";  
5 -@import "layout/common";  
6 -@import "layout/loading";  
7 -@import "layout/swiper";  
8 -@import "layout/header";  
9 -@import "layout/footer";  
10 -@import "layout/utils";  
11 -  
12 -/* page */  
13 -/*@import "channel/index";*/  
14 -@import "channel/banner-top";  
15 -@import "channel/floor-header";  
16 -@import "channel/search";  
17 -  
18 -@import "common/index";  
19 -  
20 -/*@import "product/index";*/  
21 -@import "product/search/search";  
22 -@import "product/search/list";  
23 -@import "product/sale/sale";  
24 -@import "product/shop/shop-index";  
25 -@import "product/shop/shop-prodfile";  
26 -@import "product/shop/product-category";  
27 -@import "product/shop/shop-index-coupon";  
28 -@import "home/hot-category";