list.vue 28 KB

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