list.vue 26 KB

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