123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517 |
- <template>
- <view class="container-report-page">
- <view class="content-list">
- <block v-if="reportPageData.ListHzResource.length">
- <view class="resource">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/zybico.jpg"></image>
- <text>弘则资源包</text>
- </view>
- <text style="height: 1rpx; background: #ececec"></text>
- <view class="list-ui" v-for="item in reportPageData.ListHzResource" :key="item.IndustrialManagementId" @click="themeDetails(item)">
- <view class="item-title">
- <view style="display: flex; align-items: center">
- <view class="industry-box-left" @click.stop="reportFllow(item.IndustrialManagementId, '弘则')">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/attention_act.png" v-if="item.IsFollw"></image>
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/attention_icon.png" v-else></image>
- </view>
- {{ item.IndustryName }}
- <image class="hot-icon" v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/hot_report.png" mode=""></image>
- <image v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png" mode=""></image>
- </view>
- <view class="publish">
- <text class="reg-hint" v-if="item.IsRed"></text>
- {{ item.PublishDate }}
- <u-icon name="arrow-right" color="#BDBDBD" size="34"></u-icon>
- </view>
- </view>
- <view class="read-more">
- <!-- <text class="text-box text_oneLine" v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId">
- {{ val.SubjectName }}
- </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>
- <block v-if="item.IndustrialSubjectList">
- <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>
- </block>
- </view>
- </view>
- </block>
- <block v-if="reportPageData.ListYxResource.length">
- <view class="resource">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/zybico.jpg"></image>
- <text>买方研选主题</text>
- </view>
- <text style="height: 1rpx; background: #ececec"></text>
- <view class="list-ui" v-for="item in reportPageData.ListYxResource" :key="item.IndustrialManagementId" @click="themeDetails(item)">
- <view class="item-title">
- <view style="display: flex; align-items: center">
- <view class="industry-box-left" @click.stop="reportFllow(item.IndustrialManagementId, '研选')">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/attention_act.png" v-if="item.IsFollw"></image>
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/attention_icon.png" v-else></image>
- </view>
- {{ item.IndustryName }}
- <image class="hot-icon" v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/hot_report.png" mode=""></image>
- <image v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png" mode=""></image>
- </view>
- <view class="publish">
- {{ item.PublishDate }}更新
- <u-icon name="arrow-right" color="#BDBDBD" size="34"></u-icon>
- </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">
- {{ val.SubjectName }}
- </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>
- </view>
- <view class="content-report">
- <block v-if="reportPageData.ListYxReport.length">
- <view class="resource">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/report_Yx.png"></image>
- <text>买方研选报告</text>
- </view>
- <text style="height: 1rpx; background: #ececec"></text>
- <view class="content-item" v-for="item in reportPageData.ListYxReport" :key="item.ArticleId">
- <view class="item-user">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/user_report.png"></image>
- <text> {{ item.NickName }}</text>
- </view>
- <view class="item-title">
- <text style="display: inline" @click="goDetailReport(item)">
- {{ item.Title }}
- </text>
- <text class="item-industry" v-if="item.IndustryName" @click="themeDetails(item)"> #{{ item.IndustryName }}</text>
- </view>
- <view class="item-more">
- <text>{{ item.PublishDate }}</text>
- <view class="pv-ollect">
- <view>
- <image class="pv" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/examine_icon.png"></image>
- {{ item.Pv }}
- </view>
- <view @click="collectClick(item)">
- <image v-if="item.IsCollect" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_act.png"></image>
- <image v-else src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/collect_ico.png"></image>
- {{ item.CollectNum }}人收藏
- </view>
- </view>
- </view>
- </view>
- </block>
- <block v-if="reportPageData.ListHzReport.length">
- <view class="resource">
- <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/report_Hz.png"></image>
- <text>弘则报告</text>
- </view>
- <text style="height: 1rpx; background: #ececec"></text>
- <view class="content-item" v-for="item in reportPageData.ListHzReport" :key="item.ArticleId">
- <view class="item-title">
- <text style="display: inline" @click="goDetailReport(item)">
- {{ item.Title }}
- </text>
- <text class="item-industry" @click="themeDetails(item)" v-if="item.IndustryName"> #{{ item.IndustryName }}</text>
- </view>
- <view class="item-more">
- <text>{{ item.PublishDate }}</text>
- </view>
- </view>
- </block>
- </view>
- <u-modal
- v-model="goFollowShow"
- :content-style="{ fontSize: '32rpx' }"
- @confirm="goFollowShowBtn"
- :show-cancel-button="isCancelBtn"
- :confirm-text="confirmText"
- @cancel="isCancelBtn = false"
- :show-title="false"
- :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
- :confirm-style="{ fontWeight: '700' }"
- >
- <view class="slot-content">
- <rich-text :nodes="accounts"></rich-text>
- </view>
- </u-modal>
- <!-- 视频模块 -->
- <videoModule :showVideoPop="showVideoPop" :videoPopList="videoPopList" class="industry-video-module" />
- <!-- 权限弹窗 -->
- <modalDialog :isShowhasPermission="isShowhasPermission" :applyForIsShow="applyForIsShow" :jurisdictionList="jurisdictionList" :hasPermission="hasPermission" />
- </view>
- </template>
- <script>
- import { Report, Reports } from "@/config/api";
- import videoModule from "@/components/videoModule/index";
- import modalDialog from "@/components/modalDialog.vue";
- export default {
- components: { videoModule, modalDialog },
- props: {
- reportPageData: {
- type: Object,
- },
- },
- data() {
- return {
- goFollowShow: false,
- confirmText: "知道了",
- isCancelBtn: false,
- accounts: "",
- showVideoPop: false, //视频弹窗显示控制
- videoPopList: {}, // 视频信息
- isShowhasPermission: false, // 联系销售的提交申请
- applyForIsShow: false, // 提交申请
- jurisdictionList: {},
- hasPermission: "", //权限
- };
- },
- watch: {},
- methods: {
- //去往文章详情页面
- goDetailReport(item) {
- this.$store.dispatch("checkHandle", "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId);
- },
- /* 进入详情 校验是否有该品种权限 */
- goDetail(item) {
- uni.navigateTo({
- url: "/reportPages/IndustryReport/IndustryReport?id=" + item.IndustrialManagementId,
- });
- },
- //去往主题详情
- themeDetails(item) {
- if (item.Source === 1) {
- //非严选
- this.$store.dispatch("checkHandle", "/reportPages/IndustryReport/IndustryReport?id=" + item.IndustrialManagementId);
- } else {
- //严选
- this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + item.IndustrialManagementId);
- }
- },
- //收藏
- async collectClick(item) {
- const res = await Report.collectRpt({ ArticleId: item.ArticleId, PageRouter: this.$store.state.pageRouterReport });
- if (res.Ret === 200) {
- item.IsCollect = !item.IsCollect;
- item.IsCollect
- ? (item.CollectNum += 1) &&
- uni.showToast({
- title: "收藏成功",
- icon: "none",
- duration: 2000,
- })
- : (item.CollectNum -= 1);
- !item.IsCollect &&
- uni.showToast({
- title: "已取消收藏",
- icon: "none",
- duration: 2000,
- });
- }
- },
- //点击关注的图标
- reportFllow(id, type) {
- if (!this.$store.state.isAuth && !this.$store.state.isBind) {
- Reports.reportFllow({
- IndustrialManagementId: id,
- PageRouter: "搜索关注",
- }).then((res) => {
- if (res.Ret === 200) {
- if (res.Data.Status == 1) {
- this.goFollowShow = true;
- this.confirmText = res.Data.GoFollow ? "去关注" : "知道了";
- if (res.Data.GoFollow) {
- this.accounts = `产业关注成功 <br> 想要及时获取该产业内容的更新推送,请关注【查研观向小助手】公众号`;
- this.isCancelBtn = true;
- } else {
- this.accounts = "产业关注成功<br>请关注【查研观向小助手】公众号,及时获取产业报告更新提醒";
- }
- }
- this.$emit("updateFllow", id, type);
- }
- });
- } else if (this.$store.state.isAuth) {
- //未授权
- uni.navigateTo({
- url: "/pageMy/authGuide/authGuide",
- });
- } else if (!this.$store.state.isAuth && this.$store.state.isBind) {
- //已授权未绑定
- uni.navigateTo({
- url: "/pageMy/login/login",
- });
- }
- },
- //点击了去关注
- goFollowShowBtn() {
- if (this.confirmText == "去关注") {
- uni.navigateTo({
- url: "/activityPages/accountsOfficial/accountsOfficial",
- });
- }
- this.goFollowShow = false;
- },
- // 播放权限判断
- handelVideoPlay(item) {
- if (!this.$store.state.isAuth && !this.$store.state.isBind) {
- if (item.AuthInfo.HasPermission == 1) {
- this.playVideo(item);
- } else {
- this.hasPermission = item.AuthInfo.HasPermission;
- this.jurisdictionList.ActivityId = item.IndustryVideo.Id;
- // 产业视频
- this.jurisdictionList.isAudioVideo = 3;
- if (this.hasPermission == 2) {
- this.jurisdictionList.SellerMobile = item.AuthInfo.SellerMobile;
- this.jurisdictionList.SellerName = item.AuthInfo.SellerName;
- this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
- this.isShowhasPermission = true;
- } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
- this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
- this.applyForIsShow = true;
- }
- }
- } else {
- this.$store.dispatch("checkHandle");
- }
- },
- playVideo(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);
- }
- this.globalBgAudioManager.stop();
- this.videoPopList = params;
- this.showVideoPop = true;
- },
- },
- };
- </script>
- <style scoped lang="scss">
- .container-report-page {
- background-color: #f5f6fa;
- .content-list {
- .list-ui {
- background-color: #fff;
- margin-top: 2rpx;
- }
- .item-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 100rpx;
- border-bottom: 1px solid #f6f6f6;
- padding: 0 30rpx;
- background-color: #fff;
- .publish {
- position: relative;
- display: flex;
- align-items: center;
- color: #999999;
- font-style: 26rpx;
- padding-left: 30rpx;
- .reg-hint {
- position: absolute;
- top: 50%;
- left: 0rpx;
- width: 14rpx;
- height: 14rpx;
- transform: translateY(-50%);
- background-color: #ff0000;
- border-radius: 50%;
- }
- }
- image {
- margin-left: 10rpx;
- width: 60rpx;
- height: 30rpx;
- }
- .hot-icon {
- width: 30rpx;
- }
- .industry-box-left {
- width: 50rpx;
- display: flex;
- align-items: center;
- margin-right: 10rpx;
- image {
- width: 38rpx;
- height: 34rpx;
- }
- }
- }
- .read-more {
- margin-top: 20rpx;
- display: flex;
- flex-wrap: wrap;
- 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: 30rpx;
- margin-right: 40rpx;
- padding: 0;
- font-size: 24rpx;
- color: #408fff;
- width: 170rpx;
- height: 46rpx;
- line-height: 46rpx;
- text-align: center !important;
- background: url(~@/static/img/report_bg.png) no-repeat;
- background-size: 100% 100%;
- text-indent: 0em;
- }
- }
- }
- .resource {
- padding: 0 30rpx;
- background-color: #fff;
- margin-top: 4rpx;
- height: 91rpx;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #333333;
- font-size: 30rpx;
- margin-top: 20rpx;
- image {
- width: 34rpx;
- height: 36rpx;
- margin-right: 10rpx;
- }
- }
- .content-report {
- .content-item {
- background-color: #fff;
- padding: 35rpx 20rpx 0;
- .item-title {
- font-weight: 500;
- .item-industry {
- margin-left: 10rpx;
- color: #3385ff;
- display: inline-block;
- }
- }
- .item-user {
- display: flex;
- align-items: center;
- color: #999999;
- font-size: 28rpx;
- margin-bottom: 20rpx;
- image {
- width: 23rpx;
- height: 26rpx;
- margin-right: 20rpx;
- }
- }
- .item-more {
- display: flex;
- justify-content: space-between;
- color: #cecece;
- margin: 20rpx 0 0;
- padding-bottom: 30rpx;
- border-bottom: 1rpx solid #ececec;
- .pv-ollect {
- display: flex;
- align-items: center;
- width: 40%;
- justify-content: space-between;
- image {
- width: 22rpx;
- height: 21rpx;
- margin-right: 10rpx;
- }
- .pv {
- height: 16rpx;
- }
- }
- }
- }
- }
- }
- </style>
|