reportForm.vue 27 KB

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