Authored by 周少峰

Merge branch 'feature/wwwGuang' into gray

@@ -71,7 +71,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -71,7 +71,7 @@ module.exports = class extends global.yoho.BaseModel {
71 [{ 71 [{
72 name: '逛', 72 name: '逛',
73 pathTitle: '逛', 73 pathTitle: '逛',
74 - href: helpers.urlFormat('', '', 'guang') 74 + href: helpers.urlFormat('/guang/', null)
75 }] 75 }]
76 ); 76 );
77 77
@@ -239,7 +239,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -239,7 +239,7 @@ module.exports = class extends global.yoho.BaseModel {
239 239
240 return { 240 return {
241 img: helpers.image(adData.src, 640, 640), 241 img: helpers.image(adData.src, 640, 640),
242 - url: helpers.urlFormat('/info/index', param, 'guang'), 242 + url: helpers.urlFormat('/guang/info/index', param),
243 title: adData.title, 243 title: adData.title,
244 bgColor: adData.bgColor 244 bgColor: adData.bgColor
245 }; 245 };
@@ -1029,10 +1029,10 @@ module.exports = class extends global.yoho.BaseModel { @@ -1029,10 +1029,10 @@ module.exports = class extends global.yoho.BaseModel {
1029 pageSize: pageSize, 1029 pageSize: pageSize,
1030 page: page, 1030 page: page,
1031 list: list, 1031 list: list,
1032 - baseUrl: helpers.urlFormat('/info/index', { 1032 + baseUrl: helpers.urlFormat('/guang/info/index', {
1033 id: aid, 1033 id: aid,
1034 pageSize: pageSize 1034 pageSize: pageSize
1035 - }, 'guang') 1035 + })
1036 }; 1036 };
1037 }); 1037 });
1038 } 1038 }
@@ -239,7 +239,7 @@ const favoriteArticleListAsync = (uid, udid, page, limit, type)=> { @@ -239,7 +239,7 @@ const favoriteArticleListAsync = (uid, udid, page, limit, type)=> {
239 name: item.title, 239 name: item.title,
240 img: helpers.image(item.src, 146, 96), 240 img: helpers.image(item.src, 146, 96),
241 desc: item.intro, 241 desc: item.intro,
242 - url: helpers.urlFormat('/' + item.id + '.html', '', 'guang') 242 + url: helpers.urlFormat(`/guang/${item.id}.html`, null)
243 }; 243 };
244 }); 244 });
245 245
@@ -722,7 +722,7 @@ const getShopData = (shopId, channel, params, shopInfo) => { @@ -722,7 +722,7 @@ const getShopData = (shopId, channel, params, shopInfo) => {
722 722
723 for (let i = 0; i < 3; i++) { 723 for (let i = 0; i < 3; i++) {
724 trendList.push({ 724 trendList.push({
725 - href: helpers.urlFormat(`/${articleList[i].id}.html`, '', 'guang'), 725 + href: helpers.urlFormat(`/guang/${articleList[i].id}.html`, null),
726 src: helpers.getForceSourceUrl(articleList[i].src) + 726 src: helpers.getForceSourceUrl(articleList[i].src) +
727 '?imageView2/1/w/{width}/h/{height}', 727 '?imageView2/1/w/{width}/h/{height}',
728 mainTitle: articleList[i].title, 728 mainTitle: articleList[i].title,
@@ -104,7 +104,7 @@ const _proListHandler = (data, params) => { @@ -104,7 +104,7 @@ const _proListHandler = (data, params) => {
104 if (pro.recommend_type === 'fashionArticle') { 104 if (pro.recommend_type === 'fashionArticle') {
105 105
106 proObj = { 106 proObj = {
107 - url: helpers.urlFormat('/' + pro.data.id + '.html', {channel: params.channel}, 'guang'), 107 + url: helpers.urlFormat(`/guang/${pro.data.id}.html`, null),
108 src: pro.data.src, 108 src: pro.data.src,
109 title: pro.data.title, 109 title: pro.data.title,
110 publishTime: moment(parseInt(pro.data.publish_time_long, 10)).format('YYYY年MM月DD HH:mm'), 110 publishTime: moment(parseInt(pro.data.publish_time_long, 10)).format('YYYY年MM月DD HH:mm'),