Authored by yyq

图片helper

... ... @@ -20,7 +20,8 @@ const config = require('../config/common');
exports.image = (url, width, height, mode) => {
mode = _.isNumber(mode) ? mode : 2;
url = url || '';
return url.replace(/{width}/g, width).replace(/{height}/g, height).replace(/{mode}/g, mode);
url = url.replace(/{width}/g, width).replace(/{height}/g, height).replace(/{mode}/g, mode);
return url.replace('http:', '');
};
/**
... ...
... ... @@ -98,7 +98,7 @@ function getShoppingKey() {
a.async = 1;
a.src = j;
m.parentNode.insertBefore(a, m);
}(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas'));
}(window, document, 'script', '//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas'));
(function() {
var uid = getUid();
... ...