reportForm.vue 26 KB

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