list.vue 26 KB

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