Authored by 沈志敏

去掉http

... ... @@ -79,6 +79,10 @@ function search() {
type: 'GET',
url: introUrl,
success: function(data) {
if (typeof data === 'string') {
data = data.replace(/https?:/gi, '');
}
$productDesc = $('#productDesc');
$productDesc.append(data);
... ...
... ... @@ -48,9 +48,9 @@ function request() {
if (preferenceUrl) {
$.get(preferenceUrl).then(function(html) {
if (typeof html !== 'string') return;
if (typeof html !== 'string') { return; }
$recommendForYou.html(html).show();
$recommendForYou.html(html.replace(/https?:/gi, '')).show();
lazyLoad($recommendForYou.find('img.lazy'));
// 为你优选埋点- 加载
... ...