material.vue 24 KB

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