reportForm.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831
  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/cygx/czbk/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="#BDBDBD" 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/trip_icon.png"></image>
  115. <!-- 火锅底料这个位置 -->
  116. <view class="industry-content">
  117. <view class="industry-box-left">
  118. <view class="industry-follw global_content_center" @click.stop="reportFllow(item.IndustrialManagementId)"> {{ item.IsFollow ? "取消关注" : "+关注" }} </view>
  119. <view class="global_title">{{ item.IndustryName }} </view>
  120. </view>
  121. <view class="ndustry-box-tiem global_content_center">
  122. <text v-if="item.IsRed" class="read"></text>
  123. <text class="ndustry-box-text">{{ item.UpdateTime }}</text>
  124. <u-icon name="arrow-right" color="#333" size="28"></u-icon>
  125. </view>
  126. </view>
  127. <view class="content-box">
  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. </view>
  151. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1" />
  152. </view>
  153. </view>
  154. <u-modal
  155. v-model="goFollowShow"
  156. :content-style="{ fontSize: '32rpx' }"
  157. @confirm="goFollowShowBtn"
  158. :show-cancel-button="isCancelBtn"
  159. :confirm-text="confirmText"
  160. @cancel="isCancelBtn = false"
  161. :show-title="false"
  162. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  163. :confirm-style="{ fontWeight: '700' }"
  164. >
  165. <view class="slot-content">
  166. <rich-text :nodes="accounts"></rich-text>
  167. </view>
  168. </u-modal>
  169. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  170. <!-- 视频模块 -->
  171. <videoModule :showVideoPop.sync="showVideoPop" :videoPopList="videoPopList" />
  172. <modalDialog :isShowhasPermission="isShowhasPermission" :applyForIsShow="applyForIsShow" :jurisdictionList="jurisdictionList" :hasPermission="hasPermission" />
  173. <Loading />
  174. </view>
  175. </template>
  176. <script>
  177. import strategy from "./components/strategy.vue";
  178. import { Throttle, Debounce } from "@/config/util.js";
  179. import freeCharge from "@/components/freeCharge";
  180. import videoModule from "@/components/videoModule/index";
  181. import modalDialog from "@/components/modalDialog.vue";
  182. import SearchBar from "@/components/search-bar/searchBar.vue";
  183. import TimeLine from "@/components/report/timeLine.vue";
  184. import { Reports, Home } from "@/config/api.js";
  185. let app = getApp();
  186. export default {
  187. components: {
  188. strategy,
  189. freeCharge,
  190. videoModule,
  191. modalDialog,
  192. SearchBar,
  193. TimeLine,
  194. },
  195. data() {
  196. return {
  197. tabAct_id: "",
  198. tabAct_idTwo: "",
  199. tabBars: [],
  200. pageNumFather: "",
  201. shadowStyle: {
  202. backgroundImage: "none",
  203. },
  204. tabBarsTow: [],
  205. isNum: 1,
  206. strategyIndex: "",
  207. strategyIndexTwo: 0,
  208. isSwitchover: 1,
  209. tradeList: [],
  210. OrderColumn: "",
  211. industryList: [],
  212. loadText: {
  213. loadmore: "上拉加载更多",
  214. loading: "加载中",
  215. nomore: "已经到底了",
  216. },
  217. refresh: false, //正在下拉
  218. page_no: 1,
  219. pageSize: 10,
  220. status: "loadmore",
  221. haveData: true,
  222. totalPage: "",
  223. matchTypeName: "",
  224. deepCoverFocus: [], //深度覆盖 //推荐关注
  225. deepCoverList: [
  226. {
  227. value: "cover",
  228. lable: "深度覆盖",
  229. isAct: false,
  230. },
  231. {
  232. value: "focus",
  233. lable: "推荐关注",
  234. isAct: false,
  235. },
  236. ],
  237. isScrollShow: false,
  238. goFollowShow: false,
  239. accounts: "",
  240. confirmText: "知道了",
  241. isCancelBtn: false,
  242. scrollLeft: 0,
  243. showTransition: false, //点击绝密后的隐现
  244. showVideoPop: false, //视频弹窗显示控制
  245. videoPopList: {}, // 视频信息
  246. isShowhasPermission: false, // 联系销售的提交申请
  247. applyForIsShow: false, // 提交申请
  248. jurisdictionList: {},
  249. hasPermission: "", //权限
  250. labelListData: [],
  251. timeLine: [], //时间线数据
  252. mockTimeLine: [
  253. {
  254. date: "不重要",
  255. Content: "<p>hello,world</p><p>hello,world</p><p>hello,world</p>",
  256. }, //第一项是为了获取当前手机下,三行是多少相对高度
  257. ],
  258. bannerDataList: [],
  259. bulletinData: {},
  260. };
  261. },
  262. onLoad(option) {
  263. this.loadList(option);
  264. this.getBannerList();
  265. },
  266. watch: {
  267. //监听tabs的变化
  268. tabAct_id: {
  269. handler() {
  270. this.initList();
  271. },
  272. immediate: true,
  273. },
  274. tabAct_idTwo: {
  275. handler(newVal) {
  276. newVal == 99999 && this.getTimeLineList();
  277. },
  278. immediate: true,
  279. },
  280. },
  281. methods: {
  282. //获取一级事件
  283. getClassify() {
  284. Reports.getClassify().then((res) => {
  285. if (res.Ret !== 200) return;
  286. this.tabBars = res.Data.List || [];
  287. if (!this.tabAct_id) {
  288. this.tabAct_id = res.Data.List[0].ChartPermissionId;
  289. this.$store.dispatch("statistics", {
  290. PageType: "Report",
  291. ChartPermissionId: Number(this.tabAct_id),
  292. });
  293. }
  294. this.getHomeStockName();
  295. });
  296. },
  297. //获取二级事件
  298. getstrategyAll() {
  299. Reports.getstrategyAll({
  300. ChartPermissionId: this.tabAct_id,
  301. }).then((res) => {
  302. this.tabBarsTow = res.Data.List;
  303. if (!this.tabAct_idTwo) {
  304. this.tabAct_idTwo = res.Data.List[0].CategoryId;
  305. }
  306. this.matchTypeName = res.Data.List[0].MatchTypeName;
  307. });
  308. },
  309. //tabs切换事件
  310. toggleTab(item, index) {
  311. this.strategyIndex = index;
  312. this.tabAct_idTwo = "";
  313. this.deepCoverFocus = [];
  314. this.labelListData = [];
  315. this.tabBarsTow = [];
  316. if (this.tabAct_id !== item.ChartPermissionId) {
  317. this.tabAct_id = item.ChartPermissionId;
  318. this.$store.dispatch("statistics", {
  319. PageType: "Report",
  320. ChartPermissionId: Number(this.tabAct_id),
  321. });
  322. this.getHomeStockName();
  323. this.page_no = 1;
  324. uni.pageScrollTo({
  325. scrollTop: 0,
  326. duration: 0,
  327. });
  328. }
  329. },
  330. scrollMove(e) {
  331. this.scrollLeft = e.detail.scrollLeft;
  332. },
  333. //tabs切换二级事件
  334. toggleTabTwo(item, index) {
  335. this.matchTypeName = item.MatchTypeName;
  336. this.strategyIndexTwo = index;
  337. if (this.tabAct_idTwo !== item.CategoryId) {
  338. this.tabAct_idTwo = item.CategoryId;
  339. this.page_no = 1;
  340. uni.pageScrollTo({
  341. scrollTop: 0,
  342. duration: 0,
  343. });
  344. }
  345. },
  346. //获取报告所有品种接口
  347. getTradeList() {
  348. Reports.getTradeList({
  349. ChartPermissionId: this.tabAct_id,
  350. }).then((res) => {
  351. if (res.Ret == 200) {
  352. this.tradeList = res.Data.List || [];
  353. }
  354. });
  355. },
  356. //获取产业报告所有品种接口
  357. getIndustryList() {
  358. Reports.getIndustryList({
  359. ChartPermissionId: this.tabAct_id,
  360. OrderColumn: this.OrderColumn,
  361. PageSize: this.pageSize,
  362. CurrentIndex: this.page_no,
  363. DeepCover: this.deepCoverFocus.includes("cover") ? 1 : 0,
  364. RecommendFocus: this.deepCoverFocus.includes("focus") ? 1 : 0,
  365. }).then((res) => {
  366. // this.industryList=res.Data.List
  367. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  368. this.totalPage = res.Data.Paging.Pages; //总页数
  369. if (this.page_no === 1) {
  370. this.industryList = res.Data.List || [];
  371. this.haveData = this.industryList.length ? true : false;
  372. if (this.refresh) {
  373. uni.stopPullDownRefresh();
  374. this.refresh = false;
  375. }
  376. } else {
  377. this.industryList = this.industryList.concat(res.Data.List);
  378. }
  379. });
  380. },
  381. //跳转季度策略
  382. isClickHandle(id) {
  383. uni.navigateTo({
  384. url: "/reportPages/industrialReport/industrialReport?id=" + id,
  385. });
  386. },
  387. //跳转产业报告
  388. async goIndustryReport(id) {
  389. this.$store.commit("setRouterReport", "产业列表");
  390. uni.navigateTo({ url: "/reportPages/IndustryReport/IndustryReport?id=" + id });
  391. },
  392. //点击关注的图标
  393. async reportFllow(id) {
  394. await this.$store.dispatch("showLoginModal");
  395. const res = await Reports.reportFllow({
  396. IndustrialManagementId: id,
  397. PageRouter: "细分产业列表",
  398. });
  399. if (res.Ret === 200) {
  400. if (res.Data.Status == 1) {
  401. this.goFollowShow = true;
  402. this.confirmText = res.Data.GoFollow ? "去关注" : "知道了";
  403. if (res.Data.GoFollow) {
  404. this.accounts = `产业关注成功 <br> 想要及时获取该产业内容的更新推送,请关注【查研观向小助手】公众号`;
  405. this.isCancelBtn = true;
  406. } else {
  407. this.accounts = "产业关注成功<br>请关注【查研观向小助手】公众号,及时获取产业报告更新提醒";
  408. }
  409. }
  410. this.industryList.forEach((key) => {
  411. if (key.IndustrialManagementId == id) {
  412. if (key.IsFollow == 1) {
  413. key.IsFollow = 0;
  414. uni.showToast({
  415. title: "已取消关注",
  416. icon: "none",
  417. duration: 2000,
  418. });
  419. } else {
  420. key.IsFollow = 1;
  421. }
  422. }
  423. });
  424. }
  425. },
  426. goFollowShowBtn() {
  427. if (this.confirmText == "去关注") {
  428. uni.navigateTo({
  429. url: "/activityPages/accountsOfficial/accountsOfficial",
  430. });
  431. }
  432. this.goFollowShow = false;
  433. },
  434. hideIsred(is) {
  435. this.tabBarsTow[this.strategyIndexTwo].IsRed = is;
  436. },
  437. // h获取时间线
  438. getTimeLineList() {
  439. Reports.getTacticsTimeLine({
  440. PageSize: this.pageSize,
  441. CurrentIndex: this.page_no,
  442. }).then((res) => {
  443. if (res.Ret === 200) {
  444. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  445. this.totalPage = res.Data.Paging.Pages;
  446. let list = res.Data.List || [];
  447. list = list.map((item) => {
  448. let temp = item;
  449. temp.date = item.PublishTime.split(" ")[0];
  450. if (item.Content.length) {
  451. temp.isExpand = true;
  452. temp.isShowBtn = true;
  453. }
  454. return temp;
  455. });
  456. if (this.page_no === 1) {
  457. this.timeLine = list;
  458. this.haveData = this.timeLine.length ? true : false;
  459. if (this.refresh) {
  460. uni.stopPullDownRefresh();
  461. this.refresh = false;
  462. }
  463. } else {
  464. this.timeLine = this.timeLine.concat(list);
  465. }
  466. }
  467. this.timeLine.unshift(this.mockTimeLine[0]);
  468. //在获取高度前把所有的晨会展开,收起的话无法获取正确高度
  469. this.timeLine.forEach((item) => {
  470. if (item.Content.length) {
  471. item.isExpand = true;
  472. item.isShowBtn = true;
  473. }
  474. });
  475. setTimeout(() => {
  476. this.$refs.timeChild.getConentsHeight();
  477. this.$refs.timeChild.loadTimeLine = true;
  478. }, 0);
  479. });
  480. },
  481. /* 搜索 */
  482. async goSearch() {
  483. uni.navigateTo({ url: "/pages-search/indedxSearch/indedxSearch?id=报告" + "&source=深度研究页面" });
  484. },
  485. /* 初始 */
  486. initList() {
  487. if (this.tabAct_id && this.strategyIndex !== 4 && this.strategyIndex !== 5) {
  488. this.page_no = 1;
  489. this.refresh = true;
  490. this.getIndustryList();
  491. this.getTradeList();
  492. }
  493. this.strategyIndex >= 4 && this.getstrategyAll();
  494. this.isNum = 1;
  495. },
  496. /* 页面加载 */
  497. loadList(option) {
  498. app.globalData.isSx = true;
  499. this.tabAct_id = option.tab || "";
  500. if (option.tabs !== "" && option.tabs) {
  501. this.strategyIndex = 4;
  502. this.tabAct_idTwo = option.tabs;
  503. }
  504. if (this.tabAct_id == 31) {
  505. this.strategyIndex = 5;
  506. }
  507. this.getClassify();
  508. },
  509. goSecretDetail(type) {
  510. uni.navigateTo({
  511. url: "/reportPages/secretDetails/secretDetails?type=" + type,
  512. });
  513. },
  514. /* 跳转榜单 */
  515. goHot() {
  516. uni.navigateTo({
  517. url: "/reportPages/hotList/hotList",
  518. });
  519. },
  520. //点击了checkbox
  521. checkboxChange(item) {
  522. item.isAct = !item.isAct;
  523. let arr = [];
  524. this.deepCoverList.forEach((key) => {
  525. if (key.isAct) {
  526. arr.push(key.value);
  527. }
  528. });
  529. this.deepCoverFocus = arr;
  530. this.page_no = 1;
  531. this.getIndustryList();
  532. },
  533. // 视频播放权限判断
  534. async handelVideoPlay(item) {
  535. this.$store.commit("setRouterReport", "产业列表");
  536. await this.$store.dispatch("showLoginModal");
  537. if (item.AuthInfo.HasPermission == 1) {
  538. this.playVideo(item);
  539. } else {
  540. this.hasPermission = item.AuthInfo.HasPermission;
  541. this.jurisdictionList.ActivityId = item.IndustryVideo.Id;
  542. this.jurisdictionList.isAudioVideo = 3;
  543. if (this.hasPermission == 2) {
  544. this.jurisdictionList.SellerMobile = item.AuthInfo.SellerMobile;
  545. this.jurisdictionList.SellerName = item.AuthInfo.SellerName;
  546. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  547. this.isShowhasPermission = true;
  548. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  549. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  550. this.applyForIsShow = true;
  551. }
  552. }
  553. },
  554. playVideo(item) {
  555. let params = {
  556. Id: item.IndustryVideo.Id,
  557. ResourceUrl: item.IndustryVideo.ResourceUrl,
  558. BackgroundImg: item.IndustryVideo.BackgroundImg,
  559. Title: `5min【${item.IndustryName}】逻辑解析`,
  560. };
  561. if (this.$store.state.videoPlay.playVideoId != item.Id) {
  562. this.$store.commit("videoPlay/palyTimeUpdate", 0);
  563. this.$store.commit("videoPlay/playVideo", item.Id);
  564. }
  565. this.globalBgAudioManager.stop();
  566. this.videoPopList = params;
  567. this.showVideoPop = true;
  568. },
  569. // 获取产业下的标签
  570. async getHomeStockName() {
  571. const res = await Reports.getHomeStockName({
  572. ChartPermissionId: this.tabAct_id,
  573. });
  574. if (res.Ret === 200) {
  575. this.labelListData = res.Data.List || [];
  576. }
  577. },
  578. // 策略平台的 标签 点击事件
  579. strategyLabelHadel(item) {
  580. this.$store.commit("setRouterReport", "综述链接");
  581. //去往文章详情页面
  582. uni.navigateTo({ url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId });
  583. },
  584. // 获取banner 列表
  585. async getBannerList() {
  586. const res = await Reports.collectionBannerList();
  587. if (res.Ret === 200) {
  588. console.log(res);
  589. this.bannerDataList = res.Data.ListA || [];
  590. console.log(this.bannerDataList);
  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: #3385ff;
  680. font-size: 30rpx;
  681. flex-shrink: 0;
  682. .hot-img {
  683. width: 28rpx;
  684. height: 28rpx;
  685. }
  686. }
  687. }
  688. }
  689. .label-content {
  690. display: flex;
  691. flex-wrap: wrap;
  692. background-color: #fff;
  693. padding: 30rpx 30rpx 0rpx 80rpx;
  694. margin: 20rpx 0 0;
  695. .item {
  696. margin-bottom: 20px !important;
  697. }
  698. }
  699. .label-content-column {
  700. display: flex;
  701. flex-wrap: wrap;
  702. flex-direction: column;
  703. overflow: hidden;
  704. padding: 20rpx 30rpx 0;
  705. overflow-x: auto;
  706. height: 164rpx;
  707. background-color: #fff;
  708. justify-content: space-between;
  709. border-radius: 4rpx;
  710. &::after {
  711. content: "";
  712. width: 0rpx;
  713. height: 46rpx;
  714. }
  715. }
  716. .label-content .item,
  717. .label-content-column .item {
  718. display: flex;
  719. align-items: center;
  720. justify-content: center;
  721. margin-right: 12rpx;
  722. margin-bottom: 20rpx;
  723. width: 180rpx;
  724. height: 52rpx;
  725. background: #e5efff;
  726. border-radius: 150rpx;
  727. font-size: 24rpx;
  728. color: $uni-color-new;
  729. }
  730. .label-content .item,
  731. .label-content-column .item-size {
  732. font-size: 24rpx;
  733. }
  734. .banne-content {
  735. // height: 110rpx;
  736. width: 100%;
  737. padding: 20rpx 30rpx 0;
  738. overflow: hidden;
  739. margin: 0 auto 20rpx;
  740. border-radius: 8rpx;
  741. display: flex;
  742. justify-content: space-between;
  743. swiper {
  744. width: 447rpx;
  745. height: 110rpx;
  746. border-radius: 16rpx;
  747. overflow: hidden;
  748. }
  749. image {
  750. width: 100%;
  751. height: 100%;
  752. }
  753. .bulletin {
  754. position: relative;
  755. width: 214rpx;
  756. height: 110rpx;
  757. border-radius: 16rpx;
  758. overflow: hidden;
  759. .limit-img {
  760. position: absolute;
  761. top: 0;
  762. right: 0;
  763. width: 50rpx;
  764. height: 26rpx;
  765. z-index: 1;
  766. }
  767. }
  768. }
  769. }
  770. .content-intimate {
  771. position: fixed;
  772. display: flex;
  773. align-items: center;
  774. bottom: 96rpx;
  775. right: 41rpx;
  776. height: 156rpx;
  777. .content {
  778. width: 432rpx;
  779. height: 112rpx;
  780. background-color: #fff;
  781. display: flex;
  782. border-radius: 56rpx;
  783. overflow: hidden;
  784. .cont-border {
  785. margin: 0 2rpx;
  786. }
  787. view {
  788. flex: 1;
  789. background-color: #3385ff;
  790. font-size: 30rpx;
  791. color: #fff;
  792. padding-top: 15rpx;
  793. text-align: center;
  794. }
  795. }
  796. image {
  797. width: 156rpx;
  798. height: 100%;
  799. z-index: 99;
  800. }
  801. }
  802. .new-recommend {
  803. width: 220rpx;
  804. height: 51rpx;
  805. display: flex;
  806. align-items: center;
  807. justify-content: space-between;
  808. color: #999999;
  809. font-size: 24rpx;
  810. background-color: #f8f8fa;
  811. border-radius: 47rpx;
  812. margin: auto 0;
  813. overflow: hidden;
  814. text {
  815. height: 51rpx;
  816. line-height: 51rpx;
  817. width: 120rpx;
  818. text-align: center;
  819. }
  820. .items-act {
  821. background-color: #3385ff;
  822. color: #fff;
  823. border-radius: 47rpx;
  824. }
  825. }
  826. </style>