Authored by 郭成尧

global

@@ -241,10 +241,17 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW @@ -241,10 +241,17 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW
241 if (_.get(value, 'singleImage.data.length', false)) { 241 if (_.get(value, 'singleImage.data.length', false)) {
242 let tagList = _.get(value, 'singleImage.data[0].tagList', []); 242 let tagList = _.get(value, 'singleImage.data[0].tagList', []);
243 243
  244 +
244 if (tagList.length > 0) { 245 if (tagList.length > 0) {
245 _.forEach(tagList, (tag, tagIndex) => { 246 _.forEach(tagList, (tag, tagIndex) => {
246 247
247 // 链接 248 // 链接
  249 + if (tag.is_global === 'Y') {
  250 + tagList[tagIndex].href = '//m.yohobuy.com/product/global/' + tag.product_skn + '.html';
  251 + } else {
  252 + tagList[tagIndex].href = '//m.yohobuy.com/product/' + tag.product_skn + '.html';
  253 + }
  254 +
248 tagList[tagIndex].href = '//m.yohobuy.com/product/' + tag.product_skn + '.html'; 255 tagList[tagIndex].href = '//m.yohobuy.com/product/' + tag.product_skn + '.html';
249 tagList[tagIndex].isApp = isApp; 256 tagList[tagIndex].isApp = isApp;
250 }); 257 });