list.vue 26 KB

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