reportForm.vue 28 KB

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