reportForm.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  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. getTimeLineList() {
  471. Reports.getTacticsTimeLine({
  472. PageSize: this.pageSize,
  473. CurrentIndex: this.page_no,
  474. }).then((res) => {
  475. if (res.Ret === 200) {
  476. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  477. this.totalPage = res.Data.Paging.Pages;
  478. let list = res.Data.List || [];
  479. list = list.map((item) => {
  480. let temp = item;
  481. temp.date = item.PublishTime.split(" ")[0];
  482. if (item.Content.length) {
  483. item.isShowBtn = item.Content.length > 60 ? true : false;
  484. item.isExpand = item.Content.length > 60 ? false : true;
  485. }
  486. return temp;
  487. });
  488. if (this.page_no === 1) {
  489. this.timeLine = list;
  490. this.haveData = this.timeLine.length ? true : false;
  491. if (this.refresh) {
  492. uni.stopPullDownRefresh();
  493. this.refresh = false;
  494. }
  495. } else {
  496. this.timeLine = this.timeLine.concat(list);
  497. }
  498. }
  499. setTimeout(() => {
  500. this.$refs.timeChild.loadTimeLine = true;
  501. this.$refs.timeChild.getConentsHeight();
  502. }, 0);
  503. });
  504. },
  505. /* 搜索 */
  506. async goSearch() {
  507. uni.navigateTo({ url: "/pages-search/indedxSearch/indedxSearch?id=报告" + "&source=深度研究页面" });
  508. },
  509. /* 初始 */
  510. initList() {
  511. if (this.tabAct_id && this.strategyIndex < 4) {
  512. this.page_no = 1;
  513. this.refresh = true;
  514. this.getIndustryList();
  515. this.getTradeList();
  516. }
  517. this.strategyIndex >= 4 && this.getstrategyAll();
  518. this.isNum = 1;
  519. },
  520. /* 页面加载 */
  521. loadList(option) {
  522. app.globalData.isSx = true;
  523. this.strategyIndex = option.strategyIndex || "";
  524. this.tabAct_id = option.tab || "";
  525. if (option.tabs !== "" && option.tabs) {
  526. this.strategyIndex = 4;
  527. this.tabAct_idTwo = option.tabs;
  528. }
  529. if (this.tabAct_id == 31) {
  530. this.strategyIndex = 5;
  531. }
  532. this.getClassify();
  533. },
  534. goSecretDetail(type) {
  535. uni.navigateTo({
  536. url: "/reportPages/secretDetails/secretDetails?type=" + type,
  537. });
  538. },
  539. /* 跳转榜单 */
  540. goHot() {
  541. uni.navigateTo({
  542. url: "/reportPages/hotList/hotList",
  543. });
  544. },
  545. //点击了checkbox
  546. checkboxChange(item) {
  547. item.isAct = !item.isAct;
  548. let arr = [];
  549. this.deepCoverList.forEach((key) => {
  550. if (key.isAct) {
  551. arr.push(key.value);
  552. }
  553. });
  554. this.deepCoverFocus = arr;
  555. this.page_no = 1;
  556. this.getIndustryList();
  557. },
  558. // 视频播放权限判断
  559. async handelVideoPlay(item) {
  560. this.$store.commit("setRouterReport", "产业列表");
  561. await this.$store.dispatch("showLoginModal");
  562. if (item.AuthInfo.HasPermission == 1) {
  563. this.playVideo(item);
  564. } else {
  565. this.hasPermission = item.AuthInfo.HasPermission;
  566. this.jurisdictionList.ActivityId = item.IndustryVideo.Id;
  567. this.jurisdictionList.isAudioVideo = 3;
  568. if (this.hasPermission == 2) {
  569. this.jurisdictionList.SellerMobile = item.AuthInfo.SellerMobile;
  570. this.jurisdictionList.SellerName = item.AuthInfo.SellerName;
  571. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  572. this.isShowhasPermission = true;
  573. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  574. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  575. this.applyForIsShow = true;
  576. }
  577. }
  578. },
  579. playVideo(item) {
  580. let params = {
  581. Id: item.IndustryVideo.Id,
  582. ResourceUrl: item.IndustryVideo.ResourceUrl,
  583. BackgroundImg: item.IndustryVideo.BackgroundImg,
  584. Title: `5min【${item.IndustryName}】逻辑解析`,
  585. };
  586. if (this.$store.state.videoPlay.playVideoId != item.Id) {
  587. this.$store.commit("videoPlay/palyTimeUpdate", 0);
  588. this.$store.commit("videoPlay/playVideo", item.Id);
  589. }
  590. this.globalBgAudioManager.stop();
  591. this.videoPopList = params;
  592. this.showVideoPop = true;
  593. },
  594. // 获取产业下的标签
  595. async getHomeStockName() {
  596. const res = await Reports.getHomeStockName({
  597. ChartPermissionId: this.tabAct_id,
  598. });
  599. if (res.Ret === 200) {
  600. this.labelListData = res.Data.List || [];
  601. }
  602. },
  603. // 策略平台的 标签 点击事件
  604. strategyLabelHadel(item) {
  605. this.$store.commit("setRouterReport", "综述链接");
  606. //去往文章详情页面
  607. uni.navigateTo({ url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId });
  608. },
  609. // 获取banner 列表
  610. async getBannerList() {
  611. const res = await Reports.collectionBannerList();
  612. if (res.Ret === 200) {
  613. this.bannerDataList = res.Data.ListA || [];
  614. this.bulletinData = res.Data.ListB || {};
  615. }
  616. },
  617. // bannaer 点击事件
  618. bannerSwiperHandler(item) {
  619. uni.navigateTo({
  620. url: item.Path,
  621. });
  622. },
  623. // 精选看板的点击事件
  624. lookBulletinhandler() {
  625. uni.navigateTo({
  626. url: "/reportPages/selectedBulletin/selectedBulletin",
  627. });
  628. },
  629. },
  630. /* 触底 */
  631. onReachBottom: Throttle(function () {
  632. if (this.strategyIndex == 4 && this.tabAct_idTwo != 99999) {
  633. this.isNum++;
  634. return;
  635. }
  636. if (this.status === "nomore") return;
  637. this.status = "loading";
  638. this.page_no++;
  639. this.tabAct_idTwo != 99999 ? this.getIndustryList() : this.getTimeLineList();
  640. }),
  641. /* 下拉刷新 */
  642. onPullDownRefresh: Throttle(function () {
  643. if (this.strategyIndex == 4) {
  644. this.tabAct_idTwo != 99999 ? (this.pageNumFather = 1) : this.getTimeLineList();
  645. } else {
  646. this.industryList = [];
  647. this.pageNumFather = null;
  648. this.page_no = 1;
  649. this.refresh = true;
  650. this.getIndustryList();
  651. this.getTradeList();
  652. }
  653. wx.stopPullDownRefresh();
  654. }),
  655. onShow() {
  656. this.getRecordTracking("深度研究");
  657. if (this.tabAct_id) {
  658. this.$store.dispatch("statistics", {
  659. PageType: "Report",
  660. ChartPermissionId: Number(this.tabAct_id),
  661. });
  662. }
  663. if (this.tabAct_id && app.globalData.isSx) {
  664. this.getTradeList();
  665. }
  666. },
  667. /**
  668. * 用户点击分享
  669. */
  670. onShareAppMessage: function (res) {
  671. return {
  672. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "深度研究",
  673. path: "/pages/reportForm/reportForm?tab=" + this.tabAct_id + "&tabs=" + this.tabAct_idTwo + "&strategyIndex=" + this.strategyIndex,
  674. success: (res) => {},
  675. fail: (err) => {},
  676. };
  677. },
  678. onHide() {
  679. if (this.showTransition) {
  680. this.showTransition = false;
  681. }
  682. if (this.strategyIndex == 4 || this.strategyIndex == 5) return;
  683. },
  684. };
  685. </script>
  686. <style lang="scss">
  687. @import "./index.scss";
  688. .reportForm-container {
  689. .nav-bar-wrap {
  690. position: sticky;
  691. top: 0;
  692. left: 0;
  693. z-index: 99;
  694. .content {
  695. position: relative;
  696. padding-left: 30rpx;
  697. .hot-top {
  698. display: flex;
  699. align-items: center;
  700. width: 140rpx;
  701. height: 100%;
  702. color: $uni-color-new;
  703. font-size: 30rpx;
  704. flex-shrink: 0;
  705. .hot-img {
  706. width: 40rpx;
  707. height: 40rpx;
  708. margin-right: 10rpx;
  709. }
  710. }
  711. }
  712. }
  713. .label-content {
  714. display: flex;
  715. flex-wrap: wrap;
  716. background-color: #fff;
  717. padding: 30rpx 30rpx 0rpx 80rpx;
  718. margin: 20rpx 0 0;
  719. .item {
  720. margin-bottom: 20px !important;
  721. }
  722. }
  723. .label-content-column {
  724. display: flex;
  725. flex-wrap: wrap;
  726. flex-direction: column;
  727. overflow: hidden;
  728. padding: 20rpx 30rpx 0;
  729. overflow-x: auto;
  730. height: 164rpx;
  731. background-color: #fff;
  732. justify-content: space-between;
  733. border-radius: 4rpx;
  734. &::after {
  735. content: "";
  736. width: 0rpx;
  737. height: 46rpx;
  738. }
  739. }
  740. .label-content .item,
  741. .label-content-column .item {
  742. display: flex;
  743. align-items: center;
  744. justify-content: center;
  745. margin-right: 12rpx;
  746. margin-bottom: 20rpx;
  747. width: 180rpx;
  748. height: 52rpx;
  749. background: #e5efff;
  750. border-radius: 150rpx;
  751. font-size: 24rpx;
  752. color: $uni-color-new;
  753. }
  754. .label-content .item,
  755. .label-content-column .item-size {
  756. font-size: 24rpx;
  757. }
  758. .banne-content {
  759. // height: 110rpx;
  760. width: 100%;
  761. padding: 20rpx 30rpx 0;
  762. overflow: hidden;
  763. margin: 0 auto 20rpx;
  764. border-radius: 8rpx;
  765. display: flex;
  766. justify-content: space-between;
  767. swiper {
  768. // width: 447rpx;
  769. flex: 1;
  770. height: 110rpx;
  771. border-radius: 16rpx;
  772. overflow: hidden;
  773. }
  774. image {
  775. width: 100%;
  776. height: 100%;
  777. }
  778. .bulletin {
  779. position: relative;
  780. width: 214rpx;
  781. height: 110rpx;
  782. border-radius: 16rpx;
  783. overflow: hidden;
  784. .limit-img {
  785. position: absolute;
  786. top: 0;
  787. right: 0;
  788. width: 50rpx;
  789. height: 26rpx;
  790. z-index: 1;
  791. }
  792. }
  793. }
  794. .tabs-box {
  795. .item {
  796. width: 108rpx;
  797. }
  798. }
  799. }
  800. .content-intimate {
  801. position: fixed;
  802. display: flex;
  803. align-items: center;
  804. bottom: 96rpx;
  805. right: 41rpx;
  806. height: 156rpx;
  807. .content {
  808. width: 432rpx;
  809. height: 112rpx;
  810. background-color: #fff;
  811. display: flex;
  812. border-radius: 56rpx;
  813. overflow: hidden;
  814. .cont-border {
  815. margin: 0 2rpx;
  816. }
  817. view {
  818. flex: 1;
  819. background-color: #376cbb;
  820. font-size: 30rpx;
  821. color: #fff;
  822. padding-top: 15rpx;
  823. text-align: center;
  824. }
  825. }
  826. image {
  827. width: 156rpx;
  828. height: 100%;
  829. z-index: 99;
  830. }
  831. }
  832. .new-recommend {
  833. width: 220rpx;
  834. height: 51rpx;
  835. display: flex;
  836. align-items: center;
  837. justify-content: space-between;
  838. color: #999999;
  839. font-size: 24rpx;
  840. background-color: #f8f8fa;
  841. border-radius: 47rpx;
  842. margin: auto 0;
  843. overflow: hidden;
  844. text {
  845. height: 51rpx;
  846. line-height: 51rpx;
  847. width: 120rpx;
  848. text-align: center;
  849. }
  850. .items-act {
  851. background-color: #376cbb;
  852. color: #fff;
  853. border-radius: 47rpx;
  854. }
  855. }
  856. </style>