index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  1. <template>
  2. <view class="container Index-container">
  3. <view class="top-content-box">
  4. <view class="nav-bar-wrap" :style="{ height: navBarStyle.height, paddingTop: navBarStyle.paddingTop, paddingBottom: navBarStyle.paddingBottom }">
  5. <view class="content">
  6. <van-icon name="search" size="28px" class="search-icon" @click="goSearch" />
  7. <view class="top-tabs">
  8. <view :class="['item', item.val == topTabsActive && 'tabs-active']" v-for="(item, index) in topTabBars" :key="item.val" @click="topTabsChange(item.val)">
  9. {{ item.type }}
  10. <block v-if="index === topTabBars.length - 1 && isShowChart">
  11. <image class="limit-img tabs-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png" mode=""></image>
  12. </block>
  13. <view class="active" v-if="item.val == topTabsActive"></view>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="tabs-content">
  19. <view class="second-tabs" v-if="topTabsActive == '2' || topTabsActive == '3'">
  20. <view
  21. :class="['item', item.ChartPermissionId == secondActive && 'tabs-active text_twoLine']"
  22. v-for="(item, index) in secondBars"
  23. :key="item.ChartPermissionId"
  24. @click="handleClickTopSub(item)"
  25. >
  26. {{ item.PermissionName }}
  27. <block v-if="index === secondBars.length - 1 && topTabsActive == '2' && isShowResearch">
  28. <image class="limit-img tabs-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png" mode=""></image>
  29. </block>
  30. <view class="active" v-if="item.ChartPermissionId == secondActive"></view>
  31. </view>
  32. </view>
  33. <block v-if="topTabsActive == '3'">
  34. <view class="children-ul">
  35. <view :class="['chart-children', chartChildrenActive == item.CtagId ? 'children-active' : '']" v-for="item in chartChildren" :key="item.CtagId" @click="handleChartChildren(item)">{{
  36. item.Name
  37. }}</view>
  38. </view>
  39. </block>
  40. </view>
  41. </view>
  42. <block v-if="haveData">
  43. <view class="data-cont">
  44. <view class="report-ul">
  45. <view class="report-item" v-for="(report, index) in dataList" :key="index" v-if="index % 2 === 0" @click="goDetail(report)">
  46. <view class="item-content-img" v-if="report.BodyHtml">
  47. <image :src="report.BodyHtml" mode=""></image>
  48. </view>
  49. <view class="item-content" v-else>{{ report.Body }}</view>
  50. <view class="line"></view>
  51. <text :class="['item-title', report.Source != 1 && 'chart-title text_twoLine']">{{ report.Title }}</text>
  52. <view class="item-abstract text_twoLine" v-if="report.ExpertBackground">
  53. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/fenxi_ico.png" class="report_ico"></image>
  54. {{ report.ExpertBackground }}
  55. </view>
  56. <block v-if="report.Source == 1">
  57. <view class="item-createtime">
  58. <text>{{ report.PublishDate }}</text>
  59. <view class="item-examine" v-if="report.IsResearch">
  60. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/examine_icon.png"></image>
  61. <text>{{ report.Pv }}</text>
  62. </view>
  63. </view>
  64. </block>
  65. <block v-else>
  66. <view class="item-createtime chart-tag">
  67. <text class="tag-item" v-if="report.PtagName">{{ report.PtagName }}</text>
  68. <text class="tag-item" v-if="report.CtagName">{{ report.CtagName }}</text>
  69. </view>
  70. <view class="chart-collect" v-if="topTabsActive == 3 && secondActive == 0">
  71. <text class="cancel" @click.stop="myChartIsTop(report.ChartId)">{{ report.IsTop ? "取消置顶" : "置顶" }}</text>
  72. <text class="remove" @click.stop="myChartCollect(report.ChartId)">移除</text>
  73. </view>
  74. <view class="my-chart-collect" v-if="topTabsActive == 3 && secondActive == 0 && report.IsTop"></view>
  75. </block>
  76. </view>
  77. </view>
  78. <view class="report-ul">
  79. <view class="report-item" v-for="(report, index) in dataList" :key="index" v-if="index % 2 !== 0" @click="goDetail(report)">
  80. <view class="item-content-img" v-if="report.BodyHtml">
  81. <image :src="report.BodyHtml"></image>
  82. </view>
  83. <view class="item-content" v-else>{{ report.Body }}</view>
  84. <view class="line"></view>
  85. <text :class="['item-title', report.Source != 1 && 'chart-title text_twoLine']">{{ report.Title }}</text>
  86. <view class="item-abstract text_twoLine" v-if="report.ExpertBackground">
  87. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/fenxi_ico.png" class="report_ico"></image>
  88. {{ report.ExpertBackground }}
  89. </view>
  90. <block v-if="report.Source == 1">
  91. <view class="item-createtime">
  92. <text>{{ report.PublishDate }}</text>
  93. <view class="item-examine" v-if="report.IsResearch">
  94. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/examine_icon.png"></image>
  95. <text>{{ report.Pv }}</text>
  96. </view>
  97. </view>
  98. </block>
  99. <block v-else>
  100. <view class="item-createtime chart-tag">
  101. <text class="tag-item" v-if="report.PtagName">{{ report.PtagName }}</text>
  102. <text class="tag-item" v-if="report.CtagName">{{ report.CtagName }}</text>
  103. </view>
  104. <view class="chart-collect" v-if="topTabsActive == 3 && secondActive == 0">
  105. <text class="cancel" @click.stop="myChartIsTop(report.ChartId)">{{ report.IsTop ? "取消置顶" : "置顶" }}</text>
  106. <text class="remove" @click.stop="myChartCollect(report.ChartId)">移除</text>
  107. </view>
  108. <view class="my-chart-collect" v-if="topTabsActive == 3 && secondActive == 0 && report.IsTop"></view>
  109. </block>
  110. </view>
  111. </view>
  112. </view>
  113. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="pageNum > 1" />
  114. </block>
  115. <view class="nodata" v-else-if="haveData === false" style="padding-top: 400rpx">
  116. <block class="nodata" v-if="!isBindingMobile && secondActive == 0">
  117. <text>请先绑定联系方式</text>
  118. <view class="bind-mobile" @click="bindingMobile">绑定联系方式</view>
  119. </block>
  120. <block v-else>
  121. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
  122. <text>{{ topTabsActive == 3 && secondActive == 0 ? "暂无收藏的图表" : "暂时没有数据" }}</text>
  123. </block>
  124. </view>
  125. <view class="content-intimate" v-if="reportShow">
  126. <van-transition :show="showTransition" name="fade-right">
  127. <view class="content">
  128. <view @click="goSecretDetail('1')">
  129. <text>报告</text>
  130. <text>精选</text>
  131. </view>
  132. <view class="cont-border" @click="goSecretDetail('2')">
  133. <text>本周研</text>
  134. <text>究汇总</text>
  135. </view>
  136. <view @click="goSecretDetail('3')">
  137. <text>上周纪</text>
  138. <text>要汇总</text>
  139. </view>
  140. </view>
  141. </van-transition>
  142. <image @click="showTransition = !showTransition" src="https://hzstatic.hzinsights.com/cygx/czbk/intimate-icon.png" mode=""></image>
  143. </view>
  144. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  145. </view>
  146. </template>
  147. <script>
  148. import { Home, Reports, Chart } from "@/config/api.js";
  149. import { Throttle, deepCopy } from "@/config/util.js";
  150. import freeCharge from "@/components/freeCharge";
  151. let app = getApp();
  152. export default {
  153. data() {
  154. return {
  155. navBarStyle: {
  156. height: 60 + "px",
  157. paddingTop: 40 + "px",
  158. paddingBottom: "20px",
  159. },
  160. topTabBars: [
  161. //一级top
  162. { type: "最新", val: 1 },
  163. { type: "纪要", val: 2 },
  164. { type: "图表", val: 3 },
  165. ],
  166. topTabsActive: 1, //一级top的tabs
  167. secondActive: "", //二级的tabs
  168. secondBars: [], //二级的tabs数组
  169. chartChildren: [], //二级的tabs下的标签
  170. chartChildrenActive: 0,
  171. refresh: false,
  172. pageSize: 10, //条数
  173. pageNum: 1, //页码
  174. haveMore: true, //是否有更多数据
  175. haveData: null, //是否有数据
  176. //数据列表
  177. dataList: [],
  178. status: "loadmore",
  179. loadText: {
  180. loadmore: "上拉加载更多",
  181. loading: "加载中",
  182. nomore: "已经到底了",
  183. },
  184. showTransition: false, //点击绝密后的隐现
  185. reportShow: false, //绝密标签的隐现
  186. isShowChart: false, //图表限免
  187. isShowResearch: false, //研选限免
  188. isBindingMobile: true, //图表我的收藏是否绑定手机号
  189. };
  190. },
  191. components: {
  192. freeCharge,
  193. },
  194. watch: {},
  195. onLoad(optios) {
  196. uni.getSystemInfo({
  197. success: function (res) {
  198. if (res.windowWidth > 700) {
  199. uni.reLaunch({
  200. url: "/pages/pcWebViev/pcWebViev",
  201. });
  202. }
  203. },
  204. });
  205. if (optios.topTabsActive) {
  206. this.topTabsActive = optios.topTabsActive;
  207. this.secondActive = optios.secondActive;
  208. this.chartChildrenActive = optios.childrenActive;
  209. this.getTabs();
  210. }
  211. this.initNavBar();
  212. this.reportIsShow();
  213. this.getReportList();
  214. },
  215. onShow() {
  216. //进入页面的记录
  217. this.$store.dispatch("statistics", { PageType: "Activit" });
  218. // #ifdef MP-WEIXIN
  219. uni.hideHomeButton();
  220. // #endif
  221. },
  222. methods: {
  223. //获取胶囊位置
  224. initNavBar() {
  225. let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
  226. this.navBarStyle = {
  227. height: menuButtonInfo.height + menuButtonInfo.top + 8 + "px",
  228. paddingTop: menuButtonInfo.top - 4 + "px",
  229. paddingBottom: "4px",
  230. };
  231. },
  232. //点击顶部一级分类
  233. topTabsChange(name) {
  234. this.topTabsActive = name;
  235. this.chartChildren = [];
  236. this.chartChildrenActive = 0;
  237. this.secondActive = "";
  238. this.pageNum = 1;
  239. this.dataList = [];
  240. uni.pageScrollTo({
  241. scrollTop: 0,
  242. duration: 0,
  243. });
  244. if (this.topTabsActive == "2" || this.topTabsActive == "3") {
  245. this.getTabs();
  246. } else {
  247. this.initData();
  248. }
  249. },
  250. //点击顶部二级分类
  251. handleClickTopSub(item) {
  252. this.secondActive = item.ChartPermissionId;
  253. this.chartChildren = [];
  254. this.chartChildrenActive = 0;
  255. this.childrenChartData();
  256. this.initData();
  257. },
  258. //点击图标的二级分类 处理数据
  259. childrenChartData() {
  260. if (this.topTabsActive == 3 && this.secondActive != 0) {
  261. let arr = [];
  262. this.secondBars.forEach((item) => {
  263. if (this.secondActive == item.ChartPermissionId) {
  264. deepCopy(arr, item.List);
  265. arr.unshift({
  266. CtagId: 0,
  267. Name: "全部",
  268. });
  269. this.chartChildren = arr;
  270. }
  271. });
  272. this.chartChildrenActive > 0 ? "" : (this.chartChildrenActive = 0);
  273. }
  274. },
  275. //点击图标的三级分类
  276. handleChartChildren(item) {
  277. this.chartChildrenActive = item.CtagId;
  278. this.initData();
  279. },
  280. //点击
  281. initData() {
  282. this.pageNum = 1;
  283. this.dataList = [];
  284. uni.pageScrollTo({
  285. scrollTop: 0,
  286. duration: 0,
  287. });
  288. this.getReportList();
  289. },
  290. /* 获取tab分类 */
  291. getTabs() {
  292. this.secondBars = [];
  293. this.topTabsActive == "2"
  294. ? Home.Tab().then((res) => {
  295. if (res.Ret === 200) {
  296. this.secondBars = res.Data.List;
  297. this.secondActive > 0 ? "" : (this.secondActive = this.secondBars[0].ChartPermissionId);
  298. this.getReportList();
  299. }
  300. })
  301. : Chart.getChartPatg().then((res) => {
  302. if (res.Ret === 200) {
  303. let arr = res.Data;
  304. arr.unshift({
  305. ChartPermissionId: 0,
  306. PermissionName: "我的收藏",
  307. });
  308. this.secondBars = arr;
  309. this.secondActive ? "" : (this.secondActive = 0);
  310. this.secondActive > 0 && this.childrenChartData();
  311. this.getReportList();
  312. }
  313. });
  314. },
  315. /* 获取列表 */
  316. async getReportList() {
  317. if (this.topTabsActive == "3" && this.secondActive == 0) {
  318. const res = await Chart.getChartcollection({
  319. PageSize: this.pageSize,
  320. CurrentIndex: this.pageNum,
  321. });
  322. if (res.Ret === 200) {
  323. this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
  324. this.isBindingMobile = res.Data.IsBindingMobile;
  325. if (this.pageNum === 1) {
  326. this.dataList = res.Data.List || [];
  327. this.haveData = this.dataList.length > 0 ? true : false;
  328. } else {
  329. this.dataList = this.dataList.concat(res.Data.List);
  330. }
  331. }
  332. } else {
  333. const res = await Home.getList({
  334. PageSize: this.pageSize,
  335. CurrentIndex: this.pageNum,
  336. ChartPermissionId: this.secondActive,
  337. CtagId: this.chartChildrenActive,
  338. ListType: this.topTabsActive,
  339. });
  340. if (res.Ret === 200) {
  341. this.processingData(res);
  342. }
  343. }
  344. },
  345. //处理数据
  346. processingData(res) {
  347. if (!res.Data.HaveResearch) {
  348. this.$util.modalShow("", "您暂无查看研选权限", "", () => {
  349. uni.reLaunch({
  350. url: "/pages/index/index",
  351. });
  352. });
  353. }
  354. this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
  355. res.Data.List &&
  356. res.Data.List.forEach((item) => {
  357. if (item.BodyHtml) {
  358. item.BodyHtml = item.BodyHtml.replace(/'\'/g, "");
  359. }
  360. });
  361. if (this.topTabsActive == "2") {
  362. if (this.pageNum === 1) {
  363. this.dataList = res.Data.List || [];
  364. this.haveData = this.dataList.length ? true : false;
  365. } else {
  366. this.dataList = this.dataList.concat(res.Data.List);
  367. }
  368. } else {
  369. if (this.pageNum === 1) {
  370. this.haveData = res.Data.List ? true : res.Data.ChartList ? true : false;
  371. }
  372. if (!res.Data.List) {
  373. this.dataList = this.dataList.concat(res.Data.ChartList);
  374. } else if (!res.Data.ChartList) {
  375. this.dataList = this.dataList.concat(res.Data.List);
  376. } else {
  377. this.dataList.push(res.Data.List.shift());
  378. let newArr = [];
  379. let newArrTwo = [];
  380. for (let i = 0; i < res.Data.List.length; i += 2) {
  381. newArr.push(res.Data.List.slice(i, i + 2));
  382. }
  383. for (let i = 0; i < res.Data.ChartList.length; i += 2) {
  384. newArrTwo.push(res.Data.ChartList.slice(i, i + 2));
  385. }
  386. let arr = [];
  387. newArr.forEach((item, index) => {
  388. if (newArrTwo[index]) {
  389. arr.push(newArrTwo[index], item);
  390. } else {
  391. arr.push(item);
  392. }
  393. });
  394. this.dataList = this.dataList.concat(arr.flat(Infinity));
  395. }
  396. }
  397. if (this.refresh) {
  398. uni.stopPullDownRefresh();
  399. this.refresh = false;
  400. }
  401. },
  402. //我的收藏的删除
  403. myChartCollect(id) {
  404. uni.showModal({
  405. content: "确认要将该图表移除我的收藏吗?",
  406. confirmColor: "#3385FF",
  407. cancelColor: "#606266",
  408. success: async (res) => {
  409. if (res.confirm) {
  410. const res = await Chart.myChartCollect({
  411. ChartId: id,
  412. });
  413. if (res.Ret === 200) {
  414. this.initData();
  415. this.$util.toast("已取消收藏");
  416. }
  417. }
  418. },
  419. });
  420. },
  421. //我的收藏 置顶
  422. async myChartIsTop(id) {
  423. const res = await Chart.myChartTop({
  424. ChartId: id,
  425. });
  426. if (res.Ret === 200) {
  427. this.initData();
  428. this.$util.toast(res.Msg);
  429. }
  430. },
  431. /* 进入详情 校验是否有该品种权限 */
  432. goDetail(item) {
  433. if (item.Source == 2) {
  434. /* 无需授权且已绑定 检验是或否有权限 */
  435. this.$store.dispatch("checkHandle", "/pageMy/chartPage/chartPage?id=" + item.ChartId);
  436. } else {
  437. /* 无需授权且已绑定 检验是或否有权限 */
  438. this.$store.dispatch("checkHandle", "/pageMy/reportDetail/reportDetail?id=" + item.ArticleId);
  439. }
  440. },
  441. /* 搜索 */
  442. goSearch() {
  443. this.$store.dispatch("checkHandle", "/pageMy/search/search");
  444. },
  445. /* 绝密标签的隐现 */
  446. async reportIsShow() {
  447. const res = await Reports.reportIsShow();
  448. if (res.Ret === 200) {
  449. this.reportShow = res.Data.IsShow;
  450. this.isShowChart = res.Data.IsShowChart;
  451. this.isShowResearch = res.Data.IsShowResearch;
  452. }
  453. },
  454. /* 绝密标签点击后的跳转 */
  455. goSecretDetail(type) {
  456. uni.navigateTo({
  457. url: "/reportPages/secretDetails/secretDetails?type=" + type,
  458. });
  459. },
  460. /* 绑定联系方式 */
  461. bindingMobile() {
  462. uni.navigateTo({
  463. url: "/pageMy/login/login",
  464. });
  465. },
  466. },
  467. /* 下拉刷新 */
  468. onPullDownRefresh: Throttle(function () {
  469. this.status = "loadmore";
  470. this.refresh = true;
  471. this.dataList = [];
  472. this.pageNum = 1;
  473. this.getReportList();
  474. }),
  475. // 上拉加载
  476. onReachBottom: Throttle(function () {
  477. if (this.status === "nomore") return;
  478. this.status = "loading";
  479. this.pageNum++;
  480. this.getReportList();
  481. }),
  482. /** 用户点击分享*/
  483. onShareAppMessage: function (res) {
  484. return {
  485. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "您手边的弘则研究素材检索库",
  486. path: "/pages/index/index?topTabsActive=" + this.topTabsActive + "&secondActive=" + this.secondActive + "&childrenActive=" + this.chartChildrenActive,
  487. imageUrl: this.topTabsActive == 1 ? "https://hzstatic.hzinsights.com/cygx/czbk/home_share.png" : "",
  488. success: (res) => {},
  489. fail: (err) => {},
  490. };
  491. },
  492. };
  493. </script>
  494. <style lang="scss">
  495. .Index-container {
  496. background-color: #f7f7f7;
  497. font-size: 30rpx;
  498. .top-content-box {
  499. position: sticky;
  500. top: 0;
  501. left: 0;
  502. width: 100%;
  503. z-index: 999;
  504. }
  505. .nav-bar-wrap {
  506. background-color: #fff;
  507. width: 100%;
  508. .content {
  509. position: relative;
  510. height: 90%;
  511. .search-icon {
  512. text-align: center;
  513. position: absolute;
  514. left: 34rpx;
  515. top: 60%;
  516. transform: translateY(-50%);
  517. }
  518. .top-tabs {
  519. width: 460rpx;
  520. position: absolute;
  521. left: 55%;
  522. top: 60%;
  523. transform: translate(-50%, -50%);
  524. display: flex;
  525. align-items: center;
  526. font-size: 34rpx;
  527. &::-webkit-scrollbar {
  528. width: 0;
  529. height: 0;
  530. display: none;
  531. }
  532. .item {
  533. position: relative;
  534. padding-bottom: 16rpx;
  535. margin-right: 50rpx;
  536. flex-shrink: 0;
  537. .limit-img {
  538. position: absolute;
  539. top: -15rpx;
  540. right: -50rpx;
  541. }
  542. .active {
  543. position: absolute;
  544. left: 0;
  545. bottom: 0;
  546. height: 4rpx;
  547. width: 100%;
  548. border-radius: 1rpx;
  549. background: linear-gradient(90deg, #2e85ff 0%, #7eeaf6 100%);
  550. }
  551. }
  552. .tabs-active {
  553. color: #3385ff;
  554. font-weight: 500;
  555. }
  556. }
  557. }
  558. }
  559. .tabs-content {
  560. padding: 0 30rpx;
  561. background-color: #fff;
  562. .children-ul {
  563. display: flex;
  564. flex-wrap: wrap;
  565. .children-active {
  566. background-color: #3385ff;
  567. color: #fff;
  568. }
  569. }
  570. .chart-children {
  571. padding: 10rpx 20rpx;
  572. margin: 0rpx 20rpx 20rpx 0;
  573. background-color: #f9f9f9;
  574. color: #666666;
  575. font-size: 26rpx;
  576. border-radius: 4rpx;
  577. }
  578. }
  579. .second-tabs {
  580. width: 100%;
  581. display: flex;
  582. overflow-x: auto;
  583. background-color: #fff;
  584. font-size: 30rpx;
  585. color: #999999;
  586. padding: 20rpx 0;
  587. &::-webkit-scrollbar {
  588. width: 0;
  589. height: 0;
  590. display: none;
  591. }
  592. .item {
  593. position: relative;
  594. padding-bottom: 16rpx;
  595. margin-right: 50rpx;
  596. flex-shrink: 0;
  597. .limit-img {
  598. position: absolute;
  599. top: -15rpx;
  600. right: -50rpx;
  601. }
  602. .active {
  603. position: absolute;
  604. left: 0;
  605. bottom: 0;
  606. height: 4rpx;
  607. width: 100%;
  608. border-radius: 1rpx;
  609. background: linear-gradient(90deg, #2e85ff 0%, #7eeaf6 100%);
  610. }
  611. }
  612. .tabs-active {
  613. color: #3385ff;
  614. font-weight: 500;
  615. }
  616. }
  617. .data-cont {
  618. padding: 28rpx 20rpx 10rpx;
  619. display: flex;
  620. .report-ul {
  621. width: 50%;
  622. &:first-child {
  623. margin-right: 10rpx;
  624. }
  625. .report-item {
  626. padding: 20rpx 20rpx 24rpx 20rpx;
  627. margin-bottom: 20rpx;
  628. border-radius: 8rpx;
  629. box-shadow: 0 3rpx 6rpx rgba($color: #000000, $alpha: 0.16);
  630. background: #fff;
  631. position: relative;
  632. overflow: hidden;
  633. .my-chart-collect {
  634. content: "";
  635. display: block;
  636. position: absolute;
  637. top: 0;
  638. left: 0;
  639. width: 0;
  640. height: 0;
  641. border-top: 60rpx solid #3385ff;
  642. border-right: 60rpx solid transparent;
  643. }
  644. .item-content-img {
  645. display: flex;
  646. align-items: center;
  647. width: 330rpx;
  648. margin-left: -6rpx;
  649. margin-bottom: -20rpx;
  650. image {
  651. width: 100%;
  652. height: 262rpx;
  653. vertical-align: middle;
  654. }
  655. }
  656. .item-content {
  657. height: 273rpx;
  658. font-size: 24rpx;
  659. line-height: 40rpx;
  660. color: #7f7f7f;
  661. overflow: hidden;
  662. text-overflow: ellipsis;
  663. display: -webkit-box;
  664. -webkit-line-clamp: 7;
  665. -webkit-box-orient: vertical;
  666. image {
  667. width: 100% !important;
  668. }
  669. }
  670. .line {
  671. margin: 18rpx 0;
  672. content: "";
  673. width: 100%;
  674. height: 1px;
  675. padding: 0 32rpx;
  676. box-sizing: border-box;
  677. background-color: #e5e5e5;
  678. -webkit-transform: scale(1, 0.5);
  679. transform: scale(1, 0.5);
  680. -webkit-transform-origin: center bottom;
  681. transform-origin: center bottom;
  682. }
  683. .item-title {
  684. font-size: 28rpx;
  685. color: #4a4a4a;
  686. margin-bottom: 10rpx;
  687. }
  688. .chart-title {
  689. height: 72rpx;
  690. padding-bottom: 10rpx;
  691. }
  692. .item-abstract {
  693. font-size: 26rpx;
  694. color: #6a6a6a;
  695. margin-bottom: 10rpx;
  696. .report_ico {
  697. width: 32rpx;
  698. height: 26rpx;
  699. margin-right: 20rpx;
  700. display: inline-block;
  701. }
  702. }
  703. .item-createtime {
  704. display: flex;
  705. align-items: center;
  706. justify-content: space-between;
  707. color: #acacac;
  708. font-size: 24rpx;
  709. .item-examine {
  710. display: flex;
  711. align-items: center;
  712. image {
  713. width: 30rpx;
  714. height: 24rpx;
  715. margin: 0 10rpx 0 15rpx;
  716. }
  717. }
  718. }
  719. .chart-tag {
  720. padding-top: 1rpx;
  721. height: 36rpx;
  722. .tag-item {
  723. width: 148rpx;
  724. border-radius: 28rpx;
  725. border: 2rpx solid rgba(49, 137, 255, 1);
  726. overflow: hidden;
  727. color: #3385ff;
  728. text-align: center;
  729. line-height: 30rpx;
  730. }
  731. }
  732. .chart-collect {
  733. margin-top: 20rpx;
  734. padding-top: 20rpx;
  735. padding: 20rpx 0 0 20rpx;
  736. border-top: 1rpx solid #dcdfe6;
  737. display: flex;
  738. align-items: center;
  739. .cancel {
  740. background: #3385ff;
  741. margin-right: 20rpx;
  742. color: #ffffff;
  743. }
  744. .remove {
  745. border: 1px solid #3385ff;
  746. color: #3385ff;
  747. }
  748. text {
  749. width: 130rpx;
  750. height: 46rpx;
  751. line-height: 46rpx;
  752. border-radius: 4rpx;
  753. text-align: center;
  754. font-size: 24rpx;
  755. }
  756. }
  757. }
  758. }
  759. }
  760. .content-intimate {
  761. position: fixed;
  762. display: flex;
  763. align-items: center;
  764. bottom: 96rpx;
  765. right: 41rpx;
  766. height: 156rpx;
  767. .content {
  768. width: 432rpx;
  769. height: 112rpx;
  770. background-color: #fff;
  771. display: flex;
  772. border-radius: 56rpx;
  773. overflow: hidden;
  774. .cont-border {
  775. margin: 0 2rpx;
  776. }
  777. view {
  778. flex: 1;
  779. background-color: #3385ff;
  780. font-size: 30rpx;
  781. color: #fff;
  782. padding-top: 15rpx;
  783. text-align: center;
  784. }
  785. }
  786. image {
  787. width: 156rpx;
  788. height: 100%;
  789. z-index: 99;
  790. }
  791. }
  792. .tabs-img {
  793. width: 46rpx;
  794. height: 26rpx;
  795. }
  796. .nodata {
  797. font-size: 40rpx;
  798. .bind-mobile {
  799. width: 244rpx;
  800. height: 58rpx;
  801. background: #3385ff;
  802. border-radius: 8rpx;
  803. font-size: 28rpx;
  804. line-height: 58rpx;
  805. text-align: center;
  806. color: #fff;
  807. margin: 50rpx auto;
  808. }
  809. }
  810. }
  811. </style>