list.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058
  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. this.listQuery.pageNum = 1
  315. const res = await this.SellerService.GetSellerClubList(this.listQuery)
  316. const data = res.data
  317. if (data.list && data.list.length > 0) {
  318. this.isEmpty = false
  319. this.hasNextPage = data.hasNextPage
  320. this.clubList = data.list.map((el, index) => {
  321. el.bubble = false
  322. return el
  323. })
  324. this.pullFlag = false
  325. setTimeout(() => {
  326. this.pullFlag = true
  327. }, 500)
  328. if (this.hasNextPage) {
  329. this.pullUpOn = false
  330. this.nomoreText = '上拉显示更多'
  331. } else {
  332. this.pullUpOn = true
  333. this.loadding = false
  334. this.nomoreText = '已至底部'
  335. }
  336. } else {
  337. this.isEmpty = true
  338. }
  339. }catch(error){
  340. //TODO handle the exception
  341. this.$util.msg(error.msg, 2000)
  342. }
  343. },
  344. async getOnReachBottomData() {
  345. try{
  346. this.listQuery.pageNum++
  347. const res = await this.SellerService.GetSellerClubList(this.listQuery)
  348. const data = res.data
  349. if (data.list && data.list.length > 0) {
  350. this.hasNextPage = data.hasNextPage
  351. this.clubList = this.clubList.concat(data.list)
  352. this.pullFlag = false // 防上拉暴滑
  353. setTimeout(() => {
  354. this.pullFlag = true
  355. }, 500)
  356. if (this.hasNextPage) {
  357. this.pullUpOn = false
  358. this.nomoreText = '上拉显示更多'
  359. } else {
  360. this.pullUpOn = false
  361. this.loadding = false
  362. this.nomoreText = '已至底部'
  363. }
  364. }
  365. }catch(error){
  366. //TODO handle the exception
  367. this.$util.msg(error.msg, 2000)
  368. }
  369. },
  370. userClubChoseSales(param) {
  371. //分配或更换协销
  372. this.SellerService.userClubChoseSales(param)
  373. .then(response => {
  374. this.$util.msg('操作成功~', 2000, true, 'success')
  375. setTimeout(() => {
  376. this.getList()
  377. }, 1000)
  378. })
  379. .catch(error => {
  380. console.log('分配协销异常')
  381. })
  382. },
  383. tabClick(index) {
  384. //tab切换
  385. this.tabCurrentIndex = index
  386. switch (index) {
  387. case 0:
  388. this.listQuery.status = 90
  389. break
  390. case 1:
  391. this.listQuery.status = 1
  392. break
  393. case 2:
  394. this.listQuery.status = 92
  395. break
  396. }
  397. this.getList()
  398. },
  399. tabCurrentClick(index) {
  400. //商品详情&&供应商信息tab切换
  401. this.tabCurrentNum = index
  402. switch (index) {
  403. case 0:
  404. this.tabCurrentIndex = 0
  405. this.listQuery.status = 90
  406. this.listQuery.userIdentity = 4
  407. this.getList()
  408. break
  409. case 1:
  410. this.listQuery.status = 90
  411. this.listQuery.userIdentity = 2
  412. this.getList()
  413. break
  414. }
  415. },
  416. tabSmallCurrentClick(index) {
  417. //商品详情&&供应商信息tab切换
  418. this.tabSmallCurrentIndex = index
  419. switch (index) {
  420. case 0:
  421. this.tabCurrentIndex = 0
  422. this.listQuery.type = 1
  423. this.listQuery.groupServiceId = 0
  424. this.getList()
  425. break
  426. case 1:
  427. this.listQuery.type = this.isManage ? 2 : 6
  428. this.listQuery.groupServiceId = 0
  429. this.getList()
  430. break
  431. case 2:
  432. this.listQuery.type = 6
  433. this.listQuery.groupServiceId = 0
  434. this.getList()
  435. break
  436. }
  437. },
  438. handSearchConfirmData(data) {
  439. console.log('确定筛选', data)
  440. //确定筛选
  441. this.listQuery = { ...this.listQuery, ...data }
  442. this.getList()
  443. },
  444. handleChoiceaSellerData(data) {
  445. // 确定搜索
  446. this.salesParams.spId = data.serviceProviderId
  447. this.userClubChoseSales(this.salesParams)
  448. },
  449. showRightDrawer() {
  450. //显示筛选抽屉
  451. this.rightDrawer = true
  452. },
  453. // 按钮操作
  454. handleClickOper(type, club) {
  455. /**
  456. * 1:机构画像 2:填写咨询记录 3:商城访问记录 4:修改资料 5:更换协销
  457. * */
  458. console.log('type', type)
  459. switch (type) {
  460. case 1:
  461. this.$api.navigateTo(`/pages/seller/club/club-portrait?userId=${club.userId}`)
  462. break
  463. case 2:
  464. this.$api.navigateTo(`/pages/seller/remarks/add?userId=${club.userId}`)
  465. break
  466. case 3:
  467. this.$api.navigateTo(`/pages/seller/club/club-visit?clubId=${club.clubId}`)
  468. break
  469. case 4:
  470. this.handleReturnPath(club)
  471. break
  472. case 5:
  473. this.handleReplaceClub(club)
  474. break
  475. case 6:
  476. this.$api.navigateTo(`/pages/seller/remarks/record-club-list?clubId=${club.clubId}`)
  477. break
  478. }
  479. },
  480. handleReplaceClub(club) {
  481. //更换协销
  482. this.salesParams.clubId = club.clubId
  483. this.isSellerpopup = true
  484. },
  485. handleReturnPath(club) {
  486. //修改机构资料
  487. const tabMap = {
  488. 0: `/pages/seller/login/apply?userID=${club.userId}`,
  489. 1: `/pages/seller/login/information?userID=${club.userId}`
  490. }
  491. this.$api.navigateTo(tabMap[this.tabCurrentNum])
  492. },
  493. handleOrderHistory(club) {
  494. //跳转机构历史订单
  495. this.$api.setStorage('orderUserInfo', club)
  496. if (this.tabSmallCurrentIndex === 1 || this.tabSmallCurrentIndex === 2) {
  497. // 查看组员机构历史订单
  498. this.$api.navigateTo(
  499. `/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0&authType=${
  500. this.tabSmallCurrentIndex
  501. }`
  502. )
  503. } else {
  504. this.$api.navigateTo(`/pages/seller/order/order-historylist?clubId=${club.clubId}&listType=0`)
  505. }
  506. },
  507. // 拨打电话
  508. handlePhone(phoneNumber) {
  509. uni.makePhoneCall({
  510. phoneNumber: phoneNumber //拨打电话
  511. })
  512. },
  513. onShowClose() {
  514. //输入框失去焦点时触发
  515. if (this.listQuery.name != '') {
  516. this.isShowClose = true
  517. } else {
  518. this.isShowClose = false
  519. }
  520. },
  521. delInputText() {
  522. //清除输入框内容
  523. this.listQuery.name = ''
  524. this.isShowClose = false
  525. },
  526. showBadge(n) {
  527. let num = ''
  528. if (n > 100) {
  529. num = 99
  530. } else {
  531. num = n
  532. }
  533. return num
  534. },
  535. handleNavigateBack() {
  536. this.$api.navigateBack(1)
  537. },
  538. handleNavigateIndex() {
  539. this.$api.navigateTo('/pages/seller/index/index')
  540. },
  541. handleShowBubble(club, index) {
  542. this.currentIndex = index
  543. club.bubble = !club.bubble
  544. }
  545. },
  546. onReachBottom() {
  547. if (this.hasNextPage) {
  548. this.loadding = true
  549. this.pullUpOn = true
  550. this.getOnReachBottomData()
  551. }
  552. },
  553. onShow() {
  554. wxLogin.wxLoginAuthorize()
  555. this.initGetStotage()
  556. }
  557. }
  558. </script>
  559. <style lang="scss">
  560. page {
  561. height: auto;
  562. }
  563. page,
  564. .container {
  565. /* padding-bottom: 120upx; */
  566. background: #FFFFFF;
  567. }
  568. .container {
  569. position: relative;
  570. }
  571. .club-search {
  572. height: auto;
  573. width: 100%;
  574. background: #ffffff;
  575. display: flex;
  576. flex-direction: column;
  577. position: fixed;
  578. top: 0;
  579. left: 0;
  580. z-index: 99;
  581. .search-top {
  582. flex: 1;
  583. display: flex;
  584. align-items: center;
  585. box-sizing: border-box;
  586. position: relative;
  587. .title {
  588. position: absolute;
  589. left: 50%;
  590. top: 50%;
  591. transform: translate(-50%, -50%);
  592. }
  593. .search-icon {
  594. text-align: center;
  595. float: left;
  596. .icon-fanhui {
  597. font-size: 44rpx;
  598. color: #333333;
  599. }
  600. .icon-shouye {
  601. font-size: 44rpx;
  602. color: #333333;
  603. }
  604. }
  605. }
  606. .search-main {
  607. width: 100%;
  608. height: 80rpx;
  609. box-sizing: border-box;
  610. padding: 10rpx 24rpx;
  611. .search-from {
  612. background: #f7f7f7;
  613. position: relative;
  614. width: 642rpx;
  615. height: 100%;
  616. padding-right: 60rpx;
  617. box-sizing: border-box;
  618. padding: 0 10rpx;
  619. float: left;
  620. border-radius: 30rpx;
  621. .icon-iconfonticonfontsousuo1 {
  622. width: 60rpx;
  623. height: 60rpx;
  624. line-height: 60rpx;
  625. text-align: center;
  626. display: block;
  627. font-size: $font-size-38;
  628. float: left;
  629. color: #999999;
  630. }
  631. .input {
  632. width: 520rpx;
  633. height: 100%;
  634. float: left;
  635. color: $text-color;
  636. font-size: $font-size-24;
  637. box-sizing: border-box;
  638. padding-left: 10rpx;
  639. }
  640. .icon-shanchu1 {
  641. font-size: $font-size-32;
  642. color: #999999;
  643. position: absolute;
  644. width: 60rpx;
  645. height: 60rpx;
  646. line-height: 60rpx;
  647. text-align: center;
  648. top: 0;
  649. right: 0;
  650. z-index: 10;
  651. }
  652. }
  653. .search-btn {
  654. width: 60rpx;
  655. height: 60rpx;
  656. line-height: 60rpx;
  657. text-align: center;
  658. font-size: $font-size-28;
  659. color: $color-system;
  660. float: left;
  661. background: #ffffff;
  662. .icon-shaixuan {
  663. font-size: 44rpx;
  664. color: #333333;
  665. }
  666. }
  667. }
  668. .search-tab {
  669. height: 80rpx;
  670. display: flex;
  671. flex: 1;
  672. background: #ffffff;
  673. border-bottom: 1px solid #efefef;
  674. .tab-item {
  675. flex: 1;
  676. line-height: 80rpx;
  677. text-align: center;
  678. color: $text-color;
  679. font-size: $font-size-28;
  680. position: relative;
  681. .item-text {
  682. padding: 10rpx 0;
  683. border-bottom: 2px solid #ffffff;
  684. }
  685. &:nth-child(1)::before {
  686. content: '';
  687. width: 2px;
  688. height: 50rpx;
  689. position: absolute;
  690. right: 0;
  691. top: 15rpx;
  692. background: #ebebeb;
  693. }
  694. &.current {
  695. color: $color-system;
  696. .item-text {
  697. border-color: $color-system;
  698. }
  699. }
  700. }
  701. }
  702. .search-smalltab {
  703. width: 100%;
  704. height: 104rpx;
  705. background: #ffffff;
  706. box-sizing: border-box;
  707. padding: 20rpx 24rpx;
  708. .tab-item {
  709. width: 168rpx;
  710. height: 64rpx;
  711. line-height: 64rpx;
  712. text-align: center;
  713. color: $text-color;
  714. font-size: $font-size-28;
  715. float: left;
  716. border-radius: 32rpx;
  717. border: 1px solid #b2b2b2;
  718. margin-right: 32rpx;
  719. &.current {
  720. color: #ff5b00;
  721. border: 1px solid #ff5b00;
  722. }
  723. }
  724. }
  725. }
  726. .club-main {
  727. width: 100%;
  728. padding-top: 370rpx;
  729. .list {
  730. width: 100%;
  731. height: 320rpx;
  732. padding: 24rpx;
  733. box-sizing: border-box;
  734. background: #ffffff;
  735. position: relative;
  736. border-bottom: 1px solid #ebebeb;
  737. .list-cell-top {
  738. width: 100%;
  739. height: 140rpx;
  740. box-sizing: border-box;
  741. .list-logo {
  742. width: 140rpx;
  743. height: 140rpx;
  744. float: left;
  745. position: relative;
  746. image {
  747. width: 140rpx;
  748. height: 140rpx;
  749. border-radius: 8rpx;
  750. }
  751. .list-tips {
  752. display: inline-block;
  753. width: 100%;
  754. height: 32rpx;
  755. line-height: 32rpx;
  756. background: rgba(0, 0, 0, 0.1);
  757. color: #333;
  758. position: absolute;
  759. bottom: 0;
  760. left: 0;
  761. box-sizing: border-box;
  762. text-align: left;
  763. font-size: 20rpx;
  764. padding-left: 4rpx;
  765. border-radius: 8rpx 8rpx 0 0;
  766. text-align: center;
  767. }
  768. .list-id {
  769. display: inline-block;
  770. width: 100%;
  771. height: 32rpx;
  772. line-height: 32rpx;
  773. background: rgba(0, 0, 0, 0.1);
  774. color: #333;
  775. position: absolute;
  776. top: 0;
  777. left: 0;
  778. box-sizing: border-box;
  779. text-align: left;
  780. font-size: 20rpx;
  781. padding-left: 4rpx;
  782. border-radius: 8rpx 8rpx 0 0;
  783. text-align: center;
  784. }
  785. }
  786. .list-content {
  787. width: 560rpx;
  788. height: 180rpx;
  789. float: left;
  790. padding-left: 20rpx;
  791. box-sizing: border-box;
  792. .list-name {
  793. width: 100%;
  794. height: 50rpx;
  795. float: left;
  796. line-height: 50rpx;
  797. text-align: left;
  798. font-size: $font-size-26;
  799. color: #333333;
  800. .tags {
  801. display: inline-block;
  802. height: 36rpx;
  803. box-sizing: border-box;
  804. padding: 0 15rpx;
  805. border-radius: 8rpx;
  806. background: #f0cb72;
  807. font-size: $font-size-22;
  808. color: #4e4539;
  809. text-align: center;
  810. line-height: 36rpx;
  811. margin-left: 20rpx;
  812. margin-top: 7rpx;
  813. &.sv {
  814. background: #333333;
  815. color: #f0cb72;
  816. }
  817. &.xf {
  818. background-color: #f94b4b;
  819. color: #ffffff;
  820. }
  821. }
  822. }
  823. .list-tags {
  824. width: 100%;
  825. height: 36rpx;
  826. float: left;
  827. line-height: 36rpx;
  828. margin: 7rpx 0;
  829. .tags {
  830. display: inline-block;
  831. height: 36rpx;
  832. box-sizing: border-box;
  833. padding: 0 8rpx 0 15rpx;
  834. border-radius: 8rpx;
  835. background: #faede5;
  836. font-size: $font-size-22;
  837. color: $color-system;
  838. text-align: center;
  839. line-height: 36rpx;
  840. margin-right: 16rpx;
  841. .icon-xiayibu {
  842. font-size: 20rpx;
  843. margin-left: 10rpx;
  844. }
  845. }
  846. .tags-or {
  847. display: inline-block;
  848. height: 36rpx;
  849. box-sizing: border-box;
  850. font-size: $font-size-22;
  851. color: #1890f9;
  852. text-align: center;
  853. line-height: 36rpx;
  854. position: relative;
  855. .opea-badge {
  856. position: absolute;
  857. right: -30rpx;
  858. top: -15rpx;
  859. }
  860. .icon-xiayibu {
  861. font-size: 22rpx;
  862. color: #1890f9;
  863. }
  864. }
  865. }
  866. .list-ntel {
  867. width: 100%;
  868. height: 50rpx;
  869. float: left;
  870. line-height: 50rpx;
  871. text-align: left;
  872. font-size: $font-size-24;
  873. color: #666666;
  874. .list-link {
  875. display: inline-block;
  876. float: left;
  877. margin-right: 12rpx;
  878. }
  879. .list-texl {
  880. display: inline-block;
  881. float: left;
  882. text-decoration: underline;
  883. }
  884. }
  885. }
  886. }
  887. .club-list-bot {
  888. width: 100%;
  889. height: 80rpx;
  890. float: left;
  891. background-color: #f7f7f7;
  892. border-radius: 8rpx;
  893. margin-top: 20rpx;
  894. .btn {
  895. height: 80rpx;
  896. box-sizing: border-box;
  897. line-height: 80rpx;
  898. padding: 0 20rpx;
  899. font-size: $font-size-24;
  900. color: #333333;
  901. text-align: center;
  902. float: left;
  903. position: relative;
  904. &:nth-child(1) {
  905. &:before {
  906. content: '';
  907. width: 1px;
  908. height: 20rpx;
  909. background-color: #b2b2b2;
  910. position: absolute;
  911. right: 0;
  912. top: 30rpx;
  913. }
  914. }
  915. &:nth-child(2) {
  916. &:before {
  917. content: '';
  918. width: 1px;
  919. height: 20rpx;
  920. background-color: #b2b2b2;
  921. position: absolute;
  922. right: 0;
  923. top: 30rpx;
  924. }
  925. }
  926. &:nth-child(3) {
  927. &:before {
  928. content: '';
  929. width: 1px;
  930. height: 20rpx;
  931. background-color: #b2b2b2;
  932. position: absolute;
  933. right: 0;
  934. top: 30rpx;
  935. }
  936. }
  937. &:last-child {
  938. padding: 0 28rpx;
  939. .iconfont {
  940. font-weight: bold;
  941. }
  942. .btn-bubble {
  943. width: 200rpx;
  944. height: 120rpx;
  945. background: rgba(51, 51, 51, 0.8);
  946. position: absolute;
  947. top: -120rpx;
  948. right: 0;
  949. border-radius: 8rpx;
  950. &:before {
  951. content: '';
  952. width: 0;
  953. height: 0;
  954. border: 15rpx solid transparent;
  955. border-top: 15rpx solid rgba(51, 51, 51, 0.8);
  956. position: absolute;
  957. bottom: -26rpx;
  958. right: 35rpx;
  959. }
  960. .btn-view {
  961. width: 100%;
  962. height: 60rpx;
  963. box-sizing: border-box;
  964. line-height: 60rpx;
  965. font-size: $font-size-24;
  966. color: #ffffff;
  967. text-align: center;
  968. float: left;
  969. .iconfont {
  970. font-size: 28rpx;
  971. color: #ffffff;
  972. margin-right: 5rpx;
  973. font-weight: normal;
  974. }
  975. &.border {
  976. border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  977. }
  978. }
  979. }
  980. }
  981. &.none {
  982. &::before {
  983. background-color: #f7f7f7 !important;
  984. }
  985. }
  986. .iconfont {
  987. font-size: 30rpx;
  988. color: #333333;
  989. margin-right: 5rpx;
  990. }
  991. }
  992. }
  993. }
  994. }
  995. .tabBar {
  996. width: 100%;
  997. height: 98rpx;
  998. background: #fff;
  999. border-top: 1px solid #e5e5e5;
  1000. position: fixed;
  1001. bottom: 0px;
  1002. left: 0px;
  1003. right: 0px;
  1004. z-index: 99;
  1005. display: flex;
  1006. align-items: center;
  1007. justify-content: center;
  1008. .tabBar_list {
  1009. width: 86%;
  1010. display: flex;
  1011. justify-content: space-between;
  1012. .tabBar_item {
  1013. width: 120rpx;
  1014. display: flex;
  1015. justify-content: center;
  1016. align-items: center;
  1017. flex-direction: column;
  1018. font-size: 20rpx;
  1019. color: #999999;
  1020. &.current {
  1021. color: #166ce1;
  1022. .iconfont {
  1023. color: #166ce1;
  1024. }
  1025. }
  1026. &.current1 {
  1027. color: #16e15c;
  1028. .iconfont {
  1029. color: #16e15c;
  1030. }
  1031. }
  1032. &.current2 {
  1033. color: #ff0000;
  1034. .iconfont {
  1035. color: #ff0000;
  1036. }
  1037. }
  1038. .iconfont {
  1039. width: 48rpx;
  1040. height: 48rpx;
  1041. display: block;
  1042. margin-bottom: 2rpx;
  1043. text-align: center;
  1044. font-size: 46rpx;
  1045. color: #999999;
  1046. }
  1047. }
  1048. }
  1049. }
  1050. .nav_active {
  1051. color: $color-system;
  1052. }
  1053. </style>