buildList2.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  1. <template >
  2. <view>
  3. <view :class="['custom-header', { 'is-back': isBack }, bgColor]">
  4. <view class="back-container" @click="handleBack">
  5. <view class="back-text">返回</view>
  6. </view>
  7. <view class="content-container">
  8. <view class="content-text">{{title}}</view>
  9. </view>
  10. </view>
  11. <!-- <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="3000" :duration="800">
  12. <swiper-item>
  13. <image src="../../static/img/titlebg.jpg" class="swiper-item"></image>
  14. </swiper-item>
  15. <swiper-item>
  16. <image src="../../static/img/titlebg.jpg" class="swiper-item"></image>
  17. </swiper-item>
  18. </swiper> -->
  19. <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="3000" :duration="800">
  20. <swiper-item v-for="(item, index) in picture2" :key="index">
  21. <image :src="item" class="swiper-item"></image>
  22. </swiper-item>
  23. </swiper>
  24. <view class="line-box">
  25. <view :style="[{top:CustomBar + 'px'}]">
  26. <view class="tabs" v-if="md=='1'">
  27. <view
  28. v-for="(tab, index) in tabs"
  29. :key="index"
  30. class="tab-item"
  31. :class="{ active: activeTab === index }"
  32. @click="switchTab(index)"
  33. >
  34. {{ tab.name }}
  35. </view>
  36. </view>
  37. <view class="tabs" v-if="md=='2'">
  38. <view
  39. v-for="(tab, index) in tabs2"
  40. :key="index"
  41. class="tab-item"
  42. :class="{ active: activeTab === index }"
  43. @click="switchTab2(index)"
  44. >
  45. {{ tab.name }}
  46. </view>
  47. </view>
  48. <image :src="picture" mode="widthFix" class="img-item" >
  49. </image>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import loginService from "@/api/auth/loginService";
  56. import uniFab from '@/components/uni-fab/uni-fab.vue';
  57. import DoublePicker from '@/components/DoublePicker/DoublePicker.vue'
  58. import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
  59. import MescrollMoreItemMixin from "@/components/mescroll-uni/mixins/mescroll-more-item.js";
  60. import {mapActions} from 'vuex'
  61. export default {
  62. mixins: [MescrollMixin, MescrollMoreItemMixin], // 使用mixin (在main.js注册全局组件)
  63. name: "apps",
  64. components: {
  65. uniFab,
  66. DoublePicker
  67. },
  68. data() {
  69. return {
  70. isBack: true, // 是否显示返回按钮
  71. backText: '返回', // 返回按钮的文本
  72. bgColor: 'bg-blue', // 背景颜色
  73. title: '',
  74. isLogin:"",
  75. pageInfo: {},
  76. loginid:"",
  77. showMoreFilters: false,
  78. picture2:["https://miniapp.huidutech.com.cn/yd_qycpfbH5/bg1.jpg",
  79. "https://miniapp.huidutech.com.cn/yd_qycpfbH5/bg2.jpg",
  80. "https://miniapp.huidutech.com.cn/yd_qycpfbH5/bg3.jpg",
  81. "https://miniapp.huidutech.com.cn/yd_qycpfbH5/bg4.jpg"],
  82. tabs: [
  83. { name: '三大新兴产业' },
  84. { name: '三大未来产业' },
  85. { name: 'N个特色产业' }
  86. ],
  87. picture:"https://miniapp.huidutech.com.cn/yd_qycpfbH5/cp1.png",
  88. tabs2: [
  89. { name: '东山系' },
  90. { name: '长盈系' },
  91. { name: '融和系' },
  92. { name: '其他链主企业' }
  93. ],
  94. activeTab: 0,
  95. stype: "", // 企业 => 3 楼宇 => 2 园区 => 1 zfadmin => 4 admin=> 5
  96. md:"1",
  97. searchForm: {
  98. des1:"",
  99. industry:"",
  100. name:"",
  101. des7:"",
  102. des8:"",
  103. },
  104. curWord: "", //当前搜索关键词
  105. dataList: [], // 数据列表
  106. modalName: null,
  107. tablePage: {
  108. total: 0,
  109. currentPage: 1,
  110. pageSize: 10,
  111. orders: []
  112. },
  113. loading: false,
  114. parkId: '',
  115. parkList: [],
  116. parkList2: [],
  117. parkList3: [],
  118. parkList4: [],
  119. ddd1:"" ,
  120. };
  121. },
  122. onLoad(query) {
  123. if(query!=undefined&&query!=null&&query!=''){
  124. if(query.loginid!=undefined){
  125. this.loginid=query.loginid
  126. this.autoLogin();
  127. }
  128. if (query && query.w=='1' ) {
  129. this.md = "1";
  130. this.searchForm.des7="";
  131. this.title="产业图谱";
  132. }else if(query && query.w=='2'){
  133. this.md = "2";
  134. this.searchForm.des8=1;
  135. this.title="链主企业";
  136. }
  137. }
  138. },
  139. onShow() {
  140. this.isLogin=this.$auth.checkisLogin();
  141. },
  142. created() {
  143. //this.getPageInfo();
  144. this.getParkList()
  145. this.getParkList2()
  146. this.getParkList3()
  147. },
  148. methods: {
  149. ...mapActions(['refreshUserInfo']),
  150. //选择产业链环节
  151. getParkList3() {
  152. loginService.getIndustryChainList({
  153. }).then(({
  154. data
  155. }) => {
  156. // this.parkList3 = data.map((item) => {
  157. // return {
  158. // label: item.bz2,
  159. // value: item.bz2
  160. // }
  161. // });
  162. this.parkList3=[{label: '上游',value: '上游'},{label: '中游',value: '中游'},{label: '下游',value: '下游'}]
  163. this.parkList4 = data
  164. .map((item) => {
  165. const match = item.bz2.match(/\((.*?)\)/); // 匹配括号内的内容
  166. if (match) {
  167. return {
  168. label: match[1], // 括号内的内容
  169. value: match[1] // 括号内的内容
  170. };
  171. }
  172. return null; // 如果没有括号,返回 null
  173. })
  174. .filter((item) => item !== null) // 过滤掉 null 值
  175. .reduce((acc, current) => {
  176. // 使用 Set 去重
  177. const existingItem = acc.find((item) => item.value === current.value);
  178. if (!existingItem) {
  179. acc.push(current);
  180. }
  181. return acc;
  182. }, []);
  183. this.parkList3.unshift({
  184. label: "全部",
  185. value: ""
  186. });
  187. this.parkList4.unshift({
  188. label: "全部",
  189. value: ""
  190. });
  191. }).catch(e => {
  192. console.log(e)
  193. })
  194. },
  195. //选择属地
  196. getParkList2() {
  197. loginService.getAreaList({
  198. }).then(({
  199. data
  200. }) => {
  201. this.parkList2 = data.map((item) => {
  202. return {
  203. label: item.des1,
  204. value: item.des1
  205. }
  206. })
  207. this.parkList2.unshift({
  208. label: "盐都区",
  209. value: ""
  210. });
  211. }).catch(e => {
  212. console.log(e)
  213. })
  214. },
  215. //选择行业
  216. getParkList() {
  217. loginService.getHyList({
  218. }).then(({
  219. data
  220. }) => {
  221. this.parkList = data.map((item) => {
  222. return {
  223. label: item.industry,
  224. value: item.industry
  225. }
  226. })
  227. this.parkList.unshift({
  228. label: "全部",
  229. value: ""
  230. });
  231. }).catch(e => {
  232. console.log(e)
  233. })
  234. },
  235. /*获取数据列表 */
  236. upCallback(page) {
  237. this.loading = true
  238. loginService.comlist({
  239. current: page.num,
  240. size: page.size,
  241. name: this.curWord,
  242. des1: this.parkId,
  243. orders: [{ column: 'a.create_date', asc: false }],
  244. ...this.searchForm
  245. }).then(({
  246. data
  247. }) => {
  248. let curPageData = data.records
  249. this.mescroll.endBySize(curPageData.length, data.total);
  250. //如果是第一页需手动制空列表
  251. if (page.num == 1)
  252. this.dataList = [];
  253. //追加新数据
  254. this.dataList = this.dataList.concat(curPageData);
  255. }).catch(e => {
  256. //联网失败, 结束加载
  257. this.mescroll.endErr();
  258. })
  259. },
  260. gotoBuildInfo(id) {
  261. // uni.navigateTo({
  262. // url: `/pages/comEdit/comEdit?id=${id}&ischeck=1`
  263. // })
  264. window.location.href=`/yd_qycpfbH5/#/pages/comEdit/comEdit?id=${id}&ischeck=1`
  265. },
  266. updateCities(newCities) {
  267. this.cities = newCities;
  268. },
  269. // 搜索
  270. doSearch() {
  271. if(this.ddd1.column2!=''&&this.ddd1!=''){
  272. this.searchForm.bz2=this.ddd1.column1+'('+this.ddd1.column2+')';
  273. }else if(this.ddd1!=''){
  274. this.searchForm.bz2=this.ddd1.column1;
  275. }
  276. this.dataList = []; // 先清空列表,显示加载进度
  277. this.mescroll.resetUpScroll();
  278. },
  279. totongxunlu(){
  280. uni.navigateTo({
  281. url: '/pages/comList/comList'
  282. })
  283. },
  284. totongxunlu2(){
  285. uni.showModal({
  286. title: '功能暂未开放,请至后台导入!',
  287. showCancel: true,
  288. success: (res) => {
  289. }
  290. });
  291. },
  292. getPageInfo() {
  293. loginService.InfoStatistics({}).then(({ data }) => {
  294. this.pageInfo = data;
  295. });
  296. },
  297. autoLogin(){
  298. console.log("登录id"+this.loginid);
  299. loginService.loginid( this.loginid).then(({data}) => {
  300. this.$store.commit('SET_TOKEN',data.token);
  301. this.refreshUserInfo();
  302. }).catch(e => {
  303. console.error(e)
  304. })
  305. },
  306. getRole() {
  307. let userInfo = uni.getStorageSync('WMS-userinfo')
  308. var officeId = userInfo.officeDTO.id;
  309. var roleIds = userInfo.roleIds;
  310. if (roleIds.indexOf("17bac1f980264e3e8193bc965538e2c6") != -1) {
  311. //// 管理员
  312. this.stype = 5
  313. uni.setStorageSync('stype', this.stype);
  314. } else if (roleIds.indexOf("ade960e8f02544998b07397304c059c1") != -1) {
  315. // 政府管理员
  316. this.stype = 4
  317. uni.setStorageSync('stype', this.stype);
  318. } else {
  319. console.log('==================>这里走了么','================>存一个stape')
  320. loginService
  321. .getOtherIdByOffceid({
  322. officeid: officeId,
  323. })
  324. .then(({
  325. data
  326. }) => {
  327. console.log(data, "====================>getOtherIdByOffceid");
  328. this.stype = data.stype;
  329. uni.setStorageSync('stype', this.stype);
  330. });
  331. }
  332. },
  333. outloginset(){
  334. loginService.logout().then(({
  335. data
  336. }) => {
  337. this.$store.commit('logout');
  338. uni.clearStorage();
  339. })
  340. this.$store.commit('logout');
  341. uni.clearStorage();
  342. this.isLogin=this.$auth.checkisLogin();
  343. uni.hideLoading()
  344. },
  345. outlogin() {
  346. uni.showModal({
  347. title: '您确认退出么?',
  348. showCancel: true,
  349. success: (res) => {
  350. if (res.confirm) {
  351. uni.showLoading()
  352. this.outloginset();
  353. // uni.reLaunch({
  354. // url: '/pages/login/login'
  355. // })
  356. }
  357. }
  358. });
  359. },
  360. tces() {
  361. uni.navigateTo({
  362. url: '/pages/index/AudioToWord'
  363. })
  364. },
  365. // ListTouch触摸开始
  366. ListTouchStart(e) {
  367. this.listTouchStart = e.touches[0].pageX
  368. },
  369. // ListTouch计算方向
  370. ListTouchMove(e) {
  371. this.listTouchDirection = e.touches[0].pageX - this.listTouchStart > -60 ? 'right' : 'left'
  372. },
  373. // ListTouch计算滚动
  374. ListTouchEnd(e) {
  375. if (this.listTouchDirection == 'left') {
  376. this.modalName = e.currentTarget.dataset.target
  377. } else {
  378. this.modalName = null
  379. }
  380. this.listTouchDirection = null
  381. },
  382. switchTab(index) {
  383. this.activeTab = index;
  384. // if(index==0){
  385. // this.searchForm.des7="";
  386. // }else{
  387. // this.searchForm.des7=this.activeTab;
  388. // }
  389. if(index==0){
  390. this.picture="https://miniapp.huidutech.com.cn/yd_qycpfbH5/cp1.png";
  391. }else if(index==1){
  392. this.picture="https://miniapp.huidutech.com.cn/yd_qycpfbH5/cp2.png";
  393. }else{
  394. this.picture="https://miniapp.huidutech.com.cn/yd_qycpfbH5/cp3.png";
  395. }
  396. //this.doSearch();
  397. },
  398. switchTab2(index) {
  399. this.activeTab = index;
  400. if(index==0){
  401. this.searchForm.des8="";
  402. }else{
  403. this.searchForm.des8=this.activeTab;
  404. }
  405. //this.doSearch();
  406. },
  407. handleBack() {
  408. // 返回逻辑,比如跳转至上一页
  409. this.$router.go(-1);
  410. console.log('返回按钮被点击');
  411. }
  412. }
  413. }
  414. </script>
  415. <style>
  416. .page {
  417. height: 100vh;
  418. }
  419. .line-box {
  420. padding-left: 20rpx;
  421. padding-right: 20rpx;
  422. margin-top: 20rpx;
  423. }
  424. .mart-t {
  425. margin-top: 30rpx;
  426. }
  427. .center-box{
  428. margin-top: 20rpx;
  429. width: 100%;
  430. border-radius: 25rpx;
  431. border-radius: 25rpx;
  432. background: #fff;
  433. box-shadow: 0px 8px 16px 2px rgba(101, 101, 101, 0.2);
  434. padding-bottom: 30rpx;
  435. display: flex;
  436. flex-wrap: wrap;
  437. }
  438. .center-left-box {
  439. width: 100%;
  440. padding-bottom: 30rpx;
  441. display: flex;
  442. flex-wrap: wrap;
  443. }
  444. .btn-box-text {
  445. flex:1;
  446. height: 20rpx;
  447. text-align: center;
  448. color: #000000;
  449. font-size: 14px;
  450. font-weight: 700;
  451. }
  452. .btn-box-1 {
  453. flex:1;
  454. height: 30rpx;
  455. text-align: center;
  456. color: #36A7F3;
  457. font-size: x-large;
  458. font-weight: 700;
  459. }
  460. .btn-box-2 {
  461. flex:1;
  462. height: 30rpx;
  463. text-align: center;
  464. color:#F3365A;
  465. font-size: x-large;
  466. font-weight: 700;
  467. }
  468. .btn-box-3 {
  469. flex:1;
  470. height: 30rpx;
  471. text-align: center;
  472. color:#15D578;
  473. font-size: x-large;
  474. font-weight: 700;
  475. }
  476. .btn-box-4 {
  477. flex:1;
  478. height: 30rpx;
  479. text-align: center;
  480. color:#F1A31B;
  481. font-size: x-large;
  482. font-weight: 700;
  483. }
  484. .btn-Imbox {
  485. flex:1;
  486. height: 150rpx;
  487. padding-top: 8rpx;
  488. text-align: center;
  489. display: flex;
  490. flex-direction: column;
  491. justify-content: center; /* 子元素内部内容竖向居中 */
  492. align-items: center; /* 子元素内部内容水平居中 */
  493. text-align: center; /* 文字居中 */
  494. }
  495. .btn-Imbox p {
  496. font-size: 14px; /* 文字大小,可根据需要调整 */
  497. margin: 0; /* 去掉默认的外边距 */
  498. font-weight: 700;
  499. }
  500. .center-img{
  501. width: 90rpx;
  502. height: 90rpx;
  503. margin-bottom: 10rpx;
  504. text-align: center;
  505. }
  506. .center-img2{
  507. width: 70rpx;
  508. height: 70rpx;
  509. margin-top: 10rpx;
  510. margin-bottom: 20rpx;
  511. text-align: center;
  512. }
  513. .kuai-text{
  514. color: #000000;
  515. font-weight: 900;
  516. font-size: 34rpx;
  517. padding-top: 20rpx;
  518. padding-left: 20rpx;
  519. }
  520. .btn-box-5 {
  521. width: 337rpx;
  522. height: 200rpx;
  523. background-image: url('../../static/img/btn3.png');
  524. background-size: 100% 100%;
  525. }
  526. .btn-box-6 {
  527. width: 337rpx;
  528. height: 200rpx;
  529. background-image: url('../../static/img/btn6.png');
  530. background-size: 100% 100%;
  531. }
  532. .h-200 {
  533. height: 200rpx;
  534. }
  535. .swiper {
  536. width: 750rpx;
  537. height: 310rpx;
  538. }
  539. .swiper-item {
  540. width: 750rpx;
  541. height: 310rpx;
  542. background-color: aliceblue;
  543. }
  544. .font-size-35 {
  545. font-size: 35px !important;
  546. }
  547. .img-size {
  548. width: 80rpx;
  549. height: 80rpx;
  550. }
  551. .content-box {
  552. width: 437rpx;
  553. height: 200rpx;
  554. }
  555. .my-app .padding-sm {
  556. padding: 6px;
  557. }
  558. .grid .padding-sm .bg-white {
  559. box-shadow: 0 1px 4px #f9f9f9, 1px 1px 40px rgba(0, 0, 0, .06);
  560. }
  561. .bg-blue {
  562. background: #fff;
  563. color: #0081ff !important;
  564. }
  565. .text-white,
  566. .line-white,
  567. .lines-white {
  568. color: #0081ff !important;
  569. }
  570. .cu-bar .search-form {
  571. background-color: white;
  572. }
  573. .item-box{
  574. width: 710rpx;
  575. background: #FFFFFF;
  576. box-shadow: 0px 1px 3px 0px rgba(9,2,4,0.1);
  577. border-radius: 10px;
  578. padding-top: 20rpx;
  579. padding-left: 38rpx;
  580. padding-right: 10rpx;
  581. margin-top: 20rpx;
  582. }
  583. .item-title{
  584. position: relative;
  585. display: flex;
  586. justify-content: space-between;
  587. font-size: 30rpx;
  588. color: #010101;
  589. font-weight: bold;
  590. align-items: center;
  591. }
  592. .item-line{
  593. display: flex;
  594. height: 48rpx;
  595. margin-top: 20rpx;
  596. }
  597. .item-line2{
  598. height: 48rpx;
  599. margin-top: 20rpx;
  600. }
  601. .subtitle{
  602. color: #E5880E;
  603. }
  604. .item-name{
  605. margin-top: 5rpx;
  606. font-size: 29rpx;
  607. color: #666666;
  608. }
  609. .item-name2{
  610. font-size: 29rpx;
  611. color: #676D99;
  612. }
  613. .item-name3{
  614. display: flex;
  615. width: 100%;
  616. padding-right: 30rpx;
  617. flex: 1;
  618. justify-content: flex-end;
  619. font-size: 29rpx;
  620. color: #676D99;
  621. }
  622. .item-content{
  623. color: #1497EF;
  624. font-size: 30rpx;
  625. }
  626. .btn-box{
  627. display: flex;
  628. }
  629. .line-zs{
  630. width: 2rpx;
  631. height: 30rpx;
  632. background: #36A7F3;
  633. }
  634. .edit-botton{
  635. width: 100rpx;
  636. height: 48rpx;
  637. line-height: 48rpx;
  638. color: #fff;
  639. font-size: 28rpx;
  640. margin-right: 20rpx;
  641. border-radius: 10rpx;
  642. background: #5A9EE9;
  643. text-align: center;
  644. }
  645. .del-botton{
  646. width: 100rpx;
  647. height: 48rpx;
  648. line-height: 48rpx;
  649. color: #fff;
  650. font-size: 28rpx;
  651. margin-right: 20rpx;
  652. border-radius: 10rpx;
  653. background: #F27C85;
  654. text-align: center;
  655. }
  656. .color-white{
  657. color: #808080;
  658. font-size: 40rpx;
  659. line-height: 60rpx;
  660. }
  661. .search-box{
  662. padding-left: 20rpx;
  663. padding-right: 20rpx;
  664. padding-top: 20rpx;
  665. margin-top: 20rpx;
  666. width: 100%;
  667. border-radius: 25rpx;
  668. border-radius: 25rpx;
  669. background: #fff;
  670. box-shadow: 0px 8px 16px 2px rgba(101, 101, 101, 0.2);
  671. padding-bottom: 30rpx;
  672. display: flex;
  673. flex-wrap: wrap;
  674. }
  675. .search-box1{
  676. display: flex;
  677. }
  678. .input-box{
  679. background: #fff;
  680. height: 65rpx;
  681. width: 640rpx;
  682. display: flex;
  683. align-items: center;
  684. border-radius: 30rpx;
  685. padding-left: 30rpx;
  686. margin-right: 20rpx;
  687. }
  688. .input-boxinput{
  689. height: 75rpx;
  690. font-size: 15rpx;
  691. }
  692. .choose-box{
  693. background: #fff;
  694. width: 325rpx;
  695. border-radius: 23rpx;
  696. height: 70rpx;
  697. display: flex;
  698. align-items: center;
  699. justify-content: center;
  700. margin-right: 20rpx;
  701. border: 1rpx solid #808080;
  702. }
  703. .choose-box2{
  704. background: #fff;
  705. width: 100%;
  706. border-radius: 23rpx;
  707. height: 70rpx;
  708. display: flex;
  709. padding-left: 29rpx;
  710. align-items: center;
  711. border: 1rpx solid #808080;
  712. }
  713. .choose-box3{
  714. display: flex;
  715. }
  716. .choose-boxp{
  717. font-size: 32rpx;
  718. width: 80rpx;
  719. }
  720. .fixed-bottom-right {
  721. padding: 20rpx;
  722. position: fixed;
  723. bottom: 20px; /* 距离底部的距离 */
  724. right: 20px; /* 距离右侧的距离 */
  725. }
  726. .tabs {
  727. display: flex;
  728. justify-content: space-around;
  729. margin-bottom: 20px;
  730. }
  731. .tab-item {
  732. padding: 3px 3px;
  733. cursor: pointer;
  734. transition: all 0.3s;
  735. }
  736. .tab-item.active {
  737. color: #66b1ff;
  738. border-bottom: 2px solid #66b1ff;
  739. }
  740. .tab-content {
  741. padding: 20px;
  742. }
  743. .tab-item-content {
  744. display: none;
  745. }
  746. .tab-item-content.v-if {
  747. display: block;
  748. }
  749. /* 返回 */
  750. .item-img {
  751. width: 160rpx;
  752. height: 160rpx;
  753. }
  754. .custom-header {
  755. display: flex;
  756. align-items: center;
  757. justify-content: center;
  758. padding: 10px;
  759. width: 100%;
  760. }
  761. .is-back {
  762. position: relative;
  763. }
  764. .back-container {
  765. position: absolute;
  766. left: 10px;
  767. cursor: pointer;
  768. }
  769. .back-text {
  770. color: white; /* 返回按钮文本颜色 */
  771. }
  772. .back-text {
  773. color: white; /* 返回按钮文本颜色 */
  774. }
  775. .content-container {
  776. flex: 1;
  777. text-align: center;
  778. }
  779. .content-text {
  780. color: white; /* 标题文本颜色 */
  781. font-weight: bold;
  782. }
  783. /* 背景颜色 */
  784. .bg-blue {
  785. background-color: #4285f4; /* 假设这是一个蓝色背景 */
  786. }
  787. .img-item {
  788. width: 100%;
  789. }
  790. </style>