reportForm.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  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
  16. :class="['item', item.ChartPermissionId == tabAct_id && 'tabs-active']"
  17. v-for="(item, index) in tabBars"
  18. :key="item.ChartPermissionId"
  19. @click="toggleTab(item, index)"
  20. >
  21. {{ item.PermissionName }}
  22. <view class="active" v-if="item.ChartPermissionId == tabAct_id"></view>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 内容 -->
  27. <view class="strategy" v-if="strategyIndex >= 4">
  28. <view class="tab-cont-two">
  29. <block v-for="(item, index) in tabBarsTow" :key="item.CategoryId">
  30. <view
  31. :id="'__' + index"
  32. class="scroll-tab-item"
  33. :class="{ active: tabAct_idTwo == item.CategoryId }"
  34. @click.stop="toggleTabTwo(item, index)"
  35. >
  36. {{ item.MatchTypeName }}
  37. <text class="reg-text" v-if="item.IsRed"></text>
  38. </view>
  39. </block>
  40. </view>
  41. <view class="row"> </view>
  42. <block v-if="tabAct_idTwo != 99999">
  43. <!-- 子组件 -->
  44. <strategy
  45. :strategyIndexTwo="strategyIndexTwo"
  46. :pageNumFather="pageNumFather"
  47. :matchTypeName="matchTypeName"
  48. :tabAct_idTwo="tabAct_idTwo"
  49. :isNum="isNum"
  50. :isSwitchover="isSwitchover"
  51. @hideIsred="hideIsred"
  52. />
  53. </block>
  54. <!-- 时间线 -->
  55. <block v-if="tabAct_idTwo == 99999">
  56. <time-line ref="timeChild" :dataList="timeLine" @setRouter="setRouter" />
  57. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" v-if="totalPage > 1" />
  58. </block>
  59. </view>
  60. <!-- </view> -->
  61. <view class="industrial_eport_one" v-else>
  62. <!-- 行业报告 -->
  63. <view class="industry" v-if="tradeList">
  64. <view class="industry-top">
  65. <view class="img-top-box">
  66. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/industry-ico.png"></image>
  67. <text>行业综述</text>
  68. </view>
  69. <view> </view>
  70. </view>
  71. <view class="industry-box" @click="isClickHandle(item.CategoryId)" v-for="item in tradeList" :key="item.CategoryId">
  72. <view class="box-left">
  73. {{ item.MatchTypeName }}
  74. <text v-if="item.IsRed"></text>
  75. </view>
  76. <view class="box-right">
  77. <text>{{ item.UpdateTime }}</text>
  78. <u-icon name="arrow-right" color="#BDBDBD" size="34"></u-icon>
  79. </view>
  80. </view>
  81. </view>
  82. <view v-if="labelListData.length" :class="[labelListData.length > 9 ? 'label-content-column' : 'label-content']">
  83. <view
  84. @click="strategyLabelHadel(item)"
  85. :class="['item', item.Stock.length > 6 && 'item-size', 'text_oneLine']"
  86. v-for="item in labelListData"
  87. :key="item.ArticleId"
  88. >
  89. {{ item.Stock }}
  90. </view>
  91. </view>
  92. <!-- 产业报告 -->
  93. <view class="industry">
  94. <view style="height: 12rpx" v-if="!tradeList"></view>
  95. <view class="industry-top industry-sticky">
  96. <view class="img-top-box">
  97. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/property_ico.png" style="height: 50rpx"></image>
  98. <text class="text-sub">细分产业</text>
  99. </view>
  100. <view class="checkbox-content">
  101. <van-checkbox-group class="checkbox-ui" :value="deepCoverFocus" @change="checkboxChange">
  102. <van-checkbox style="margin-right: 30rpx" name="cover" icon-size="14" shape="square">深度覆盖</van-checkbox>
  103. <van-checkbox name="focus" icon-size="14" shape="square">推荐关注</van-checkbox>
  104. </van-checkbox-group>
  105. </view>
  106. </view>
  107. <!-- 需要循环的地方 -->
  108. <view class="forindustry" v-for="item in industryList" :key="item.IndustrialManagementId">
  109. <!-- 火锅底料这个位置 -->
  110. <view class="industry-content">
  111. <view class="industry-box-left" @click="reportFllow(item.IndustrialManagementId)">
  112. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/attention_act.png" v-if="item.IsFollow"></image>
  113. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/attention_icon.png" v-else></image>
  114. </view>
  115. <view class="industry-box-right" @click="goIndustryReport(item.IndustrialManagementId)">
  116. <view class="ndustry-box-read">
  117. <text>{{ item.IndustryName }}</text>
  118. <image class="hot-icon" v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/hot_report.png" mode=""></image>
  119. <image v-if="item.IsNew" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png" mode=""></image>
  120. </view>
  121. <view class="ndustry-box-arrow">
  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="#BDBDBD" size="34"></u-icon>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="content-box" @click="goIndustryReport(item.IndustrialManagementId)">
  129. <view class="read-more">
  130. <view
  131. class="industry-video-item"
  132. @click.stop="handelVideoPlay(item)"
  133. :style="{ 'background-image': 'url(' + item.IndustryVideo.BackgroundImg + ')' }"
  134. v-if="item.IndustryVideo"
  135. >
  136. 5min
  137. <br />
  138. 逻辑解析
  139. <view class="industry-video-icon">
  140. <image src="https://hzstatic.hzinsights.com/cygx/video-right-top-icon.svg"></image>
  141. </view>
  142. </view>
  143. <block v-if="item.IndustrialSubjectList">
  144. <view v-if="item.IndustryVideo" style="display: flex; flex-wrap: wrap; width: 420rpx">
  145. <view v-for="val in item.IndustrialSubjectList.slice(0, 4)" :key="val.IndustrialSubjectId" class="text-box">{{
  146. val.SubjectName
  147. }}</view>
  148. </view>
  149. <block v-if="item.IndustryVideo && item.IndustrialSubjectList.length > 4">
  150. <view v-for="val in item.IndustrialSubjectList.slice(4)" :key="val.IndustrialSubjectId" class="text-box">{{
  151. val.SubjectName
  152. }}</view>
  153. </block>
  154. <block v-if="!item.IndustryVideo">
  155. <view v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId" class="text-box">{{ val.SubjectName }}</view>
  156. </block>
  157. </block>
  158. </view>
  159. </view>
  160. </view>
  161. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1" />
  162. </view>
  163. </view>
  164. <u-modal
  165. v-model="goFollowShow"
  166. :content-style="{ fontSize: '32rpx' }"
  167. @confirm="goFollowShowBtn"
  168. :show-cancel-button="isCancelBtn"
  169. :confirm-text="confirmText"
  170. @cancel="isCancelBtn = false"
  171. :show-title="false"
  172. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  173. :confirm-style="{ fontWeight: '700' }"
  174. >
  175. <view class="slot-content">
  176. <rich-text :nodes="accounts"></rich-text>
  177. </view>
  178. </u-modal>
  179. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  180. <!-- 视频模块 -->
  181. <videoModule :showVideoPop.sync="showVideoPop" :videoPopList="videoPopList" />
  182. <modalDialog
  183. :isShowhasPermission="isShowhasPermission"
  184. :applyForIsShow="applyForIsShow"
  185. :jurisdictionList="jurisdictionList"
  186. :hasPermission="hasPermission"
  187. />
  188. <Loading />
  189. </view>
  190. </template>
  191. <script>
  192. import strategy from "./components/strategy.vue";
  193. import { Throttle, Debounce } from "@/config/util.js";
  194. import freeCharge from "@/components/freeCharge";
  195. import videoModule from "@/components/videoModule/index";
  196. import modalDialog from "@/components/modalDialog.vue";
  197. import SearchBar from "@/components/search-bar/searchBar.vue";
  198. import TimeLine from "@/components/report/timeLine.vue";
  199. import { Reports } from "@/config/api.js";
  200. let app = getApp();
  201. export default {
  202. components: {
  203. strategy,
  204. freeCharge,
  205. videoModule,
  206. modalDialog,
  207. SearchBar,
  208. TimeLine,
  209. },
  210. data() {
  211. return {
  212. tabAct_id: "",
  213. tabAct_idTwo: "",
  214. tabBars: [],
  215. pageNumFather: "",
  216. shadowStyle: {
  217. backgroundImage: "none",
  218. },
  219. tabBarsTow: [],
  220. isNum: 1,
  221. strategyIndex: "",
  222. strategyIndexTwo: 0,
  223. isSwitchover: 1,
  224. tradeList: [],
  225. OrderColumn: "",
  226. industryList: [],
  227. loadText: {
  228. loadmore: "上拉加载更多",
  229. loading: "加载中",
  230. nomore: "已经到底了",
  231. },
  232. refresh: false, //正在下拉
  233. page_no: 1,
  234. pageSize: 10,
  235. status: "loadmore",
  236. haveData: true,
  237. totalPage: "",
  238. matchTypeName: "",
  239. deepCoverFocus: [], //深度覆盖 //推荐关注
  240. isScrollShow: false,
  241. goFollowShow: false,
  242. accounts: "",
  243. confirmText: "知道了",
  244. isCancelBtn: false,
  245. scrollLeft: 0,
  246. showTransition: false, //点击绝密后的隐现
  247. showVideoPop: false, //视频弹窗显示控制
  248. videoPopList: {}, // 视频信息
  249. isShowhasPermission: false, // 联系销售的提交申请
  250. applyForIsShow: false, // 提交申请
  251. jurisdictionList: {},
  252. hasPermission: "", //权限
  253. labelListData: [],
  254. timeLine: [], //时间线数据
  255. mockTimeLine: [
  256. {
  257. date: "不重要",
  258. Content: "<p>hello,world</p><p>hello,world</p><p>hello,world</p>",
  259. }, //第一项是为了获取当前手机下,三行是多少相对高度
  260. ],
  261. };
  262. },
  263. onLoad(option) {
  264. this.loadList(option);
  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. await this.$store.dispatch("checkHandle", "/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(e) {
  522. this.deepCoverFocus = e.detail;
  523. this.page_no = 1;
  524. this.getIndustryList();
  525. },
  526. // 视频播放权限判断
  527. async handelVideoPlay(item) {
  528. this.$store.commit("setRouterReport", "产业列表");
  529. await this.$store.dispatch("showLoginModal");
  530. if (item.AuthInfo.HasPermission == 1) {
  531. this.playVideo(item);
  532. } else {
  533. this.hasPermission = item.AuthInfo.HasPermission;
  534. this.jurisdictionList.ActivityId = item.IndustryVideo.Id;
  535. this.jurisdictionList.isAudioVideo = 3;
  536. if (this.hasPermission == 2) {
  537. this.jurisdictionList.SellerMobile = item.AuthInfo.SellerMobile;
  538. this.jurisdictionList.SellerName = item.AuthInfo.SellerName;
  539. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  540. this.isShowhasPermission = true;
  541. } else if (this.hasPermission == 3 || this.hasPermission == 4 || this.hasPermission == 5) {
  542. this.jurisdictionList.PopupMsg = item.AuthInfo.PopupMsg;
  543. this.applyForIsShow = true;
  544. }
  545. }
  546. },
  547. playVideo(item) {
  548. let params = {
  549. Id: item.IndustryVideo.Id,
  550. ResourceUrl: item.IndustryVideo.ResourceUrl,
  551. BackgroundImg: item.IndustryVideo.BackgroundImg,
  552. Title: `5min【${item.IndustryName}】逻辑解析`,
  553. };
  554. if (this.$store.state.videoPlay.playVideoId != item.Id) {
  555. this.$store.commit("videoPlay/palyTimeUpdate", 0);
  556. this.$store.commit("videoPlay/playVideo", item.Id);
  557. }
  558. this.globalBgAudioManager.stop();
  559. this.videoPopList = params;
  560. this.showVideoPop = true;
  561. },
  562. // 获取产业下的标签
  563. async getHomeStockName() {
  564. const res = await Reports.getHomeStockName({
  565. ChartPermissionId: this.tabAct_id,
  566. });
  567. if (res.Ret === 200) {
  568. this.labelListData = res.Data.List || [];
  569. }
  570. },
  571. // 策略平台的 标签 点击事件
  572. strategyLabelHadel(item) {
  573. this.$store.commit("setRouterReport", "综述链接");
  574. //去往文章详情页面
  575. uni.navigateTo({ url: "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId });
  576. },
  577. },
  578. /* 触底 */
  579. onReachBottom: Throttle(function () {
  580. if (this.strategyIndex == 4 && this.tabAct_idTwo != 99999) {
  581. this.isNum++;
  582. return;
  583. }
  584. if (this.status === "nomore") return;
  585. this.status = "loading";
  586. this.page_no++;
  587. this.tabAct_idTwo != 99999 ? this.getIndustryList() : this.getTimeLineList();
  588. }),
  589. /* 下拉刷新 */
  590. onPullDownRefresh: Throttle(function () {
  591. if (this.strategyIndex == 4) {
  592. this.tabAct_idTwo != 99999 ? (this.pageNumFather = 1) : this.getTimeLineList();
  593. } else {
  594. this.industryList = [];
  595. this.pageNumFather = null;
  596. this.page_no = 1;
  597. this.refresh = true;
  598. this.getIndustryList();
  599. this.getTradeList();
  600. }
  601. wx.stopPullDownRefresh();
  602. }),
  603. onShow() {
  604. this.getRecordTracking("深度研究");
  605. if (this.tabAct_id) {
  606. this.$store.dispatch("statistics", {
  607. PageType: "Report",
  608. ChartPermissionId: Number(this.tabAct_id),
  609. });
  610. }
  611. if (this.tabAct_id && app.globalData.isSx) {
  612. this.getTradeList();
  613. }
  614. },
  615. /**
  616. * 用户点击分享
  617. */
  618. onShareAppMessage: function (res) {
  619. return {
  620. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "深度研究",
  621. path: "/pages/reportForm/reportForm?tab=" + this.tabAct_id + "&tabs=" + this.tabAct_idTwo,
  622. success: (res) => {},
  623. fail: (err) => {},
  624. };
  625. },
  626. onHide() {
  627. if (this.showTransition) {
  628. this.showTransition = false;
  629. }
  630. if (this.strategyIndex == 4 || this.strategyIndex == 5) return;
  631. },
  632. };
  633. </script>
  634. <style lang="scss">
  635. @import "./index.scss";
  636. .reportForm-container {
  637. .nav-bar-wrap {
  638. position: sticky;
  639. top: 0;
  640. left: 0;
  641. z-index: 99;
  642. .content {
  643. position: relative;
  644. padding-left: 30rpx;
  645. .hot-top {
  646. display: flex;
  647. align-items: center;
  648. width: 140rpx;
  649. height: 100%;
  650. color: #3385ff;
  651. font-size: 30rpx;
  652. flex-shrink: 0;
  653. .hot-img {
  654. width: 28rpx;
  655. height: 28rpx;
  656. }
  657. }
  658. }
  659. .second-tabs {
  660. width: 100%;
  661. padding-left: 30rpx;
  662. display: flex;
  663. overflow-x: auto;
  664. background-color: #fff;
  665. font-size: 34rpx;
  666. color: #999999;
  667. &::-webkit-scrollbar {
  668. width: 0;
  669. height: 0;
  670. display: none;
  671. }
  672. .item {
  673. position: relative;
  674. padding-bottom: 16rpx;
  675. margin-right: 50rpx;
  676. flex-shrink: 0;
  677. .limit-img {
  678. position: absolute;
  679. top: -15rpx;
  680. right: -50rpx;
  681. z-index: 99;
  682. }
  683. .active {
  684. position: absolute;
  685. left: 0;
  686. bottom: 0;
  687. height: 4rpx;
  688. width: 100%;
  689. border-radius: 1rpx;
  690. background: linear-gradient(90deg, #2e85ff 0%, #7eeaf6 100%);
  691. }
  692. }
  693. .tabs-active {
  694. color: #3385ff;
  695. font-weight: 500;
  696. }
  697. .tabs-img {
  698. width: 46rpx;
  699. height: 26rpx;
  700. }
  701. }
  702. }
  703. .label-content {
  704. display: flex;
  705. flex-wrap: wrap;
  706. background-color: #fff;
  707. padding: 30rpx 30rpx 0rpx 80rpx;
  708. margin: 20rpx 0 0;
  709. .item {
  710. margin-bottom: 20px !important;
  711. }
  712. }
  713. .label-content-column {
  714. display: flex;
  715. flex-wrap: wrap;
  716. flex-direction: column;
  717. overflow: hidden;
  718. padding: 30rpx 30rpx 0;
  719. overflow-x: auto;
  720. height: 258rpx;
  721. margin: 20rpx 0 0;
  722. background-color: #fff;
  723. justify-content: space-between;
  724. &::after {
  725. content: "";
  726. width: 0rpx;
  727. height: 46rpx;
  728. }
  729. }
  730. .label-content .item,
  731. .label-content-column .item {
  732. display: flex;
  733. align-items: center;
  734. justify-content: center;
  735. margin-right: 40rpx;
  736. margin-bottom: 10px;
  737. width: 170rpx;
  738. height: 46rpx;
  739. background: #f5f5f5;
  740. box-shadow: 0px 2rpx 9rpx 0rpx rgba(0, 0, 0, 0.16), inset 0rpx 4rpx 4rpx 0rpx rgba(255, 255, 255, 0.49);
  741. border-radius: 65rpx;
  742. font-size: 26rpx;
  743. }
  744. .label-content .item,
  745. .label-content-column .item-size {
  746. font-size: 24rpx;
  747. }
  748. }
  749. .content-intimate {
  750. position: fixed;
  751. display: flex;
  752. align-items: center;
  753. bottom: 96rpx;
  754. right: 41rpx;
  755. height: 156rpx;
  756. .content {
  757. width: 432rpx;
  758. height: 112rpx;
  759. background-color: #fff;
  760. display: flex;
  761. border-radius: 56rpx;
  762. overflow: hidden;
  763. .cont-border {
  764. margin: 0 2rpx;
  765. }
  766. view {
  767. flex: 1;
  768. background-color: #3385ff;
  769. font-size: 30rpx;
  770. color: #fff;
  771. padding-top: 15rpx;
  772. text-align: center;
  773. }
  774. }
  775. image {
  776. width: 156rpx;
  777. height: 100%;
  778. z-index: 99;
  779. }
  780. }
  781. .new-recommend {
  782. width: 220rpx;
  783. height: 51rpx;
  784. display: flex;
  785. align-items: center;
  786. justify-content: space-between;
  787. color: #999999;
  788. font-size: 24rpx;
  789. background-color: #f8f8fa;
  790. border-radius: 47rpx;
  791. margin: auto 0;
  792. overflow: hidden;
  793. text {
  794. height: 51rpx;
  795. line-height: 51rpx;
  796. width: 120rpx;
  797. text-align: center;
  798. }
  799. .items-act {
  800. background-color: #3385ff;
  801. color: #fff;
  802. border-radius: 47rpx;
  803. }
  804. }
  805. </style>