reportForm.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651
  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. </view>
  186. </template>
  187. <script>
  188. import strategy from "./components/strategy.vue";
  189. import researchChoose from "./components/researchChoose.vue";
  190. import coverGuide from "./components/coverGuide.vue";
  191. import { Throttle, Debounce } from "@/config/util.js";
  192. import { Reports } from "@/config/api.js";
  193. let app = getApp();
  194. export default {
  195. components: {
  196. strategy,
  197. researchChoose,
  198. coverGuide,
  199. },
  200. data() {
  201. return {
  202. tabAct_id: "",
  203. tabAct_idTwo: "",
  204. tabBars: [],
  205. pageNumFather: "",
  206. shadowStyle: {
  207. backgroundImage: "none",
  208. },
  209. tabBarsTow: [],
  210. pitchOn: [
  211. {
  212. name: "按最近更新排序",
  213. id: "NewTime",
  214. },
  215. {
  216. name: "按推荐关注排序",
  217. id: "Recommend",
  218. },
  219. ],
  220. pitchOnId: "NewTime",
  221. //pitchOnName: '按最近更新排序',
  222. isNum: 1,
  223. strategyIndex: "",
  224. strategyIndexTwo: 0,
  225. isSwitchover: 1,
  226. tradeList: [],
  227. OrderColumn: "",
  228. industryList: [],
  229. loadText: {
  230. loadmore: "上拉加载更多",
  231. loading: "加载中",
  232. nomore: "已经到底了",
  233. },
  234. refresh: false, //正在下拉
  235. page_no: 1,
  236. pageSize: 10,
  237. status: "loadmore",
  238. haveData: true,
  239. totalPage: "",
  240. matchTypeName: "",
  241. overallArrangement: [
  242. {
  243. name: "新布局产业",
  244. id: "1",
  245. isShow: false,
  246. },
  247. {
  248. name: "深度研究产业",
  249. id: "2",
  250. isShow: false,
  251. },
  252. ],
  253. overallArrangementId: "",
  254. overallArrangementName: "按最近更新排序",
  255. isScrollShow: false,
  256. isGuideShow: false,
  257. limitIsShow: false, //限免显示隐藏
  258. goFollowShow: false,
  259. accounts: "",
  260. confirmText: "知道了",
  261. isCancelBtn: false,
  262. scrollLeft: 0,
  263. showTransition: false, //点击绝密后的隐现
  264. reportShow: false, //绝密标签的隐现
  265. };
  266. },
  267. onLoad(option) {
  268. this.loadList(option);
  269. },
  270. watch: {
  271. //监听tabs的变化
  272. tabAct_id: {
  273. handler() {
  274. this.initList();
  275. },
  276. immediate: true,
  277. },
  278. },
  279. methods: {
  280. //获取一级事件
  281. getClassify() {
  282. Reports.getClassify().then((res) => {
  283. if (res.Ret !== 200) return;
  284. this.tabBars = res.Data.List || [];
  285. if (!this.tabAct_id) {
  286. this.tabAct_id = res.Data.List[0].ChartPermissionId;
  287. this.$store.dispatch("statistics", {
  288. PageType: "Report",
  289. ChartPermissionId: Number(this.tabAct_id),
  290. });
  291. }
  292. this.limitIsShow = this.tabBars.some((item) => item.IsShowSustainable);
  293. });
  294. },
  295. //获取二级事件
  296. getstrategyAll() {
  297. Reports.getstrategyAll().then((res) => {
  298. this.tabBarsTow = res.Data.List;
  299. if (!this.tabAct_idTwo) {
  300. this.tabAct_idTwo = res.Data.List[0].CategoryId;
  301. }
  302. this.matchTypeName = res.Data.List[0].MatchTypeName;
  303. });
  304. },
  305. //tabs切换事件
  306. toggleTab(item, index) {
  307. this.strategyIndex = index;
  308. if (this.tabAct_id !== item.ChartPermissionId) {
  309. this.tabAct_id = item.ChartPermissionId;
  310. this.$store.dispatch("statistics", {
  311. PageType: "Report",
  312. ChartPermissionId: Number(this.tabAct_id),
  313. });
  314. this.pageNum = 1;
  315. uni.pageScrollTo({
  316. scrollTop: 0,
  317. duration: 0,
  318. });
  319. }
  320. this.getRectTab(index);
  321. },
  322. async reportIsShow() {
  323. const res = await Reports.reportIsShow();
  324. if (res.Ret === 200) {
  325. this.reportShow = res.Data.IsShow;
  326. }
  327. },
  328. getRectTab(index) {
  329. // const query = uni.createSelectorQuery().in(this);
  330. // query.select(`#_${index}`).boundingClientRect(rect => {
  331. // var screen = wx.getSystemInfoSync().windowWidth/2;
  332. // //获取点击item的左边坐标
  333. // var left = rect.left;
  334. // //获取item的宽度de 一半
  335. // var subhalfwidth= rect.width/2
  336. // //需要scrollview 移动的距离是
  337. // var juli = left-screen
  338. // var zuizhongjuli = juli+subhalfwidth
  339. // this.scrollLeft = this.scrollLeft+=zuizhongjuli
  340. // }).exec();
  341. },
  342. scrollMove(e) {
  343. this.scrollLeft = e.detail.scrollLeft;
  344. },
  345. //tabs切换二级事件
  346. toggleTabTwo(item, index) {
  347. this.matchTypeName = item.MatchTypeName;
  348. this.strategyIndexTwo = index;
  349. if (this.tabAct_idTwo !== item.CategoryId) {
  350. this.tabAct_idTwo = item.CategoryId;
  351. this.pageNum = 1;
  352. uni.pageScrollTo({
  353. scrollTop: 0,
  354. duration: 0,
  355. });
  356. }
  357. },
  358. //点击产业报告的筛选条件
  359. pitchClick(item) {
  360. this.pitchOnName = item.name;
  361. this.OrderColumn = item.id;
  362. if (this.pitchOnId !== item.id) {
  363. this.pitchOnId = item.id;
  364. }
  365. },
  366. //获取报告所有品种接口
  367. getTradeList() {
  368. Reports.getTradeList({
  369. ChartPermissionId: this.tabAct_id,
  370. }).then((res) => {
  371. if (res.Ret == 200) {
  372. this.tradeList = res.Data.List || [];
  373. }
  374. });
  375. },
  376. //获取产业报告所有品种接口
  377. getIndustryList() {
  378. Reports.getIndustryList({
  379. ChartPermissionId: this.tabAct_id,
  380. OrderColumn: this.OrderColumn,
  381. PageSize: this.pageSize,
  382. CurrentIndex: this.page_no,
  383. IsNewLabel: this.overallArrangementId.includes(1) ? "1" : "0",
  384. IsDeepLabel: this.overallArrangementId.includes(2) ? "1" : "0",
  385. }).then((res) => {
  386. // this.industryList=res.Data.List
  387. this.status = this.page_no < res.Data.Paging.Pages ? "loadmore" : "nomore";
  388. this.totalPage = res.Data.Paging.Pages; //总页数
  389. if (this.page_no === 1) {
  390. this.industryList = res.Data.List || [];
  391. this.haveData = this.industryList.length ? true : false;
  392. if (this.refresh) {
  393. uni.stopPullDownRefresh();
  394. this.refresh = false;
  395. }
  396. } else {
  397. this.industryList = this.industryList.concat(res.Data.List);
  398. }
  399. });
  400. },
  401. //跳转季度策略
  402. async isClickHandle(id) {
  403. await this.$store.dispatch("checkHandle", "/reportPages/industrialReport/industrialReport?id=" + id);
  404. },
  405. //跳转产业报告
  406. async goIndustryReport(id) {
  407. await this.$store.dispatch("checkHandle", "/reportPages/IndustryReport/IndustryReport?id=" + id);
  408. },
  409. //点击关注的图标
  410. reportFllow(id) {
  411. if (!this.$store.state.isAuth && !this.$store.state.isBind) {
  412. Reports.reportFllow({
  413. IndustrialManagementId: id,
  414. }).then((res) => {
  415. if (res.Ret === 200) {
  416. if (res.Data.Status == 1) {
  417. this.goFollowShow = true;
  418. this.confirmText = res.Data.GoFollow ? "去关注" : "知道了";
  419. if (res.Data.GoFollow) {
  420. this.accounts = `产业关注成功 <br> 想要及时获取该产业内容的更新推送,请关注【查研观向小助手】公众号`;
  421. this.isCancelBtn = true;
  422. } else {
  423. this.accounts = "产业关注成功<br>请关注【查研观向小助手】公众号,及时获取产业报告更新提醒";
  424. }
  425. }
  426. this.industryList.forEach((key) => {
  427. if (key.IndustrialManagementId == id) {
  428. if (key.IsFollow == 1) {
  429. key.IsFollow = 0;
  430. uni.showToast({
  431. title: "已取消关注",
  432. icon: "none",
  433. duration: 2000,
  434. });
  435. } else {
  436. key.IsFollow = 1;
  437. }
  438. }
  439. });
  440. }
  441. });
  442. } else if (this.$store.state.isAuth) {
  443. //未授权
  444. uni.navigateTo({
  445. url: "/pageMy/authGuide/authGuide",
  446. });
  447. } else if (!this.$store.state.isAuth && this.$store.state.isBind) {
  448. //已授权未绑定
  449. uni.navigateTo({
  450. url: "/pageMy/login/login",
  451. });
  452. }
  453. },
  454. goFollowShowBtn() {
  455. if (this.confirmText == "去关注") {
  456. uni.navigateTo({
  457. url: "/activityPages/accountsOfficial/accountsOfficial",
  458. });
  459. }
  460. this.goFollowShow = false;
  461. },
  462. hideIsred(is) {
  463. this.tabBarsTow[this.strategyIndexTwo].IsRed = is;
  464. },
  465. /* 新布局产业选项*/
  466. overallBtn(index, item) {
  467. this.overallArrangement.forEach((key) => {
  468. if (key.id == item.id) {
  469. key.isShow = !key.isShow;
  470. }
  471. });
  472. },
  473. /* 新布局产业选项确定按钮 */
  474. replacementConfirm() {
  475. const arr = [];
  476. this.overallArrangement.forEach((key) => {
  477. if (key.isShow) {
  478. arr.push(key.id);
  479. }
  480. });
  481. this.overallArrangementId = arr.join(",");
  482. this.overallArrangementName = this.pitchOnName;
  483. this.page_no = 1;
  484. this.status = "loadmore";
  485. this.getIndustryList();
  486. this.selectComponent("#menuItem").toggle();
  487. },
  488. /* 新布局产业选项重置按钮 */
  489. replacementBtn() {
  490. this.OrderColumn = "NewTime";
  491. this.pitchOnId = "NewTime";
  492. this.overallArrangement.forEach((key) => (key.isShow = false));
  493. this.overallArrangementName = "按最近排序更新";
  494. },
  495. /* 判断页面滚动 */
  496. isscroll: Debounce(function () {
  497. this.isScrollShow = true;
  498. }),
  499. /* 搜索 */
  500. async goSearch() {
  501. await this.$store.dispatch("checkHandle", "/reportPages/reportSearch/reportSearch?id="+this.tabAct_id);
  502. },
  503. /* 初始 */
  504. initList() {
  505. if (this.tabAct_id && this.strategyIndex !== 4 && this.strategyIndex !== 5) {
  506. this.OrderColumn = "NewTime";
  507. this.pitchOnId = "NewTime";
  508. this.overallArrangementName = "按最近更新排序";
  509. this.overallArrangementId = "";
  510. this.page_no = 1;
  511. this.refresh = true;
  512. this.getIndustryList();
  513. this.getTradeList();
  514. this.overallArrangement.forEach((key) => (key.isShow = false));
  515. }
  516. this.strategyIndex == 4 ? this.getstrategyAll() : (this.tabAct_idTwo = "");
  517. if (this.isScrollShow) {
  518. this.selectComponent("#menuItem").toggle(false);
  519. this.isScrollShow = false;
  520. }
  521. this.isNum = 1;
  522. },
  523. /* 页面加载 */
  524. loadList(option) {
  525. if (!this.$db.get("guideSole")) {
  526. //新手指引
  527. this.isGuideShow = true;
  528. }
  529. app.globalData.isSx = true;
  530. this.tabAct_id = option.tab || "";
  531. if (option.tabs !== "" && option.tabs) {
  532. this.strategyIndex = 4;
  533. this.tabAct_idTwo = option.tabs;
  534. }
  535. if (this.tabAct_id == 31) {
  536. this.strategyIndex = 5;
  537. }
  538. this.getClassify();
  539. this.reportIsShow();
  540. this.$db.set("guideSole", 1); //新手指引
  541. },
  542. goSecretDetail(type) {
  543. uni.navigateTo({
  544. url: "/reportPages/secretDetails/secretDetails?type=" + type,
  545. });
  546. },
  547. },
  548. /* 触底 */
  549. onReachBottom: Throttle(function () {
  550. if (this.strategyIndex == 4) {
  551. this.isNum++;
  552. return;
  553. }
  554. if (this.status === "nomore") return;
  555. this.status = "loading";
  556. this.page_no++;
  557. this.getIndustryList();
  558. }),
  559. /* 下拉刷新 */
  560. onPullDownRefresh: Throttle(function () {
  561. if (this.strategyIndex == 4 || this.strategyIndex == 5) {
  562. this.pageNumFather = 1;
  563. } else {
  564. this.industryList = [];
  565. this.pageNumFather = null;
  566. this.page_no = 1;
  567. this.refresh = true;
  568. this.getIndustryList();
  569. this.getTradeList();
  570. }
  571. wx.stopPullDownRefresh();
  572. }),
  573. onShow() {
  574. this.$store.dispatch("checkHandle", "noGO");
  575. if (this.tabAct_id) {
  576. this.$store.dispatch("statistics", {
  577. PageType: "Report",
  578. ChartPermissionId: Number(this.tabAct_id),
  579. });
  580. }
  581. if (this.tabAct_id && app.globalData.isSx) {
  582. this.getTradeList();
  583. }
  584. },
  585. /**
  586. * 用户点击分享
  587. */
  588. onShareAppMessage: function (res) {
  589. return {
  590. title: "报告",
  591. path: "/pages/reportForm/reportForm?tab=" + this.tabAct_id + "&tabs=" + this.tabAct_idTwo,
  592. success: (res) => {},
  593. fail: (err) => {},
  594. };
  595. },
  596. /**
  597. *监听页面滚动
  598. */
  599. onPageScroll() {
  600. if (this.isScrollShow) {
  601. this.selectComponent("#menuItem").toggle(false);
  602. this.isScrollShow = false;
  603. }
  604. },
  605. onHide() {
  606. if (this.showTransition) {
  607. this.showTransition = false;
  608. }
  609. if (this.strategyIndex == 4 || this.strategyIndex == 5) return;
  610. this.selectComponent("#menuItem").toggle(false);
  611. },
  612. };
  613. </script>
  614. <style lang="scss" scoped>
  615. @import "./index.scss";
  616. .content-intimate {
  617. position: fixed;
  618. display: flex;
  619. align-items: center;
  620. bottom: 96rpx;
  621. right: 41rpx;
  622. height: 156rpx;
  623. .content {
  624. width: 432rpx;
  625. height: 112rpx;
  626. background-color: #fff;
  627. display: flex;
  628. border-radius: 56rpx;
  629. overflow: hidden;
  630. .cont-border {
  631. margin: 0 2rpx;
  632. }
  633. view {
  634. flex: 1;
  635. background-color: #3385ff;
  636. font-size: 30rpx;
  637. color: #fff;
  638. padding-top: 15rpx;
  639. text-align: center;
  640. }
  641. }
  642. image {
  643. width: 156rpx;
  644. height: 100%;
  645. z-index: 99;
  646. }
  647. }
  648. </style>