list.vue 28 KB

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