material.vue 22 KB

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