list.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  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. computed: {
  226. ...mapState(['isManage'])
  227. },
  228. methods: {
  229. async initGetStotage() {// 初始化
  230. const userInfo = await this.$api.getStorage()
  231. this.listQuery.spId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
  232. this.GetSellerClubList()
  233. },
  234. GetSellerClubList() {
  235. this.SellerService.GetSellerClubList(this.listQuery)
  236. .then(response => {
  237. let data = response.data
  238. if (data.list && data.list.length > 0) {
  239. this.isEmpty = false
  240. this.hasNextPage = response.data.hasNextPage
  241. this.clubList = data.list
  242. this.pullFlag = false
  243. setTimeout(() => {
  244. this.pullFlag = true
  245. }, 500)
  246. if (this.hasNextPage) {
  247. this.pullUpOn = false
  248. this.nomoreText = '上拉显示更多'
  249. } else {
  250. this.pullUpOn = true
  251. this.loadding = false
  252. this.nomoreText = '已至底部'
  253. }
  254. } else {
  255. this.isEmpty = true
  256. }
  257. })
  258. .catch(error => {
  259. this.$util.msg(error.msg, 2000)
  260. })
  261. },
  262. getOnReachBottomData() {
  263. this.listQuery.pageNum += 1
  264. this.SellerService.GetSellerClubList(this.listQuery)
  265. .then(response => {
  266. let data = response.data
  267. if (data.list && data.list.length > 0) {
  268. this.hasNextPage = response.data.hasNextPage
  269. this.clubList = this.clubList.concat(data.list)
  270. this.pullFlag = false // 防上拉暴滑
  271. setTimeout(() => {
  272. this.pullFlag = true
  273. }, 500)
  274. if (this.hasNextPage) {
  275. this.pullUpOn = false
  276. this.nomoreText = '上拉显示更多'
  277. } else {
  278. this.pullUpOn = false
  279. this.loadding = false
  280. this.nomoreText = '已至底部'
  281. }
  282. }
  283. })
  284. .catch(error => {
  285. this.$util.msg(error.msg, 2000)
  286. })
  287. },
  288. userClubChoseSales(param) {
  289. //分配或更换协销
  290. this.SellerService.userClubChoseSales(param)
  291. .then(response => {
  292. this.$util.msg('操作成功~', 2000, true, 'success')
  293. setTimeout(() => {
  294. this.GetSellerClubList()
  295. }, 1000)
  296. })
  297. .catch(error => {
  298. console.log('分配协销异常')
  299. })
  300. },
  301. tabClick(index) {
  302. //tab切换
  303. this.tabCurrentIndex = index
  304. switch (index) {
  305. case 0:
  306. this.listQuery.status = 90
  307. break
  308. case 1:
  309. this.listQuery.status = 1
  310. break
  311. case 2:
  312. this.listQuery.status = 92
  313. break
  314. }
  315. this.GetSellerClubList()
  316. },
  317. tabCurrentClick(index) {
  318. //商品详情&&供应商信息tab切换
  319. this.tabCurrentNum = index
  320. switch (index) {
  321. case 0:
  322. this.tabCurrentIndex = 0
  323. this.listQuery.userIdentity = 4
  324. this.listQuery.status = 90
  325. this.listQuery.pageNum = 1
  326. this.GetSellerClubList()
  327. break
  328. case 1:
  329. this.listQuery.pageNum = 1
  330. this.listQuery.userIdentity = 2
  331. this.listQuery.status = 90
  332. this.GetSellerClubList()
  333. break
  334. }
  335. },
  336. tabSmallCurrentClick(index){
  337. //商品详情&&供应商信息tab切换
  338. this.tabSmallCurrentIndex = index
  339. switch (index) {
  340. case 0:
  341. this.tabCurrentIndex = 0
  342. this.listQuery.type = 1
  343. this.listQuery.status = 90
  344. this.listQuery.pageNum = 1
  345. this.listQuery.groupServiceId = 0
  346. this.GetSellerClubList()
  347. break
  348. case 1:
  349. this.listQuery.type = 2
  350. this.listQuery.status = 90
  351. this.listQuery.pageNum = 1
  352. this.listQuery.groupServiceId = 0
  353. this.GetSellerClubList()
  354. break
  355. case 2:
  356. this.listQuery.type = 3
  357. this.listQuery.status = 90
  358. this.listQuery.pageNum = 1
  359. this.listQuery.groupServiceId = 0
  360. this.GetSellerClubList()
  361. break
  362. }
  363. },
  364. handSearchConfirmData(data) {
  365. console.log('确定筛选', data)
  366. //确定筛选
  367. this.listQuery.groupServiceId = data.serviceProviderId
  368. this.GetSellerClubList()
  369. },
  370. handleChoiceaSellerData(data) {
  371. // 确定搜索
  372. this.salesParams.spId = data.serviceProviderId
  373. this.userClubChoseSales(this.salesParams)
  374. },
  375. handleReplaceClub(club){
  376. //更换协销
  377. this.salesParams.clubId = club.clubId
  378. this.isSellerpopup = true
  379. },
  380. showRightDrawer() {
  381. //显示筛选抽屉
  382. this.rightDrawer = true
  383. },
  384. checkData(club) {
  385. //修改机构资料
  386. switch (this.tabCurrentNum) {
  387. case 0:
  388. this.$api.navigateTo(`/pages/seller/login/apply?userID=${club.userId}`)
  389. break
  390. case 1:
  391. this.$api.navigateTo(`/pages/seller/login/information?userID=${club.userId}`)
  392. break
  393. }
  394. },
  395. orderHistory(club) {
  396. //跳转机构历史订单
  397. this.$api.setStorage('orderUserInfo', club)
  398. if(this.tabSmallCurrentIndex === 1){// 查看组员机构历史订单
  399. this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0&authType=${this.tabSmallCurrentIndex}`)
  400. }else{
  401. this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0`)
  402. }
  403. },
  404. handleClubinfo(club) {
  405. //跳转机构信息
  406. this.$api.navigateTo(`/pages/seller/club/club-info?clubId=${club.clubId}`)
  407. },
  408. onShowClose() {
  409. //输入框失去焦点时触发
  410. if (this.listQuery.name != '') {
  411. this.isShowClose = true
  412. } else {
  413. this.isShowClose = false
  414. }
  415. },
  416. delInputText() {
  417. //清除输入框内容
  418. this.listQuery.name = ''
  419. this.isShowClose = false
  420. },
  421. showBadge(n) {
  422. let num = ''
  423. if (n > 100) {
  424. num = 99
  425. } else {
  426. num = n
  427. }
  428. return num
  429. },
  430. handleNavigateBack() {
  431. this.$api.navigateBack(1)
  432. }
  433. },
  434. onReachBottom() {
  435. if (this.hasNextPage) {
  436. this.loadding = true
  437. this.pullUpOn = true
  438. this.getOnReachBottomData()
  439. }
  440. },
  441. onShow() {
  442. this.initGetStotage()
  443. }
  444. }
  445. </script>
  446. <style lang="scss">
  447. page {
  448. height: auto;
  449. }
  450. page,
  451. .container {
  452. /* padding-bottom: 120upx; */
  453. background: #f7f7f7;
  454. }
  455. .container {
  456. position: relative;
  457. }
  458. .club-search {
  459. height: auto;
  460. width: 100%;
  461. background: #ffffff;
  462. display: flex;
  463. flex-direction: column;
  464. position: fixed;
  465. top: 0;
  466. left: 0;
  467. z-index: 99;
  468. .search-top {
  469. flex: 1;
  470. display: flex;
  471. align-items: center;
  472. box-sizing: border-box;
  473. .search-icon {
  474. text-align: center;
  475. float: left;
  476. .icon-fanhui {
  477. font-size: 44rpx;
  478. color: #333333;
  479. }
  480. }
  481. .search-from {
  482. width: 382rpx;
  483. background: #f7f7f7;
  484. float: left;
  485. position: relative;
  486. .input {
  487. width: 300rpx;
  488. height: 100%;
  489. float: left;
  490. color: $text-color;
  491. font-size: $font-size-24;
  492. }
  493. .icon-iconfonticonfontsousuo1 {
  494. text-align: center;
  495. display: block;
  496. font-size: $font-size-38;
  497. float: left;
  498. color: #999999;
  499. }
  500. .icon-shanchu1 {
  501. font-size: $font-size-32;
  502. color: #999999;
  503. position: absolute;
  504. width: 64rpx;
  505. height: 64rpx;
  506. line-height: 64rpx;
  507. text-align: center;
  508. top: 0;
  509. right: 0;
  510. z-index: 10;
  511. }
  512. }
  513. .search-btn {
  514. text-align: center;
  515. font-size: $font-size-28;
  516. color: $color-system;
  517. float: left;
  518. background: #ffffff;
  519. .icon-shaixuan {
  520. font-size: 44rpx;
  521. color: #333333;
  522. }
  523. }
  524. }
  525. .search-tab {
  526. height: 80rpx;
  527. display: flex;
  528. flex: 1;
  529. background: #ffffff;
  530. border-bottom: 1px solid #efefef;
  531. .tab-item {
  532. flex: 1;
  533. line-height: 80rpx;
  534. text-align: center;
  535. color: $text-color;
  536. font-size: $font-size-28;
  537. position: relative;
  538. .item-text {
  539. padding: 10rpx 0;
  540. border-bottom: 2px solid #ffffff;
  541. }
  542. &:nth-child(1)::before {
  543. content: '';
  544. width: 2px;
  545. height: 50rpx;
  546. position: absolute;
  547. right: 0;
  548. top: 15rpx;
  549. background: #ebebeb;
  550. }
  551. &.current {
  552. color: $color-system;
  553. .item-text {
  554. border-color: $color-system;
  555. }
  556. }
  557. }
  558. }
  559. .search-smalltab{
  560. width: 100%;
  561. height: 104rpx;
  562. background: #ffffff;
  563. box-sizing: border-box;
  564. padding:20rpx 10rpx;
  565. .tab-item {
  566. width: 180rpx;
  567. height: 64rpx;
  568. line-height: 64rpx;
  569. text-align: center;
  570. color: $text-color;
  571. font-size: $font-size-28;
  572. float: left;
  573. &.current {
  574. background-color: $color-system;
  575. color: #fff;
  576. border-radius: 32rpx;
  577. }
  578. }
  579. }
  580. }
  581. .club-main {
  582. .list {
  583. width: 100%;
  584. height: 268rpx;
  585. padding: 24rpx;
  586. box-sizing: border-box;
  587. background: #ffffff;
  588. position: relative;
  589. border-bottom: 1px solid #ebebeb;
  590. .list-cell-top{
  591. width: 100%;
  592. height: 140rpx;
  593. box-sizing: border-box;
  594. .list-logo {
  595. width: 140rpx;
  596. height: 140rpx;
  597. float: left;
  598. image {
  599. width: 140rpx;
  600. height: 140rpx;
  601. border-radius: 8rpx;
  602. }
  603. }
  604. .list-content {
  605. width: 498rpx;
  606. height: 140rpx;
  607. float: left;
  608. padding-left: 30rpx;
  609. .list-name {
  610. width: 100%;
  611. height: 50rpx;
  612. float: left;
  613. line-height: 50rpx;
  614. text-align: left;
  615. font-size: $font-size-26;
  616. color: #333333;
  617. .tags {
  618. display: inline-block;
  619. height: 36rpx;
  620. box-sizing: border-box;
  621. padding: 0 15rpx;
  622. border-radius: 8rpx;
  623. background: #f0cb72;
  624. font-size: $font-size-22;
  625. color: #4e4539;
  626. text-align: center;
  627. line-height: 36rpx;
  628. margin-left: 20rpx;
  629. margin-top: 7rpx;
  630. &.sv {
  631. background: #333333;
  632. color: #f0cb72;
  633. }
  634. &.xf {
  635. background-color: #f94b4b;
  636. color: #ffffff;
  637. }
  638. }
  639. }
  640. .list-ntel {
  641. width: 100%;
  642. height: 50rpx;
  643. float: left;
  644. line-height: 50rpx;
  645. text-align: left;
  646. font-size: $font-size-24;
  647. color: #666666;
  648. .list-link {
  649. display: inline-block;
  650. float: left;
  651. margin-right: 40rpx;
  652. }
  653. .list-texl {
  654. display: inline-block;
  655. float: left;
  656. }
  657. }
  658. }
  659. }
  660. .list-cell-btn{
  661. width: 100%;
  662. height: 60rpx;
  663. display: flex;
  664. color: #166ce1;
  665. flex-direction: row;
  666. align-items: center;
  667. float: left;
  668. margin-top: 20rpx;
  669. .btn {
  670. height: 60rpx;
  671. box-sizing: border-box;
  672. padding: 0 20rpx;
  673. line-height: 60rpx;
  674. border-radius: 30rpx;
  675. font-size: $font-size-24;
  676. color: $text-color;
  677. text-align: center;
  678. margin: 0 20rpx 0 0;
  679. position: relative;
  680. border: 1px solid #999999;
  681. .opea-badge {
  682. position: absolute;
  683. right: -10rpx;
  684. top: -20rpx;
  685. }
  686. }
  687. }
  688. }
  689. }
  690. .tabBar {
  691. width: 100%;
  692. height: 98rpx;
  693. background: #fff;
  694. border-top: 1px solid #e5e5e5;
  695. position: fixed;
  696. bottom: 0px;
  697. left: 0px;
  698. right: 0px;
  699. z-index: 99;
  700. display: flex;
  701. align-items: center;
  702. justify-content: center;
  703. .tabBar_list {
  704. width: 86%;
  705. display: flex;
  706. justify-content: space-between;
  707. .tabBar_item {
  708. width: 120rpx;
  709. display: flex;
  710. justify-content: center;
  711. align-items: center;
  712. flex-direction: column;
  713. font-size: 20rpx;
  714. color: #999999;
  715. &.current {
  716. color: #166ce1;
  717. .iconfont {
  718. color: #166ce1;
  719. }
  720. }
  721. &.current1 {
  722. color: #16e15c;
  723. .iconfont {
  724. color: #16e15c;
  725. }
  726. }
  727. &.current2 {
  728. color: #ff0000;
  729. .iconfont {
  730. color: #ff0000;
  731. }
  732. }
  733. .iconfont {
  734. width: 48rpx;
  735. height: 48rpx;
  736. display: block;
  737. margin-bottom: 2rpx;
  738. text-align: center;
  739. font-size: 46rpx;
  740. color: #999999;
  741. }
  742. }
  743. }
  744. }
  745. .nav_active {
  746. color: $color-system;
  747. }
  748. </style>