reportForm.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  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. bannerDataList: [],
  255. bulletinData: {},
  256. };
  257. },
  258. onLoad(option) {
  259. this.loadList(option);
  260. this.getBannerList();
  261. },
  262. watch: {
  263. //监听tabs的变化
  264. tabAct_id: {
  265. handler() {
  266. this.initList();
  267. },
  268. immediate: true,
  269. },
  270. tabAct_idTwo: {
  271. handler(newVal) {
  272. newVal == 99999 && this.getTimeLineList();
  273. },
  274. immediate: true,
  275. },
  276. },
  277. methods: {
  278. //获取一级事件
  279. getClassify() {
  280. Reports.getClassify().then((res) => {
  281. if (res.Ret !== 200) return;
  282. this.tabBars = res.Data.List || [];
  283. if (!this.tabAct_id) {
  284. this.tabAct_id = res.Data.List[0].ChartPermissionId;
  285. this.$store.dispatch("statistics", {
  286. PageType: "Report",
  287. ChartPermissionId: Number(this.tabAct_id),
  288. });
  289. }
  290. this.getHomeStockName();
  291. });
  292. },
  293. //获取二级事件
  294. getstrategyAll() {
  295. Reports.getstrategyAll({
  296. ChartPermissionId: this.tabAct_id,
  297. }).then((res) => {
  298. this.tabBarsTow = res.Data.List;
  299. if (!this.tabAct_idTwo) {
  300. this.tabAct_idTwo = res.Data.List[0].CategoryId;
  301. }
  302. this.matchTypeName = res.Data.List[0].MatchTypeName;
  303. });
  304. },
  305. //tabs切换事件
  306. toggleTab(item, index) {
  307. this.strategyIndex = index;
  308. this.tabAct_idTwo = "";
  309. this.deepCoverFocus = [];
  310. this.labelListData = [];
  311. this.tabBarsTow = [];
  312. if (this.tabAct_id !== item.ChartPermissionId) {
  313. this.tabAct_id = item.ChartPermissionId;
  314. this.$store.dispatch("statistics", {
  315. PageType: "Report",
  316. ChartPermissionId: Number(this.tabAct_id),
  317. });
  318. this.getHomeStockName();
  319. this.page_no = 1;
  320. uni.pageScrollTo({
  321. scrollTop: 0,
  322. duration: 0,
  323. });
  324. }
  325. },
  326. scrollMove(e) {
  327. this.scrollLeft = e.detail.scrollLeft;
  328. },
  329. //tabs切换二级事件
  330. toggleTabTwo(item, index) {
  331. this.matchTypeName = item.MatchTypeName;
  332. this.strategyIndexTwo = index;
  333. if (this.tabAct_idTwo !== item.CategoryId) {
  334. this.tabAct_idTwo = item.CategoryId;
  335. this.page_no = 1;
  336. uni.pageScrollTo({
  337. scrollTop: 0,
  338. duration: 0,
  339. });
  340. }
  341. },
  342. //获取报告所有品种接口
  343. getTradeList() {
  344. Reports.getTradeList({
  345. ChartPermissionId: this.tabAct_id,
  346. }).then((res) => {
  347. if (res.Ret == 200) {
  348. this.tradeList = res.Data.List || [];
  349. }
  350. });
  351. },
  352. //获取产业报告所有品种接口
  353. getIndustryList() {
  354. Reports.getIndustryList({
  355. ChartPermissionId: this.tabAct_id,
  356. OrderColumn: this.OrderColumn,
  357. PageSize: this.pageSize,
  358. CurrentIndex: this.page_no,
  359. DeepCover: this.deepCoverFocus.includes("cover") ? 1 : 0,
  360. RecommendFocus: this.deepCoverFocus.includes("focus") ? 1 : 0,
  361. }).then((res) => {
  362. // this.industryList=res.Data.List
  363. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  364. this.totalPage = res.Data.Paging.Pages; //总页数
  365. if (this.page_no === 1) {
  366. this.industryList = res.Data.List || [];
  367. this.haveData = this.industryList.length ? true : false;
  368. if (this.refresh) {
  369. uni.stopPullDownRefresh();
  370. this.refresh = false;
  371. }
  372. } else {
  373. this.industryList = this.industryList.concat(res.Data.List);
  374. }
  375. });
  376. },
  377. //跳转季度策略
  378. isClickHandle(id) {
  379. uni.navigateTo({
  380. url: "/reportPages/industrialReport/industrialReport?id=" + id,
  381. });
  382. },
  383. //跳转产业报告
  384. async goIndustryReport(id) {
  385. this.$store.commit("setRouterReport", "产业列表");
  386. uni.navigateTo({ url: "/reportPages/IndustryReport/IndustryReport?id=" + id });
  387. },
  388. //点击关注的图标
  389. async reportFllow(id) {
  390. await this.$store.dispatch("showLoginModal");
  391. const res = await Reports.reportFllow({
  392. IndustrialManagementId: id,
  393. PageRouter: "细分产业列表",
  394. });
  395. if (res.Ret === 200) {
  396. if (res.Data.Status == 1) {
  397. this.goFollowShow = true;
  398. this.confirmText = res.Data.GoFollow ? "去关注" : "知道了";
  399. if (res.Data.GoFollow) {
  400. this.accounts = `产业关注成功 <br> 想要及时获取该产业内容的更新推送,请关注【查研观向小助手】公众号`;
  401. this.isCancelBtn = true;
  402. } else {
  403. this.accounts = "产业关注成功<br>请关注【查研观向小助手】公众号,及时获取产业报告更新提醒";
  404. }
  405. }
  406. this.industryList.forEach((key) => {
  407. if (key.IndustrialManagementId == id) {
  408. if (key.IsFollow == 1) {
  409. key.IsFollow = 0;
  410. uni.showToast({
  411. title: "已取消关注",
  412. icon: "none",
  413. duration: 2000,
  414. });
  415. } else {
  416. key.IsFollow = 1;
  417. }
  418. }
  419. });
  420. }
  421. },
  422. goFollowShowBtn() {
  423. if (this.confirmText == "去关注") {
  424. uni.navigateTo({
  425. url: "/activityPages/accountsOfficial/accountsOfficial",
  426. });
  427. }
  428. this.goFollowShow = false;
  429. },
  430. hideIsred(is) {
  431. this.tabBarsTow[this.strategyIndexTwo].IsRed = is;
  432. },
  433. // h获取时间线
  434. getTimeLineList() {
  435. Reports.getTacticsTimeLine({
  436. PageSize: this.pageSize,
  437. CurrentIndex: this.page_no,
  438. }).then((res) => {
  439. if (res.Ret === 200) {
  440. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  441. this.totalPage = res.Data.Paging.Pages;
  442. let list = res.Data.List || [];
  443. list = list.map((item) => {
  444. let temp = item;
  445. temp.date = item.PublishTime.split(" ")[0];
  446. console.log(item.Content);
  447. if (item.Content.length) {
  448. item.isShowBtn = item.Content.length > 60 ? true : false;
  449. item.isExpand = item.Content.length > 60 ? false : true;
  450. }
  451. return temp;
  452. });
  453. if (this.page_no === 1) {
  454. this.timeLine = list;
  455. this.haveData = this.timeLine.length ? true : false;
  456. if (this.refresh) {
  457. uni.stopPullDownRefresh();
  458. this.refresh = false;
  459. }
  460. } else {
  461. this.timeLine = this.timeLine.concat(list);
  462. }
  463. }
  464. setTimeout(() => {
  465. this.$refs.timeChild.loadTimeLine = true;
  466. this.$refs.timeChild.getConentsHeight();
  467. }, 0);
  468. });
  469. },
  470. /* 搜索 */
  471. async goSearch() {
  472. uni.navigateTo({ url: "/pages-search/indedxSearch/indedxSearch?id=报告" + "&source=深度研究页面" });
  473. },
  474. /* 初始 */
  475. initList() {
  476. if (this.tabAct_id && this.strategyIndex !== 4 && this.strategyIndex !== 5) {
  477. this.page_no = 1;
  478. this.refresh = true;
  479. this.getIndustryList();
  480. this.getTradeList();
  481. }
  482. this.strategyIndex >= 4 && this.getstrategyAll();
  483. this.isNum = 1;
  484. },
  485. /* 页面加载 */
  486. loadList(option) {
  487. app.globalData.isSx = true;
  488. this.tabAct_id = option.tab || "";
  489. if (option.tabs !== "" && option.tabs) {
  490. this.strategyIndex = 4;
  491. this.tabAct_idTwo = option.tabs;
  492. }
  493. if (this.tabAct_id == 31) {
  494. this.strategyIndex = 5;
  495. }
  496. this.getClassify();
  497. },
  498. goSecretDetail(type) {
  499. uni.navigateTo({
  500. url: "/reportPages/secretDetails/secretDetails?type=" + type,
  501. });
  502. },
  503. /* 跳转榜单 */
  504. goHot() {
  505. uni.navigateTo({
  506. url: "/reportPages/hotList/hotList",
  507. });
  508. },
  509. //点击了checkbox
  510. checkboxChange(item) {
  511. item.isAct = !item.isAct;
  512. let arr = [];
  513. this.deepCoverList.forEach((key) => {
  514. if (key.isAct) {
  515. arr.push(key.value);
  516. }
  517. });
  518. this.deepCoverFocus = arr;
  519. this.page_no = 1;
  520. this.getIndustryList();
  521. },
  522. // 视频播放权限判断
  523. async handelVideoPlay(item) {
  524. this.$store.commit("setRouterReport", "产业列表");
  525. await this.$store.dispatch("showLoginModal");
  526. if (item.AuthInfo.HasPermission == 1) {
  527. this.playVideo(item);
  528. } else {
  529. this.hasPermission = item.AuthInfo.HasPermission;
  530. this.jurisdictionList.ActivityId = item.IndustryVideo.Id;
  531. this.jurisdictionList.isAudioVideo = 3;
  532. if (this.hasPermission == 2) {
  533. this.jurisdictionList.SellerMobile = item.AuthInfo.SellerMobile;
  534. this.jurisdictionList.SellerName = item.AuthInfo.SellerName;
  535. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  536. this.isShowhasPermission = true;
  537. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  538. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  539. this.applyForIsShow = true;
  540. }
  541. }
  542. },
  543. playVideo(item) {
  544. let params = {
  545. Id: item.IndustryVideo.Id,
  546. ResourceUrl: item.IndustryVideo.ResourceUrl,
  547. BackgroundImg: item.IndustryVideo.BackgroundImg,
  548. Title: `5min【${item.IndustryName}】逻辑解析`,
  549. };
  550. if (this.$store.state.videoPlay.playVideoId != item.Id) {
  551. this.$store.commit("videoPlay/palyTimeUpdate", 0);
  552. this.$store.commit("videoPlay/playVideo", item.Id);
  553. }
  554. this.globalBgAudioManager.stop();
  555. this.videoPopList = params;
  556. this.showVideoPop = true;
  557. },
  558. // 获取产业下的标签
  559. async getHomeStockName() {
  560. const res = await Reports.getHomeStockName({
  561. ChartPermissionId: this.tabAct_id,
  562. });
  563. if (res.Ret === 200) {
  564. this.labelListData = res.Data.List || [];
  565. }
  566. },
  567. // 策略平台的 标签 点击事件
  568. strategyLabelHadel(item) {
  569. this.$store.commit("setRouterReport", "综述链接");
  570. //去往文章详情页面
  571. uni.navigateTo({ url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId });
  572. },
  573. // 获取banner 列表
  574. async getBannerList() {
  575. const res = await Reports.collectionBannerList();
  576. if (res.Ret === 200) {
  577. this.bannerDataList = res.Data.ListA || [];
  578. this.bulletinData = res.Data.ListB || {};
  579. }
  580. },
  581. // bannaer 点击事件
  582. bannerSwiperHandler(item) {
  583. uni.navigateTo({
  584. url: item.Path,
  585. });
  586. },
  587. // 精选看板的点击事件
  588. lookBulletinhandler() {
  589. uni.navigateTo({
  590. url: "/reportPages/selectedBulletin/selectedBulletin",
  591. });
  592. },
  593. },
  594. /* 触底 */
  595. onReachBottom: Throttle(function () {
  596. if (this.strategyIndex == 4 && this.tabAct_idTwo != 99999) {
  597. this.isNum++;
  598. return;
  599. }
  600. if (this.status === "nomore") return;
  601. this.status = "loading";
  602. this.page_no++;
  603. this.tabAct_idTwo != 99999 ? this.getIndustryList() : this.getTimeLineList();
  604. }),
  605. /* 下拉刷新 */
  606. onPullDownRefresh: Throttle(function () {
  607. if (this.strategyIndex == 4) {
  608. this.tabAct_idTwo != 99999 ? (this.pageNumFather = 1) : this.getTimeLineList();
  609. } else {
  610. this.industryList = [];
  611. this.pageNumFather = null;
  612. this.page_no = 1;
  613. this.refresh = true;
  614. this.getIndustryList();
  615. this.getTradeList();
  616. }
  617. wx.stopPullDownRefresh();
  618. }),
  619. onShow() {
  620. this.getRecordTracking("深度研究");
  621. if (this.tabAct_id) {
  622. this.$store.dispatch("statistics", {
  623. PageType: "Report",
  624. ChartPermissionId: Number(this.tabAct_id),
  625. });
  626. }
  627. if (this.tabAct_id && app.globalData.isSx) {
  628. this.getTradeList();
  629. }
  630. },
  631. /**
  632. * 用户点击分享
  633. */
  634. onShareAppMessage: function (res) {
  635. return {
  636. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "深度研究",
  637. path: "/pages/reportForm/reportForm?tab=" + this.tabAct_id + "&tabs=" + this.tabAct_idTwo,
  638. success: (res) => {},
  639. fail: (err) => {},
  640. };
  641. },
  642. onHide() {
  643. if (this.showTransition) {
  644. this.showTransition = false;
  645. }
  646. if (this.strategyIndex == 4 || this.strategyIndex == 5) return;
  647. },
  648. };
  649. </script>
  650. <style lang="scss">
  651. @import "./index.scss";
  652. .reportForm-container {
  653. .nav-bar-wrap {
  654. position: sticky;
  655. top: 0;
  656. left: 0;
  657. z-index: 99;
  658. .content {
  659. position: relative;
  660. padding-left: 30rpx;
  661. .hot-top {
  662. display: flex;
  663. align-items: center;
  664. width: 140rpx;
  665. height: 100%;
  666. color: $uni-color-new;
  667. font-size: 30rpx;
  668. flex-shrink: 0;
  669. .hot-img {
  670. width: 40rpx;
  671. height: 40rpx;
  672. margin-right: 10rpx;
  673. }
  674. }
  675. }
  676. }
  677. .label-content {
  678. display: flex;
  679. flex-wrap: wrap;
  680. background-color: #fff;
  681. padding: 30rpx 30rpx 0rpx 80rpx;
  682. margin: 20rpx 0 0;
  683. .item {
  684. margin-bottom: 20px !important;
  685. }
  686. }
  687. .label-content-column {
  688. display: flex;
  689. flex-wrap: wrap;
  690. flex-direction: column;
  691. overflow: hidden;
  692. padding: 20rpx 30rpx 0;
  693. overflow-x: auto;
  694. height: 164rpx;
  695. background-color: #fff;
  696. justify-content: space-between;
  697. border-radius: 4rpx;
  698. &::after {
  699. content: "";
  700. width: 0rpx;
  701. height: 46rpx;
  702. }
  703. }
  704. .label-content .item,
  705. .label-content-column .item {
  706. display: flex;
  707. align-items: center;
  708. justify-content: center;
  709. margin-right: 12rpx;
  710. margin-bottom: 20rpx;
  711. width: 180rpx;
  712. height: 52rpx;
  713. background: #e5efff;
  714. border-radius: 150rpx;
  715. font-size: 24rpx;
  716. color: $uni-color-new;
  717. }
  718. .label-content .item,
  719. .label-content-column .item-size {
  720. font-size: 24rpx;
  721. }
  722. .banne-content {
  723. // height: 110rpx;
  724. width: 100%;
  725. padding: 20rpx 30rpx 0;
  726. overflow: hidden;
  727. margin: 0 auto 20rpx;
  728. border-radius: 8rpx;
  729. display: flex;
  730. justify-content: space-between;
  731. swiper {
  732. // width: 447rpx;
  733. flex: 1;
  734. height: 110rpx;
  735. border-radius: 16rpx;
  736. overflow: hidden;
  737. }
  738. image {
  739. width: 100%;
  740. height: 100%;
  741. }
  742. .bulletin {
  743. position: relative;
  744. width: 214rpx;
  745. height: 110rpx;
  746. border-radius: 16rpx;
  747. overflow: hidden;
  748. .limit-img {
  749. position: absolute;
  750. top: 0;
  751. right: 0;
  752. width: 50rpx;
  753. height: 26rpx;
  754. z-index: 1;
  755. }
  756. }
  757. }
  758. }
  759. .content-intimate {
  760. position: fixed;
  761. display: flex;
  762. align-items: center;
  763. bottom: 96rpx;
  764. right: 41rpx;
  765. height: 156rpx;
  766. .content {
  767. width: 432rpx;
  768. height: 112rpx;
  769. background-color: #fff;
  770. display: flex;
  771. border-radius: 56rpx;
  772. overflow: hidden;
  773. .cont-border {
  774. margin: 0 2rpx;
  775. }
  776. view {
  777. flex: 1;
  778. background-color: #376cbb;
  779. font-size: 30rpx;
  780. color: #fff;
  781. padding-top: 15rpx;
  782. text-align: center;
  783. }
  784. }
  785. image {
  786. width: 156rpx;
  787. height: 100%;
  788. z-index: 99;
  789. }
  790. }
  791. .new-recommend {
  792. width: 220rpx;
  793. height: 51rpx;
  794. display: flex;
  795. align-items: center;
  796. justify-content: space-between;
  797. color: #999999;
  798. font-size: 24rpx;
  799. background-color: #f8f8fa;
  800. border-radius: 47rpx;
  801. margin: auto 0;
  802. overflow: hidden;
  803. text {
  804. height: 51rpx;
  805. line-height: 51rpx;
  806. width: 120rpx;
  807. text-align: center;
  808. }
  809. .items-act {
  810. background-color: #376cbb;
  811. color: #fff;
  812. border-radius: 47rpx;
  813. }
  814. }
  815. </style>