reportForm.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. <template>
  2. <view class="reportForm-container container">
  3. <view id="nav-bar-wrap-id" class="nav-bar-wrap">
  4. <search-bar @goSearch="goSearch" :searchTitle="searchPlaceholderList.SummarySearch" :width="50">
  5. <template slot="content-left">
  6. <view class="content">
  7. <view class="hot-top" @click="goHot" v-if="wholeShowListData.IsShowList">
  8. <image class="hot-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/hot_icon_report.png"></image>
  9. <text class="sea_ipt">榜单</text>
  10. </view>
  11. </view>
  12. </template>
  13. </search-bar>
  14. <view class="global_one_tabs tabs-box">
  15. <view :class="['item', item.ChartPermissionId == tabAct_id && 'tabs-active']" v-for="(item, index) in tabBars" :key="item.ChartPermissionId" @click="toggleTab(item, index)">
  16. {{ item.PermissionName }}
  17. <!-- <view class="active" v-if="item.ChartPermissionId == tabAct_id"></view> -->
  18. </view>
  19. </view>
  20. </view>
  21. <!-- 内容 -->
  22. <view class="strategy" v-if="strategyIndex >= 4">
  23. <view class="banne-content" v-if="strategyIndex == 4">
  24. <swiper autoplay :interval="4000" circular>
  25. <view v-for="(bannerItem, index) in bannerDataList" :key="index" @click.native="bannerSwiperHandler(bannerItem)">
  26. <swiper-item>
  27. <image :src="bannerItem.IndexImg"></image>
  28. </swiper-item>
  29. </view>
  30. </swiper>
  31. </view>
  32. <view class="tab-cont-two">
  33. <view v-for="(item, index) in tabBarsTow" :key="index" class="scroll-tab-box">
  34. <view v-for="key in item.Items" :key="key.CategoryId" :id="'__' + index" class="scroll-tab-item" :class="{ active: tabAct_idTwo == key.CategoryId }" @click.stop="toggleTabTwo(key, index)">
  35. {{ key.MatchTypeName }}
  36. <text class="reg-text" v-if="key.IsRed"></text>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="row"> </view>
  41. <block v-if="tabAct_idTwo != 99999">
  42. <!-- 子组件 -->
  43. <strategy
  44. :strategyIndexTwo="strategyIndexTwo"
  45. :pageNumFather="pageNumFather"
  46. :matchTypeName="matchTypeName"
  47. :tabAct_idTwo="tabAct_idTwo"
  48. :isNum="isNum"
  49. :tabAct_id="tabAct_id"
  50. :isSwitchover="isSwitchover"
  51. @hideIsred="hideIsred"
  52. />
  53. </block>
  54. <!-- 时间线 -->
  55. <block v-if="tabAct_idTwo == 99999">
  56. <time-line ref="timeChild" :dataList="timeLine" @setRouter="setRouter" />
  57. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" v-if="totalPage > 1" />
  58. </block>
  59. </view>
  60. <!-- </view> -->
  61. <view class="industrial_eport_one" v-else>
  62. <!-- 行业报告 -->
  63. <view class="industry" v-if="tradeList">
  64. <view class="industry-top">
  65. <view class="img-top-box">
  66. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/industry-ico.png"></image>
  67. <text>行业综述</text>
  68. </view>
  69. <view> </view>
  70. </view>
  71. <view class="global_card_content report_formcard_content">
  72. <view class="industry-box" @click="isClickHandle(item.CategoryId)" v-for="item in tradeList" :key="item.CategoryId">
  73. <view class="box-left">
  74. {{ item.MatchTypeName }}
  75. <text v-if="item.IsRed"></text>
  76. </view>
  77. <view class="box-right">
  78. <text>{{ item.UpdateTime }}</text>
  79. <u-icon name="arrow-right" color="#333333" size="34"></u-icon>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. <view class="industry-top">
  85. <view class="img-top-box">
  86. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/company_ico.png"></image>
  87. <text>公司速览</text>
  88. </view>
  89. <view> </view>
  90. </view>
  91. <view v-if="labelListData.length" :class="[labelListData.length > 9 ? 'label-content-column' : 'label-content']">
  92. <view @click="strategyLabelHadel(item)" :class="['item', item.Stock.length > 6 && 'item-size', 'text_oneLine']" v-for="item in labelListData" :key="item.ArticleId">
  93. {{ item.Stock }}
  94. </view>
  95. </view>
  96. <!-- 产业报告 -->
  97. <view class="industry">
  98. <view style="height: 12rpx" v-if="!tradeList"></view>
  99. <view class="industry-top industry-sticky">
  100. <view class="img-top-box">
  101. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/property_ico.png" style="height: 50rpx"></image>
  102. <text class="text-sub">细分产业</text>
  103. </view>
  104. <view class="checkbox-content">
  105. <view :class="['item', item.isAct && 'act-item']" v-for="item in deepCoverList" :key="item.value" @click="checkboxChange(item)">{{ item.lable }}</view>
  106. </view>
  107. </view>
  108. <!-- 需要循环的地方 -->
  109. <view class="forindustry global_card_content" v-for="item in industryList" :key="item.IndustrialManagementId" @click="goIndustryReport(item.IndustrialManagementId)">
  110. <image class="image-box" v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/new_report.png"></image>
  111. <image class="image-box" v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/hot_report.png"></image>
  112. <!-- 火锅底料这个位置 -->
  113. <view class="industry-content">
  114. <view class="industry-box-left">
  115. <image
  116. class="follw-image"
  117. @click.stop="reportFllow(item.IndustrialManagementId)"
  118. :src="item.IsFollow ? 'https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/collected_icon.png' : 'https://hzchart.oss-cn-shanghai.aliyuncs.com/new_cygx/not_collected.png'"
  119. ></image>
  120. <view class="global_title">{{ item.IndustryName }} </view>
  121. </view>
  122. <view class="ndustry-box-tiem global_content_center">
  123. <text v-if="item.IsRed" class="read"></text>
  124. <text class="ndustry-box-text">{{ item.UpdateTime }}</text>
  125. <u-icon name="arrow-right" color="#333" size="28"></u-icon>
  126. </view>
  127. </view>
  128. <view class="read-more">
  129. <view class="industry-video-item" @click.stop="handelVideoPlay(item)" :style="{ 'background-image': 'url(' + item.IndustryVideo.BackgroundImg + ')' }" v-if="item.IndustryVideo">
  130. 5min
  131. <br />
  132. 逻辑解析
  133. <view class="industry-video-icon">
  134. <image src="https://hzstatic.hzinsights.com/cygx/video-right-top-icon.svg"></image>
  135. </view>
  136. </view>
  137. <block v-if="item.IndustrialSubjectList">
  138. <view v-if="item.IndustryVideo" style="display: flex; flex-wrap: wrap; width: 502rpx">
  139. <view v-for="val in item.IndustrialSubjectList.slice(0, 6)" :key="val.IndustrialSubjectId" class="text-box text_oneLine">{{ val.SubjectName }}</view>
  140. </view>
  141. <block v-if="item.IndustryVideo && item.IndustrialSubjectList.length > 6">
  142. <view v-for="val in item.IndustrialSubjectList.slice(6)" :key="val.IndustrialSubjectId" class="text-box">{{ val.SubjectName }}</view>
  143. </block>
  144. <block v-if="!item.IndustryVideo">
  145. <view v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId" class="text-box text_oneLine">{{ val.SubjectName }}</view>
  146. </block>
  147. </block>
  148. </view>
  149. </view>
  150. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1" />
  151. </view>
  152. </view>
  153. <u-modal
  154. v-model="goFollowShow"
  155. :content-style="{ fontSize: '32rpx' }"
  156. @confirm="goFollowShowBtn"
  157. :show-cancel-button="isCancelBtn"
  158. :confirm-text="confirmText"
  159. @cancel="isCancelBtn = false"
  160. :show-title="false"
  161. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  162. :confirm-style="{ fontWeight: '700' }"
  163. >
  164. <view class="slot-content">
  165. <rich-text :nodes="accounts"></rich-text>
  166. </view>
  167. </u-modal>
  168. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  169. <!-- 视频模块 -->
  170. <videoModule :showVideoPop.sync="showVideoPop" :videoPopList="videoPopList" />
  171. <modalDialog :isShowhasPermission="isShowhasPermission" :applyForIsShow="applyForIsShow" :jurisdictionList="jurisdictionList" :hasPermission="hasPermission" />
  172. <Loading />
  173. </view>
  174. </template>
  175. <script>
  176. import strategy from "./components/strategy.vue";
  177. import { Throttle, Debounce } from "@/config/util.js";
  178. import freeCharge from "@/components/freeCharge";
  179. import videoModule from "@/components/videoModule/index";
  180. import modalDialog from "@/components/modalDialog.vue";
  181. import SearchBar from "@/components/search-bar/searchBar.vue";
  182. import TimeLine from "@/components/report/timeLine.vue";
  183. import { Reports, Home } from "@/config/api.js";
  184. let app = getApp();
  185. export default {
  186. components: {
  187. strategy,
  188. freeCharge,
  189. videoModule,
  190. modalDialog,
  191. SearchBar,
  192. TimeLine,
  193. },
  194. data() {
  195. return {
  196. tabAct_id: "",
  197. tabAct_idTwo: "",
  198. tabBars: [],
  199. pageNumFather: "",
  200. shadowStyle: {
  201. backgroundImage: "none",
  202. },
  203. tabBarsTow: [],
  204. isNum: 1,
  205. strategyIndex: "",
  206. strategyIndexTwo: 0,
  207. isSwitchover: 1,
  208. tradeList: [],
  209. OrderColumn: "",
  210. industryList: [],
  211. loadText: {
  212. loadmore: "上拉加载更多",
  213. loading: "加载中",
  214. nomore: "已经到底了",
  215. },
  216. refresh: false, //正在下拉
  217. page_no: 1,
  218. pageSize: 10,
  219. status: "loadmore",
  220. haveData: true,
  221. totalPage: "",
  222. matchTypeName: "",
  223. deepCoverFocus: [], //深度覆盖 //推荐关注
  224. deepCoverList: [
  225. {
  226. value: "cover",
  227. lable: "深度覆盖",
  228. isAct: false,
  229. },
  230. {
  231. value: "focus",
  232. lable: "推荐关注",
  233. isAct: false,
  234. },
  235. ],
  236. isScrollShow: false,
  237. goFollowShow: false,
  238. accounts: "",
  239. confirmText: "知道了",
  240. isCancelBtn: false,
  241. scrollLeft: 0,
  242. showTransition: false, //点击绝密后的隐现
  243. showVideoPop: false, //视频弹窗显示控制
  244. videoPopList: {}, // 视频信息
  245. isShowhasPermission: false, // 联系销售的提交申请
  246. applyForIsShow: false, // 提交申请
  247. jurisdictionList: {},
  248. hasPermission: "", //权限
  249. labelListData: [],
  250. timeLine: [], //时间线数据
  251. bannerDataList: [],
  252. bulletinData: {},
  253. };
  254. },
  255. onLoad(option) {
  256. this.loadList(option);
  257. this.getBannerList();
  258. },
  259. watch: {
  260. //监听tabs的变化
  261. tabAct_id: {
  262. handler() {
  263. this.initList();
  264. },
  265. immediate: true,
  266. },
  267. tabAct_idTwo: {
  268. handler(newVal) {
  269. newVal == 99999 && this.getTimeLineList();
  270. },
  271. immediate: true,
  272. },
  273. },
  274. methods: {
  275. //获取一级事件
  276. getClassify() {
  277. Reports.getClassify().then((res) => {
  278. if (res.Ret !== 200) return;
  279. this.tabBars = res.Data.List || [];
  280. if (!this.tabAct_id) {
  281. this.tabAct_id = res.Data.List[0].ChartPermissionId;
  282. this.$store.dispatch("statistics", {
  283. PageType: "Report",
  284. ChartPermissionId: Number(this.tabAct_id),
  285. });
  286. }
  287. this.getHomeStockName();
  288. });
  289. },
  290. //获取二级事件
  291. async getstrategyAll() {
  292. const res =
  293. this.tabAct_id == 148 || this.tabAct_id == 62
  294. ? await Reports.getZhouQistrategyAll({
  295. ChartPermissionId: this.tabAct_id,
  296. })
  297. : await Reports.getstrategyAll({
  298. ChartPermissionId: this.tabAct_id,
  299. });
  300. if (res.Ret === 200) {
  301. this.tabAct_id == 23 &&
  302. res.Data.List.push({
  303. CategoryId: 100001,
  304. IsRed: false,
  305. ListGroup: 4,
  306. MatchTypeName: "数据思维",
  307. SubCategoryName: "",
  308. });
  309. if (!this.tabAct_idTwo) {
  310. this.tabAct_idTwo = res.Data.List[0].CategoryId;
  311. }
  312. this.matchTypeName = res.Data.List[0].MatchTypeName;
  313. // 使用 Map 来存储分组后的数据
  314. const result = new Map();
  315. // 将原始数据按 ListGroup 分组
  316. res.Data.List.forEach((item) => {
  317. // 如果当前 ListGroup 不存在,初始化一个新数组
  318. if (!result.has(item.ListGroup)) {
  319. result.set(item.ListGroup, []);
  320. }
  321. // 获取对应 ListGroup 的数组,并添加当前项
  322. const groupArray = result.get(item.ListGroup);
  323. groupArray.push(item);
  324. });
  325. // 如果需要将 Map 转换回普通对象或数组形式,请使用以下代码:
  326. const arrayResult = Array.from(result.entries()).map(([ListGroup, items]) => ({
  327. GroupId: ListGroup,
  328. Items: items, // 当前 GroupId 对应的所有项目
  329. }));
  330. this.tabBarsTow = arrayResult;
  331. }
  332. },
  333. //tabs切换事件
  334. toggleTab(item, index) {
  335. this.strategyIndex = index;
  336. console.log(this.strategyIndex);
  337. this.tabAct_idTwo = "";
  338. this.deepCoverFocus = [];
  339. this.labelListData = [];
  340. this.tabBarsTow = [];
  341. if (this.tabAct_id !== item.ChartPermissionId) {
  342. this.tabAct_id = item.ChartPermissionId;
  343. console.log(this.tabAct_id, "this.tabAct_id");
  344. this.$store.dispatch("statistics", {
  345. PageType: "Report",
  346. ChartPermissionId: Number(this.tabAct_id),
  347. });
  348. this.getHomeStockName();
  349. this.page_no = 1;
  350. uni.pageScrollTo({
  351. scrollTop: 0,
  352. duration: 0,
  353. });
  354. }
  355. },
  356. scrollMove(e) {
  357. this.scrollLeft = e.detail.scrollLeft;
  358. },
  359. //tabs切换二级事件
  360. toggleTabTwo(item, index) {
  361. if (item.CategoryId === 100001) {
  362. uni.navigateTo({
  363. url: "/reportPages/selectedBulletin/selectedBulletin",
  364. });
  365. return;
  366. }
  367. this.matchTypeName = item.MatchTypeName;
  368. this.strategyIndexTwo = index;
  369. if (this.tabAct_idTwo !== item.CategoryId) {
  370. this.tabAct_idTwo = item.CategoryId;
  371. this.page_no = 1;
  372. uni.pageScrollTo({
  373. scrollTop: 0,
  374. duration: 0,
  375. });
  376. }
  377. },
  378. //获取报告所有品种接口
  379. getTradeList() {
  380. Reports.getTradeList({
  381. ChartPermissionId: this.tabAct_id,
  382. }).then((res) => {
  383. if (res.Ret == 200) {
  384. this.tradeList = res.Data.List || [];
  385. }
  386. });
  387. },
  388. //获取产业报告所有品种接口
  389. getIndustryList() {
  390. Reports.getIndustryList({
  391. ChartPermissionId: this.tabAct_id,
  392. OrderColumn: this.OrderColumn,
  393. PageSize: this.pageSize,
  394. CurrentIndex: this.page_no,
  395. DeepCover: this.deepCoverFocus.includes("cover") ? 1 : 0,
  396. RecommendFocus: this.deepCoverFocus.includes("focus") ? 1 : 0,
  397. }).then((res) => {
  398. // this.industryList=res.Data.List
  399. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  400. this.totalPage = res.Data.Paging.Pages; //总页数
  401. if (this.page_no === 1) {
  402. this.industryList = res.Data.List || [];
  403. this.haveData = this.industryList.length ? true : false;
  404. if (this.refresh) {
  405. uni.stopPullDownRefresh();
  406. this.refresh = false;
  407. }
  408. } else {
  409. this.industryList = this.industryList.concat(res.Data.List);
  410. }
  411. });
  412. },
  413. //跳转季度策略
  414. isClickHandle(id) {
  415. uni.navigateTo({
  416. url: "/reportPages/industrialReport/industrialReport?id=" + id,
  417. });
  418. },
  419. //跳转产业报告
  420. async goIndustryReport(id) {
  421. this.$store.commit("setRouterReport", "产业列表");
  422. uni.navigateTo({ url: "/reportPages/IndustryReport/IndustryReport?id=" + id });
  423. },
  424. //点击关注的图标
  425. async reportFllow(id) {
  426. await this.$store.dispatch("showLoginModal");
  427. const res = await Reports.reportFllow({
  428. IndustrialManagementId: id,
  429. PageRouter: "细分产业列表",
  430. });
  431. if (res.Ret === 200) {
  432. if (res.Data.Status == 1) {
  433. this.goFollowShow = true;
  434. this.confirmText = res.Data.GoFollow ? "去关注" : "知道了";
  435. if (res.Data.GoFollow) {
  436. this.accounts = `产业关注成功 <br> 想要及时获取该产业内容的更新推送,请关注【查研观向小助手】公众号`;
  437. this.isCancelBtn = true;
  438. } else {
  439. this.accounts = "产业关注成功<br>请关注【查研观向小助手】公众号,及时获取产业报告更新提醒";
  440. }
  441. }
  442. this.industryList.forEach((key) => {
  443. if (key.IndustrialManagementId == id) {
  444. if (key.IsFollow == 1) {
  445. key.IsFollow = 0;
  446. uni.showToast({
  447. title: "已取消关注",
  448. icon: "none",
  449. duration: 2000,
  450. });
  451. } else {
  452. key.IsFollow = 1;
  453. }
  454. }
  455. });
  456. }
  457. },
  458. goFollowShowBtn() {
  459. if (this.confirmText == "去关注") {
  460. uni.navigateTo({
  461. url: "/activityPages/accountsOfficial/accountsOfficial",
  462. });
  463. }
  464. this.goFollowShow = false;
  465. },
  466. hideIsred(is) {
  467. this.tabBarsTow[this.strategyIndexTwo].IsRed = is;
  468. },
  469. // h获取时间线
  470. async getTimeLineList() {
  471. const res =
  472. this.tabAct_id == 23
  473. ? await Reports.getTacticsTimeLine({
  474. PageSize: this.pageSize,
  475. CurrentIndex: this.page_no,
  476. })
  477. : await Reports.getGushowTimeLine({
  478. PageSize: this.pageSize,
  479. CurrentIndex: this.page_no,
  480. });
  481. if (res.Ret === 200) {
  482. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  483. this.totalPage = res.Data.Paging.Pages;
  484. let list = res.Data.List || [];
  485. list = list.map((item) => {
  486. let temp = item;
  487. temp.date = item.PublishTime.split(" ")[0];
  488. if (item.Content.length) {
  489. item.isShowBtn = item.Content.length > 60 ? true : false;
  490. item.isExpand = item.Content.length > 60 ? false : true;
  491. }
  492. return temp;
  493. });
  494. if (this.page_no === 1) {
  495. this.timeLine = list;
  496. this.haveData = this.timeLine.length ? true : false;
  497. if (this.refresh) {
  498. uni.stopPullDownRefresh();
  499. this.refresh = false;
  500. }
  501. } else {
  502. this.timeLine = this.timeLine.concat(list);
  503. }
  504. }
  505. setTimeout(() => {
  506. this.$refs.timeChild.loadTimeLine = true;
  507. this.$refs.timeChild.getConentsHeight();
  508. }, 0);
  509. },
  510. /* 搜索 */
  511. async goSearch() {
  512. uni.navigateTo({ url: "/pages-search/indedxSearch/indedxSearch?id=报告" + "&source=深度研究页面" });
  513. },
  514. /* 初始 */
  515. initList() {
  516. if (this.tabAct_id && this.strategyIndex < 4) {
  517. this.page_no = 1;
  518. this.refresh = true;
  519. this.getIndustryList();
  520. this.getTradeList();
  521. }
  522. this.strategyIndex >= 4 && this.getstrategyAll();
  523. this.isNum = 1;
  524. },
  525. /* 页面加载 */
  526. loadList(option) {
  527. app.globalData.isSx = true;
  528. this.strategyIndex = option.strategyIndex || "";
  529. this.tabAct_id = option.tab || "";
  530. if (option.tabs !== "" && option.tabs) {
  531. this.strategyIndex = 4;
  532. this.tabAct_idTwo = option.tabs;
  533. }
  534. if (this.tabAct_id == 31) {
  535. this.strategyIndex = 5;
  536. }
  537. this.getClassify();
  538. },
  539. goSecretDetail(type) {
  540. uni.navigateTo({
  541. url: "/reportPages/secretDetails/secretDetails?type=" + type,
  542. });
  543. },
  544. /* 跳转榜单 */
  545. goHot() {
  546. uni.navigateTo({
  547. url: "/reportPages/hotList/hotList",
  548. });
  549. },
  550. //点击了checkbox
  551. checkboxChange(item) {
  552. item.isAct = !item.isAct;
  553. let arr = [];
  554. this.deepCoverList.forEach((key) => {
  555. if (key.isAct) {
  556. arr.push(key.value);
  557. }
  558. });
  559. this.deepCoverFocus = arr;
  560. this.page_no = 1;
  561. this.getIndustryList();
  562. },
  563. // 视频播放权限判断
  564. async handelVideoPlay(item) {
  565. this.$store.commit("setRouterReport", "产业列表");
  566. await this.$store.dispatch("showLoginModal");
  567. if (item.AuthInfo.HasPermission == 1) {
  568. this.playVideo(item);
  569. } else {
  570. this.hasPermission = item.AuthInfo.HasPermission;
  571. this.jurisdictionList.ActivityId = item.IndustryVideo.Id;
  572. this.jurisdictionList.isAudioVideo = 3;
  573. if (this.hasPermission == 2) {
  574. this.jurisdictionList.SellerMobile = item.AuthInfo.SellerMobile;
  575. this.jurisdictionList.SellerName = item.AuthInfo.SellerName;
  576. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  577. this.isShowhasPermission = true;
  578. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  579. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  580. this.applyForIsShow = true;
  581. }
  582. }
  583. },
  584. playVideo(item) {
  585. let params = {
  586. Id: item.IndustryVideo.Id,
  587. ResourceUrl: item.IndustryVideo.ResourceUrl,
  588. BackgroundImg: item.IndustryVideo.BackgroundImg,
  589. Title: `5min【${item.IndustryName}】逻辑解析`,
  590. };
  591. if (this.$store.state.videoPlay.playVideoId != item.Id) {
  592. this.$store.commit("videoPlay/palyTimeUpdate", 0);
  593. this.$store.commit("videoPlay/playVideo", item.Id);
  594. }
  595. this.globalBgAudioManager.stop();
  596. this.videoPopList = params;
  597. this.showVideoPop = true;
  598. },
  599. // 获取产业下的标签
  600. async getHomeStockName() {
  601. const res = await Reports.getHomeStockName({
  602. ChartPermissionId: this.tabAct_id,
  603. });
  604. if (res.Ret === 200) {
  605. this.labelListData = res.Data.List || [];
  606. }
  607. },
  608. // 策略平台的 标签 点击事件
  609. strategyLabelHadel(item) {
  610. this.$store.commit("setRouterReport", "综述链接");
  611. //去往文章详情页面
  612. uni.navigateTo({ url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId });
  613. },
  614. // 获取banner 列表
  615. async getBannerList() {
  616. const res = await Reports.collectionBannerList();
  617. if (res.Ret === 200) {
  618. this.bannerDataList = res.Data.ListA || [];
  619. this.bulletinData = res.Data.ListB || {};
  620. }
  621. },
  622. // bannaer 点击事件
  623. bannerSwiperHandler(item) {
  624. uni.navigateTo({
  625. url: item.Path,
  626. });
  627. },
  628. // 精选看板的点击事件
  629. lookBulletinhandler() {
  630. uni.navigateTo({
  631. url: "/reportPages/selectedBulletin/selectedBulletin",
  632. });
  633. },
  634. },
  635. /* 触底 */
  636. onReachBottom: Throttle(function () {
  637. if (this.strategyIndex == 4 && this.tabAct_idTwo != 99999) {
  638. this.isNum++;
  639. return;
  640. }
  641. if (this.status === "nomore") return;
  642. this.status = "loading";
  643. this.page_no++;
  644. this.tabAct_idTwo != 99999 ? this.getIndustryList() : this.getTimeLineList();
  645. }),
  646. /* 下拉刷新 */
  647. onPullDownRefresh: Throttle(function () {
  648. if (this.strategyIndex == 4) {
  649. this.tabAct_idTwo != 99999 ? (this.pageNumFather = 1) : this.getTimeLineList();
  650. } else {
  651. this.industryList = [];
  652. this.pageNumFather = null;
  653. this.page_no = 1;
  654. this.refresh = true;
  655. this.getIndustryList();
  656. this.getTradeList();
  657. }
  658. wx.stopPullDownRefresh();
  659. }),
  660. onShow() {
  661. this.getRecordTracking("深度研究");
  662. if (this.tabAct_id) {
  663. this.$store.dispatch("statistics", {
  664. PageType: "Report",
  665. ChartPermissionId: Number(this.tabAct_id),
  666. });
  667. }
  668. if (this.tabAct_id && app.globalData.isSx) {
  669. this.getTradeList();
  670. }
  671. },
  672. /**
  673. * 用户点击分享
  674. */
  675. onShareAppMessage: function (res) {
  676. return {
  677. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "深度研究",
  678. path: "/pages/reportForm/reportForm?tab=" + this.tabAct_id + "&tabs=" + this.tabAct_idTwo + "&strategyIndex=" + this.strategyIndex,
  679. success: (res) => {},
  680. fail: (err) => {},
  681. };
  682. },
  683. onHide() {
  684. if (this.showTransition) {
  685. this.showTransition = false;
  686. }
  687. if (this.strategyIndex == 4 || this.strategyIndex == 5) return;
  688. },
  689. };
  690. </script>
  691. <style lang="scss">
  692. @import "./index.scss";
  693. .reportForm-container {
  694. .nav-bar-wrap {
  695. position: sticky;
  696. top: 0;
  697. left: 0;
  698. z-index: 99;
  699. .content {
  700. position: relative;
  701. padding-left: 30rpx;
  702. .hot-top {
  703. display: flex;
  704. align-items: center;
  705. width: 140rpx;
  706. height: 100%;
  707. color: $uni-color-new;
  708. font-size: 30rpx;
  709. flex-shrink: 0;
  710. .hot-img {
  711. width: 40rpx;
  712. height: 40rpx;
  713. margin-right: 10rpx;
  714. }
  715. }
  716. }
  717. }
  718. .label-content {
  719. display: flex;
  720. flex-wrap: wrap;
  721. background-color: #fff;
  722. padding: 30rpx 30rpx 0rpx 80rpx;
  723. margin: 20rpx 0 0;
  724. .item {
  725. margin-bottom: 20px !important;
  726. }
  727. }
  728. .label-content-column {
  729. display: flex;
  730. flex-wrap: wrap;
  731. flex-direction: column;
  732. overflow: hidden;
  733. padding: 20rpx 30rpx 0;
  734. overflow-x: auto;
  735. height: 164rpx;
  736. background-color: #fff;
  737. justify-content: space-between;
  738. border-radius: 4rpx;
  739. &::after {
  740. content: "";
  741. width: 0rpx;
  742. height: 46rpx;
  743. }
  744. }
  745. .label-content .item,
  746. .label-content-column .item {
  747. display: flex;
  748. align-items: center;
  749. justify-content: center;
  750. margin-right: 12rpx;
  751. margin-bottom: 20rpx;
  752. width: 180rpx;
  753. height: 52rpx;
  754. background: #e5efff;
  755. border-radius: 150rpx;
  756. font-size: 24rpx;
  757. color: $uni-color-new;
  758. }
  759. .label-content .item,
  760. .label-content-column .item-size {
  761. font-size: 24rpx;
  762. }
  763. .banne-content {
  764. // height: 110rpx;
  765. width: 100%;
  766. padding: 20rpx 30rpx 0;
  767. overflow: hidden;
  768. margin: 0 auto 20rpx;
  769. border-radius: 8rpx;
  770. display: flex;
  771. justify-content: space-between;
  772. swiper {
  773. // width: 447rpx;
  774. flex: 1;
  775. height: 110rpx;
  776. border-radius: 16rpx;
  777. overflow: hidden;
  778. }
  779. image {
  780. width: 100%;
  781. height: 100%;
  782. }
  783. .bulletin {
  784. position: relative;
  785. width: 214rpx;
  786. height: 110rpx;
  787. border-radius: 16rpx;
  788. overflow: hidden;
  789. .limit-img {
  790. position: absolute;
  791. top: 0;
  792. right: 0;
  793. width: 50rpx;
  794. height: 26rpx;
  795. z-index: 1;
  796. }
  797. }
  798. }
  799. .tabs-box {
  800. .item {
  801. width: 108rpx;
  802. }
  803. }
  804. }
  805. .content-intimate {
  806. position: fixed;
  807. display: flex;
  808. align-items: center;
  809. bottom: 96rpx;
  810. right: 41rpx;
  811. height: 156rpx;
  812. .content {
  813. width: 432rpx;
  814. height: 112rpx;
  815. background-color: #fff;
  816. display: flex;
  817. border-radius: 56rpx;
  818. overflow: hidden;
  819. .cont-border {
  820. margin: 0 2rpx;
  821. }
  822. view {
  823. flex: 1;
  824. background-color: #376cbb;
  825. font-size: 30rpx;
  826. color: #fff;
  827. padding-top: 15rpx;
  828. text-align: center;
  829. }
  830. }
  831. image {
  832. width: 156rpx;
  833. height: 100%;
  834. z-index: 99;
  835. }
  836. }
  837. .new-recommend {
  838. width: 220rpx;
  839. height: 51rpx;
  840. display: flex;
  841. align-items: center;
  842. justify-content: space-between;
  843. color: #999999;
  844. font-size: 24rpx;
  845. background-color: #f8f8fa;
  846. border-radius: 47rpx;
  847. margin: auto 0;
  848. overflow: hidden;
  849. text {
  850. height: 51rpx;
  851. line-height: 51rpx;
  852. width: 120rpx;
  853. text-align: center;
  854. }
  855. .items-act {
  856. background-color: #376cbb;
  857. color: #fff;
  858. border-radius: 47rpx;
  859. }
  860. }
  861. </style>