Authored by zhangxiaoru

逛底部下载

... ... @@ -33,6 +33,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => {
if (i < len) {
let build = {};
let art = articleContent[i];
// 文字
if (art.text && art.text.data && art.text.data.text) {
build.text = art.text.data.text;
... ... @@ -147,7 +148,7 @@ const _pageArticleContent = (articleContent, isApp, gender) => {
} else {
callArtGoodGroup(++ii, len2);
}
} else {
contents.push(build);
joinContentFunc(++i, len);
... ... @@ -307,6 +308,7 @@ const index = (req, res, next) => {
// guang双头部的问题 20160601
// 正确的URL
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}"}}`);
// 错误的URL
// 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')}"}}`);
}
... ... @@ -349,6 +351,7 @@ const index = (req, res, next) => {
data.description = detail.getArticle.article_summary;
data.description_more = true;
}
// 标识有微信分享
data.hasWxShare = true;
res.render('info/index', Object.assign({
... ... @@ -509,4 +512,4 @@ module.exports = {
index,
mini,
foryoho
};
\ No newline at end of file
};
... ...
... ... @@ -279,13 +279,14 @@ $('img').on('load', function() {
$('#float-layer-close').on('touchend', function(index) {
var appClose = window.cookie('_float-layer-app-close') || '0';
// window.setCookie('_float-layer-app-close', 1);
console.log(appClose === 1);
if (parseInt(appClose) === 0) {
window.setCookie('_float-layer-app-close', 1);
window.setCookie('_float-layer-app-close', 1);
} else if (parseInt(appClose) === 1) {
window.setCookie('_float-layer-app-close', 2);
window.setCookie('_float-layer-app-close', 2);
}
$('#float-layer-app').hide();
... ... @@ -301,7 +302,7 @@ $('img').on('load', function() {
});
if (typeof window.cookie === 'function' && parseInt(window.cookie('_float-layer-app-close')) != 2) {
console
console;
$('#float-layer-app').show();
} else {
$('#float-layer-app').hide();
... ...