list.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  1. <template>
  2. <view class="container club clearfix" :style="{ paddingBottom: isIphoneX ? '140rpx' : '98rpx' }">
  3. <view class="club-search clearfix" :style="{ paddingTop: StatusBar + 'px' }">
  4. <view class="search-top" :style="{ height: CustomBar - StatusBar + 'px' }">
  5. <view
  6. class="search-icon"
  7. :style="{
  8. width: CustomBar - StatusBar + 'px',
  9. height: CustomBar - StatusBar + 'px',
  10. lineHeight: CustomBar - StatusBar + 'px;'
  11. }"
  12. >
  13. <text @click="handleNavigateBack" class="iconfont icon-fanhui"></text>
  14. </view>
  15. <view
  16. class="search-from name"
  17. :style="{ height: capsule.height + 'px', borderRadius: capsule.height / 2 + 'px' }"
  18. >
  19. <text
  20. :style="{
  21. width: capsule.height + 'px',
  22. height: capsule.height + 'px',
  23. lineHeight: capsule.height + 'px;'
  24. }"
  25. class="iconfont icon-iconfonticonfontsousuo1"
  26. ></text>
  27. <input
  28. class="input"
  29. type="text"
  30. confirm-type="search"
  31. v-model="listQuery.name"
  32. @input="onShowClose"
  33. @confirm="GetSellerClubList()"
  34. placeholder="机构名称/联系人"
  35. maxlength="16"
  36. :style="{ lineHeight: capsule.height + 'px' }"
  37. />
  38. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
  39. </view>
  40. <view
  41. class="search-btn"
  42. :style="{
  43. width: CustomBar - StatusBar + 'px',
  44. height: capsule.height + 'px',
  45. lineHeight: capsule.height + 'px;'
  46. }"
  47. v-if="isManage && tabSmallCurrentIndex == 1"
  48. @click="showRightDrawer"
  49. >
  50. <text class="iconfont icon-shaixuan"></text>
  51. </view>
  52. </view>
  53. <view class="search-tab">
  54. <view
  55. class="tab-item"
  56. v-for="(item, index) in listTab"
  57. :key="index"
  58. :class="{ current: tabCurrentNum === index }"
  59. @click="tabCurrentClick(index)"
  60. >
  61. <text class="item-text">{{ item.name }}<text class="line"></text></text>
  62. </view>
  63. </view>
  64. <view class="search-smalltab" v-if="isManage">
  65. <view
  66. class="tab-item"
  67. v-for="(item, index) in listItemTab"
  68. :key="index"
  69. :class="{ current: tabSmallCurrentIndex === index }"
  70. @click="tabSmallCurrentClick(index)"
  71. >
  72. <text class="item-text">{{ item.name }}</text>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="club-main" :style="{ paddingTop: isManage ? '374rpx' : '268rpx' }">
  77. <view v-if="isEmpty" class="empty-container">
  78. <image
  79. class="club-empty-image"
  80. src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AY2ZjAABpmnBICH4247.png"
  81. mode="aspectFit"
  82. ></image>
  83. <view class="txt">暂无机构数据</view>
  84. </view>
  85. <view v-else class="club-list">
  86. <scroll-view scroll-y="true">
  87. <view class="list" v-for="(club, index) in clubList" :key="index">
  88. <view class="list-cell-top">
  89. <view class="list-logo">
  90. <image
  91. :src="
  92. club.headpic
  93. ? club.headpic
  94. : 'https://static.caimei365.com/app/img/icon/icon-club@3x.png'
  95. "
  96. mode=""
  97. ></image>
  98. </view>
  99. <view class="list-content">
  100. <view class="list-name">
  101. {{ club.userIdentity === 2 ? club.name : club.linkMan }}
  102. <text class="tags" v-if="club.vipFlag == 0 && club.userIdentity === 2">VIP</text>
  103. <text class="tags sv" v-if="club.vipFlag == 1">SVIP</text>
  104. <text class="tags xf" v-if="club.newDeal === 1">新分配</text>
  105. </view>
  106. <view class="list-ntel" v-if="tabSmallCurrentIndex === 1">
  107. <text class="list-link">销售:{{ club.serviceName ? club.serviceName : '' }}</text>
  108. </view>
  109. <view class="list-ntel" v-else>
  110. <text class="list-link">{{ club.linkMan ? club.linkMan : '' }}</text>
  111. <text class="list-texl">{{ club.contractMobile ? club.contractMobile : '' }}</text>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="list-cell-btn">
  116. <view class="btn" @click.stop="checkData(club)">修改资料</view>
  117. <view class="btn" @click.stop="orderHistory(club)">
  118. 历史订单
  119. <text
  120. v-if="club.orderNum > 0"
  121. class="opea-badge uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  122. >
  123. {{ showBadge(club.orderNum) }}
  124. </text>
  125. </view>
  126. <view class="btn" v-if="isManage && club.serviceProviderId != 1342" @click.stop="handleReplaceClub(club)">更换协销</view>
  127. <view class="btn" @click.stop="handleClubinfo(club)" v-if="club.recordCount === 1"
  128. >注册行为记录</view
  129. >
  130. </view>
  131. </view>
  132. <!--加载loadding-->
  133. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  134. <tui-nomore :visible="!pullUpOn" bgcolor="#f7f7f7" :text="nomoreText"></tui-nomore>
  135. </scroll-view>
  136. </view>
  137. </view>
  138. <view class="tabBar" :style="{ height: isIphoneX ? '140rpx' : '98rpx' }" v-if="tabCurrentNum === 0">
  139. <view class="tabBar_list" :style="{ paddingBottom: isIphoneX ? '40rpx' : '' }">
  140. <view class="tabBar_item" :class="{ current: tabCurrentIndex === 0 }" @click="tabClick(0)">
  141. <text class="iconfont icon-shenhetongguo"></text> <view class="tabBar_name">待升级</view>
  142. </view>
  143. <view class="tabBar_item" :class="{ current1: tabCurrentIndex === 1 }" @click="tabClick(1)">
  144. <text class="iconfont icon-lishidingdan"></text> <view class="tabBar_name">升级中</view>
  145. </view>
  146. <view class="tabBar_item" :class="{ current2: tabCurrentIndex === 2 }" @click="tabClick(2)">
  147. <text class="iconfont icon-shenhebutongguo"></text> <view class="tabBar_name">升级失败</view>
  148. </view>
  149. </view>
  150. </view>
  151. <!-- 筛选抽屉 -->
  152. <cm-clubDrawer
  153. ref="screendrawer"
  154. v-if="rightDrawer"
  155. :rightDrawer="rightDrawer"
  156. @handSearchConfirm="handSearchConfirmData"
  157. >
  158. </cm-clubDrawer>
  159. <!-- 选择弹窗 -->
  160. <cm-seller-popup
  161. ref="cmresellerpopup"
  162. v-if="isSellerpopup"
  163. :show="isSellerpopup"
  164. @handleChoiceaSeller="handleChoiceaSellerData"
  165. >
  166. </cm-seller-popup>
  167. </view>
  168. </template>
  169. <script>
  170. import { mapState, mapMutations } from 'vuex'
  171. import authorize from '@/common/config/authorize.js'
  172. import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
  173. import tuiNomore from '@/components/tui-components/nomore/nomore'
  174. import cmClubDrawer from '../components/cm-club-drawer'
  175. import cmSellerPopup from '../components/cm-seller-popup'
  176. const defaultListQuery = {
  177. userIdentity: 4,
  178. name: '',
  179. pageNum: 1,
  180. pageSize: 10,
  181. spId: 0,
  182. status: 90,
  183. type:1,
  184. groupServiceId:0
  185. }
  186. export default {
  187. components: {
  188. tuiLoadmore,
  189. tuiNomore,
  190. cmClubDrawer,
  191. cmSellerPopup
  192. },
  193. data() {
  194. return {
  195. listTab: [{ name: '个人机构' }, { name: '资质机构' }],
  196. listItemTab: [{ name: '我的机构' }, { name: '组员机构' }, { name: '待分配机构' }],
  197. listQuery: Object.assign({}, defaultListQuery),
  198. isShowClose: false,
  199. isEmpty: false,
  200. nomoreText: '上拉显示更多',
  201. pageNum: 1,
  202. pageSize: 10,
  203. hasNextPage: false,
  204. loadding: false,
  205. pullUpOn: true,
  206. pullFlag: true,
  207. tabCurrentNum: 0,
  208. tabCurrentIndex: 0,
  209. tabSmallCurrentIndex:0,
  210. clubList: [],
  211. isIphoneX: this.$store.state.isIphoneX,
  212. CustomBar: this.CustomBar,
  213. StatusBar: this.StatusBar,
  214. capsule: this.capsule,
  215. show_index: 0 ,//控制显示那个组件
  216. rightDrawer:false,
  217. isSellerpopup:false,
  218. salesParams: {
  219. clubId: 0,
  220. spId: 0
  221. },
  222. }
  223. },
  224. onLoad() {
  225. },
  226. computed: {
  227. ...mapState(['isManage'])
  228. },
  229. methods: {
  230. async initGetStotage() {// 初始化
  231. const userInfo = await this.$api.getStorage()
  232. this.listQuery.spId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
  233. this.GetSellerClubList()
  234. },
  235. GetSellerClubList() {
  236. this.SellerService.GetSellerClubList(this.listQuery)
  237. .then(response => {
  238. let data = response.data
  239. if (data.list && data.list.length > 0) {
  240. this.isEmpty = false
  241. this.hasNextPage = response.data.hasNextPage
  242. this.clubList = data.list
  243. this.pullFlag = false
  244. setTimeout(() => {
  245. this.pullFlag = true
  246. }, 500)
  247. if (this.hasNextPage) {
  248. this.pullUpOn = false
  249. this.nomoreText = '上拉显示更多'
  250. } else {
  251. this.pullUpOn = true
  252. this.loadding = false
  253. this.nomoreText = '已至底部'
  254. }
  255. } else {
  256. this.isEmpty = true
  257. }
  258. })
  259. .catch(error => {
  260. this.$util.msg(error.msg, 2000)
  261. })
  262. },
  263. getOnReachBottomData() {
  264. this.listQuery.pageNum += 1
  265. this.SellerService.GetSellerClubList(this.listQuery)
  266. .then(response => {
  267. let data = response.data
  268. if (data.list && data.list.length > 0) {
  269. this.hasNextPage = response.data.hasNextPage
  270. this.clubList = this.clubList.concat(data.list)
  271. this.pullFlag = false // 防上拉暴滑
  272. setTimeout(() => {
  273. this.pullFlag = true
  274. }, 500)
  275. if (this.hasNextPage) {
  276. this.pullUpOn = false
  277. this.nomoreText = '上拉显示更多'
  278. } else {
  279. this.pullUpOn = false
  280. this.loadding = false
  281. this.nomoreText = '已至底部'
  282. }
  283. }
  284. })
  285. .catch(error => {
  286. this.$util.msg(error.msg, 2000)
  287. })
  288. },
  289. userClubChoseSales(param) {
  290. //分配或更换协销
  291. this.SellerService.userClubChoseSales(param)
  292. .then(response => {
  293. this.$util.msg('操作成功~', 2000, true, 'success')
  294. setTimeout(() => {
  295. this.GetSellerClubList()
  296. }, 1000)
  297. })
  298. .catch(error => {
  299. console.log('分配协销异常')
  300. })
  301. },
  302. tabClick(index) {
  303. //tab切换
  304. this.tabCurrentIndex = index
  305. switch (index) {
  306. case 0:
  307. this.listQuery.status = 90
  308. break
  309. case 1:
  310. this.listQuery.status = 1
  311. break
  312. case 2:
  313. this.listQuery.status = 92
  314. break
  315. }
  316. this.GetSellerClubList()
  317. },
  318. tabCurrentClick(index) {
  319. //商品详情&&供应商信息tab切换
  320. this.tabCurrentNum = index
  321. switch (index) {
  322. case 0:
  323. this.tabCurrentIndex = 0
  324. this.listQuery.userIdentity = 4
  325. this.listQuery.status = 90
  326. this.listQuery.pageNum = 1
  327. this.GetSellerClubList()
  328. break
  329. case 1:
  330. this.listQuery.pageNum = 1
  331. this.listQuery.userIdentity = 2
  332. this.listQuery.status = 90
  333. this.GetSellerClubList()
  334. break
  335. }
  336. },
  337. tabSmallCurrentClick(index){
  338. //商品详情&&供应商信息tab切换
  339. this.tabSmallCurrentIndex = index
  340. switch (index) {
  341. case 0:
  342. this.tabCurrentIndex = 0
  343. this.listQuery.type = 1
  344. this.listQuery.status = 90
  345. this.listQuery.pageNum = 1
  346. this.listQuery.groupServiceId = 0
  347. this.GetSellerClubList()
  348. break
  349. case 1:
  350. this.listQuery.type = 2
  351. this.listQuery.status = 90
  352. this.listQuery.pageNum = 1
  353. this.listQuery.groupServiceId = 0
  354. this.GetSellerClubList()
  355. break
  356. case 2:
  357. this.listQuery.type = 3
  358. this.listQuery.status = 90
  359. this.listQuery.pageNum = 1
  360. this.listQuery.groupServiceId = 0
  361. this.GetSellerClubList()
  362. break
  363. }
  364. },
  365. handSearchConfirmData(data) {
  366. console.log('确定筛选', data)
  367. //确定筛选
  368. this.listQuery.groupServiceId = data.serviceProviderId
  369. this.GetSellerClubList()
  370. },
  371. handleChoiceaSellerData(data) {
  372. // 确定搜索
  373. this.salesParams.spId = data.serviceProviderId
  374. this.userClubChoseSales(this.salesParams)
  375. },
  376. handleReplaceClub(club){
  377. //更换协销
  378. this.salesParams.clubId = club.clubId
  379. this.isSellerpopup = true
  380. },
  381. showRightDrawer() {
  382. //显示筛选抽屉
  383. this.rightDrawer = true
  384. },
  385. checkData(club) {
  386. //修改机构资料
  387. switch (this.tabCurrentNum) {
  388. case 0:
  389. this.$api.navigateTo(`/pages/seller/login/apply?userID=${club.userId}`)
  390. break
  391. case 1:
  392. this.$api.navigateTo(`/pages/seller/login/information?userID=${club.userId}`)
  393. break
  394. }
  395. },
  396. orderHistory(club) {
  397. //跳转机构历史订单
  398. this.$api.setStorage('orderUserInfo', club)
  399. if(this.tabSmallCurrentIndex === 1 || this.tabSmallCurrentIndex === 2){// 查看组员机构历史订单
  400. this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0&authType=${this.tabSmallCurrentIndex}`)
  401. }else{
  402. this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0`)
  403. }
  404. },
  405. handleClubinfo(club) {
  406. //跳转机构信息
  407. this.$api.navigateTo(`/pages/seller/club/club-info?clubId=${club.clubId}`)
  408. },
  409. onShowClose() {
  410. //输入框失去焦点时触发
  411. if (this.listQuery.name != '') {
  412. this.isShowClose = true
  413. } else {
  414. this.isShowClose = false
  415. }
  416. },
  417. delInputText() {
  418. //清除输入框内容
  419. this.listQuery.name = ''
  420. this.isShowClose = false
  421. },
  422. showBadge(n) {
  423. let num = ''
  424. if (n > 100) {
  425. num = 99
  426. } else {
  427. num = n
  428. }
  429. return num
  430. },
  431. handleNavigateBack() {
  432. this.$api.navigateBack(1)
  433. }
  434. },
  435. onReachBottom() {
  436. if (this.hasNextPage) {
  437. this.loadding = true
  438. this.pullUpOn = true
  439. this.getOnReachBottomData()
  440. }
  441. },
  442. onShow() {
  443. this.initGetStotage()
  444. }
  445. }
  446. </script>
  447. <style lang="scss">
  448. page {
  449. height: auto;
  450. }
  451. page,
  452. .container {
  453. /* padding-bottom: 120upx; */
  454. background: #f7f7f7;
  455. }
  456. .container {
  457. position: relative;
  458. }
  459. .club-search {
  460. height: auto;
  461. width: 100%;
  462. background: #ffffff;
  463. display: flex;
  464. flex-direction: column;
  465. position: fixed;
  466. top: 0;
  467. left: 0;
  468. z-index: 99;
  469. .search-top {
  470. flex: 1;
  471. display: flex;
  472. align-items: center;
  473. box-sizing: border-box;
  474. .search-icon {
  475. text-align: center;
  476. float: left;
  477. .icon-fanhui {
  478. font-size: 44rpx;
  479. color: #333333;
  480. }
  481. }
  482. .search-from {
  483. width: 382rpx;
  484. background: #f7f7f7;
  485. float: left;
  486. position: relative;
  487. .input {
  488. width: 300rpx;
  489. height: 100%;
  490. float: left;
  491. color: $text-color;
  492. font-size: $font-size-24;
  493. }
  494. .icon-iconfonticonfontsousuo1 {
  495. text-align: center;
  496. display: block;
  497. font-size: $font-size-38;
  498. float: left;
  499. color: #999999;
  500. }
  501. .icon-shanchu1 {
  502. font-size: $font-size-32;
  503. color: #999999;
  504. position: absolute;
  505. width: 64rpx;
  506. height: 64rpx;
  507. line-height: 64rpx;
  508. text-align: center;
  509. top: 0;
  510. right: 0;
  511. z-index: 10;
  512. }
  513. }
  514. .search-btn {
  515. text-align: center;
  516. font-size: $font-size-28;
  517. color: $color-system;
  518. float: left;
  519. background: #ffffff;
  520. .icon-shaixuan {
  521. font-size: 44rpx;
  522. color: #333333;
  523. }
  524. }
  525. }
  526. .search-tab {
  527. height: 80rpx;
  528. display: flex;
  529. flex: 1;
  530. background: #ffffff;
  531. border-bottom: 1px solid #efefef;
  532. .tab-item {
  533. flex: 1;
  534. line-height: 80rpx;
  535. text-align: center;
  536. color: $text-color;
  537. font-size: $font-size-28;
  538. position: relative;
  539. .item-text {
  540. padding: 10rpx 0;
  541. border-bottom: 2px solid #ffffff;
  542. }
  543. &:nth-child(1)::before {
  544. content: '';
  545. width: 2px;
  546. height: 50rpx;
  547. position: absolute;
  548. right: 0;
  549. top: 15rpx;
  550. background: #ebebeb;
  551. }
  552. &.current {
  553. color: $color-system;
  554. .item-text {
  555. border-color: $color-system;
  556. }
  557. }
  558. }
  559. }
  560. .search-smalltab{
  561. width: 100%;
  562. height: 104rpx;
  563. background: #ffffff;
  564. box-sizing: border-box;
  565. padding:20rpx 10rpx;
  566. .tab-item {
  567. width: 180rpx;
  568. height: 64rpx;
  569. line-height: 64rpx;
  570. text-align: center;
  571. color: $text-color;
  572. font-size: $font-size-28;
  573. float: left;
  574. &.current {
  575. background-color: $color-system;
  576. color: #fff;
  577. border-radius: 32rpx;
  578. }
  579. }
  580. }
  581. }
  582. .club-main {
  583. .list {
  584. width: 100%;
  585. height: 268rpx;
  586. padding: 24rpx;
  587. box-sizing: border-box;
  588. background: #ffffff;
  589. position: relative;
  590. border-bottom: 1px solid #ebebeb;
  591. .list-cell-top{
  592. width: 100%;
  593. height: 140rpx;
  594. box-sizing: border-box;
  595. .list-logo {
  596. width: 140rpx;
  597. height: 140rpx;
  598. float: left;
  599. image {
  600. width: 140rpx;
  601. height: 140rpx;
  602. border-radius: 8rpx;
  603. }
  604. }
  605. .list-content {
  606. width: 498rpx;
  607. height: 140rpx;
  608. float: left;
  609. padding-left: 30rpx;
  610. .list-name {
  611. width: 100%;
  612. height: 50rpx;
  613. float: left;
  614. line-height: 50rpx;
  615. text-align: left;
  616. font-size: $font-size-26;
  617. color: #333333;
  618. .tags {
  619. display: inline-block;
  620. height: 36rpx;
  621. box-sizing: border-box;
  622. padding: 0 15rpx;
  623. border-radius: 8rpx;
  624. background: #f0cb72;
  625. font-size: $font-size-22;
  626. color: #4e4539;
  627. text-align: center;
  628. line-height: 36rpx;
  629. margin-left: 20rpx;
  630. margin-top: 7rpx;
  631. &.sv {
  632. background: #333333;
  633. color: #f0cb72;
  634. }
  635. &.xf {
  636. background-color: #f94b4b;
  637. color: #ffffff;
  638. }
  639. }
  640. }
  641. .list-ntel {
  642. width: 100%;
  643. height: 50rpx;
  644. float: left;
  645. line-height: 50rpx;
  646. text-align: left;
  647. font-size: $font-size-24;
  648. color: #666666;
  649. .list-link {
  650. display: inline-block;
  651. float: left;
  652. margin-right: 40rpx;
  653. }
  654. .list-texl {
  655. display: inline-block;
  656. float: left;
  657. }
  658. }
  659. }
  660. }
  661. .list-cell-btn{
  662. width: 100%;
  663. height: 60rpx;
  664. display: flex;
  665. color: #166ce1;
  666. flex-direction: row;
  667. align-items: center;
  668. float: left;
  669. margin-top: 20rpx;
  670. .btn {
  671. height: 60rpx;
  672. box-sizing: border-box;
  673. padding: 0 20rpx;
  674. line-height: 60rpx;
  675. border-radius: 30rpx;
  676. font-size: $font-size-24;
  677. color: $text-color;
  678. text-align: center;
  679. margin: 0 20rpx 0 0;
  680. position: relative;
  681. border: 1px solid #999999;
  682. .opea-badge {
  683. position: absolute;
  684. right: -10rpx;
  685. top: -20rpx;
  686. }
  687. }
  688. }
  689. }
  690. }
  691. .tabBar {
  692. width: 100%;
  693. height: 98rpx;
  694. background: #fff;
  695. border-top: 1px solid #e5e5e5;
  696. position: fixed;
  697. bottom: 0px;
  698. left: 0px;
  699. right: 0px;
  700. z-index: 99;
  701. display: flex;
  702. align-items: center;
  703. justify-content: center;
  704. .tabBar_list {
  705. width: 86%;
  706. display: flex;
  707. justify-content: space-between;
  708. .tabBar_item {
  709. width: 120rpx;
  710. display: flex;
  711. justify-content: center;
  712. align-items: center;
  713. flex-direction: column;
  714. font-size: 20rpx;
  715. color: #999999;
  716. &.current {
  717. color: #166ce1;
  718. .iconfont {
  719. color: #166ce1;
  720. }
  721. }
  722. &.current1 {
  723. color: #16e15c;
  724. .iconfont {
  725. color: #16e15c;
  726. }
  727. }
  728. &.current2 {
  729. color: #ff0000;
  730. .iconfont {
  731. color: #ff0000;
  732. }
  733. }
  734. .iconfont {
  735. width: 48rpx;
  736. height: 48rpx;
  737. display: block;
  738. margin-bottom: 2rpx;
  739. text-align: center;
  740. font-size: 46rpx;
  741. color: #999999;
  742. }
  743. }
  744. }
  745. }
  746. .nav_active {
  747. color: $color-system;
  748. }
  749. </style>