list.vue 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  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. <text class="list-id">编号:{{ club.newClubId }}</text>
  100. </view>
  101. <view class="list-content">
  102. <view class="list-name">
  103. {{ club.userIdentity === 2 ? club.name : club.linkMan }}
  104. <text class="tags" v-if="club.vipFlag == 0 && club.userIdentity === 2">VIP</text>
  105. <text class="tags sv" v-if="club.vipFlag == 1">SVIP</text>
  106. <text class="tags xf" v-if="club.newDeal === 1">新分配</text>
  107. </view>
  108. <view class="list-tags">
  109. <text
  110. class="tags"
  111. @click.stop="
  112. this.$api.navigateTo('/pages/service/service?id=1041&title=标签说明')
  113. "
  114. >{{ club.activeState }} <text class="iconfont icon-xiayibu"></text
  115. ></text>
  116. <text
  117. class="tags"
  118. @click.stop="
  119. this.$api.navigateTo('/pages/service/service?id=1041&title=标签说明')
  120. "
  121. >{{ club.customerValue }} <text class="iconfont icon-xiayibu"></text
  122. ></text>
  123. <text class="tags-or" @click.stop="handleOrderHistory(club)">
  124. <text class="iconfont icon-dingdan"></text> 订单列表
  125. <text
  126. v-if="club.orderNum > 0"
  127. class="opea-badge uni-badge uni-badge-error uni-small uni-badge--small icon-num"
  128. >
  129. {{ showBadge(club.orderNum) }}
  130. </text>
  131. </text>
  132. </view>
  133. <view class="list-ntel" v-if="tabSmallCurrentIndex === 1">
  134. <text class="list-link">销售:{{ club.serviceName ? club.serviceName : '' }}</text>
  135. </view>
  136. <view class="list-ntel" v-else>
  137. <text class="list-link">{{ club.linkMan ? club.linkMan : '' }}</text>
  138. <text class="list-texl">{{ club.contractMobile ? club.contractMobile : '' }}</text>
  139. </view>
  140. </view>
  141. </view>
  142. <view class="club-list-bot">
  143. <template v-if="tabSmallCurrentIndex === 0">
  144. <view class="btn" @click.stop="handleClickOper(1, club)">
  145. <text class="iconfont icon-jigouhuaxiang"></text> 机构画像</view
  146. >
  147. <view class="btn" @click.stop="handleClickOper(2, club)">
  148. <text class="iconfont icon-tianxie"></text> 填写咨询记录</view
  149. >
  150. <view class="btn" @click.stop="handleClickOper(3, club)">
  151. <text class="iconfont icon-shangcheng"></text>商城访问记录
  152. </view>
  153. <view
  154. class="btn"
  155. v-if="tabSmallCurrentIndex === 0"
  156. @click.stop="handleShowBubble(club, index)"
  157. >
  158. <text class="iconfont icon-gengduo2"></text>
  159. <view
  160. class="btn-bubble"
  161. :style="{
  162. height: isManage ? '160rpx' : '80rpx',
  163. top: isManage ? '-154rpx' : '-76rpx'
  164. }"
  165. v-if="currentIndex === index && club.bubble"
  166. >
  167. <view class="btn-view border" @click.stop="handleClickOper(4, club)">
  168. <text class="iconfont icon-xiugaiziliao"></text> 修改资料
  169. </view>
  170. <view
  171. class="btn-view"
  172. v-if="isManage && club.serviceProviderId != 1342"
  173. @click.stop="handleClickOper(5, club)"
  174. >
  175. <text class="iconfont icon-xiaoshou"></text> 更换协销
  176. </view>
  177. </view>
  178. </view>
  179. </template>
  180. <template v-if="tabSmallCurrentIndex === 1">
  181. <view class="btn" @click.stop="handleClickOper(1, club)">
  182. <text class="iconfont icon-jigouhuaxiang"></text> 机构画像</view
  183. >
  184. <view class="btn" @click.stop="handleClickOper(3, club)">
  185. <text class="iconfont icon-tianxie"></text>商城访问记录</view
  186. >
  187. <view
  188. class="btn none"
  189. v-if="isManage && club.serviceProviderId != 1342"
  190. @click.stop="handleClickOper(5, club)"
  191. >
  192. <text class="iconfont icon-xiaoshou"></text>更换协销</view
  193. >
  194. </template>
  195. </view>
  196. </view>
  197. <!--加载loadding-->
  198. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  199. <tui-nomore :visible="!pullUpOn" bgcolor="#f7f7f7" :text="nomoreText"></tui-nomore>
  200. </scroll-view>
  201. </view>
  202. </view>
  203. <view class="tabBar" :style="{ height: isIphoneX ? '140rpx' : '98rpx' }" v-if="tabCurrentNum === 0">
  204. <view class="tabBar_list" :style="{ paddingBottom: isIphoneX ? '40rpx' : '' }">
  205. <view class="tabBar_item" :class="{ current: tabCurrentIndex === 0 }" @click="tabClick(0)">
  206. <text class="iconfont icon-shenhetongguo"></text> <view class="tabBar_name">待升级</view>
  207. </view>
  208. <view class="tabBar_item" :class="{ current1: tabCurrentIndex === 1 }" @click="tabClick(1)">
  209. <text class="iconfont icon-lishidingdan"></text> <view class="tabBar_name">升级中</view>
  210. </view>
  211. <view class="tabBar_item" :class="{ current2: tabCurrentIndex === 2 }" @click="tabClick(2)">
  212. <text class="iconfont icon-shenhebutongguo"></text> <view class="tabBar_name">升级失败</view>
  213. </view>
  214. </view>
  215. </view>
  216. <!-- 筛选抽屉 -->
  217. <cm-clubDrawer
  218. ref="screendrawer"
  219. v-if="rightDrawer"
  220. :rightDrawer="rightDrawer"
  221. @handSearchConfirm="handSearchConfirmData"
  222. >
  223. </cm-clubDrawer>
  224. <!-- 选择弹窗 -->
  225. <cm-seller-popup
  226. ref="cmresellerpopup"
  227. v-if="isSellerpopup"
  228. :show="isSellerpopup"
  229. @handleChoiceaSeller="handleChoiceaSellerData"
  230. >
  231. </cm-seller-popup>
  232. </view>
  233. </template>
  234. <script>
  235. import { mapState, mapMutations } from 'vuex'
  236. import authorize from '@/common/config/authorize.js'
  237. import wxLogin from '@/common/config/wxLogin.js'
  238. import tuiLoadmore from '@/components/tui-components/loadmore/loadmore'
  239. import tuiNomore from '@/components/tui-components/nomore/nomore'
  240. import cmClubDrawer from '../components/cm-club-drawer'
  241. import cmSellerPopup from '../components/cm-seller-popup'
  242. const defaultListQuery = {
  243. userIdentity: 4,
  244. name: '',
  245. pageNum: 1,
  246. pageSize: 10,
  247. spId: 0,
  248. status: 90,
  249. type: 1,
  250. groupServiceId: 0
  251. }
  252. export default {
  253. components: {
  254. tuiLoadmore,
  255. tuiNomore,
  256. cmClubDrawer,
  257. cmSellerPopup
  258. },
  259. data() {
  260. return {
  261. listTab: [{ name: '个人机构' }, { name: '资质机构' }],
  262. listItemTab: [{ name: '我的机构' }, { name: '组员机构' }],
  263. listQuery: Object.assign({}, defaultListQuery),
  264. isShowClose: false,
  265. isEmpty: false,
  266. nomoreText: '上拉显示更多',
  267. pageNum: 1,
  268. pageSize: 10,
  269. hasNextPage: false,
  270. loadding: false,
  271. pullUpOn: true,
  272. pullFlag: true,
  273. tabCurrentNum: 0,
  274. tabCurrentIndex: 0,
  275. tabSmallCurrentIndex: 0,
  276. clubList: [],
  277. isIphoneX: this.$store.state.isIphoneX,
  278. CustomBar: this.CustomBar,
  279. StatusBar: this.StatusBar,
  280. capsule: this.capsule,
  281. show_index: 0, //控制显示那个组件
  282. rightDrawer: false,
  283. isSellerpopup: false,
  284. salesParams: {
  285. choseServiceId: 0,
  286. clubId: 0,
  287. spId: 0
  288. },
  289. isShowIndex: false,
  290. currentIndex: 0
  291. }
  292. },
  293. onLoad(option) {
  294. if (option.type === 'wechat') {
  295. this.isShowIndex = true
  296. }
  297. },
  298. computed: {
  299. ...mapState(['isManage'])
  300. },
  301. methods: {
  302. async initGetStotage() {
  303. // 初始化
  304. const userInfo = await this.$api.getStorage()
  305. this.listQuery.spId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
  306. this.salesParams.choseServiceId = userInfo.serviceProviderId ? userInfo.serviceProviderId : 0
  307. this.GetSellerClubList()
  308. },
  309. GetSellerClubList() {
  310. this.SellerService.GetSellerClubList(this.listQuery)
  311. .then(response => {
  312. let data = response.data
  313. if (data.list && data.list.length > 0) {
  314. this.isEmpty = false
  315. this.hasNextPage = response.data.hasNextPage
  316. this.clubList = data.list.map((el, index) => {
  317. el.bubble = false
  318. return el
  319. })
  320. this.pullFlag = false
  321. setTimeout(() => {
  322. this.pullFlag = true
  323. }, 500)
  324. if (this.hasNextPage) {
  325. this.pullUpOn = false
  326. this.nomoreText = '上拉显示更多'
  327. } else {
  328. this.pullUpOn = true
  329. this.loadding = false
  330. this.nomoreText = '已至底部'
  331. }
  332. } else {
  333. this.isEmpty = true
  334. }
  335. })
  336. .catch(error => {
  337. this.$util.msg(error.msg, 2000)
  338. })
  339. },
  340. getOnReachBottomData() {
  341. this.listQuery.pageNum += 1
  342. this.SellerService.GetSellerClubList(this.listQuery)
  343. .then(response => {
  344. let data = response.data
  345. if (data.list && data.list.length > 0) {
  346. this.hasNextPage = response.data.hasNextPage
  347. this.clubList = this.clubList.concat(data.list)
  348. this.pullFlag = false // 防上拉暴滑
  349. setTimeout(() => {
  350. this.pullFlag = true
  351. }, 500)
  352. if (this.hasNextPage) {
  353. this.pullUpOn = false
  354. this.nomoreText = '上拉显示更多'
  355. } else {
  356. this.pullUpOn = false
  357. this.loadding = false
  358. this.nomoreText = '已至底部'
  359. }
  360. }
  361. })
  362. .catch(error => {
  363. this.$util.msg(error.msg, 2000)
  364. })
  365. },
  366. userClubChoseSales(param) {
  367. //分配或更换协销
  368. this.SellerService.userClubChoseSales(param)
  369. .then(response => {
  370. this.$util.msg('操作成功~', 2000, true, 'success')
  371. setTimeout(() => {
  372. this.GetSellerClubList()
  373. }, 1000)
  374. })
  375. .catch(error => {
  376. console.log('分配协销异常')
  377. })
  378. },
  379. tabClick(index) {
  380. //tab切换
  381. this.tabCurrentIndex = index
  382. switch (index) {
  383. case 0:
  384. this.listQuery.status = 90
  385. break
  386. case 1:
  387. this.listQuery.status = 1
  388. break
  389. case 2:
  390. this.listQuery.status = 92
  391. break
  392. }
  393. this.GetSellerClubList()
  394. },
  395. tabCurrentClick(index) {
  396. //商品详情&&供应商信息tab切换
  397. this.tabCurrentNum = index
  398. switch (index) {
  399. case 0:
  400. this.tabCurrentIndex = 0
  401. this.listQuery.userIdentity = 4
  402. this.listQuery.status = 90
  403. this.listQuery.pageNum = 1
  404. this.GetSellerClubList()
  405. break
  406. case 1:
  407. this.listQuery.pageNum = 1
  408. this.listQuery.userIdentity = 2
  409. this.listQuery.status = 90
  410. this.GetSellerClubList()
  411. break
  412. }
  413. },
  414. tabSmallCurrentClick(index) {
  415. //商品详情&&供应商信息tab切换
  416. this.tabSmallCurrentIndex = index
  417. switch (index) {
  418. case 0:
  419. this.tabCurrentIndex = 0
  420. this.listQuery.type = 1
  421. this.listQuery.status = 90
  422. this.listQuery.pageNum = 1
  423. this.listQuery.groupServiceId = 0
  424. this.GetSellerClubList()
  425. break
  426. case 1:
  427. this.listQuery.type = 2
  428. this.listQuery.status = 90
  429. this.listQuery.pageNum = 1
  430. this.listQuery.groupServiceId = 0
  431. this.GetSellerClubList()
  432. break
  433. case 2:
  434. this.listQuery.type = 3
  435. this.listQuery.status = 90
  436. this.listQuery.pageNum = 1
  437. this.listQuery.groupServiceId = 0
  438. this.GetSellerClubList()
  439. break
  440. }
  441. },
  442. handSearchConfirmData(data) {
  443. console.log('确定筛选', data)
  444. //确定筛选
  445. this.listQuery.groupServiceId = data.serviceProviderId
  446. this.GetSellerClubList()
  447. },
  448. handleChoiceaSellerData(data) {
  449. // 确定搜索
  450. this.salesParams.spId = data.serviceProviderId
  451. this.userClubChoseSales(this.salesParams)
  452. },
  453. showRightDrawer() {
  454. //显示筛选抽屉
  455. this.rightDrawer = true
  456. },
  457. // 按钮操作
  458. handleClickOper(type, club) {
  459. /**
  460. * 1:机构画像 2:填写咨询记录 3:商城访问记录 4:修改资料 5:更换协销
  461. * */
  462. console.log('type', type)
  463. switch (type) {
  464. case 1:
  465. this.$api.navigateTo(`/pages/seller/club/club-portrait?userId=${club.userId}`)
  466. break
  467. case 2:
  468. this.$api.navigateTo(`/pages/seller/remarks/add?userId=${club.userId}`)
  469. break
  470. case 3:
  471. this.$api.navigateTo(`/pages/seller/club/club-info?clubId=${club.clubId}`)
  472. break
  473. case 4:
  474. this.handleReturnPath(club)
  475. break
  476. case 5:
  477. this.handleReplaceClub(club)
  478. break
  479. }
  480. },
  481. handleReplaceClub(club) {
  482. //更换协销
  483. this.salesParams.clubId = club.clubId
  484. this.isSellerpopup = true
  485. },
  486. handleReturnPath(club) {
  487. //修改机构资料
  488. const tabMap = {
  489. 0: `/pages/seller/login/apply?userID=${club.userId}`,
  490. 1: `/pages/seller/login/information?userID=${club.userId}`
  491. }
  492. this.$api.navigateTo(tabMap[this.tabCurrentNum])
  493. },
  494. handleOrderHistory(club) {
  495. //跳转机构历史订单
  496. this.$api.setStorage('orderUserInfo', club)
  497. if (this.tabSmallCurrentIndex === 1 || this.tabSmallCurrentIndex === 2) {
  498. // 查看组员机构历史订单
  499. this.$api.navigateTo(
  500. `/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0&authType=${
  501. this.tabSmallCurrentIndex
  502. }`
  503. )
  504. } else {
  505. this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0`)
  506. }
  507. },
  508. onShowClose() {
  509. //输入框失去焦点时触发
  510. if (this.listQuery.name != '') {
  511. this.isShowClose = true
  512. } else {
  513. this.isShowClose = false
  514. }
  515. },
  516. delInputText() {
  517. //清除输入框内容
  518. this.listQuery.name = ''
  519. this.isShowClose = false
  520. },
  521. showBadge(n) {
  522. let num = ''
  523. if (n > 100) {
  524. num = 99
  525. } else {
  526. num = n
  527. }
  528. return num
  529. },
  530. handleNavigateBack() {
  531. this.$api.navigateBack(1)
  532. },
  533. handleNavigateIndex() {
  534. this.$api.navigateTo(`/pages/seller/index/index`)
  535. },
  536. handleShowBubble(club, index) {
  537. this.currentIndex = index
  538. club.bubble = !club.bubble
  539. }
  540. },
  541. onReachBottom() {
  542. if (this.hasNextPage) {
  543. this.loadding = true
  544. this.pullUpOn = true
  545. this.getOnReachBottomData()
  546. }
  547. },
  548. onShow() {
  549. wxLogin.wxLoginAuthorize()
  550. this.initGetStotage()
  551. }
  552. }
  553. </script>
  554. <style lang="scss">
  555. page {
  556. height: auto;
  557. }
  558. page,
  559. .container {
  560. /* padding-bottom: 120upx; */
  561. background: #f7f7f7;
  562. }
  563. .container {
  564. position: relative;
  565. }
  566. .club-search {
  567. height: auto;
  568. width: 100%;
  569. background: #ffffff;
  570. display: flex;
  571. flex-direction: column;
  572. position: fixed;
  573. top: 0;
  574. left: 0;
  575. z-index: 99;
  576. .search-top {
  577. flex: 1;
  578. display: flex;
  579. align-items: center;
  580. box-sizing: border-box;
  581. .search-icon {
  582. text-align: center;
  583. float: left;
  584. .icon-fanhui {
  585. font-size: 44rpx;
  586. color: #333333;
  587. }
  588. .icon-shouye {
  589. font-size: 44rpx;
  590. color: #333333;
  591. }
  592. }
  593. .search-from {
  594. width: 382rpx;
  595. background: #f7f7f7;
  596. float: left;
  597. position: relative;
  598. .input {
  599. width: 300rpx;
  600. height: 100%;
  601. float: left;
  602. color: $text-color;
  603. font-size: $font-size-24;
  604. }
  605. .icon-iconfonticonfontsousuo1 {
  606. text-align: center;
  607. display: block;
  608. font-size: $font-size-38;
  609. float: left;
  610. color: #999999;
  611. }
  612. .icon-shanchu1 {
  613. font-size: $font-size-32;
  614. color: #999999;
  615. position: absolute;
  616. width: 64rpx;
  617. height: 64rpx;
  618. line-height: 64rpx;
  619. text-align: center;
  620. top: 0;
  621. right: 0;
  622. z-index: 10;
  623. }
  624. }
  625. .search-btn {
  626. text-align: center;
  627. font-size: $font-size-28;
  628. color: $color-system;
  629. float: left;
  630. background: #ffffff;
  631. .icon-shaixuan {
  632. font-size: 44rpx;
  633. color: #333333;
  634. }
  635. }
  636. }
  637. .search-tab {
  638. height: 80rpx;
  639. display: flex;
  640. flex: 1;
  641. background: #ffffff;
  642. border-bottom: 1px solid #efefef;
  643. .tab-item {
  644. flex: 1;
  645. line-height: 80rpx;
  646. text-align: center;
  647. color: $text-color;
  648. font-size: $font-size-28;
  649. position: relative;
  650. .item-text {
  651. padding: 10rpx 0;
  652. border-bottom: 2px solid #ffffff;
  653. }
  654. &:nth-child(1)::before {
  655. content: '';
  656. width: 2px;
  657. height: 50rpx;
  658. position: absolute;
  659. right: 0;
  660. top: 15rpx;
  661. background: #ebebeb;
  662. }
  663. &.current {
  664. color: $color-system;
  665. .item-text {
  666. border-color: $color-system;
  667. }
  668. }
  669. }
  670. }
  671. .search-smalltab {
  672. width: 100%;
  673. height: 104rpx;
  674. background: #ffffff;
  675. box-sizing: border-box;
  676. padding: 20rpx 10rpx;
  677. .tab-item {
  678. width: 180rpx;
  679. height: 64rpx;
  680. line-height: 64rpx;
  681. text-align: center;
  682. color: $text-color;
  683. font-size: $font-size-28;
  684. float: left;
  685. &.current {
  686. background-color: $color-system;
  687. color: #fff;
  688. border-radius: 32rpx;
  689. }
  690. }
  691. }
  692. }
  693. .club-main {
  694. .list {
  695. width: 100%;
  696. height: 288rpx;
  697. padding: 24rpx;
  698. box-sizing: border-box;
  699. background: #ffffff;
  700. position: relative;
  701. border-bottom: 1px solid #ebebeb;
  702. .list-cell-top {
  703. width: 100%;
  704. height: 140rpx;
  705. box-sizing: border-box;
  706. .list-logo {
  707. width: 140rpx;
  708. height: 140rpx;
  709. float: left;
  710. position: relative;
  711. image {
  712. width: 140rpx;
  713. height: 140rpx;
  714. border-radius: 8rpx;
  715. }
  716. .list-id {
  717. display: inline-block;
  718. width: 100%;
  719. height: 32rpx;
  720. line-height: 32rpx;
  721. background: rgba(0, 0, 0, 0.1);
  722. color: #333;
  723. position: absolute;
  724. top: 0;
  725. left: 0;
  726. box-sizing: border-box;
  727. text-align: left;
  728. font-size: 20rpx;
  729. padding-left: 4rpx;
  730. border-radius: 8rpx 8rpx 0 0;
  731. }
  732. }
  733. .list-content {
  734. width: 530rpx;
  735. height: 140rpx;
  736. float: left;
  737. padding-left: 30rpx;
  738. .list-name {
  739. width: 100%;
  740. height: 50rpx;
  741. float: left;
  742. line-height: 50rpx;
  743. text-align: left;
  744. font-size: $font-size-26;
  745. color: #333333;
  746. .tags {
  747. display: inline-block;
  748. height: 36rpx;
  749. box-sizing: border-box;
  750. padding: 0 15rpx;
  751. border-radius: 8rpx;
  752. background: #f0cb72;
  753. font-size: $font-size-22;
  754. color: #4e4539;
  755. text-align: center;
  756. line-height: 36rpx;
  757. margin-left: 20rpx;
  758. margin-top: 7rpx;
  759. &.sv {
  760. background: #333333;
  761. color: #f0cb72;
  762. }
  763. &.xf {
  764. background-color: #f94b4b;
  765. color: #ffffff;
  766. }
  767. }
  768. }
  769. .list-tags {
  770. width: 100%;
  771. height: 36rpx;
  772. float: left;
  773. line-height: 36rpx;
  774. margin: 7rpx 0;
  775. .tags {
  776. display: inline-block;
  777. height: 36rpx;
  778. box-sizing: border-box;
  779. padding: 0 8rpx 0 15rpx;
  780. border-radius: 8rpx;
  781. background: #faede5;
  782. font-size: $font-size-22;
  783. color: $color-system;
  784. text-align: center;
  785. line-height: 36rpx;
  786. margin-right: 16rpx;
  787. .icon-xiayibu {
  788. font-size: 20rpx;
  789. margin-left: 10rpx;
  790. }
  791. }
  792. .tags-or {
  793. display: inline-block;
  794. height: 36rpx;
  795. box-sizing: border-box;
  796. font-size: $font-size-22;
  797. color: #1890f9;
  798. text-align: center;
  799. line-height: 36rpx;
  800. position: relative;
  801. .opea-badge {
  802. position: absolute;
  803. right: -30rpx;
  804. top: -15rpx;
  805. }
  806. .icon-xiayibu {
  807. font-size: 22rpx;
  808. color: #1890f9;
  809. }
  810. }
  811. }
  812. .list-ntel {
  813. width: 100%;
  814. height: 50rpx;
  815. float: left;
  816. line-height: 50rpx;
  817. text-align: left;
  818. font-size: $font-size-24;
  819. color: #666666;
  820. .list-link {
  821. display: inline-block;
  822. float: left;
  823. margin-right: 40rpx;
  824. }
  825. .list-texl {
  826. display: inline-block;
  827. float: left;
  828. }
  829. }
  830. }
  831. }
  832. .club-list-bot {
  833. width: 100%;
  834. height: 80rpx;
  835. float: left;
  836. background-color: #f7f7f7;
  837. border-radius: 8rpx;
  838. margin-top: 20rpx;
  839. .btn {
  840. height: 80rpx;
  841. box-sizing: border-box;
  842. line-height: 80rpx;
  843. padding: 0 20rpx;
  844. font-size: $font-size-24;
  845. color: #333333;
  846. text-align: center;
  847. float: left;
  848. position: relative;
  849. &:nth-child(1) {
  850. &:before {
  851. content: '';
  852. width: 1px;
  853. height: 20rpx;
  854. background-color: #b2b2b2;
  855. position: absolute;
  856. right: 0;
  857. top: 30rpx;
  858. }
  859. }
  860. &:nth-child(2) {
  861. &:before {
  862. content: '';
  863. width: 1px;
  864. height: 20rpx;
  865. background-color: #b2b2b2;
  866. position: absolute;
  867. right: 0;
  868. top: 30rpx;
  869. }
  870. }
  871. &:nth-child(3) {
  872. &:before {
  873. content: '';
  874. width: 1px;
  875. height: 20rpx;
  876. background-color: #b2b2b2;
  877. position: absolute;
  878. right: 0;
  879. top: 30rpx;
  880. }
  881. }
  882. &:last-child {
  883. padding: 0 28rpx;
  884. .iconfont {
  885. font-weight: bold;
  886. }
  887. .btn-bubble {
  888. width: 200rpx;
  889. height: 160rpx;
  890. background: rgba(51, 51, 51, 0.8);
  891. position: absolute;
  892. top: -154rpx;
  893. right: 0;
  894. border-radius: 8rpx;
  895. &:before {
  896. content: '';
  897. width: 0;
  898. height: 0;
  899. border: 15rpx solid transparent;
  900. border-top: 15rpx solid rgba(51, 51, 51, 0.8);
  901. position: absolute;
  902. bottom: -26rpx;
  903. right: 35rpx;
  904. }
  905. .btn-view {
  906. width: 100%;
  907. height: 80rpx;
  908. box-sizing: border-box;
  909. line-height: 80rpx;
  910. font-size: $font-size-24;
  911. color: #ffffff;
  912. text-align: center;
  913. float: left;
  914. .iconfont {
  915. font-size: 28rpx;
  916. color: #ffffff;
  917. margin-right: 5rpx;
  918. font-weight: normal;
  919. }
  920. &.border {
  921. border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  922. }
  923. }
  924. }
  925. }
  926. &.none{
  927. &::before{
  928. background-color: #f7f7f7 !important;
  929. }
  930. }
  931. .iconfont {
  932. font-size: 30rpx;
  933. color: #333333;
  934. margin-right: 5rpx;
  935. }
  936. }
  937. }
  938. }
  939. }
  940. .tabBar {
  941. width: 100%;
  942. height: 98rpx;
  943. background: #fff;
  944. border-top: 1px solid #e5e5e5;
  945. position: fixed;
  946. bottom: 0px;
  947. left: 0px;
  948. right: 0px;
  949. z-index: 99;
  950. display: flex;
  951. align-items: center;
  952. justify-content: center;
  953. .tabBar_list {
  954. width: 86%;
  955. display: flex;
  956. justify-content: space-between;
  957. .tabBar_item {
  958. width: 120rpx;
  959. display: flex;
  960. justify-content: center;
  961. align-items: center;
  962. flex-direction: column;
  963. font-size: 20rpx;
  964. color: #999999;
  965. &.current {
  966. color: #166ce1;
  967. .iconfont {
  968. color: #166ce1;
  969. }
  970. }
  971. &.current1 {
  972. color: #16e15c;
  973. .iconfont {
  974. color: #16e15c;
  975. }
  976. }
  977. &.current2 {
  978. color: #ff0000;
  979. .iconfont {
  980. color: #ff0000;
  981. }
  982. }
  983. .iconfont {
  984. width: 48rpx;
  985. height: 48rpx;
  986. display: block;
  987. margin-bottom: 2rpx;
  988. text-align: center;
  989. font-size: 46rpx;
  990. color: #999999;
  991. }
  992. }
  993. }
  994. }
  995. .nav_active {
  996. color: $color-system;
  997. }
  998. </style>