bding hace 1 año
padre
commit
95c9dc6198

+ 3 - 2
activityPages/activityDetail/activityDetail.vue

@@ -678,6 +678,7 @@ export default {
           list: this.detailData.VoiceList,
           activityId: this.detailData.ActivityId,
           activityTitle: this.detailData.ActivityName,
+          recordList: this.detailData
         });
       }
       this.$refs.childrenAudio.isRecord = false;
@@ -715,7 +716,7 @@ export default {
     //视频的播放事件
     handelVideoPlay() {
       if (!this.isVideoPlay) {
-        Home.microAideoHistoryAdd({ VideoId: this.detailData.ActivityId, SourceType: 2 });
+        Home.microAideoHistoryAdd({ SourceId: this.detailData.ActivityId, SourceType: 2 });
       }
       this.isVideoPlay = true;
     },
@@ -732,7 +733,7 @@ export default {
     async isCollectionHandeler() {
       await this.$store.dispatch("showLoginModal");
       const res = await Home.microRoadshowCollect({
-        Id: this.detailData.FileType == 1 ? this.detailData.VoiceList.ActivityVoiceId : this.detailData.VideoDetail.Id,
+        SourceId: this.detailData.FileType == 1 ? this.detailData.VoiceList.ActivityVoiceId : this.detailData.VideoDetail.Id,
         SourceType: this.detailData.FileType,
         PageRouter: this.$store.state.pageRouterReport,
       });

+ 1 - 1
components/ItemComponent/roadshowItem.vue

@@ -144,7 +144,7 @@ export default {
           Name: item.Title,
           PlaySeconds: item.PlaySeconds,
         };
-        this.$store.commit("audioBg/addAudio", { list: VoiceList, indexId: item.ActivityId, activityTitle: item.Title });
+        this.$store.commit("audioBg/addAudio", { list: VoiceList, indexId: item.ActivityId, activityTitle: item.Title, recordList: item });
       }
       this.$parent.showAudioPop = true;
     },

+ 1 - 1
components/activity/mediaMixins.js

@@ -66,7 +66,7 @@ export default {
           this.globalBgAudioManager.pause();
         }
       } else {
-        this.$store.commit("audioBg/addAudio", { list: item.VoiceList, activityId: item.ActivityId, activityTitle: item.ActivityName });
+        this.$store.commit("audioBg/addAudio", { list: item.VoiceList, activityId: item.ActivityId, activityTitle: item.ActivityName,recordList: item });
       }
       this.showAudioPop = true;
     },

+ 4 - 1
components/audioModule/index.vue

@@ -269,9 +269,12 @@ export default {
 
     // 播放了记录
     backAudioPlay() {
+      console.log(this.$store.state.audioBg);
+      let recordList = this.$store.state.audioBg.recordList;
       if ((this.$store.state.audioBg.activityId || this.$store.state.audioBg.indexId) && this.palyTime >= 0) {
         activity.backAudioPlay({
-          ActivityId: this.$store.state.audioBg.activityId || this.$store.state.audioBg.indexId || "",
+          SourceId: recordList.SourceId || recordList.ActivityId,
+          SourceType: recordList.SourceId ? recordList.Type : 1,
           PlaySeconds: this.palyTime,
           PageRouter: this.$store.state.pageRouterReport,
         });

+ 2 - 2
components/report/timeLine.vue

@@ -91,7 +91,7 @@ export default {
             Name: item.Title,
             PlaySeconds: item.VoicePlaySeconds,
           };
-          this.$store.commit("audioBg/addAudio", { list: VoiceList, indexId: item.Id, activityTitle: item.Title });
+          this.$store.commit("audioBg/addAudio", { list: VoiceList, indexId: item.Id, activityTitle: item.Title, recordList: item });
         }
         this.showAudioPop = true;
       } else {
@@ -121,7 +121,7 @@ export default {
           TimeLineId: item.TimeLineId,
         });
       } else {
-      await  Reports.morning_meeting_history({ Id: item.Id, SourcePage: "展开" });
+        await Reports.morning_meeting_history({ Id: item.Id, SourcePage: "展开" });
         this.getRecordTracking("展开收起", { Id: item.Id });
       }
 

+ 1 - 1
components/videoModule/index.vue

@@ -70,7 +70,7 @@ export default {
     //视频的播放事件
     handelVideoPlayChild() {
       this.videoContext = wx.createVideoContext(this.videoPopList.Id.toString(), this);
-      Home.microAideoHistoryAdd({ VideoId: this.videoPopList.ActivityId || this.videoPopList.Id, SourceType: this.videoPopList.ActivityId ? 2 : 1, PageRouter: this.$store.state.pageRouterReport });
+      Home.microAideoHistoryAdd({ SourceId: this.videoPopList.ActivityId || this.videoPopList.Id, SourceType: this.videoPopList.ActivityId ? 2 : 1, PageRouter: this.$store.state.pageRouterReport });
       this.curVideoTime = 0;
       if (this.curVideoId == this.videoPopList.Id || this.activityVideoId == this.videoPopList.ActivityId) {
         this.curVideoTime = this.$store.state.videoPlay.palyCurrentTime;

+ 1 - 1
config/modules/activity.js

@@ -92,7 +92,7 @@ export const activity = {
     },
     //背景音频开始播放
     backAudioPlay: (params) => {
-      return postHttp("/activity/voiceHistory/add", params, 0);
+      return postHttp("/micro_roadshow/videoHistory/add", params, 0);
     },
     //专项产业报名取消报名接口
     activityApecialAdd: (params) => {

+ 1 - 1
pageMy/myCollection/myCollection.vue

@@ -223,7 +223,7 @@ export default {
     async isCollectionHandeler(item) {
       await this.$store.dispatch("showLoginModal");
       const res = await Home.microRoadshowCollect({
-        Id: item.Id,
+        SourceId: item.SourceId,
         SourceType: item.Type,
         PageRouter: this.$store.state.pageRouterReport,
       });

+ 1 - 1
pages-purchaser/columnDetail/columnDetail.vue

@@ -149,7 +149,7 @@ export default {
   /** 用户点击分享 */
   onShareAppMessage: function (res) {
     return {
-      title: "研选专栏",
+      title: this.authorDetail.SpecialName,
       path: "/pages-purchaser/columnDetail/columnDetail?id=" + this.detailUserId,
     };
   },

+ 1 - 1
pages-purchaser/noteAndViewpoint/noteAndViewpoint.vue

@@ -111,7 +111,7 @@ export default {
   /** 用户点击分享 */
   onShareAppMessage: function (res) {
     return {
-      title: (this.detailDataForm.Type == 1 ? "笔记" : "观点") + "详情",
+      title: this.detailDataForm.Title,
       path: "/pages-purchaser/noteAndViewpoint/noteAndViewpoint?id=" + this.detailId,
     };
   },

+ 1 - 1
pages-search/components/roadshow.vue

@@ -44,7 +44,7 @@ export default {
     async isCollectionHandeler(item) {
       await this.$store.dispatch("showLoginModal");
       const res = await Home.microRoadshowCollect({
-        Id: item.Id,
+        SourceId: item.SourceId,
         SourceType: item.Type,
         PageRouter: this.$store.state.pageRouterReport,
       });

+ 3 - 3
pages-search/components/synthetical.vue

@@ -8,7 +8,7 @@
             <block v-if="item.Source === 'newchart'">
               <ChartItem :list="item.Newchart" :isMyChartCollection="isMyChartCollection" @myChartIsTop="myChartIsTop" @myChartCollect="myChartCollect" />
             </block>
-            <block v-if="item.Source === 'roadshow' || item.Source === 'activityvideo' || item.Source === 'activityvoice'">
+            <block v-if="item.Source === 'roadshow' || item.Source === 'activityvideo' || item.Source === 'activityvoice' || item.Source === 'askserievideo'">
               <RoadshowItem :list="item.Roadshow" @isCollectionHandeler="isCollectionHandeler" />
             </block>
             <block v-if="item.Source === 'activity' || item.Source === 'activityspecial'">
@@ -33,7 +33,7 @@
             <block v-if="item.Source === 'industrialsource'">
               <Industrialsource :list="item.IndustrialResource" />
             </block>
-            <block v-if="item.Source === 'roadshow' || item.Source === 'activityvideo' || item.Source === 'activityvoice'">
+            <block v-if="item.Source === 'roadshow' || item.Source === 'activityvideo' || item.Source === 'activityvoice' || item.Source === 'askserievideo'">
               <RoadshowItem :list="item.Roadshow" @isCollectionHandeler="isCollectionHandeler" />
             </block>
             <block v-if="item.Source === 'activity' || item.Source === 'activityspecial'">
@@ -126,7 +126,7 @@ export default {
               Article: item.Article || item.YanxuanSpecial,
               Newchart: item.Newchart,
               Activity: item.Activity || item.Activityspecial,
-              Roadshow: item.Roadshow || item.Activityvideo || item.Activityvoice,
+              Roadshow: item.Roadshow || item.Activityvideo || item.Activityvoice || item.AskserieVideo,
               ThreeSummary: item.Researchsummary || item.Minutessummary || item.Meetingreviewchapt || item.ProductInterior,
               IndustrialResource: item.IndustrialResource,
             };

+ 4 - 4
pages/index/index.vue

@@ -50,7 +50,7 @@
                 <block v-if="item.Source === 'newchart'">
                   <ChartItem :list="item.Newchart" :isMyChartCollection="isMyChartCollection" @myChartIsTop="myChartIsTop" @myChartCollect="myChartCollect" />
                 </block>
-                <block v-if="item.Source === 'roadshow' || item.Source === 'activityvideo' || item.Source === 'activityvoice'">
+                <block v-if="item.Source === 'roadshow' || item.Source === 'activityvideo' || item.Source === 'activityvoice' || item.Source === 'askserievideo'">
                   <RoadshowItem :list="item.Roadshow" @isCollectionHandeler="isCollectionHandeler" />
                 </block>
                 <block v-if="item.Source === 'activity' || item.Source === 'activityspecial'">
@@ -69,7 +69,7 @@
                 <block v-if="item.Source === 'newchart'">
                   <ChartItem :list="item.Newchart" :isMyChartCollection="isMyChartCollection" @myChartIsTop="myChartIsTop" @myChartCollect="myChartCollect" />
                 </block>
-                <block v-if="item.Source === 'roadshow' || item.Source === 'activityvideo' || item.Source === 'activityvoice'">
+                <block v-if="item.Source === 'roadshow' || item.Source === 'activityvideo' || item.Source === 'activityvoice' || item.Source === 'askserievideo'">
                   <RoadshowItem :list="item.Roadshow" @isCollectionHandeler="isCollectionHandeler" />
                 </block>
                 <block v-if="item.Source === 'activity' || item.Source === 'activityspecial'">
@@ -213,7 +213,7 @@ export default {
               Article: item.Article || item.YanxuanSpecial,
               Newchart: item.Newchart,
               Activity: item.Activity || item.Activityspecial,
-              Roadshow: item.Roadshow || item.Activityvideo || item.Activityvoice,
+              Roadshow: item.Roadshow || item.Activityvideo || item.Activityvoice || item.AskserieVideo,
               ThreeSummary: item.Researchsummary || item.Minutessummary || item.Meetingreviewchapt || item.ProductInterior || item.ReportSelection,
             };
             listArr.push({ ...obj, IsShowData: obj.Article || obj.Newchart || obj.Roadshow || obj.Activity || obj.ThreeSummary || item.YanxuanSpecial });
@@ -229,7 +229,7 @@ export default {
     async isCollectionHandeler(item) {
       await this.$store.dispatch("showLoginModal");
       const res = await Home.microRoadshowCollect({
-        Id: item.Id,
+        SourceId: item.SourceId,
         SourceType: item.Type,
         PageRouter: this.$store.state.pageRouterReport,
       });

+ 23 - 33
pages/material/material.vue

@@ -5,7 +5,7 @@
       <view class="top-tabs">
         <block v-for="item in topTabBars" :key="item.Id">
           <view v-if="item.IsShow" :class="['item', item.Id == topTabsActive && 'tabs-active']" @click="topTabsChange(item)">
-            {{ showTabBarsText(item.Name) }}
+            {{ item.Name}}
             <block v-if="(item.Id === 3 || item.Name == '图表') && wholeShowListData.IsShowChart">
               <image class="limit-img tabs-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png" mode=""></image>
             </block>
@@ -139,16 +139,15 @@ export default {
       showTransition: false, //点击绝密后的隐现
       isBindingMobile: true, //图表我的收藏是否绑定手机号
       videoContext: null,
-      audioShareId: "", //通过分享单个音频点进页面时使用
-      videoShareId: "", //通过分享单个视频点进页面时使用
-      activityShareId: "",
+      shareSourceType: "", //通过分享单个音频点进页面时使用
+      shareSourceId: "", //通过分享单个视频点进页面时使用
       roadshowPageList: [], //音频  视频 list
       showAudioPop: false,
       mediumActive: "",
       mediumSelect: [
         { name: "路演回放", value: 1, IsChoose: false },
-        { name: "问答系列", value: 3, IsChoose: false },
-        { name: "调研反馈", value: 2, IsChoose: false },
+        { name: "问答系列", value: 2, IsChoose: false },
+        { name: "调研反馈", value: 3, IsChoose: false },
       ],
       listChartPermission: [], // 行业
       chartPermissionName: "全行业",
@@ -171,9 +170,8 @@ export default {
       this.topTabsActive = optios.topTabsActive;
       this.secondActive = optios.secondActive;
       this.chartChildrenActive = optios.childrenActive;
-      this.videoShareId = optios.videoShareId;
-      this.audioShareId = optios.audioShareId;
-      this.activityShareId = optios.activityId;
+      this.shareSourceType = optios.SourceType;
+      this.shareSourceId = optios.SourceId;
     }
     this.getTabs();
     this.getReportList();
@@ -214,8 +212,8 @@ export default {
       this.secondActive = "";
       this.pageNum = 1;
       this.dataList = [];
-      this.audioShareId = "";
-      this.videoShareId = "";
+      this.shareSourceId = "";
+      this.shareSourceType = "";
       uni.pageScrollTo({
         scrollTop: 0,
         duration: 0,
@@ -261,6 +259,8 @@ export default {
     },
     // 点击为路演的筛选
     mediumClickHandler(item) {
+      this.shareSourceType = "";
+      this.shareSourceId = "";
       item.isSelect = !item.isSelect;
       let arr = [];
       this.mediumSelect.forEach((key) => {
@@ -329,10 +329,11 @@ export default {
         const res = await Home.microRoadshowList({
           PageSize: this.pageSize,
           CurrentIndex: this.pageNum,
-          AudioId: this.audioShareId,
-          VideoId: this.activityShareId ? "" : this.videoShareId,
-          ActivityVideoId: this.activityShareId && this.videoShareId,
+          SourceId: this.shareSourceId,
+          SourceType: this.shareSourceType,
           Filter: this.mediumActive,
+          ChartPermissionIds: this.chartPermissionIds,
+          SearchType: this.mediumActive,
         });
         if (res.Ret === 200) {
           this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
@@ -481,7 +482,7 @@ export default {
     async isCollectionHandeler(item) {
       await this.$store.dispatch("showLoginModal");
       const res = await Home.microRoadshowCollect({
-        Id: item.Id,
+        SourceId: item.SourceId,
         SourceType: item.Type,
         PageRouter: this.$store.state.pageRouterReport,
       });
@@ -494,12 +495,6 @@ export default {
         });
       }
     },
-    showTabBarsText(key) {
-      if (key == "微路演") {
-        return "路演回放";
-      }
-      return key;
-    },
     // 选择的选中事件
     overallClick(item) {
       item.IsChoose = !item.IsChoose;
@@ -510,7 +505,7 @@ export default {
       this.chartPermissionIds = "";
       this.listChartPermission.map((item) => (item.IsChoose = false));
       this.chartPermissionName = "全行业";
-      this.getReportList();
+      this.initData();
     },
     // 下拉选择的确定事件
     replacementConfirm() {
@@ -529,7 +524,7 @@ export default {
         this.chartPermissionName = str.join(",");
       }
       this.chartPermissionIds = arr.join(",");
-      this.getReportList();
+      this.initData();
       this.selectComponent("#industry").toggle(false);
     },
     // 获取权限、所有的行业
@@ -557,9 +552,8 @@ export default {
   },
   /* 下拉刷新 */
   onPullDownRefresh: Throttle(function () {
-    this.audioShareId = "";
-    this.videoShareId = "";
-    this.activityShareId = "";
+    this.shareSourceId = "";
+    this.shareSourceType = "";
     this.status = "loadmore";
     this.refresh = true;
     this.dataList = [];
@@ -577,15 +571,11 @@ export default {
   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;
-      this.getRecordTracking("微路演转发", { ActivityId: item.ActivityId, Id: item.Id, Type: item.Type });
+      this.getRecordTracking("微路演转发", { SourceId: item.SourceId, SourceType: item.SourceType });
       return {
-        title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : title_share,
-        path: "/pages/material/material?topTabsActive=4" + "&audioShareId=" + audio_id + "&videoShareId=" + video_id + "&activityId=" + activity_id,
+        title: title_share,
+        path: "/pages/material/material?topTabsActive=4" + "&SourceId=" + item.SourceId + "&SourceType=" + item.Type,
         imageUrl: item.AudioShareImg || item.ShareImg,
       };
     } else {

+ 1 - 1
reportPages/IndustryReport/IndustryReport.vue

@@ -309,7 +309,7 @@ export default {
     },
     //
     async handelVideoBindplay() {
-      const res = await Home.microAideoHistoryAdd({ VideoId: this.industryVideo.Id, SourceType: 1, PageRouter: this.$store.state.pageRouterReport });
+      const res = await Home.microAideoHistoryAdd({ SourceId: this.industryVideo.Id, SourceType: this.industryVideo.Type, PageRouter: this.$store.state.pageRouterReport });
     },
     //展开收起晨会内容
     handleExpand(item, index) {

+ 4 - 1
store/modules/audioBg.js

@@ -14,11 +14,13 @@ const audioModules = {
     parseIntShow: false, //
     isDragSlide: false, //是否在拖动进度条
     isAudioEnded: false, //
+    recordList: {}, //记录音频播放的数据
   },
   mutations: {
     addAudio(state, payload) {
       state.show = true;
       state.list = payload.list;
+      state.recordList = payload.recordList;
       state.activityTitle = payload.activityTitle;
       state.activityId = payload.activityId || 0;
       state.reportId = payload.reportId || 0;
@@ -39,9 +41,10 @@ const audioModules = {
     removeAudio(state, payload) {
       state.show = false;
       state.list = [];
+      state.recordList = {};
       state.activityId = 0;
       state.reportId = 0;
-      state.indexId = 0
+      state.indexId = 0;
       state.curTime = 0;
       state.paused = true;
     },