reportForm.vue 28 KB

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