material.vue 21 KB

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