reportForm.vue 28 KB

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