Authored by 沈志敏

去掉http

@@ -79,6 +79,10 @@ function search() { @@ -79,6 +79,10 @@ function search() {
79 type: 'GET', 79 type: 'GET',
80 url: introUrl, 80 url: introUrl,
81 success: function(data) { 81 success: function(data) {
  82 + if (typeof data === 'string') {
  83 + data = data.replace(/https?:/gi, '');
  84 + }
  85 +
82 $productDesc = $('#productDesc'); 86 $productDesc = $('#productDesc');
83 $productDesc.append(data); 87 $productDesc.append(data);
84 88
@@ -48,9 +48,9 @@ function request() { @@ -48,9 +48,9 @@ function request() {
48 48
49 if (preferenceUrl) { 49 if (preferenceUrl) {
50 $.get(preferenceUrl).then(function(html) { 50 $.get(preferenceUrl).then(function(html) {
51 - if (typeof html !== 'string') return; 51 + if (typeof html !== 'string') { return; }
52 52
53 - $recommendForYou.html(html).show(); 53 + $recommendForYou.html(html.replace(/https?:/gi, '')).show();
54 lazyLoad($recommendForYou.find('img.lazy')); 54 lazyLoad($recommendForYou.find('img.lazy'));
55 55
56 // 为你优选埋点- 加载 56 // 为你优选埋点- 加载