list.vue 39 KB

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