list.vue 19 KB

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