Authored by zhangxiaoru

逛底部下载

@@ -33,6 +33,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => { @@ -33,6 +33,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => {
33 if (i < len) { 33 if (i < len) {
34 let build = {}; 34 let build = {};
35 let art = articleContent[i]; 35 let art = articleContent[i];
  36 +
36 // 文字 37 // 文字
37 if (art.text && art.text.data && art.text.data.text) { 38 if (art.text && art.text.data && art.text.data.text) {
38 build.text = art.text.data.text; 39 build.text = art.text.data.text;
@@ -147,7 +148,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => { @@ -147,7 +148,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => {
147 } else { 148 } else {
148 callArtGoodGroup(++ii, len2); 149 callArtGoodGroup(++ii, len2);
149 } 150 }
150 - 151 +
151 } else { 152 } else {
152 contents.push(build); 153 contents.push(build);
153 joinContentFunc(++i, len); 154 joinContentFunc(++i, len);
@@ -307,6 +308,7 @@ const index = (req, res, next) => { @@ -307,6 +308,7 @@ const index = (req, res, next) => {
307 // guang双头部的问题 20160601 308 // guang双头部的问题 20160601
308 // 正确的URL 309 // 正确的URL
309 data.guang.author.url = helpers.https(`${detail.getAuthor.url}&openby:yohobuy={"action":"go.h5","params":{"param":{},"share":"","id":${detail.getAuthor.author_id},"type":0,"islogin":"N","url":"${detail.getAuthor.url}"}}`); 310 data.guang.author.url = helpers.https(`${detail.getAuthor.url}&openby:yohobuy={"action":"go.h5","params":{"param":{},"share":"","id":${detail.getAuthor.author_id},"type":0,"islogin":"N","url":"${detail.getAuthor.url}"}}`);
  311 +
310 // 错误的URL 312 // 错误的URL
311 // data.guang.author.url = helpers.https(`${detail.getAuthor.url}&openby:yohobuy={"action":"go.h5","params":{"param":{"id":"${detail.getAuthor.author_id}"},"share":"","id":${detail.getAuthor.author_id},"type":0,"islogin":"N","url":"${helpers.urlFormat('/author/index', {}, 'guang')}"}}`); 313 // data.guang.author.url = helpers.https(`${detail.getAuthor.url}&openby:yohobuy={"action":"go.h5","params":{"param":{"id":"${detail.getAuthor.author_id}"},"share":"","id":${detail.getAuthor.author_id},"type":0,"islogin":"N","url":"${helpers.urlFormat('/author/index', {}, 'guang')}"}}`);
312 } 314 }
@@ -349,6 +351,7 @@ const index = (req, res, next) => { @@ -349,6 +351,7 @@ const index = (req, res, next) => {
349 data.description = detail.getArticle.article_summary; 351 data.description = detail.getArticle.article_summary;
350 data.description_more = true; 352 data.description_more = true;
351 } 353 }
  354 +
352 // 标识有微信分享 355 // 标识有微信分享
353 data.hasWxShare = true; 356 data.hasWxShare = true;
354 res.render('info/index', Object.assign({ 357 res.render('info/index', Object.assign({
@@ -509,4 +512,4 @@ module.exports = { @@ -509,4 +512,4 @@ module.exports = {
509 index, 512 index,
510 mini, 513 mini,
511 foryoho 514 foryoho
512 -};  
  515 +};
@@ -279,13 +279,14 @@ $('img').on('load', function() { @@ -279,13 +279,14 @@ $('img').on('load', function() {
279 279
280 $('#float-layer-close').on('touchend', function(index) { 280 $('#float-layer-close').on('touchend', function(index) {
281 var appClose = window.cookie('_float-layer-app-close') || '0'; 281 var appClose = window.cookie('_float-layer-app-close') || '0';
  282 +
282 // window.setCookie('_float-layer-app-close', 1); 283 // window.setCookie('_float-layer-app-close', 1);
283 console.log(appClose === 1); 284 console.log(appClose === 1);
284 285
285 if (parseInt(appClose) === 0) { 286 if (parseInt(appClose) === 0) {
286 - window.setCookie('_float-layer-app-close', 1); 287 + window.setCookie('_float-layer-app-close', 1);
287 } else if (parseInt(appClose) === 1) { 288 } else if (parseInt(appClose) === 1) {
288 - window.setCookie('_float-layer-app-close', 2); 289 + window.setCookie('_float-layer-app-close', 2);
289 } 290 }
290 291
291 $('#float-layer-app').hide(); 292 $('#float-layer-app').hide();
@@ -301,7 +302,7 @@ $('img').on('load', function() { @@ -301,7 +302,7 @@ $('img').on('load', function() {
301 }); 302 });
302 303
303 if (typeof window.cookie === 'function' && parseInt(window.cookie('_float-layer-app-close')) != 2) { 304 if (typeof window.cookie === 'function' && parseInt(window.cookie('_float-layer-app-close')) != 2) {
304 - console 305 + console;
305 $('#float-layer-app').show(); 306 $('#float-layer-app').show();
306 } else { 307 } else {
307 $('#float-layer-app').hide(); 308 $('#float-layer-app').hide();