Authored by 王水玲

星潮bug 修改

@@ -59,9 +59,12 @@ const _processIndexData = (list) => { @@ -59,9 +59,12 @@ const _processIndexData = (list) => {
59 // 首页资源位数据处理 59 // 首页资源位数据处理
60 if (list.ads) { 60 if (list.ads) {
61 _.forEach(list.ads.data, (data) => { 61 _.forEach(list.ads.data, (data) => {
  62 + let urlObj = url.parse(data.url);
  63 + let appUrl = `&openby:yohobuy{"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"N","type":0,"updateflag":"N","url":"${ urlObj.protocol + '//' + urlObj.host + urlObj.pathname}","param":${JSON.stringify(qs.parse(urlObj.query))}}}`.replace(/\//g, '\/'); // eslint-disable-line
  64 +
62 formatData.ads.push({ 65 formatData.ads.push({
63 src: data.src, 66 src: data.src,
64 - url: data.url 67 + url: data.url + appUrl
65 }); 68 });
66 }); 69 });
67 } 70 }
This diff could not be displayed because it is too large.
@@ -223,7 +223,7 @@ function setIndexAction() { @@ -223,7 +223,7 @@ function setIndexAction() {
223 return false; 223 return false;
224 }); 224 });
225 225
226 - $('.artice-imgs-area img').on('load', function() { 226 + $('img').on('load', function() {
227 starIScroll.iScroll.refresh(); 227 starIScroll.iScroll.refresh();
228 }); 228 });
229 } 229 }