reportForm.vue 26 KB

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