diff --git a/pages/news_list/index.vue b/pages/news_list/index.vue index 13eab91..eb65898 100644 --- a/pages/news_list/index.vue +++ b/pages/news_list/index.vue @@ -82,7 +82,8 @@ page: 1, limit: 8, status: false, - scrollLeft: 0 + scrollLeft: 0, + globalData:{}, }; }, /** @@ -135,6 +136,11 @@ that.$set(that, 'articleList', articleListNew); that.status = limit > len; that.page = that.page; + // #ifdef H5 + if (this.$wechat.isWeixin()) { + this.setShareInfo(); + } + // #endif }); }, getArticleCate: function() { @@ -154,7 +160,28 @@ this.status = false; 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); + }); + + }, + } } diff --git a/pages/users/user_info/index.vue b/pages/users/user_info/index.vue index 0505d16..5f80a63 100644 --- a/pages/users/user_info/index.vue +++ b/pages/users/user_info/index.vue @@ -113,7 +113,15 @@ - 推荐人电话 + 推荐人 + + + + + + + + 导师 diff --git a/pages/users/user_modify_mes/index.vue b/pages/users/user_modify_mes/index.vue index 55c5e9e..4dbe427 100644 --- a/pages/users/user_modify_mes/index.vue +++ b/pages/users/user_modify_mes/index.vue @@ -17,6 +17,14 @@ 年龄 + + 推荐人 + + + + + + 导师