list.vue 39 KB

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