reportForm.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. <template>
  2. <view class="reportForm-container">
  3. <!-- tabs -->
  4. <view class="index-fixed">
  5. <view class="index-header">
  6. <input type="text" placeholder="搜索您想要的产业资源包" placeholder-class="sea_ipt_placeholder" class="sea_ipt" v-model="searchTxt" disabled @click="goSearch" />
  7. <icon type="search" size="15" class="search_ico" />
  8. </view>
  9. <view class="tab-cont">
  10. <scroll-view scroll-x="true" @scroll="scrollMove" :scroll-left="scrollLeft" scroll-with-animation class="scroll-tab" :scroll-into-view="'_' + tabIndex">
  11. <block v-for="(item, index) in tabBars" :key="item.ChartPermissionId">
  12. <view :id="'_' + index" class="scroll-tab-item" :class="{ active: tabAct_id == item.ChartPermissionId }" @click.stop="toggleTab(item, index)">
  13. {{ item.PermissionName }}
  14. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/border_act.png" mode="" class="border_act" v-if="tabAct_id == item.ChartPermissionId"></image>
  15. </view>
  16. </block>
  17. <view class="limit-box" v-if="limitIsShow">
  18. <image class="limit-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png" mode=""></image>
  19. </view>
  20. </scroll-view>
  21. </view>
  22. <view class="lucency" v-if="tabBars.length > 6"></view>
  23. </view>
  24. <!-- 内容 -->
  25. <view class="strategy" v-if="strategyIndex == 4">
  26. <view class="tab-cont-two">
  27. <scroll-view scroll-x="true" scroll-with-animation class="scroll-tab-tow">
  28. <block v-for="(item, index) in tabBarsTow" :key="item.CategoryId">
  29. <view :id="'__' + index" class="scroll-tab-item" :class="{ active: tabAct_idTwo == item.CategoryId }" @click.stop="toggleTabTwo(item, index)">
  30. {{ item.MatchTypeName }}
  31. <text class="reg-text" v-if="item.IsRed"></text>
  32. </view>
  33. </block>
  34. </scroll-view>
  35. </view>
  36. <view class="row"> </view>
  37. <!-- 子组件 -->
  38. <strategy
  39. :strategyIndexTwo="strategyIndexTwo"
  40. :pageNumFather="pageNumFather"
  41. :matchTypeName="matchTypeName"
  42. :tabAct_idTwo="tabAct_idTwo"
  43. :isNum="isNum"
  44. :isSwitchover="isSwitchover"
  45. @hideIsred="hideIsred"
  46. />
  47. </view>
  48. <view class="" v-else-if="strategyIndex == 5">
  49. <researchChoose :strategyIndex="strategyIndex" :tabAct="tabAct_id" :pageNumFather="pageNumFather" :isNum="isNum" />
  50. </view>
  51. <!-- </view> -->
  52. <view class="industrial_eport_one" v-else>
  53. <!-- 行业报告 -->
  54. <view class="industry" v-if="tradeList">
  55. <view style="height: 20rpx"></view>
  56. <view class="industry-top">
  57. <view class="img-top-box">
  58. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/industry-ico.png"></image>
  59. <text>行业综述</text>
  60. </view>
  61. <view> </view>
  62. </view>
  63. <view class="industry-box" @click="isClickHandle(item.CategoryId)" v-for="item in tradeList" :key="item.CategoryId">
  64. <view class="box-left">
  65. {{ item.MatchTypeName }}
  66. <text v-if="item.IsRed"></text>
  67. </view>
  68. <view class="box-right">
  69. <text>{{ item.UpdateTime }}更新</text>
  70. <u-icon name="arrow-right" color="#BDBDBD" size="34"></u-icon>
  71. </view>
  72. </view>
  73. </view>
  74. <!-- 产业报告 -->
  75. <view class="industry">
  76. <view style="height: 12rpx" v-if="!tradeList"></view>
  77. <view class="industry-top industry-sticky">
  78. <view class="img-top-box">
  79. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/property_ico.png" style="height: 50rpx"></image>
  80. <text class="text-sub">细分产业</text>
  81. </view>
  82. <van-dropdown-menu active-color="#333333">
  83. <van-dropdown-item id="menuItem" @open="isscroll" :title="overallArrangementName">
  84. <view class="menu-items-tow">
  85. <view class="items-tow" @click="pitchClick(item, index)" v-for="(item, index) in pitchOn" :key="item.id">
  86. <view>
  87. <u-icon v-show="pitchOnId == item.id" name="checkbox-mark" color="#2C83FF" size="24"></u-icon>
  88. </view>
  89. <text :class="pitchOnId == item.id ? 'items-act' : ''">{{ item.name }}</text>
  90. </view>
  91. </view>
  92. <view style="background-color: #f8f8fa; width: 100%">
  93. <view style="margin: 0 auto; width: 682rpx; border-bottom: 2rpx dashed #999"> </view>
  94. </view>
  95. <view class="menu-items">
  96. <view class="menu-items-box" @click="overallBtn(index, item)" v-for="(item, index) in overallArrangement" :key="item.id">
  97. <view class="items-box">
  98. <u-icon v-show="item.isShow" name="checkbox-mark" color="#2C83FF" size="24"> </u-icon>
  99. </view>
  100. <text>{{ item.name }}</text>
  101. </view>
  102. </view>
  103. <view class="replacement-box">
  104. <view class="replacement">
  105. <text @click="replacementBtn" class="replacement-box">重置</text>
  106. <text @click="replacementConfirm">确定</text>
  107. </view>
  108. </view>
  109. </van-dropdown-item>
  110. </van-dropdown-menu>
  111. </view>
  112. <!-- 需要循环的地方 -->
  113. <view class="forindustry" v-for="item in industryList" :key="item.IndustrialManagementId">
  114. <!-- 火锅底料这个位置 -->
  115. <view class="industry-content">
  116. <view class="industry-box-left" @click="reportFllow(item.IndustrialManagementId)">
  117. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/top_ico.png" v-if="item.IsFollow"></image>
  118. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/top_no_ico.png" v-else></image>
  119. </view>
  120. <view class="industry-box-right" @click="goIndustryReport(item.IndustrialManagementId)">
  121. <view class="ndustry-box-read">
  122. <text>{{ item.IndustryName }}</text>
  123. <image v-if="item.IsHot" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/ammunition_ico.png" mode=""></image>
  124. </view>
  125. <view class="ndustry-box-arrow">
  126. <text v-if="item.IsRed" class="read"></text>
  127. <text class="ndustry-box-text">{{ item.UpdateTime }}更新</text>
  128. <u-icon name="arrow-right" color="#BDBDBD" size="34"></u-icon>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="content-box" v-if="item.IndustrialSubjectList.length > 6">
  133. <u-read-more :toggle="true" :show-height="item.IndustrialSubjectList.length > 6 ? 140 : 150" :shadow-style="shadowStyle" close-text="展开" color="#D1D1D1">
  134. <view class="read-more">
  135. <view v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId" @click="goIndustryReport(item.IndustrialManagementId)" class="text-box">
  136. {{ val.SubjectName }}
  137. </view>
  138. </view>
  139. </u-read-more>
  140. </view>
  141. <view class="content-box" v-else @click="goIndustryReport(item.IndustrialManagementId)">
  142. <view class="read-more">
  143. <view v-for="val in item.IndustrialSubjectList" :key="val.IndustrialSubjectId" class="text-box">{{ val.SubjectName }}</view>
  144. </view>
  145. </view>
  146. </view>
  147. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="totalPage > 1" />
  148. </view>
  149. </view>
  150. <coverGuide :isGuideShow="isGuideShow" />
  151. <u-modal
  152. v-model="goFollowShow"
  153. :content-style="{ fontSize: '32rpx' }"
  154. @confirm="goFollowShowBtn"
  155. :show-cancel-button="isCancelBtn"
  156. :confirm-text="confirmText"
  157. @cancel="isCancelBtn = false"
  158. :show-title="false"
  159. :cancel-style="{ borderRight: '1rpx solid #EBEBEB' }"
  160. :confirm-style="{ fontWeight: '700' }"
  161. >
  162. <view class="slot-content">
  163. <rich-text :nodes="accounts"></rich-text>
  164. </view>
  165. </u-modal>
  166. <view class="content-intimate" v-if="reportShow">
  167. <van-transition :show="showTransition" name="fade-right">
  168. <view class="content">
  169. <view @click="goSecretDetail('1')">
  170. <text>报告</text>
  171. <text>精选</text>
  172. </view>
  173. <view class="cont-border" @click="goSecretDetail('2')">
  174. <text>本周研</text>
  175. <text>究汇总</text>
  176. </view>
  177. <view @click="goSecretDetail('3')">
  178. <text>上周纪</text>
  179. <text>要汇总</text>
  180. </view>
  181. </view>
  182. </van-transition>
  183. <image @click="showTransition = !showTransition" src="https://hzstatic.hzinsights.com/cygx/czbk/intimate-icon.png" mode=""></image>
  184. </view>
  185. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree"/>
  186. </view>
  187. </template>
  188. <script>
  189. import strategy from "./components/strategy.vue";
  190. import researchChoose from "./components/researchChoose.vue";
  191. import coverGuide from "./components/coverGuide.vue";
  192. import { Throttle, Debounce } from "@/config/util.js";
  193. import freeCharge from '@/components/freeCharge'
  194. import { Reports } from "@/config/api.js";
  195. let app = getApp();
  196. export default {
  197. components: {
  198. strategy,
  199. researchChoose,
  200. coverGuide,
  201. freeCharge,
  202. },
  203. data() {
  204. return {
  205. tabAct_id: "",
  206. tabAct_idTwo: "",
  207. tabBars: [],
  208. pageNumFather: "",
  209. shadowStyle: {
  210. backgroundImage: "none",
  211. },
  212. tabBarsTow: [],
  213. pitchOn: [
  214. {
  215. name: "按最近更新排序",
  216. id: "NewTime",
  217. },
  218. {
  219. name: "按推荐关注排序",
  220. id: "Recommend",
  221. },
  222. ],
  223. pitchOnId: "NewTime",
  224. //pitchOnName: '按最近更新排序',
  225. isNum: 1,
  226. strategyIndex: "",
  227. strategyIndexTwo: 0,
  228. isSwitchover: 1,
  229. tradeList: [],
  230. OrderColumn: "",
  231. industryList: [],
  232. loadText: {
  233. loadmore: "上拉加载更多",
  234. loading: "加载中",
  235. nomore: "已经到底了",
  236. },
  237. refresh: false, //正在下拉
  238. page_no: 1,
  239. pageSize: 10,
  240. status: "loadmore",
  241. haveData: true,
  242. totalPage: "",
  243. matchTypeName: "",
  244. overallArrangement: [
  245. {
  246. name: "新布局产业",
  247. id: "1",
  248. isShow: false,
  249. },
  250. {
  251. name: "深度研究产业",
  252. id: "2",
  253. isShow: false,
  254. },
  255. ],
  256. overallArrangementId: "",
  257. overallArrangementName: "按最近更新排序",
  258. isScrollShow: false,
  259. isGuideShow: false,
  260. limitIsShow: false, //限免显示隐藏
  261. goFollowShow: false,
  262. accounts: "",
  263. confirmText: "知道了",
  264. isCancelBtn: false,
  265. scrollLeft: 0,
  266. showTransition: false, //点击绝密后的隐现
  267. reportShow: false, //绝密标签的隐现
  268. };
  269. },
  270. onLoad(option) {
  271. this.loadList(option);
  272. },
  273. watch: {
  274. //监听tabs的变化
  275. tabAct_id: {
  276. handler() {
  277. this.initList();
  278. },
  279. immediate: true,
  280. },
  281. },
  282. methods: {
  283. //获取一级事件
  284. getClassify() {
  285. Reports.getClassify().then((res) => {
  286. if (res.Ret !== 200) return;
  287. this.tabBars = res.Data.List || [];
  288. if (!this.tabAct_id) {
  289. this.tabAct_id = res.Data.List[0].ChartPermissionId;
  290. this.$store.dispatch("statistics", {
  291. PageType: "Report",
  292. ChartPermissionId: Number(this.tabAct_id),
  293. });
  294. }
  295. this.limitIsShow = this.tabBars.some((item) => item.IsShowSustainable);
  296. });
  297. },
  298. //获取二级事件
  299. getstrategyAll() {
  300. Reports.getstrategyAll().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. if (this.tabAct_id !== item.ChartPermissionId) {
  312. this.tabAct_id = item.ChartPermissionId;
  313. this.$store.dispatch("statistics", {
  314. PageType: "Report",
  315. ChartPermissionId: Number(this.tabAct_id),
  316. });
  317. this.pageNum = 1;
  318. uni.pageScrollTo({
  319. scrollTop: 0,
  320. duration: 0,
  321. });
  322. }
  323. this.getRectTab(index);
  324. },
  325. async reportIsShow() {
  326. const res = await Reports.reportIsShow();
  327. if (res.Ret === 200) {
  328. this.reportShow = res.Data.IsShow;
  329. }
  330. },
  331. getRectTab(index) {
  332. // const query = uni.createSelectorQuery().in(this);
  333. // query.select(`#_${index}`).boundingClientRect(rect => {
  334. // var screen = wx.getSystemInfoSync().windowWidth/2;
  335. // //获取点击item的左边坐标
  336. // var left = rect.left;
  337. // //获取item的宽度de 一半
  338. // var subhalfwidth= rect.width/2
  339. // //需要scrollview 移动的距离是
  340. // var juli = left-screen
  341. // var zuizhongjuli = juli+subhalfwidth
  342. // this.scrollLeft = this.scrollLeft+=zuizhongjuli
  343. // }).exec();
  344. },
  345. scrollMove(e) {
  346. this.scrollLeft = e.detail.scrollLeft;
  347. },
  348. //tabs切换二级事件
  349. toggleTabTwo(item, index) {
  350. this.matchTypeName = item.MatchTypeName;
  351. this.strategyIndexTwo = index;
  352. if (this.tabAct_idTwo !== item.CategoryId) {
  353. this.tabAct_idTwo = item.CategoryId;
  354. this.pageNum = 1;
  355. uni.pageScrollTo({
  356. scrollTop: 0,
  357. duration: 0,
  358. });
  359. }
  360. },
  361. //点击产业报告的筛选条件
  362. pitchClick(item) {
  363. this.pitchOnName = item.name;
  364. this.OrderColumn = item.id;
  365. if (this.pitchOnId !== item.id) {
  366. this.pitchOnId = item.id;
  367. }
  368. },
  369. //获取报告所有品种接口
  370. getTradeList() {
  371. Reports.getTradeList({
  372. ChartPermissionId: this.tabAct_id,
  373. }).then((res) => {
  374. if (res.Ret == 200) {
  375. this.tradeList = res.Data.List || [];
  376. }
  377. });
  378. },
  379. //获取产业报告所有品种接口
  380. getIndustryList() {
  381. Reports.getIndustryList({
  382. ChartPermissionId: this.tabAct_id,
  383. OrderColumn: this.OrderColumn,
  384. PageSize: this.pageSize,
  385. CurrentIndex: this.page_no,
  386. IsNewLabel: this.overallArrangementId.includes(1) ? "1" : "0",
  387. IsDeepLabel: this.overallArrangementId.includes(2) ? "1" : "0",
  388. }).then((res) => {
  389. // this.industryList=res.Data.List
  390. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  391. this.totalPage = res.Data.Paging.Pages; //总页数
  392. if (this.page_no === 1) {
  393. this.industryList = res.Data.List || [];
  394. this.haveData = this.industryList.length ? true : false;
  395. if (this.refresh) {
  396. uni.stopPullDownRefresh();
  397. this.refresh = false;
  398. }
  399. } else {
  400. this.industryList = this.industryList.concat(res.Data.List);
  401. }
  402. });
  403. },
  404. //跳转季度策略
  405. async isClickHandle(id) {
  406. await this.$store.dispatch("checkHandle", "/reportPages/industrialReport/industrialReport?id=" + id);
  407. },
  408. //跳转产业报告
  409. async goIndustryReport(id) {
  410. await this.$store.dispatch("checkHandle", "/reportPages/IndustryReport/IndustryReport?id=" + id);
  411. },
  412. //点击关注的图标
  413. reportFllow(id) {
  414. if (!this.$store.state.isAuth && !this.$store.state.isBind) {
  415. Reports.reportFllow({
  416. IndustrialManagementId: id,
  417. }).then((res) => {
  418. if (res.Ret === 200) {
  419. if (res.Data.Status == 1) {
  420. this.goFollowShow = true;
  421. this.confirmText = res.Data.GoFollow ? "去关注" : "知道了";
  422. if (res.Data.GoFollow) {
  423. this.accounts = `产业关注成功 <br> 想要及时获取该产业内容的更新推送,请关注【查研观向小助手】公众号`;
  424. this.isCancelBtn = true;
  425. } else {
  426. this.accounts = "产业关注成功<br>请关注【查研观向小助手】公众号,及时获取产业报告更新提醒";
  427. }
  428. }
  429. this.industryList.forEach((key) => {
  430. if (key.IndustrialManagementId == id) {
  431. if (key.IsFollow == 1) {
  432. key.IsFollow = 0;
  433. uni.showToast({
  434. title: "已取消关注",
  435. icon: "none",
  436. duration: 2000,
  437. });
  438. } else {
  439. key.IsFollow = 1;
  440. }
  441. }
  442. });
  443. }
  444. });
  445. }else if (this.$store.state.isAuth){
  446. //未授权
  447. uni.navigateTo({
  448. url: "/pageMy/authGuide/authGuide",
  449. });
  450. } else if(!this.$store.state.isAuth && this.$store.state.isBind) {
  451. //已授权未绑定
  452. uni.navigateTo({
  453. url: "/pageMy/login/login",
  454. });
  455. }
  456. },
  457. goFollowShowBtn() {
  458. if (this.confirmText == "去关注") {
  459. uni.navigateTo({
  460. url: "/activityPages/accountsOfficial/accountsOfficial",
  461. });
  462. }
  463. this.goFollowShow = false;
  464. },
  465. hideIsred(is) {
  466. this.tabBarsTow[this.strategyIndexTwo].IsRed = is;
  467. },
  468. /* 新布局产业选项*/
  469. overallBtn(index, item) {
  470. this.overallArrangement.forEach((key) => {
  471. if (key.id == item.id) {
  472. key.isShow = !key.isShow;
  473. }
  474. });
  475. },
  476. /* 新布局产业选项确定按钮 */
  477. replacementConfirm() {
  478. const arr = [];
  479. this.overallArrangement.forEach((key) => {
  480. if (key.isShow) {
  481. arr.push(key.id);
  482. }
  483. });
  484. this.overallArrangementId = arr.join(",");
  485. this.overallArrangementName = this.pitchOnName;
  486. this.page_no = 1;
  487. this.status = "loadmore";
  488. this.getIndustryList();
  489. this.selectComponent("#menuItem").toggle();
  490. },
  491. /* 新布局产业选项重置按钮 */
  492. replacementBtn() {
  493. this.OrderColumn = "NewTime";
  494. this.pitchOnId = "NewTime";
  495. this.overallArrangement.forEach((key) => (key.isShow = false));
  496. this.overallArrangementName = "按最近排序更新";
  497. },
  498. /* 判断页面滚动 */
  499. isscroll: Debounce(function () {
  500. this.isScrollShow = true;
  501. }),
  502. /* 搜索 */
  503. async goSearch() {
  504. await this.$store.dispatch("checkHandle", "/reportPages/reportSearch/reportSearch");
  505. },
  506. /* 初始 */
  507. initList() {
  508. if (this.tabAct_id && this.strategyIndex !== 4 && this.strategyIndex !== 5) {
  509. this.OrderColumn = "NewTime";
  510. this.pitchOnId = "NewTime";
  511. this.overallArrangementName = "按最近更新排序";
  512. this.overallArrangementId = "";
  513. this.page_no = 1;
  514. this.refresh = true;
  515. this.getIndustryList();
  516. this.getTradeList();
  517. this.overallArrangement.forEach((key) => (key.isShow = false));
  518. }
  519. this.strategyIndex == 4 ? this.getstrategyAll() : (this.tabAct_idTwo = "");
  520. if (this.isScrollShow) {
  521. this.selectComponent("#menuItem").toggle(false);
  522. this.isScrollShow = false;
  523. }
  524. this.isNum = 1;
  525. },
  526. /* 页面加载 */
  527. loadList(option) {
  528. if (!this.$db.get("guideSole")) {
  529. //新手指引
  530. this.isGuideShow = true;
  531. }
  532. app.globalData.isSx = true;
  533. this.tabAct_id = option.tab || "";
  534. if (option.tabs !== "" && option.tabs) {
  535. this.strategyIndex = 4;
  536. this.tabAct_idTwo = option.tabs;
  537. }
  538. if (this.tabAct_id == 31) {
  539. this.strategyIndex = 5;
  540. }
  541. this.getClassify();
  542. this.reportIsShow();
  543. this.$db.set("guideSole", 1); //新手指引
  544. },
  545. goSecretDetail(type) {
  546. uni.navigateTo({
  547. url: "/reportPages/secretDetails/secretDetails?type=" + type,
  548. });
  549. },
  550. },
  551. /* 触底 */
  552. onReachBottom: Throttle(function () {
  553. if (this.strategyIndex == 4 || this.strategyIndex == 5) {
  554. this.isNum++;
  555. return;
  556. }
  557. if (this.status === "nomore") return;
  558. this.status = "loading";
  559. this.page_no++;
  560. this.getIndustryList();
  561. }),
  562. /* 下拉刷新 */
  563. onPullDownRefresh: Throttle(function () {
  564. if (this.strategyIndex == 4 || this.strategyIndex == 5) {
  565. this.pageNumFather = 1;
  566. } else {
  567. this.industryList = [];
  568. this.pageNumFather = null;
  569. this.page_no = 1;
  570. this.refresh = true;
  571. this.getIndustryList();
  572. this.getTradeList();
  573. }
  574. wx.stopPullDownRefresh();
  575. }),
  576. onShow() {
  577. this.$store.dispatch("checkHandle",'noGO')
  578. if (this.tabAct_id) {
  579. this.$store.dispatch("statistics", {
  580. PageType: "Report",
  581. ChartPermissionId: Number(this.tabAct_id),
  582. });
  583. }
  584. if (this.tabAct_id && app.globalData.isSx) {
  585. this.getTradeList();
  586. }
  587. },
  588. /**
  589. * 用户点击分享
  590. */
  591. onShareAppMessage: function (res) {
  592. return {
  593. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "报告",
  594. path: "/pages/reportForm/reportForm?tab=" + this.tabAct_id + "&tabs=" + this.tabAct_idTwo,
  595. success: (res) => {},
  596. fail: (err) => {},
  597. };
  598. },
  599. /**
  600. *监听页面滚动
  601. */
  602. onPageScroll() {
  603. if (this.isScrollShow) {
  604. this.selectComponent("#menuItem").toggle(false);
  605. this.isScrollShow = false;
  606. }
  607. },
  608. onHide() {
  609. if (this.showTransition) {
  610. this.showTransition = false;
  611. }
  612. if (this.strategyIndex == 4 || this.strategyIndex == 5) return;
  613. this.selectComponent("#menuItem").toggle(false);
  614. },
  615. };
  616. </script>
  617. <style scoped lang="scss">
  618. @import "./index.scss";
  619. .content-intimate {
  620. position: fixed;
  621. display: flex;
  622. align-items: center;
  623. bottom: 96rpx;
  624. right: 41rpx;
  625. height: 156rpx;
  626. .content {
  627. width: 432rpx;
  628. height: 112rpx;
  629. background-color: #fff;
  630. display: flex;
  631. border-radius: 56rpx;
  632. overflow: hidden;
  633. .cont-border {
  634. margin: 0 2rpx;
  635. }
  636. view {
  637. flex: 1;
  638. background-color: #3385ff;
  639. font-size: 30rpx;
  640. color: #fff;
  641. padding-top: 15rpx;
  642. text-align: center;
  643. }
  644. }
  645. image {
  646. width: 156rpx;
  647. height: 100%;
  648. z-index: 99;
  649. }
  650. }
  651. </style>