list.vue 18 KB

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