Authored by 陈峰

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

... ... @@ -112,7 +112,8 @@ const shop = {
description: title + '|Yoho!Buy有货' + title + '潮流服饰官方授权店!100%品牌正品保证,支持货到付款。',
domain: req.query.domain,
shopPage: true,
_noLazy: true
_noLazy: true,
localCss: true
});
}
... ... @@ -190,7 +191,8 @@ const shop = {
shopPage: true,
_noLazy: true,
appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' +
shopId + '","shop_name":"' + baseShop.shopName + '"}}'
shopId + '","shop_name":"' + baseShop.shopName + '"}}',
localCss: true
});
});
} else {
... ... @@ -222,7 +224,8 @@ const shop = {
shopId: shopId,
shopPage: true,
appPath: 'yohobuy://yohobuy.com/goapp?openby:yohobuy={"action":"go.shop","params":{"shop_template_type":"1","shop_id":"' +
shopId + '","shop_name":"' + result.seoTitle + '"}}'
shopId + '","shop_name":"' + result.seoTitle + '"}}',
localCss: true
});
});
... ...
... ... @@ -46,11 +46,8 @@
{{#ifor localCss vue}}
<link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/{{module}}.{{page}}.css">
{{^}}
{{#if shopPage}}
<link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/shop.css">
{{^}}
<link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/index.css">
{{/if}}
<link rel="stylesheet" media="all" href="//{{devHost}}:5001/bundle/index.css">
{{/ifor}}
{{^}}
... ... @@ -60,11 +57,7 @@
{{#ifor localCss vue}}
<link rel="stylesheet" media="all" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.css">
{{^}}
{{#if shopPage}}
<link rel="stylesheet" media="all" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/shop.css">
{{^}}
<link rel="stylesheet" media="all" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css">
{{/if}}
<link rel="stylesheet" media="all" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css">
{{/ifor}}
{{/if}}
<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'], () => {
// postcss compile in dev
gulp.task('postcss-dev', () => {
return gulp.src(['scss/shop.css', 'scss/index.css', 'scss/common.css'])
return gulp.src(['scss/index.css', 'scss/common.css'])
.pipe(sourcemaps.init())
.pipe(postcss(postcssPlugin(env.dev), {
parser: require('postcss-scss')
... ... @@ -179,7 +179,7 @@ gulp.task('font', () => {
// postcss compile in pro
gulp.task('postcss', ['assets'], () => {
return gulp.src(['scss/shop.css', 'scss/index.css', 'scss/common.css'])
return gulp.src(['scss/index.css', 'scss/common.css'])
.pipe(postcss(postcssPlugin(env.pro), {
parser: require('postcss-scss')
}))
... ...
/**
* 品牌店铺首页
*/
require('./shop/coupon');
require('../../scss/product/shop/shop.page.css');
var $ = require('yoho-jquery'),
lazyLoad = require('yoho-jquery-lazyload'),
Swiper = require('yoho-swiper');
... ...
... ... @@ -5,6 +5,7 @@
* @date: 2015/10/20
*/
require('../../../scss/product/shop/shop.page.css');
var $ = require('yoho-jquery'),
Hammer = require('yoho-hammer'),
ellipsis = require('yoho-mlellipsis'),
... ...
@charset "utf-8";
/* base */
@import "../../layout/loading";
@import "../../layout/swiper";
/* page */
/*@import "channel/index";*/
@import "../../channel/banner-top";
@import "../../channel/floor-header";
@import "../../channel/search";
@import "../../common/index";
/*@import "product/index";*/
@import "../search/search";
@import "../search/list";
@import "../sale/sale";
@import "../shop/shop-index";
@import "../shop/shop-prodfile";
@import "../shop/product-category";
@import "../shop/shop-index-coupon";
@import "../../home/hot-category";
... ...
@charset "utf-8";
/* base */
@import "layout/reset";
@import "layout/common";
@import "layout/loading";
@import "layout/swiper";
@import "layout/header";
@import "layout/footer";
@import "layout/utils";
/* page */
/*@import "channel/index";*/
@import "channel/banner-top";
@import "channel/floor-header";
@import "channel/search";
@import "common/index";
/*@import "product/index";*/
@import "product/search/search";
@import "product/search/list";
@import "product/sale/sale";
@import "product/shop/shop-index";
@import "product/shop/shop-prodfile";
@import "product/shop/product-category";
@import "product/shop/shop-index-coupon";
@import "home/hot-category";