|
@@ -35,8 +35,8 @@
|
|
|
<view class="title text_twoLine">{{ item.Title }}</view>
|
|
|
<view class="share share-collected">
|
|
|
<image @click="myLeavingMessageHandler(item)" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/leaving_message.png"></image>
|
|
|
- <image @click="isCollectionHandeler(item)" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/not_collected.png"></image>
|
|
|
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/collected_icon.png"></image>
|
|
|
+ <image v-if="item.IsCollect" @click="isCollectionHandeler(item)" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/collected_icon.png"></image>
|
|
|
+ <image v-else @click="isCollectionHandeler(item)" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/not_collected.png"></image>
|
|
|
<button class="share-icon" open-type="share" :data-item="item">
|
|
|
<image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/share-btn-icon.png"></image>
|
|
|
</button>
|
|
@@ -87,7 +87,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { Mine, Report, Home ,User} from "@/config/api.js";
|
|
|
+import { Mine, Report, Home, User } from "@/config/api.js";
|
|
|
import videoModule from "@/components/videoModule/index";
|
|
|
import audioModule from "@/components/audioModule/index";
|
|
|
import freeCharge from "@/components/freeCharge";
|
|
@@ -119,6 +119,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
|
+ uni.hideShareMenu();
|
|
|
this.getCollectList();
|
|
|
},
|
|
|
components: {
|
|
@@ -135,10 +136,7 @@ export default {
|
|
|
PageSize: this.pageSize,
|
|
|
CurrentIndex: this.page_no,
|
|
|
})
|
|
|
- : await User.getListMicroRoadshow({
|
|
|
- PageSize: this.pageSize,
|
|
|
- CurrentIndex: this.page_no,
|
|
|
- });
|
|
|
+ : this.getrroadshowList();
|
|
|
if (res.Ret === 200) {
|
|
|
this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
|
|
|
this.totalPage = res.Data.Paging.Pages; //总页数
|
|
@@ -154,7 +152,36 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ async getrroadshowList() {
|
|
|
+ const res = await User.getListMicroRoadshow();
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ let VideoIds = res.Data.VideoIds;
|
|
|
+ let AudioIds = res.Data.AudioIds;
|
|
|
+ let ActivityVideoIds = res.Data.ActivityVideoIds;
|
|
|
+ const resRoadshow = await Home.microRoadshowList({
|
|
|
+ PageSize: this.pageSize,
|
|
|
+ CurrentIndex: this.page_no,
|
|
|
+ AudioIds,
|
|
|
+ VideoIds,
|
|
|
+ ActivityVideoIds,
|
|
|
+ });
|
|
|
+ if (resRoadshow.Ret === 200) {
|
|
|
+ this.status = this.page_no < resRoadshow.Data.Paging.Pages ? "loadmore" : "nomore";
|
|
|
+ this.totalPage = resRoadshow.Data.Paging.Pages; //总页数
|
|
|
+ if (this.page_no === 1) {
|
|
|
+ this.collectList = resRoadshow.Data.List || [];
|
|
|
+ this.haveData = this.collectList.length ? true : false;
|
|
|
+ if (this.refresh) {
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ this.refresh = false;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.collectList = this.collectList.concat(resRoadshow.Data.List);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(res);
|
|
|
+ },
|
|
|
// 去往文章详情页面
|
|
|
goDetailReport(item) {
|
|
|
this.$store.dispatch("checkHandle", "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId);
|
|
@@ -268,6 +295,28 @@ export default {
|
|
|
}
|
|
|
this.showAudioPop = true;
|
|
|
},
|
|
|
+ // 微路演留言
|
|
|
+ myLeavingMessageHandler(item) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/activityPages/generationAsk/generationAsk?id=" + (item.Type == 3 ? item.Id : item.ActivityId) + "&type=文章&roadshow=" + item.Type + "&roadshowTitle=" + item.Title,
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ // 微路演收藏
|
|
|
+ async isCollectionHandeler(item) {
|
|
|
+ const res = await Home.microRoadshowCollect({
|
|
|
+ Id: item.Id,
|
|
|
+ SourceType: item.Type,
|
|
|
+ });
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ let index = this.collectList.findIndex((key) => key.Id == item.Id);
|
|
|
+ this.collectList.splice(index, 1);
|
|
|
+ uni.showToast({
|
|
|
+ title: res.Msg,
|
|
|
+ duration: 2000,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
curVoiceId() {
|
|
@@ -302,6 +351,22 @@ export default {
|
|
|
this.refresh = true;
|
|
|
this.getCollectList();
|
|
|
},
|
|
|
+ /** 用户点击分享*/
|
|
|
+ onShareAppMessage: function ({ from, target }) {
|
|
|
+ if (from === "button") {
|
|
|
+ let item = target.dataset.item;
|
|
|
+ let audio_id = item.Type == 1 || item.AudioType == 1 ? item.Id : "";
|
|
|
+ // type=2 -- 活动视频 type=3 -- 产业视频
|
|
|
+ let video_id = item.Type == 2 || item.Type == 3 ? item.Id : "";
|
|
|
+ let activity_id = item.Type == 2 && item.ActivityId > 0 ? item.ActivityId : "";
|
|
|
+ let title_share = item.AudioTitle || item.Title;
|
|
|
+ return {
|
|
|
+ title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : title_share,
|
|
|
+ path: "/pages/index/index?topTabsActive=4" + "&audioShareId=" + audio_id + "&videoShareId=" + video_id + "&activityId=" + activity_id,
|
|
|
+ imageUrl: item.AudioShareImg || item.ShareImg,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|