Authored by 周少峰

http2https

... ... @@ -151,7 +151,7 @@ const _footerBanner = co(function * () {
const CODE = '20110609-152143';
let banner = yield indexApi.getByNodeContent(CODE);
return _.get(banner, 'data', '').replace('http://', '//');
return _.get(banner, 'data', '').replace(/http:\/\//g, '//');
});
/**
... ...
... ... @@ -893,7 +893,8 @@ const _getDetailDataBySizeInfo = (sizeInfo) => {
'<img border="0" src=': '<img border="0" class="lazy img-responsive" width="720" height="200" ' +
'src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///93d3f///yH5BAEAAAMALAAAAAABAAEAAAICVAEAOw==" ' +
'data-original=',
'.jpg"': '.jpg?imageslim"'
'.jpg"': '.jpg?imageslim"',
'http://': '//'
};
let intro = _.get(sizeInfo, 'productIntroBo.productIntro', '');
... ...
... ... @@ -755,7 +755,7 @@ exports.handleFilterData = (origin, params, total) => {
checked: parseInt(params.color, 10) === parseInt(value.color_id, 10),
href: handleFilterUrl(params, {color: value.color_id}),
name: value.color_name,
rgb: value.color_value ? 'url(' + value.color_value + ')' : '#' + value.color_code
rgb: value.color_value ? 'url(' + value.color_value.replace('http://', '//') + ')' : '#' + value.color_code
};
// 处理颜色选中数据
... ...
... ... @@ -73,12 +73,12 @@ module.exports = [
{
type: TYPE.rewrite,
origin: /\/erp2goods(.*)/,
target: helpers.urlFormat(`/common/erp2goods`)
target: helpers.urlFormat('/common/erp2goods')
},
{
type: TYPE.redirect,
origin: '/index.html',
target: helpers.urlFormat(`/`)
target: helpers.urlFormat('/')
}
];
... ...
{{#if @root.geetest}}
<script>window._geeCaptcha = true;</script>
<script src="http://static.geetest.com/static/tools/gt.js"></script>
<script src="https://static.geetest.com/static/tools/gt.js"></script>
{{/if}}
... ...