material.vue 22 KB

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