list.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  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. this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0`)
  399. },
  400. handleClubinfo(club) {
  401. //跳转机构信息
  402. this.$api.navigateTo(`/pages/seller/club/club-info?clubId=${club.clubId}`)
  403. },
  404. onShowClose() {
  405. //输入框失去焦点时触发
  406. if (this.listQuery.name != '') {
  407. this.isShowClose = true
  408. } else {
  409. this.isShowClose = false
  410. }
  411. },
  412. delInputText() {
  413. //清除输入框内容
  414. this.listQuery.name = ''
  415. this.isShowClose = false
  416. },
  417. showBadge(n) {
  418. let num = ''
  419. if (n > 100) {
  420. num = 99
  421. } else {
  422. num = n
  423. }
  424. return num
  425. },
  426. handleNavigateBack() {
  427. this.$api.navigateBack(1)
  428. }
  429. },
  430. onReachBottom() {
  431. if (this.hasNextPage) {
  432. this.loadding = true
  433. this.pullUpOn = true
  434. this.getOnReachBottomData()
  435. }
  436. },
  437. onShow() {
  438. this.initGetStotage()
  439. }
  440. }
  441. </script>
  442. <style lang="scss">
  443. page {
  444. height: auto;
  445. }
  446. page,
  447. .container {
  448. /* padding-bottom: 120upx; */
  449. background: #f7f7f7;
  450. }
  451. .container {
  452. position: relative;
  453. }
  454. .club-search {
  455. height: auto;
  456. width: 100%;
  457. background: #ffffff;
  458. display: flex;
  459. flex-direction: column;
  460. position: fixed;
  461. top: 0;
  462. left: 0;
  463. z-index: 99;
  464. .search-top {
  465. flex: 1;
  466. display: flex;
  467. align-items: center;
  468. box-sizing: border-box;
  469. .search-icon {
  470. text-align: center;
  471. float: left;
  472. .icon-fanhui {
  473. font-size: 44rpx;
  474. color: #333333;
  475. }
  476. }
  477. .search-from {
  478. width: 382rpx;
  479. background: #f7f7f7;
  480. float: left;
  481. position: relative;
  482. .input {
  483. width: 300rpx;
  484. height: 100%;
  485. float: left;
  486. color: $text-color;
  487. font-size: $font-size-24;
  488. }
  489. .icon-iconfonticonfontsousuo1 {
  490. text-align: center;
  491. display: block;
  492. font-size: $font-size-38;
  493. float: left;
  494. color: #999999;
  495. }
  496. .icon-shanchu1 {
  497. font-size: $font-size-32;
  498. color: #999999;
  499. position: absolute;
  500. width: 64rpx;
  501. height: 64rpx;
  502. line-height: 64rpx;
  503. text-align: center;
  504. top: 0;
  505. right: 0;
  506. z-index: 10;
  507. }
  508. }
  509. .search-btn {
  510. text-align: center;
  511. font-size: $font-size-28;
  512. color: $color-system;
  513. float: left;
  514. background: #ffffff;
  515. .icon-shaixuan {
  516. font-size: 44rpx;
  517. color: #333333;
  518. }
  519. }
  520. }
  521. .search-tab {
  522. height: 80rpx;
  523. display: flex;
  524. flex: 1;
  525. background: #ffffff;
  526. border-bottom: 1px solid #efefef;
  527. .tab-item {
  528. flex: 1;
  529. line-height: 80rpx;
  530. text-align: center;
  531. color: $text-color;
  532. font-size: $font-size-28;
  533. position: relative;
  534. .item-text {
  535. padding: 10rpx 0;
  536. border-bottom: 2px solid #ffffff;
  537. }
  538. &:nth-child(1)::before {
  539. content: '';
  540. width: 2px;
  541. height: 50rpx;
  542. position: absolute;
  543. right: 0;
  544. top: 15rpx;
  545. background: #ebebeb;
  546. }
  547. &.current {
  548. color: $color-system;
  549. .item-text {
  550. border-color: $color-system;
  551. }
  552. }
  553. }
  554. }
  555. .search-smalltab{
  556. width: 100%;
  557. height: 104rpx;
  558. background: #ffffff;
  559. box-sizing: border-box;
  560. padding:20rpx 10rpx;
  561. .tab-item {
  562. width: 180rpx;
  563. height: 64rpx;
  564. line-height: 64rpx;
  565. text-align: center;
  566. color: $text-color;
  567. font-size: $font-size-28;
  568. float: left;
  569. &.current {
  570. background-color: $color-system;
  571. color: #fff;
  572. border-radius: 32rpx;
  573. }
  574. }
  575. }
  576. }
  577. .club-main {
  578. .list {
  579. width: 100%;
  580. height: 268rpx;
  581. padding: 24rpx;
  582. box-sizing: border-box;
  583. background: #ffffff;
  584. position: relative;
  585. border-bottom: 1px solid #ebebeb;
  586. .list-cell-top{
  587. width: 100%;
  588. height: 140rpx;
  589. box-sizing: border-box;
  590. .list-logo {
  591. width: 140rpx;
  592. height: 140rpx;
  593. float: left;
  594. image {
  595. width: 140rpx;
  596. height: 140rpx;
  597. border-radius: 8rpx;
  598. }
  599. }
  600. .list-content {
  601. width: 498rpx;
  602. height: 140rpx;
  603. float: left;
  604. padding-left: 30rpx;
  605. .list-name {
  606. width: 100%;
  607. height: 50rpx;
  608. float: left;
  609. line-height: 50rpx;
  610. text-align: left;
  611. font-size: $font-size-26;
  612. color: #333333;
  613. .tags {
  614. display: inline-block;
  615. height: 36rpx;
  616. box-sizing: border-box;
  617. padding: 0 15rpx;
  618. border-radius: 8rpx;
  619. background: #f0cb72;
  620. font-size: $font-size-22;
  621. color: #4e4539;
  622. text-align: center;
  623. line-height: 36rpx;
  624. margin-left: 20rpx;
  625. margin-top: 7rpx;
  626. &.sv {
  627. background: #333333;
  628. color: #f0cb72;
  629. }
  630. &.xf {
  631. background-color: #f94b4b;
  632. color: #ffffff;
  633. }
  634. }
  635. }
  636. .list-ntel {
  637. width: 100%;
  638. height: 50rpx;
  639. float: left;
  640. line-height: 50rpx;
  641. text-align: left;
  642. font-size: $font-size-24;
  643. color: #666666;
  644. .list-link {
  645. display: inline-block;
  646. float: left;
  647. margin-right: 40rpx;
  648. }
  649. .list-texl {
  650. display: inline-block;
  651. float: left;
  652. }
  653. }
  654. }
  655. }
  656. .list-cell-btn{
  657. width: 100%;
  658. height: 60rpx;
  659. display: flex;
  660. color: #166ce1;
  661. flex-direction: row;
  662. align-items: center;
  663. float: left;
  664. margin-top: 20rpx;
  665. .btn {
  666. height: 60rpx;
  667. box-sizing: border-box;
  668. padding: 0 20rpx;
  669. line-height: 60rpx;
  670. border-radius: 30rpx;
  671. font-size: $font-size-24;
  672. color: $text-color;
  673. text-align: center;
  674. margin: 0 20rpx 0 0;
  675. position: relative;
  676. border: 1px solid #999999;
  677. .opea-badge {
  678. position: absolute;
  679. right: -10rpx;
  680. top: -20rpx;
  681. }
  682. }
  683. }
  684. }
  685. }
  686. .tabBar {
  687. width: 100%;
  688. height: 98rpx;
  689. background: #fff;
  690. border-top: 1px solid #e5e5e5;
  691. position: fixed;
  692. bottom: 0px;
  693. left: 0px;
  694. right: 0px;
  695. z-index: 99;
  696. display: flex;
  697. align-items: center;
  698. justify-content: center;
  699. .tabBar_list {
  700. width: 86%;
  701. display: flex;
  702. justify-content: space-between;
  703. .tabBar_item {
  704. width: 120rpx;
  705. display: flex;
  706. justify-content: center;
  707. align-items: center;
  708. flex-direction: column;
  709. font-size: 20rpx;
  710. color: #999999;
  711. &.current {
  712. color: #166ce1;
  713. .iconfont {
  714. color: #166ce1;
  715. }
  716. }
  717. &.current1 {
  718. color: #16e15c;
  719. .iconfont {
  720. color: #16e15c;
  721. }
  722. }
  723. &.current2 {
  724. color: #ff0000;
  725. .iconfont {
  726. color: #ff0000;
  727. }
  728. }
  729. .iconfont {
  730. width: 48rpx;
  731. height: 48rpx;
  732. display: block;
  733. margin-bottom: 2rpx;
  734. text-align: center;
  735. font-size: 46rpx;
  736. color: #999999;
  737. }
  738. }
  739. }
  740. }
  741. .nav_active {
  742. color: $color-system;
  743. }
  744. </style>