|
|
@ -82,7 +82,8 @@ |
|
|
|
page: 1, |
|
|
|
page: 1, |
|
|
|
limit: 8, |
|
|
|
limit: 8, |
|
|
|
status: false, |
|
|
|
status: false, |
|
|
|
scrollLeft: 0 |
|
|
|
scrollLeft: 0, |
|
|
|
|
|
|
|
globalData:{}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
/** |
|
|
|
/** |
|
|
@ -135,6 +136,11 @@ |
|
|
|
that.$set(that, 'articleList', articleListNew); |
|
|
|
that.$set(that, 'articleList', articleListNew); |
|
|
|
that.status = limit > len; |
|
|
|
that.status = limit > len; |
|
|
|
that.page = that.page; |
|
|
|
that.page = that.page; |
|
|
|
|
|
|
|
// #ifdef H5 |
|
|
|
|
|
|
|
if (this.$wechat.isWeixin()) { |
|
|
|
|
|
|
|
this.setShareInfo(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// #endif |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
getArticleCate: function() { |
|
|
|
getArticleCate: function() { |
|
|
@ -154,7 +160,28 @@ |
|
|
|
this.status = false; |
|
|
|
this.status = false; |
|
|
|
this.getCidArticle(); |
|
|
|
this.getCidArticle(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
setShareInfo: function() { |
|
|
|
|
|
|
|
let href = location.href; |
|
|
|
|
|
|
|
this.globalData = uni.getStorageSync('GLOBAL_DATA') |
|
|
|
|
|
|
|
let configAppMessage = { |
|
|
|
|
|
|
|
desc: this.globalData.share_info, |
|
|
|
|
|
|
|
title: this.globalData.share_title, |
|
|
|
|
|
|
|
link: href, |
|
|
|
|
|
|
|
imgUrl: this.globalData.share_pic, |
|
|
|
|
|
|
|
success: function() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
this.$wechat.wechatEvevt([ |
|
|
|
|
|
|
|
"updateAppMessageShareData", |
|
|
|
|
|
|
|
"updateTimelineShareData" |
|
|
|
|
|
|
|
], configAppMessage).then(res => { |
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
|
|
// console.log(err); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|