|
@@ -18,9 +18,33 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="read-more" v-if="item.IndustrialSubjectList">
|
|
|
- <text class="text-box text_oneLine" v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId">
|
|
|
+<!-- <text class="text-box text_oneLine" v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId">
|
|
|
{{ val.SubjectName }}
|
|
|
- </text>
|
|
|
+ </text> -->
|
|
|
+ <view class="industry-video-item" @click.stop="handelVideoPlay(item)"
|
|
|
+ :style="{'background-image':'url('+item.IndustryVideo.BackgroundImg+ ')'}" v-if="item.IndustryVideo">
|
|
|
+ 5min
|
|
|
+ <br />
|
|
|
+ 逻辑解析
|
|
|
+ <view class="industry-video-icon">
|
|
|
+ <image src="https://hzstatic.hzinsights.com/cygx/video-right-top-icon.svg"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view v-if="item.IndustryVideo" style="display: flex;flex-wrap: wrap;width: 420rpx;">
|
|
|
+ <view v-for="val in item.IndustrialSubjectList.slice(0,4)" :key="val.IndustrialSubjectId" class="text-box text_oneLine">
|
|
|
+ {{ val.SubjectName }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <block v-if="item.IndustryVideo && item.IndustrialSubjectList.length>4">
|
|
|
+ <view v-for="val in item.IndustrialSubjectList.slice(4)" :key="val.IndustrialSubjectId" class="text-box text_oneLine">
|
|
|
+ {{ val.SubjectName }}
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-if="!item.IndustryVideo">
|
|
|
+ <view v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId" class="text-box text_oneLine">
|
|
|
+ {{ val.SubjectName }}
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</view>
|
|
|
</block>
|
|
@@ -40,10 +64,34 @@
|
|
|
<u-icon name="arrow-right" color="#BDBDBD" size="34"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="read-more" @click="themeDetails(item)" v-if="item.IndustrialSubjectList">
|
|
|
- <text class="text-box text_oneLine" v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId">
|
|
|
+ <view class="read-more" v-if="item.IndustrialSubjectList">
|
|
|
+<!-- <text class="text-box text_oneLine" v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId">
|
|
|
{{ val.SubjectName }}
|
|
|
- </text>
|
|
|
+ </text> -->
|
|
|
+ <view class="industry-video-item" @click.stop="handelVideoPlay(item)"
|
|
|
+ :style="{'background-image':'url('+item.IndustryVideo.BackgroundImg+ ')'}" v-if="item.IndustryVideo">
|
|
|
+ 5min
|
|
|
+ <br />
|
|
|
+ 逻辑解析
|
|
|
+ <view class="industry-video-icon">
|
|
|
+ <image src="https://hzstatic.hzinsights.com/cygx/video-right-top-icon.svg"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view v-if="item.IndustryVideo" style="display: flex;flex-wrap: wrap;width: 420rpx;">
|
|
|
+ <view v-for="val in item.IndustrialSubjectList.slice(0,4)" :key="val.IndustrialSubjectId" class="text-box text_oneLine">
|
|
|
+ {{ val.SubjectName }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <block v-if="item.IndustryVideo && item.IndustrialSubjectList.length>4">
|
|
|
+ <view v-for="val in item.IndustrialSubjectList.slice(4)" :key="val.IndustrialSubjectId" class="text-box text_oneLine">
|
|
|
+ {{ val.SubjectName }}
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-if="!item.IndustryVideo">
|
|
|
+ <view v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId" class="text-box text_oneLine">
|
|
|
+ {{ val.SubjectName }}
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</view>
|
|
|
</block>
|
|
@@ -116,13 +164,16 @@
|
|
|
<rich-text :nodes="accounts"></rich-text>
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
+ <!-- 视频模块 -->
|
|
|
+ <videoModule :showVideoPop="showVideoPop" :videoPopList="videoPopList" class="industry-video-module"/>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {Report } from "@/config/api"
|
|
|
+import videoModule from "@/components/videoModule/index";
|
|
|
export default {
|
|
|
- components: {},
|
|
|
+ components: {videoModule},
|
|
|
props: {
|
|
|
reportPageData: {
|
|
|
type: Object,
|
|
@@ -134,6 +185,8 @@ export default {
|
|
|
confirmText: "知道了",
|
|
|
isCancelBtn: false,
|
|
|
accounts: "",
|
|
|
+ showVideoPop:false, //视频弹窗显示控制
|
|
|
+ videoPopList:{},// 视频信息
|
|
|
};
|
|
|
},
|
|
|
watch: {},
|
|
@@ -188,6 +241,23 @@ export default {
|
|
|
}
|
|
|
this.goFollowShow = false;
|
|
|
},
|
|
|
+ // 视频播放事件
|
|
|
+ handelVideoPlay(item){
|
|
|
+ let params={
|
|
|
+ Id:item.IndustryVideo.Id,
|
|
|
+ ResourceUrl:item.IndustryVideo.ResourceUrl,
|
|
|
+ BackgroundImg:item.IndustryVideo.BackgroundImg,
|
|
|
+ Title:`5min【${item.IndustryName}】逻辑解析`
|
|
|
+ }
|
|
|
+ if (this.$store.state.videoPlay.playVideoId != item.Id) {
|
|
|
+ this.$store.commit("videoPlay/palyTimeUpdate", 0);
|
|
|
+ this.$store.commit("videoPlay/playVideo", item.Id);
|
|
|
+ }
|
|
|
+ console.log(params);
|
|
|
+ this.globalBgAudioManager.stop();
|
|
|
+ this.videoPopList = params;
|
|
|
+ this.showVideoPop = true;
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -218,14 +288,49 @@ export default {
|
|
|
margin-top: 20rpx;
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
- margin-left: 30rpx;
|
|
|
+ margin-left: 80rpx;
|
|
|
+ .industry-video-item{
|
|
|
+ height: 126rpx;
|
|
|
+ width: 170rpx;
|
|
|
+ // width: 216rpx;
|
|
|
+ margin: 0 40rpx 30rpx 0;
|
|
|
+ // margin: 0 15rpx 30rpx 0;
|
|
|
+ border-radius: 8rpx;
|
|
|
+ background-size: cover;
|
|
|
+ background-position: center;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: white;
|
|
|
+ line-height: 45rpx;
|
|
|
+ padding: 20rpx;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ .industry-video-icon{
|
|
|
+ height: 0rpx;
|
|
|
+ width: 0rpx;
|
|
|
+ border-style: solid;
|
|
|
+ border-color: #3385FF #3385FF transparent transparent;
|
|
|
+ border-width: 28rpx;
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 0;
|
|
|
+ image{
|
|
|
+ position: absolute;
|
|
|
+ right: -24rpx;
|
|
|
+ bottom: 0;
|
|
|
+ height: 20rpx;
|
|
|
+ width: 20rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
.text-box {
|
|
|
- margin-bottom: 27rpx;
|
|
|
- margin-right: 15rpx;
|
|
|
+ margin-bottom: 30rpx;
|
|
|
+ margin-right: 40rpx;
|
|
|
padding: 0;
|
|
|
font-size: 24rpx;
|
|
|
color: #408fff;
|
|
|
- width: 216rpx;
|
|
|
+ width: 170rpx;
|
|
|
height: 46rpx;
|
|
|
line-height: 46rpx;
|
|
|
text-align: center !important;
|
|
@@ -302,4 +407,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|