Authored by ccbikai

明星详情 修改

... ... @@ -136,6 +136,10 @@ const _processDetailData = (list) => {
if (data.share && data.share.url) {
data.share.url = _processShareUrl(data);
}
let urlObj = url.parse(data.url);
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
data.url += appUrl;
formatData.push(data);
});
... ...