bding 1 year ago
parent
commit
80ea468d35

+ 2 - 9
components/ItemComponent/roadshowItem.vue

@@ -37,9 +37,7 @@
         </button>
       </view>
     </view>
-    <view v-if="showAudioBox">
-      <audioModule :showAudioPop.sync="showAudioPop" />
-    </view>
+
     <videoModule :showVideoPop.sync="showVideoPop" :curVideoId="curVideoId" :videoPopList="videoPopList" />
     <modalDialog :isShowhasPermission="isShowhasPermission" :applyForIsShow="applyForIsShow" :jurisdictionList="jurisdictionList" :hasPermission="hasPermission" />
   </view>
@@ -48,7 +46,6 @@
 <script>
 import { Search, activity, Report, Home } from "@/config/api";
 import { MultimediaIcon } from "@/utils/styleClassify";
-import audioModule from "@/components/audioModule/index";
 import videoModule from "@/components/videoModule/index";
 import modalDialog from "@/components/modalDialog.vue";
 export default {
@@ -73,7 +70,6 @@ export default {
     };
   },
   components: {
-    audioModule,
     videoModule,
     modalDialog,
   },
@@ -86,9 +82,6 @@ export default {
       //当前音频是否暂停状态
       return this.$store.state.audioBg.paused;
     },
-    showAudioBox() {
-      return this.$store.state.audioBg.parseIntShow;
-    },
   },
   watch: {},
   created() {},
@@ -153,7 +146,7 @@ export default {
         };
         this.$store.commit("audioBg/addAudio", { list: VoiceList, indexId: item.ActivityId, activityTitle: item.Title });
       }
-      this.showAudioPop = true;
+      this.$parent.showAudioPop = true;
     },
     //音视频的图标
     classifyIcon(item) {

+ 7 - 0
pageMy/myCollection/myCollection.vue

@@ -60,6 +60,9 @@
     </view>
     <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
     <Loading />
+     <view v-if="showAudioBox">
+      <audioModule :showAudioPop.sync="showAudioPop" />
+    </view>
   </view>
 </template>
 
@@ -68,6 +71,8 @@ import { Mine, Report, Home, User, Chart, purchaserApi } from "@/config/api.js";
 import RoadshowItem from "@/components/ItemComponent/roadshowItem.vue";
 import freeCharge from "@/components/freeCharge";
 import ChartItem from "@/components/ItemComponent/chartItem.vue";
+import audioModule from "@/components/audioModule/index";
+
 export default {
   data() {
     return {
@@ -90,6 +95,7 @@ export default {
         { name: "图表", id: 3 },
       ],
       tabsActive: 1,
+      showAudioPop:false
     };
   },
   onLoad() {
@@ -100,6 +106,7 @@ export default {
     freeCharge,
     RoadshowItem,
     ChartItem,
+    audioModule
   },
   methods: {
     /* 获取列表 */

+ 13 - 3
pages-search/components/roadshow.vue

@@ -5,12 +5,16 @@
         <RoadshowItem :list="item" @isCollectionHandeler="isCollectionHandeler" />
       </view>
     </view>
+    <view v-if="showAudioBox">
+      <audioModule :showAudioPop.sync="showAudioPop" />
+    </view>
   </view>
 </template>
 
 <script>
 import { Home } from "@/config/api";
 import RoadshowItem from "@/components/ItemComponent/roadshowItem.vue";
+import audioModule from "@/components/audioModule/index";
 
 export default {
   props: {
@@ -25,10 +29,16 @@ export default {
     },
   },
   data() {
-    return {};
+    return {
+      showAudioPop: false,
+    };
+  },
+  computed: {
+    showAudioBox() {
+      return this.$store.state.audioBg.parseIntShow;
+    },
   },
-  computed: {},
-  components: { RoadshowItem },
+  components: { RoadshowItem, audioModule },
   methods: {
     // 微路演收藏
     async isCollectionHandeler(item) {

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

@@ -51,6 +51,9 @@
       <text>暂时没有符合条件的活动</text>
     </view>
     <morning-dlg v-if="isMorningShow" :isMorningShow.sync="isMorningShow" :morningItem.sync="morningItem" />
+    <view v-if="showAudioBox">
+      <audioModule :showAudioPop.sync="showAudioPop" />
+    </view>
   </view>
 </template>
 
@@ -63,8 +66,9 @@ import ActivityItem from "@/components/ItemComponent/activityItem.vue";
 import ItemContent from "./ItemContent.vue";
 import MorningDlg from "./morningDlg.vue";
 import Industrialsource from "./industrialsource.vue";
+import audioModule from "@/components/audioModule/index";
 export default {
-  components: { Industrialsource, ChartItem, ReportItem, RoadshowItem, ActivityItem, ItemContent, MorningDlg },
+  components: { Industrialsource, ChartItem, ReportItem, RoadshowItem, ActivityItem, ItemContent, MorningDlg, audioModule },
   props: {
     searchTxt: {
       type: String,
@@ -85,6 +89,7 @@ export default {
       isMorningShow: false, // 晨会的弹框
       morningItem: {}, // 晨会的弹框
       haveData: true,
+      showAudioPop: false,
     };
   },
   watch: {
@@ -98,8 +103,11 @@ export default {
       immediate: true,
     },
   },
-  computed: {},
-  components: {},
+  computed: {
+    showAudioBox() {
+      return this.$store.state.audioBg.parseIntShow;
+    },
+  },
   methods: {
     // 获取数据
     async getComprehensiveList() {

+ 10 - 0
pages/index/index.vue

@@ -106,6 +106,9 @@
     </suspenButton>
     <Loading />
     <videoModule :showVideoPop.sync="showVideoPopUp" :videoPopList="videoPopListUp" />
+    <view v-if="showAudioBox">
+      <audioModule :showAudioPop.sync="showAudioPop" />
+    </view>
   </page-meta>
 </template>
 
@@ -120,6 +123,8 @@ import MorningDlg from "./components/morningDlg.vue";
 import ItemContent from "./components/ItemContent.vue";
 import videoModule from "@/components/videoModule/index";
 import suspenButton from "@/components/suspen_button.vue";
+import audioModule from "@/components/audioModule/index";
+
 export default {
   data() {
     return {
@@ -144,6 +149,7 @@ export default {
       actIdLable: "", // 标签选择后的ID
       isTopHeight: "",
       lableArrList: [],
+      showAudioPop: false,
     };
   },
   computed: {
@@ -173,6 +179,9 @@ export default {
 
       return rows;
     },
+    showAudioBox() {
+      return this.$store.state.audioBg.parseIntShow;
+    },
   },
   components: {
     ChartItem,
@@ -184,6 +193,7 @@ export default {
     ItemContent,
     videoModule,
     suspenButton,
+    audioModule,
   },
   methods: {
     // 获取最先数据

+ 6 - 5
pages/material/material.vue

@@ -78,6 +78,9 @@
       </block>
     </view>
     <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
+    <view v-if="showAudioBox">
+      <audioModule :showAudioPop.sync="showAudioPop" />
+    </view>
     <Loading />
   </view>
 </template>
@@ -87,7 +90,7 @@ import { Home, Reports, Chart, activity } from "@/config/api.js";
 import { Throttle, deepCopy } from "@/config/util.js";
 import freeCharge from "@/components/freeCharge";
 import SearchBar from "@/components/search-bar/searchBar.vue";
-
+import audioModule from "@/components/audioModule/index";
 import ChartItem from "@/components/ItemComponent/chartItem.vue";
 import ReportItem from "@/components/ItemComponent/reportItem.vue";
 import RoadshowItem from "@/components/ItemComponent/roadshowItem.vue";
@@ -121,10 +124,7 @@ export default {
       videoShareId: "", //通过分享单个视频点进页面时使用
       activityShareId: "",
       roadshowPageList: [], //音频  视频 list
-      // mediumSelect: [
-      //   { name: "音频", value: "2", isSelect: false },
-      //   { name: "视频", value: "1", isSelect: false },
-      // ],
+      showAudioPop: false,
       mediumActive: "",
     };
   },
@@ -134,6 +134,7 @@ export default {
     ReportItem,
     RoadshowItem,
     SearchBar,
+    audioModule,
   },
   watch: {},
   onLoad(optios) {