material.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  1. <template>
  2. <view class="container Index-container">
  3. <view class="top-content-box">
  4. <search-bar @goSearch="goSearch" :searchTitle="searchPlaceholderList.SummarySearch" :width="70" />
  5. <view class="top-tabs">
  6. <block v-for="item in topTabBars" :key="item.Id">
  7. <view v-if="item.IsShow" :class="['item', item.val == topTabsActive && 'tabs-active']" @click="topTabsChange(item)">
  8. {{ item.Name }}
  9. <block v-if="(item.Id === 3 || item.Name == '图表') && wholeShowListData.IsShowChart">
  10. <image class="limit-img tabs-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png" mode=""></image>
  11. </block>
  12. <view class="active" v-if="item.Id == topTabsActive"></view>
  13. </view>
  14. </block>
  15. </view>
  16. <view class="tabs-content">
  17. <view class="second-tabs" v-if="topTabsActive == '2' || topTabsActive == '3'">
  18. <view
  19. :class="['item', item.ChartPermissionId == secondActive && 'tabs-active']"
  20. v-for="(item, index) in secondBars"
  21. :key="item.ChartPermissionId"
  22. @click="handleClickTopSub(item)"
  23. >
  24. {{ item.PermissionName }}
  25. <block v-if="wholeShowListData.IsShowResearch && index === secondBars.length - 1 && topTabsActive == '2'">
  26. <image class="limit-img tabs-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png" mode=""></image>
  27. </block>
  28. <view class="active" v-if="item.ChartPermissionId == secondActive"></view>
  29. </view>
  30. </view>
  31. <block v-if="topTabsActive == '3'">
  32. <view class="children-ul">
  33. <view
  34. :class="['chart-children', chartChildrenActive == item.CtagId ? 'children-active' : '']"
  35. v-for="item in chartChildren"
  36. :key="item.CtagId"
  37. @click="handleChartChildren(item)"
  38. >{{ item.Name }}</view
  39. >
  40. </view>
  41. </block>
  42. <view v-if="topTabsActive == '4'" class="medium-ul">
  43. <view class="item-content">
  44. <view @click="mediumClickHandler(item)" :class="['item', item.isSelect && 'item-act']" v-for="item in mediumSelect" :key="item.value">
  45. {{ item.name }}
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <block v-if="haveData">
  52. <view class="content-ul">
  53. <block v-if="topTabsActive == 4">
  54. <view style="width: 49%" v-for="item in roadshowPageList" :key="item.Id">
  55. <RoadshowItem :list="item" @isCollectionHandeler="isCollectionHandeler" />
  56. </view>
  57. </block>
  58. <block v-else>
  59. <view class="report-ul" style="width: 49%">
  60. <block v-for="(item, index) in dataList" :key="index">
  61. <view v-if="index % 2 == 0">
  62. <ChartItem
  63. v-if="topTabsActive == 3"
  64. :list="item"
  65. :isMyChartCollection="isMyChartCollection"
  66. @myChartIsTop="myChartIsTop"
  67. @myChartCollect="myChartCollect"
  68. />
  69. <ReportItem v-if="topTabsActive == 2" :list="item" />
  70. </view>
  71. </block>
  72. </view>
  73. <view class="report-ul" style="width: 49%">
  74. <block v-for="(item, index) in dataList" :key="index">
  75. <view v-if="index % 2 !== 0">
  76. <ChartItem
  77. v-if="topTabsActive == 3"
  78. :list="item"
  79. :isMyChartCollection="isMyChartCollection"
  80. @myChartIsTop="myChartIsTop"
  81. @myChartCollect="myChartCollect"
  82. />
  83. <ReportItem v-if="topTabsActive == 2" :list="item" />
  84. </view>
  85. </block>
  86. </view>
  87. </block>
  88. </view>
  89. <u-loadmore :status="status" icon-type="flower" :load-text="loadText" margin-top="20" v-if="pageNum > 1" />
  90. </block>
  91. <view class="nodata" v-else-if="haveData === false" style="padding-top: 400rpx">
  92. <block class="nodata" v-if="!isBindingMobile && secondActive == 0">
  93. <text>请先绑定联系方式</text>
  94. <view class="bind-mobile" @click="bindingMobile">绑定联系方式</view>
  95. </block>
  96. <block v-else>
  97. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/act_search.png" mode="" class="nodata_ico"></image>
  98. <text>{{ topTabsActive == 3 && secondActive == 0 ? "暂无收藏的图表" : "暂时没有数据" }}</text>
  99. </block>
  100. </view>
  101. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  102. <Loading />
  103. </view>
  104. </template>
  105. <script>
  106. import { Home, Reports, Chart, activity } from "@/config/api.js";
  107. import { Throttle, deepCopy } from "@/config/util.js";
  108. import freeCharge from "@/components/freeCharge";
  109. import SearchBar from "@/components/search-bar/searchBar.vue";
  110. import ChartItem from "@/components/ItemComponent/chartItem.vue";
  111. import ReportItem from "@/components/ItemComponent/reportItem.vue";
  112. import RoadshowItem from "@/components/ItemComponent/roadshowItem.vue";
  113. let app = getApp();
  114. export default {
  115. data() {
  116. return {
  117. topTabBars: [],
  118. topTabsActive: 2, //一级top的tabs
  119. secondActive: "", //二级的tabs
  120. secondBars: [], //二级的tabs数组
  121. chartChildren: [], //二级的tabs下的标签
  122. chartChildrenActive: 0,
  123. refresh: false,
  124. pageSize: 10, //条数
  125. pageNum: 1, //页码
  126. haveMore: true, //是否有更多数据
  127. haveData: null, //是否有数据
  128. //数据列表
  129. dataList: [],
  130. status: "loadmore",
  131. loadText: {
  132. loadmore: "上拉加载更多",
  133. loading: "加载中",
  134. nomore: "已经到底了",
  135. },
  136. showTransition: false, //点击绝密后的隐现
  137. isBindingMobile: true, //图表我的收藏是否绑定手机号
  138. videoContext: null,
  139. audioShareId: "", //通过分享单个音频点进页面时使用
  140. videoShareId: "", //通过分享单个视频点进页面时使用
  141. activityShareId: "",
  142. roadshowPageList: [], //音频 视频 list
  143. mediumSelect: [
  144. { name: "音频", value: "2", isSelect: false },
  145. { name: "视频", value: "1", isSelect: false },
  146. { name: "逻辑解析", value: "3", isSelect: false },
  147. { name: "路演回放", value: "4", isSelect: false },
  148. ],
  149. mediumActive: "",
  150. };
  151. },
  152. components: {
  153. freeCharge,
  154. ChartItem,
  155. ReportItem,
  156. RoadshowItem,
  157. SearchBar,
  158. },
  159. watch: {},
  160. onLoad(optios) {
  161. this.getHeaderTab();
  162. if (optios.topTabsActive) {
  163. this.topTabsActive = optios.topTabsActive;
  164. this.secondActive = optios.secondActive;
  165. this.chartChildrenActive = optios.childrenActive;
  166. this.videoShareId = optios.videoShareId;
  167. this.audioShareId = optios.audioShareId;
  168. this.activityShareId = optios.activityId;
  169. }
  170. this.getTabs();
  171. this.getReportList();
  172. },
  173. onShow() {
  174. this.getRecordTracking("纪要库");
  175. this.$store.commit("setRouterActivity", "纪要库");
  176. this.$store.commit("setRouterReport", "纪要库");
  177. //进入页面的记录
  178. this.$store.dispatch("statistics", { PageType: "Activit" });
  179. // #ifdef MP-WEIXIN
  180. uni.hideHomeButton();
  181. // #endif
  182. this.$store.commit("audioBg/parseIntAudio", true);
  183. },
  184. computed: {
  185. curVoiceId() {
  186. //当前正在播放的音频id
  187. return this.$store.state.audioBg.indexId;
  188. },
  189. curAudioPaused() {
  190. //当前音频是否暂停状态
  191. return this.$store.state.audioBg.paused;
  192. },
  193. showAudioBox() {
  194. return this.$store.state.audioBg.parseIntShow;
  195. },
  196. isMyChartCollection() {
  197. return this.topTabsActive == "3" && this.secondActive == 0;
  198. },
  199. },
  200. methods: {
  201. //点击顶部一级分类
  202. topTabsChange(item) {
  203. this.topTabsActive = item.Id;
  204. this.chartChildren = [];
  205. this.chartChildrenActive = 0;
  206. this.secondActive = "";
  207. this.pageNum = 1;
  208. this.dataList = [];
  209. this.audioShareId = "";
  210. this.videoShareId = "";
  211. uni.pageScrollTo({
  212. scrollTop: 0,
  213. duration: 0,
  214. });
  215. if (this.topTabsActive == "2" || this.topTabsActive == "3") {
  216. this.getTabs();
  217. } else {
  218. this.initData();
  219. }
  220. this.$store.commit("setRouterReport", item.Id === 3 ? "我的收藏" : "纪要库");
  221. },
  222. //点击顶部二级分类
  223. handleClickTopSub(item) {
  224. this.$store.commit("setRouterReport", item.PermissionName === "我的收藏" ? "我的收藏" : "纪要库");
  225. this.secondActive = item.ChartPermissionId;
  226. this.chartChildren = [];
  227. this.chartChildrenActive = 0;
  228. this.childrenChartData();
  229. this.initData();
  230. },
  231. //点击图标的二级分类 处理数据
  232. childrenChartData() {
  233. if (this.topTabsActive == 3 && this.secondActive != 0) {
  234. let arr = [];
  235. this.secondBars &&
  236. this.secondBars.forEach((item) => {
  237. if (this.secondActive == item.ChartPermissionId) {
  238. deepCopy(arr, item.List);
  239. arr.unshift({
  240. CtagId: 0,
  241. Name: "全部",
  242. });
  243. this.chartChildren = arr;
  244. }
  245. });
  246. this.chartChildrenActive > 0 ? "" : (this.chartChildrenActive = 0);
  247. }
  248. },
  249. //点击图标的三级分类
  250. handleChartChildren(item) {
  251. this.chartChildrenActive = item.CtagId;
  252. this.initData();
  253. },
  254. // 点击为路演的筛选
  255. mediumClickHandler(item) {
  256. item.isSelect = !item.isSelect;
  257. let arr = [];
  258. this.mediumSelect.forEach((key) => {
  259. if (key.isSelect) {
  260. arr.push(key.value);
  261. }
  262. });
  263. this.mediumActive = arr.join(",");
  264. this.initData();
  265. },
  266. //点击
  267. initData() {
  268. this.pageNum = 1;
  269. this.dataList = [];
  270. uni.pageScrollTo({
  271. scrollTop: 0,
  272. duration: 0,
  273. });
  274. this.getReportList();
  275. },
  276. /* 获取tab分类 */
  277. getTabs() {
  278. this.secondBars = [];
  279. this.topTabsActive == "2"
  280. ? Home.Tab().then((res) => {
  281. if (res.Ret === 200) {
  282. this.secondBars = res.Data.List;
  283. this.secondActive > 0 ? "" : (this.secondActive = this.secondBars[0].ChartPermissionId);
  284. this.getReportList();
  285. }
  286. })
  287. : this.topTabsActive == "3"
  288. ? Chart.getChartPatg().then((res) => {
  289. if (res.Ret === 200) {
  290. let arr = res.Data;
  291. arr.unshift({
  292. ChartPermissionId: 0,
  293. PermissionName: "我的收藏",
  294. });
  295. this.secondBars = arr;
  296. this.secondActive ? "" : (this.secondActive = 0);
  297. this.secondActive > 0 && this.childrenChartData();
  298. this.getReportList();
  299. }
  300. })
  301. : "";
  302. },
  303. /* 获取列表 */
  304. async getReportList() {
  305. if (this.topTabsActive == "3" && this.secondActive == 0) {
  306. const res = await Chart.getChartcollection({
  307. PageSize: this.pageSize,
  308. CurrentIndex: this.pageNum,
  309. });
  310. if (res.Ret === 200) {
  311. this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
  312. this.isBindingMobile = res.Data.IsBindingMobile;
  313. if (this.pageNum === 1) {
  314. this.dataList = res.Data.List || [];
  315. this.haveData = this.dataList.length > 0 ? true : false;
  316. } else {
  317. this.dataList = this.dataList.concat(res.Data.List);
  318. }
  319. }
  320. } else if (this.topTabsActive == 4) {
  321. const res = await Home.microRoadshowList({
  322. PageSize: this.pageSize,
  323. CurrentIndex: this.pageNum,
  324. AudioId: this.audioShareId,
  325. VideoId: this.activityShareId ? "" : this.videoShareId,
  326. ActivityVideoId: this.activityShareId && this.videoShareId,
  327. Filter: this.mediumActive,
  328. });
  329. if (res.Ret === 200) {
  330. this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
  331. if (this.pageNum == 1) {
  332. this.roadshowPageList = res.Data.List || [];
  333. this.haveData = this.roadshowPageList.length > 0 ? true : false;
  334. if (this.refresh) {
  335. uni.stopPullDownRefresh();
  336. this.refresh = false;
  337. }
  338. } else {
  339. this.roadshowPageList = this.roadshowPageList.concat(res.Data.List);
  340. }
  341. }
  342. } else {
  343. const res = await Home.getList({
  344. PageSize: this.pageSize,
  345. CurrentIndex: this.pageNum,
  346. ChartPermissionId: this.secondActive,
  347. CtagId: this.chartChildrenActive,
  348. ListType: this.topTabsActive,
  349. });
  350. if (res.Ret === 200) {
  351. this.processingData(res);
  352. }
  353. }
  354. },
  355. //处理数据
  356. processingData(res) {
  357. if (!res.Data.HaveResearch) {
  358. this.$util.modalShow("", "您暂无查看买方研选权限", "", () => {
  359. uni.reLaunch({
  360. url: "/pages/index/index",
  361. });
  362. });
  363. }
  364. this.status = this.pageNum < res.Data.Paging.Pages ? "loadmore" : "nomore";
  365. res.Data.List &&
  366. res.Data.List.forEach((item) => {
  367. if (item.BodyHtml) {
  368. item.BodyHtml = item.BodyHtml.replace(/'\'/g, "");
  369. }
  370. });
  371. if (this.topTabsActive == "2") {
  372. if (this.pageNum === 1) {
  373. this.dataList = res.Data.List || [];
  374. this.haveData = this.dataList.length ? true : false;
  375. } else {
  376. this.dataList = this.dataList.concat(res.Data.List);
  377. }
  378. } else {
  379. if (this.pageNum === 1) {
  380. this.haveData = res.Data.List ? true : res.Data.ChartList ? true : false;
  381. }
  382. if (!res.Data.List) {
  383. this.dataList = this.dataList.concat(res.Data.ChartList);
  384. } else if (!res.Data.ChartList) {
  385. this.dataList = this.dataList.concat(res.Data.List);
  386. } else {
  387. this.dataList.push(res.Data.List.shift());
  388. let newArr = [];
  389. let newArrTwo = [];
  390. for (let i = 0; i < res.Data.List.length; i += 2) {
  391. newArr.push(res.Data.List.slice(i, i + 2));
  392. }
  393. for (let i = 0; i < res.Data.ChartList.length; i += 2) {
  394. newArrTwo.push(res.Data.ChartList.slice(i, i + 2));
  395. }
  396. let arr = [];
  397. newArr.forEach((item, index) => {
  398. if (newArrTwo[index]) {
  399. arr.push(newArrTwo[index], item);
  400. } else {
  401. arr.push(item);
  402. }
  403. });
  404. this.dataList = this.dataList.concat(arr.flat(Infinity));
  405. }
  406. }
  407. if (this.refresh) {
  408. uni.stopPullDownRefresh();
  409. this.refresh = false;
  410. }
  411. },
  412. //我的收藏的删除
  413. myChartCollect(id) {
  414. uni.showModal({
  415. content: "确认要将该图表移除我的收藏吗?",
  416. confirmColor: "#3385FF",
  417. cancelColor: "#606266",
  418. success: async (res) => {
  419. if (res.confirm) {
  420. const res = await Chart.myChartCollect({
  421. ChartId: id,
  422. });
  423. if (res.Ret === 200) {
  424. this.initData();
  425. this.$util.toast("已取消收藏");
  426. }
  427. }
  428. },
  429. });
  430. },
  431. //我的收藏 置顶
  432. async myChartIsTop(id) {
  433. const res = await Chart.myChartTop({
  434. ChartId: id,
  435. });
  436. if (res.Ret === 200) {
  437. this.initData();
  438. this.$util.toast(res.Msg);
  439. }
  440. },
  441. /* 搜索 */
  442. goSearch() {
  443. this.$store.dispatch("checkHandle", "/pages-search/indedxSearch/indedxSearch?isType=" + this.topTabsActive + "&source=纪要库页面");
  444. },
  445. /* 绑定联系方式 */
  446. bindingMobile() {
  447. uni.showModal({
  448. title: "即将前往登录页面,请确认是否继续",
  449. content: "为了给您提供更好的使用体验,请登录后再进行查看或操作",
  450. confirmColor: "#3385FF",
  451. cancelColor: "#606266",
  452. success: function (res) {
  453. if (res.confirm) {
  454. //已授权未绑定
  455. uni.navigateTo({
  456. url: "/pageMy/login/login",
  457. });
  458. } else if (res.cancel) {
  459. console.log("用户点击取消");
  460. }
  461. },
  462. });
  463. },
  464. //获取顶部导航
  465. async getHeaderTab() {
  466. const res = await Home.headerTab();
  467. if (res.Ret === 200) {
  468. this.topTabBars = res.Data || [];
  469. }
  470. },
  471. // 微路演收藏
  472. async isCollectionHandeler(item) {
  473. await this.$store.dispatch("showLoginModal");
  474. const res = await Home.microRoadshowCollect({
  475. Id: item.Id,
  476. SourceType: item.Type,
  477. PageRouter: this.$store.state.pageRouterReport,
  478. });
  479. if (res.Ret === 200) {
  480. let index = this.roadshowPageList.findIndex((key) => key.Id == item.Id);
  481. res.Data.Status == 1 ? (this.roadshowPageList[index].IsCollect = true) : (this.roadshowPageList[index].IsCollect = false);
  482. uni.showToast({
  483. title: res.Msg,
  484. duration: 2000,
  485. });
  486. }
  487. },
  488. },
  489. onHide() {
  490. this.$store.commit("audioBg/parseIntAudio", false);
  491. },
  492. mounted() {
  493. uni.$on("updateAudioVideo", (data) => {
  494. this.$store.dispatch("checkHandle", "noGO");
  495. this.getReportList();
  496. });
  497. },
  498. /* 下拉刷新 */
  499. onPullDownRefresh: Throttle(function () {
  500. this.audioShareId = "";
  501. this.videoShareId = "";
  502. this.activityShareId = "";
  503. this.status = "loadmore";
  504. this.refresh = true;
  505. this.dataList = [];
  506. this.pageNum = 1;
  507. this.getReportList();
  508. }),
  509. // 上拉加载
  510. onReachBottom: Throttle(function () {
  511. if (this.status === "nomore") return;
  512. this.status = "loading";
  513. this.pageNum++;
  514. this.getReportList();
  515. }),
  516. /** 用户点击分享*/
  517. onShareAppMessage: function ({ from, target }) {
  518. if (from === "button") {
  519. let item = target.dataset.item;
  520. let audio_id = item.Type == 1 || item.AudioType == 1 ? item.Id : "";
  521. // type=2 -- 活动视频 type=3 -- 产业视频
  522. let video_id = item.Type == 2 || item.Type == 3 ? item.Id : "";
  523. let activity_id = item.Type == 2 && item.ActivityId > 0 ? item.ActivityId : "";
  524. let title_share = item.AudioTitle || item.Title;
  525. this.getRecordTracking("微路演转发", { ActivityId: item.ActivityId, Id: item.Id, Type: item.Type });
  526. return {
  527. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : title_share,
  528. path: "/pages/material/material?topTabsActive=4" + "&audioShareId=" + audio_id + "&videoShareId=" + video_id + "&activityId=" + activity_id,
  529. imageUrl: item.AudioShareImg || item.ShareImg,
  530. };
  531. } else {
  532. return {
  533. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "素材库",
  534. path:
  535. "/pages/material/material?topTabsActive=" +
  536. this.topTabsActive +
  537. "&secondActive=" +
  538. this.secondActive +
  539. "&childrenActive=" +
  540. this.chartChildrenActive,
  541. success: (res) => {},
  542. fail: (err) => {},
  543. };
  544. }
  545. },
  546. };
  547. </script>
  548. <style lang="scss">
  549. .Index-container {
  550. background-color: #f7f7f7;
  551. font-size: 30rpx;
  552. .content-ul {
  553. display: flex;
  554. flex-wrap: wrap;
  555. justify-content: space-between;
  556. padding: 20rpx 15rpx;
  557. }
  558. .top-content-box {
  559. position: sticky;
  560. top: 0;
  561. left: 0;
  562. width: 100%;
  563. z-index: 9;
  564. .top-tabs {
  565. width: 100%;
  566. display: flex;
  567. align-items: center;
  568. justify-content: center;
  569. font-size: 34rpx;
  570. background-color: #fff;
  571. padding: 35rpx 0 10rpx;
  572. &::-webkit-scrollbar {
  573. width: 0;
  574. height: 0;
  575. display: none;
  576. }
  577. .item {
  578. position: relative;
  579. padding-bottom: 8rpx;
  580. margin-right: 60rpx;
  581. flex-shrink: 0;
  582. .limit-img {
  583. position: absolute;
  584. top: -15rpx;
  585. right: -50rpx;
  586. z-index: 99;
  587. }
  588. .active {
  589. position: absolute;
  590. left: 0;
  591. bottom: 0;
  592. height: 4rpx;
  593. width: 100%;
  594. border-radius: 1rpx;
  595. background: linear-gradient(90deg, #2e85ff 0%, #7eeaf6 100%);
  596. }
  597. }
  598. .tabs-active {
  599. color: #3385ff;
  600. font-weight: 500;
  601. }
  602. }
  603. }
  604. .nav-bar-wrap {
  605. padding-left: 35rpx;
  606. }
  607. .tabs-content {
  608. padding: 0 30rpx;
  609. background-color: #fff;
  610. .children-ul {
  611. display: flex;
  612. flex-wrap: wrap;
  613. .children-active {
  614. background-color: #3385ff;
  615. color: #fff;
  616. }
  617. }
  618. .medium-ul {
  619. display: flex;
  620. padding: 10px 0;
  621. .item-content {
  622. display: flex;
  623. height: 51rpx;
  624. border-radius: 64rpx;
  625. color: #333333;
  626. }
  627. .item {
  628. display: flex;
  629. align-items: center;
  630. justify-content: center;
  631. width: 136rpx;
  632. height: 44rpx;
  633. font-size: 24rpx;
  634. background: #f8f8fa;
  635. border-radius: 48rpx;
  636. margin-right: 20rpx;
  637. }
  638. .item-act {
  639. background-color: #3385ff;
  640. color: #fff;
  641. }
  642. }
  643. .chart-children {
  644. padding: 10rpx 20rpx;
  645. margin: 0rpx 20rpx 20rpx 0;
  646. background-color: #f9f9f9;
  647. color: #666666;
  648. font-size: 26rpx;
  649. border-radius: 4rpx;
  650. }
  651. }
  652. .second-tabs {
  653. width: 100%;
  654. display: flex;
  655. overflow-x: auto;
  656. background-color: #fff;
  657. font-size: 30rpx;
  658. color: #999999;
  659. padding: 20rpx 0;
  660. &::-webkit-scrollbar {
  661. width: 0;
  662. height: 0;
  663. display: none;
  664. }
  665. .item {
  666. position: relative;
  667. padding-bottom: 16rpx;
  668. margin-right: 50rpx;
  669. flex-shrink: 0;
  670. .limit-img {
  671. position: absolute;
  672. top: -15rpx;
  673. right: -50rpx;
  674. z-index: 99;
  675. }
  676. .active {
  677. position: absolute;
  678. left: 0;
  679. bottom: 0;
  680. height: 4rpx;
  681. width: 100%;
  682. border-radius: 1rpx;
  683. background: linear-gradient(90deg, #2e85ff 0%, #7eeaf6 100%);
  684. }
  685. }
  686. .tabs-active {
  687. color: #3385ff;
  688. font-weight: 500;
  689. }
  690. }
  691. .tabs-img {
  692. width: 46rpx;
  693. height: 26rpx;
  694. }
  695. .nodata {
  696. font-size: 40rpx;
  697. .bind-mobile {
  698. width: 244rpx;
  699. height: 58rpx;
  700. background: #3385ff;
  701. border-radius: 8rpx;
  702. font-size: 28rpx;
  703. line-height: 58rpx;
  704. text-align: center;
  705. color: #fff;
  706. margin: 50rpx auto;
  707. }
  708. }
  709. }
  710. </style>