search.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. <template>
  2. <view class="hotelList">
  3. <view class="fixed-box">
  4. <view class="search-box">
  5. <view class="city-box">
  6. <image class="icon" src="../static/blue-position.png" mode=""></image>
  7. {{query.cityName}}
  8. </view>
  9. <view class="input-box">
  10. <view class="time-box" @click="show = true">
  11. <view class="time">
  12. <view class="label">
  13. </view>
  14. <view class="value">
  15. {{query.checkInDate | filterDate('time')}}
  16. </view>
  17. </view>
  18. <view class="time">
  19. <view class="label">
  20. </view>
  21. <view class="value">
  22. {{query.checkOutDate | filterDate('time')}}
  23. </view>
  24. </view>
  25. </view>
  26. <input class="input" type="text" v-model="query.keyword" placeholder="搜索酒店名/地名/关键词" />
  27. </view>
  28. </view>
  29. <view class="tab-box">
  30. <view class="tab-item" :class="[query.sortKey?'active':'']" @click="handleTab(0)">
  31. 推荐排序
  32. <image class="icon" src="@/static/shop-desc.png" mode=""></image>
  33. </view>
  34. <view class="tab-item" :class="[query.filter.star.length||query.filter.price.length?'active':'']" @click="handleTab(1)">
  35. 档次价格
  36. <image class="icon" src="@/static/shop-desc.png" mode=""></image>
  37. </view>
  38. <view class="tab-item" :class="[query.filter.poiCode?'active':'']" @click="handleTab(2)">
  39. 位置距离
  40. <image class="icon" src="@/static/shop-desc.png" mode=""></image>
  41. </view>
  42. <view class="tab-item" @click="handleTab(3)">
  43. 综合筛选
  44. <image class="icon" src="@/static/shop-desc.png" mode=""></image>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 列表 -->
  49. <zs-list class="store-box" mt="150rpx" @load="loadMore" :status="status">
  50. <view class="hotel-item" v-for="(item,index) in list" :key="index" @click="goDetail(item.hotelId)">
  51. <zs-img :src="item.picture" width="190rpx" height="296rpx" radius="full" mode="widthFix" ></zs-img>
  52. <view class="info">
  53. <view class="title">
  54. {{item.chineseName}}
  55. <!-- <view :class="[getTag(item.star).tag]">
  56. {{item.starName}}
  57. </view> -->
  58. </view>
  59. <image class="star" v-for="(i,d) in getTag(item.star).num" :key="d" src="../static/star.png" mode=""></image>
  60. <view class="district">
  61. <!-- 观山湖区 -->
  62. </view>
  63. <view class="distance-box">
  64. <view class="distance">
  65. 距你{{item|filterDistance}}公里
  66. </view>
  67. <view class="price-box" v-if="item.price">
  68. <view class="price">
  69. ¥{{item.price}}
  70. </view>
  71. <view class="label">
  72. </view>
  73. </view>
  74. <view class="price-box" v-else>
  75. <view class="label">
  76. 暂无报价
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. </zs-list>
  83. <u-popup :show="show1" :round="16" mode="top" :closeOnClickOverlay="false" @close="show1 = false">
  84. <view class="content">
  85. <view class="search-box">
  86. <view class="city-box">
  87. <image class="icon" src="../static/blue-position.png" mode=""></image>
  88. {{query.cityName}}
  89. </view>
  90. <view class="input-box">
  91. <view class="time-box" @click="show = true">
  92. <view class="time">
  93. <view class="label">
  94. </view>
  95. <view class="value">
  96. {{query.checkInDate | filterDate('time')}}
  97. </view>
  98. </view>
  99. <view class="time">
  100. <view class="label">
  101. </view>
  102. <view class="value">
  103. {{query.checkOutDate | filterDate('time')}}
  104. </view>
  105. </view>
  106. </view>
  107. <input class="input" type="text" v-model="query.keyword" placeholder="搜索酒店名/地名/关键词" />
  108. </view>
  109. </view>
  110. <view class="tab-box">
  111. <view class="tab-item" :class="[active == 0?'active':'']" @click="handleTab(0)">
  112. {{currentLabel}}
  113. <image class="icon" src="@/static/shop-desc.png" mode=""></image>
  114. </view>
  115. <view class="tab-item" :class="[active == 1?'active':'']" @click="handleTab(1)">
  116. 档次价格
  117. <image class="icon" src="@/static/shop-desc.png" mode=""></image>
  118. </view>
  119. <view class="tab-item" :class="[active == 2?'active':'']" @click="handleTab(2)">
  120. 位置距离
  121. <image class="icon" src="@/static/shop-desc.png" mode=""></image>
  122. </view>
  123. <view class="tab-item" :class="[active == 3?'active':'']" @click="handleTab(3)">
  124. 综合筛选
  125. <image class="icon" src="@/static/shop-desc.png" mode=""></image>
  126. </view>
  127. </view>
  128. <view class="choose-box">
  129. <view class="radio-box" v-if="active == 0">
  130. <view class="radio" v-for="item in sortList" :key="item.value" @click="chooseTab(item.value,0,item.label)">
  131. <view class="label">
  132. {{item.label}}
  133. </view>
  134. <view class="value" v-if="query.sortKey == item.value">
  135. </view>
  136. </view>
  137. </view>
  138. <template v-else-if="active == 1">
  139. <view class="sub-title">
  140. 星级(可多选)
  141. </view>
  142. <view class="tab-box">
  143. <view class="tab" :class="[index%4!=0?'ml20':'',query.filter.star.indexOf(item.id) != -1?'active':'']" v-for="(item,index) in starList" :key="item.id" @click="chooseTab(item,1)">
  144. {{item.label}}
  145. </view>
  146. </view>
  147. <view class="sub-title mb28">
  148. 价格区间 <text class="price-range">{{`¥${priceValue[0]}~¥${priceValue[1]}`}}</text>
  149. </view>
  150. <zs-slider class="zs-slider" ref="slider" v-model="priceValue" :min="0" :max="2500" :step="10" :blockWidth="40" @end="moveEnd" />
  151. <view class="price-tab-box">
  152. <view class="price-tab" :class="[index%4!=0?'ml20':'',item.max == curPrice?'active':'']" v-for="(item,index) in priceList" :key="index" @click="choosePrice(item)">
  153. ¥{{item.min}}{{ item.max == 2500?'以上': '-'+item.max}}
  154. </view>
  155. </view>
  156. </template>
  157. <view class="radio-box" v-else-if="active == 2">
  158. <view class="radio" v-for="item in areaList" :key="item.code" @click="chooseTab(item,2)">
  159. <view class="label">
  160. {{item.name}}
  161. </view>
  162. <view class="value" v-if="query.filter.poiCode == item.code">
  163. </view>
  164. </view>
  165. </view>
  166. <view class="filter-box" v-else-if="active == 3">
  167. <view class="left-box">
  168. <view class="left-item" :class="[filterIndex == index?'active':'']" v-for="(item,index) in filterObj" :key="index" @click="chooseType(index)">
  169. {{item.filterName}}
  170. </view>
  171. </view>
  172. <view class="right-box" >
  173. <view class="right-item" v-for="(item,index) in filterObj[filterIndex].pros" :key="index" @click="chooseItem(item)">
  174. <view class="label">
  175. {{item.name}}
  176. </view>
  177. <view class="value" v-if="query.filter[filterObj[filterIndex].filterId].indexOf(item.code)!=-1">
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. </view>
  183. </view>
  184. <view class="btn-box">
  185. <view class="btn" type="default" @click="reset">重置</view>
  186. <view class="btn" type="default" @click="submit">完成</view>
  187. </view>
  188. </u-popup>
  189. <u-calendar
  190. startText="住店"
  191. endText="离店"
  192. :monthNum="5"
  193. confirmDisabledText="请选择离店日期"
  194. :show="show"
  195. mode="range"
  196. @confirm="confirm"
  197. @close="show = false"
  198. ref="calendar"
  199. :rowHeight="100"
  200. closeOnClickOverlay
  201. color="#EE4320"
  202. >
  203. </u-calendar>
  204. </view>
  205. </template>
  206. <script>
  207. import {getHotelList} from '@/api/hotel.js';
  208. import {debounce} from '@/utils/tool.js'
  209. export default {
  210. data() {
  211. return {
  212. day:1,
  213. active:0,
  214. show:false,
  215. show1:false,
  216. list: [],
  217. status:'more',
  218. query:{
  219. "checkInDate":uni.$u.timeFormat(new Date().getTime(), 'yyyy-mm-dd') ,
  220. "checkOutDate":uni.$u.timeFormat(new Date().getTime()+1000*60*60*24, 'yyyy-mm-dd'),
  221. "cityCode": 0,
  222. "cityName": uni.getStorageSync('city').replace('市',''),
  223. "filter": {
  224. "brand":[],
  225. "facility":[],
  226. "feature":[],
  227. "star":[],
  228. "price":[10, 2000],
  229. "poiKey": "",
  230. "poiCode": "",
  231. "latitude": '',
  232. "longitude": '',
  233. },
  234. "keyword": "",
  235. "limit": 10,
  236. "returnFilter": 1,
  237. "sortKey": "recommend",
  238. "start": 0
  239. },
  240. districtList:JSON.parse(uni.getStorageSync('districtList')),
  241. currentLabel:'推荐排序',
  242. sortList:[
  243. {
  244. value:'recommend',
  245. label:'推荐排序'
  246. },
  247. {
  248. value:'satisfaction',
  249. label:'口碑'
  250. },
  251. {
  252. value:'price-asc',
  253. label:'起价升序'
  254. },
  255. {
  256. value:'price-desc',
  257. label:'起价降序'
  258. }
  259. ],
  260. priceValue: [10, 2000], // 可以指定默认值
  261. starList:[
  262. // {
  263. // id:1,
  264. // label:'一星级',
  265. // data:[1,0]
  266. // },
  267. {
  268. id:2,
  269. // label:'二星级',
  270. // data:[2,6]
  271. label:'二星级及以下',
  272. data:[1,0,2,6]
  273. },
  274. {
  275. id:3,
  276. label:'三星级',
  277. data:[3,7]
  278. },
  279. {
  280. id:4,
  281. label:'四星级',
  282. data:[4,8]
  283. },
  284. {
  285. id:5,
  286. label:'五星级',
  287. data:[5,9]
  288. },
  289. // {
  290. // id:6,
  291. // label:'经济型'
  292. // },
  293. // {
  294. // id:7,
  295. // label:'舒适型'
  296. // },
  297. // {
  298. // id:8,
  299. // label:'高档型'
  300. // },
  301. // {
  302. // id:9,
  303. // label:'豪华型'
  304. // },
  305. // {
  306. // id:0,
  307. // label:'普通型'
  308. // }
  309. ],
  310. curPrice:'',
  311. priceList:[
  312. {
  313. min:0,
  314. max:250
  315. },
  316. {
  317. min:250,
  318. max:400
  319. },
  320. {
  321. min:400,
  322. max:650
  323. },
  324. {
  325. min:650,
  326. max:900
  327. },
  328. {
  329. min:900,
  330. max:2500
  331. }
  332. ],
  333. areaList:[],//存放行政区信息
  334. filterObj:{},//综合筛选
  335. filterIndex:0,
  336. location:{
  337. latitude:0,
  338. longitude:0,
  339. }
  340. }
  341. },
  342. filters: {
  343. filterDate: function(value,type) {
  344. let timestamp = new Date(value).getTime()
  345. if(type == 'time'){
  346. return uni.$u.timeFormat(timestamp, 'mm-dd');
  347. }else if(type == 'day'){
  348. let arr = ['日','一','二','三','四','五','六']
  349. let num = new Date(timestamp).getDay()
  350. return `周${arr[num]}`
  351. }
  352. },
  353. filterDistance: function(item) {
  354. let location = JSON.parse(uni.getStorageSync('location'))
  355. /*参数:两地的经纬度数值*/
  356. var radLat1 = location.latitude * Math.PI / 180.0;
  357. var radLat2 = item.latitude* Math.PI / 180.0;
  358. var a = radLat1 - radLat2;
  359. var b = location.longitude* Math.PI / 180.0 - item.longitude* Math.PI / 180.0;
  360. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  361. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  362. s = s * 6378137.0;//地球半径 单位米;
  363. s = Math.round(s * 10000) / 10000 /1000 //输出为千米
  364. s = s.toFixed(2)
  365. return s
  366. }
  367. },
  368. watch: {
  369. 'query.keyword':debounce(function(val) {
  370. this.search()
  371. })
  372. },
  373. methods: {
  374. chooseType(index){
  375. this.filterIndex = index
  376. },
  377. chooseItem(item){
  378. let key = this.filterObj[this.filterIndex].filterId
  379. let index = this.query.filter[key].indexOf(item.code)
  380. if(index!=-1){
  381. this.query.filter[key].splice(index,1)
  382. }else{
  383. this.query.filter[key].push(item.code)
  384. }
  385. },
  386. getTag(star){
  387. if(star == 0 ||star == 1){
  388. return {tag:'tag1',num:1}
  389. }else if(star == 2 ||star == 6){
  390. return {tag:'tag2',num:2}
  391. }if(star == 3 ||star == 7){
  392. return {tag:'tag2',num:3}
  393. }if(star == 4 ||star == 8){
  394. return {tag:'tag3',num:4}
  395. }if(star == 5 ||star == 9){
  396. return {tag:'tag3',num:5}
  397. }
  398. },
  399. moveEnd(){
  400. console.log('结束');
  401. this.query.filter.price = [this.priceValue[0]+'-'+this.priceValue[1]]
  402. // this.search()
  403. },
  404. reset(){
  405. this.query.sortKey = "recommend"
  406. this.query.filter.brand = []
  407. this.query.filter.facility = []
  408. this.query.filter.feature = []
  409. this.query.filter.star = []
  410. this.query.filter.price = []
  411. this.query.filter.poiCode = ''
  412. this.query.filter.poiKey = ""
  413. this.query.filter.latitude = this.location.latitude
  414. this.query.filter.longitude = this.location.longitude
  415. this.curPrice = ''
  416. // this.search()
  417. this.$refs.slider.updateValue(10, 2000)
  418. },
  419. submit(){
  420. this.search()
  421. this.show1 = false
  422. },
  423. chooseTab(val,type,label){
  424. if(type == 0){
  425. this.query.sortKey = val
  426. this.currentLabel = label
  427. }else if(type == 1){
  428. // 星级筛选
  429. if(this.query.filter.star.indexOf(val.data[0]) != -1){
  430. val.data.map(item=>{
  431. let index = this.query.filter.star.indexOf(item)
  432. this.query.filter.star.splice(index,1)
  433. })
  434. }else{
  435. this.query.filter.star = this.query.filter.star.concat(val.data)
  436. }
  437. }else if(type == 2){
  438. this.query.filter.poiKey = "DISTRICT"
  439. this.query.filter.poiCode = val.code
  440. this.query.filter.latitude = val.latitude
  441. this.query.filter.longitude = val.longitude
  442. }
  443. // this.search()
  444. },
  445. choosePrice(item){
  446. this.curPrice = item.max
  447. this.query.filter.price = [`${item.min}-${item.max}`]
  448. this.$refs.slider.updateValue(item.min, item.max)
  449. // this.search()
  450. },
  451. close(){},
  452. search(){
  453. this.query.start = 0
  454. this.list = []
  455. this.getHotelList()
  456. },
  457. confirm(e) {
  458. console.log(e);
  459. this.show = false
  460. if(e){
  461. console.log(this);
  462. this.day = e.length - 1
  463. this.query.checkInDate = e[0]
  464. this.query.checkOutDate = e[this.day]
  465. this.search()
  466. }
  467. },
  468. loadMore() {
  469. this.getHotelList()
  470. },
  471. jump(url){
  472. uni.navigateTo({
  473. url
  474. })
  475. },
  476. handleTab(val){
  477. this.show1 = true
  478. this.active = val
  479. },
  480. goDetail(id) {
  481. uni.navigateTo({
  482. url:`/hotel/hotelDetail?id=${id}&checkInDate=${this.query.checkInDate}&checkOutDate=${this.query.checkOutDate}&day=${this.day}`
  483. })
  484. },
  485. getHotelList(){
  486. if(this.status == 'loading') return
  487. this.status = 'loading'
  488. let query = JSON.parse(JSON.stringify(this.query))
  489. query.start = query.start*query.limit
  490. getHotelList(query).then(res=>{
  491. if(res.state == 'Success'){
  492. this.list = this.list.concat(res.content.data.hotelList)
  493. if(!this.areaList.length){
  494. let filterList = res.content.data.filter
  495. filterList.map((item,index)=>{
  496. if(item.filterName == '位置'){
  497. this.areaList = item.pros[0].filter
  498. filterList.splice(index,1)
  499. // item.pros.splice(0,1)
  500. }
  501. })
  502. this.filterObj = filterList
  503. console.log(2222222,this.filterObj);
  504. }else{
  505. this.query.returnFilter = 0
  506. }
  507. if((this.list.length) >= res.content.data.count){
  508. this.status = 'noMore'
  509. }else{
  510. this.status = 'more'
  511. this.query.start++
  512. }
  513. }
  514. }).catch(()=>{
  515. this.status = 'more'
  516. })
  517. }
  518. },
  519. onLoad(options) {
  520. this.location = JSON.parse(uni.getStorageSync('location'))
  521. this.query.keyword = options.key
  522. this.query.checkInDate = options.checkInDate
  523. this.query.checkOutDate = options.checkOutDate
  524. this.query.filter.latitude = this.location.latitude
  525. this.query.filter.longitude = this.location.longitude
  526. this.day = options.day
  527. this.getHotelList()
  528. }
  529. }
  530. </script>
  531. <style lang="scss" >
  532. .hotelList{
  533. padding: 0 24rpx;
  534. .fixed-box{
  535. position: fixed;
  536. top: 0%;
  537. left: 0%;
  538. z-index: 2;
  539. width: 100%;
  540. background: #fff;
  541. }
  542. .search-box{
  543. display: flex;
  544. align-items: center;
  545. padding: 0 24rpx;
  546. .city-box{
  547. display: flex;
  548. align-items: center;
  549. font-weight: 600;
  550. font-size: 28rpx;
  551. color: #222222;
  552. .icon{
  553. width: 30rpx;
  554. height: 30rpx;
  555. }
  556. }
  557. .input-box{
  558. width: 590rpx;
  559. height: 72rpx;
  560. background: #F6F6F6;
  561. border-radius: 32rpx;
  562. margin-left: 20rpx;
  563. padding: 0 20rpx;
  564. box-sizing: border-box;
  565. display: flex;
  566. align-items: center;
  567. .time-box{
  568. display: flex;
  569. flex-direction: column;
  570. justify-content: space-around;
  571. .time{
  572. display: flex;
  573. align-items: center;
  574. .label{
  575. font-size: 22rpx;
  576. color: #AAAAAA;
  577. }
  578. .value{
  579. font-size: 22rpx;
  580. color: #222222;
  581. padding-left: 10rpx;
  582. }
  583. }
  584. }
  585. .input{
  586. flex: 1;
  587. margin-left: 20rpx;
  588. font-size: 24rpx;
  589. color: #AAAAAA;
  590. }
  591. }
  592. }
  593. .tab-box{
  594. display: flex;
  595. align-items: center;
  596. padding: 20rpx 0;
  597. max-height: 800rpx;
  598. overflow: auto;
  599. .tab-item{
  600. flex: 1;
  601. display: flex;
  602. align-items: center;
  603. justify-content: center;
  604. font-size: 26rpx;
  605. .icon{
  606. width: 32rpx;
  607. height: 32rpx;
  608. }
  609. }
  610. .tab-item.active{
  611. color: #FF4D3A;
  612. }
  613. }
  614. .radio-box{
  615. max-height: 800rpx;
  616. overflow: auto;
  617. .radio{
  618. padding: 20rpx 0;
  619. display: flex;
  620. align-items: center;
  621. justify-content: space-between;
  622. .label{
  623. font-size: 26rpx;
  624. color: #222222;
  625. }
  626. .value{
  627. color: #FF4D3A;
  628. }
  629. }
  630. }
  631. .filter-box{
  632. display: flex;
  633. .left-box{
  634. flex: 0 0 156rpx;
  635. height: 500rpx;
  636. overflow: auto;
  637. background: #F0F0F0;
  638. .left-item{
  639. line-height: 90rpx;
  640. text-indent: 24rpx;
  641. }
  642. .left-item.active{
  643. color: #EE4320;
  644. font-weight: bold;
  645. background: #fff;
  646. }
  647. }
  648. .right-box{
  649. flex: 1;
  650. height: 500rpx;
  651. overflow: auto;
  652. background: #fff;
  653. padding: 0 20rpx;
  654. .right-item{
  655. display: flex;
  656. justify-content: space-between;
  657. align-items: center;
  658. height: 90rpx;
  659. box-sizing: border-box;
  660. border-bottom:1rpx solid #F0F0F0;
  661. .label{
  662. font-size: 26rpx;
  663. color: #222222;
  664. }
  665. .value{
  666. color: #FF4D3A;
  667. }
  668. }
  669. }
  670. }
  671. .zs-list {
  672. margin-top: 20rpx;
  673. .hotel-item.disable{
  674. filter: grayscale(1);
  675. }
  676. .hotel-item {
  677. display: flex;
  678. align-items: center;
  679. background: #fff;
  680. border-bottom: 1rpx solid #F0F0F0;
  681. padding: 14rpx 0;
  682. .info{
  683. padding-left: 20rpx;
  684. flex: 1;
  685. .title{
  686. font-weight: 600;
  687. font-size: 32rpx;
  688. color: #222222;
  689. line-height: 50rpx;
  690. // width: 300rpx;
  691. // white-space: nowrap;
  692. // overflow: hidden;
  693. // text-overflow: ellipsis;
  694. // margin-top: 20rpx;
  695. }
  696. .district{
  697. display: flex;
  698. align-items: center;
  699. font-size: 24rpx;
  700. color: #AAAAAA;
  701. margin-top: 20rpx;
  702. }
  703. .star{
  704. width: 21rpx;
  705. height: 17rpx;
  706. margin-left: 3rpx;
  707. }
  708. .distance-box{
  709. display: flex;
  710. align-items: center;
  711. justify-content: space-between;
  712. .distance{
  713. font-size: 24rpx;
  714. color: #AAAAAA;
  715. margin-top: 20rpx;
  716. }
  717. .price-box{
  718. display: flex;
  719. align-items: center;
  720. .price{
  721. font-weight: 600;
  722. font-size: 36rpx;
  723. color: #FF4D3A;
  724. }
  725. .label{
  726. font-size: 24rpx;
  727. color: #AAAAAA;
  728. }
  729. }
  730. }
  731. }
  732. }
  733. }
  734. .content{
  735. padding: 20rpx 0;
  736. .choose-box{
  737. .tab-box{
  738. display: flex;
  739. flex-wrap: wrap;
  740. .tab{
  741. width: 160rpx;
  742. height: 52rpx;
  743. line-height: 52rpx;
  744. text-align: center;
  745. background: #F0F0F0;
  746. border-radius: 8rpx 8rpx 8rpx 8rpx;
  747. font-size: 28rpx;
  748. color: #AAAAAA;
  749. box-sizing: border-box;
  750. margin-top: 20rpx;
  751. }
  752. .tab.active{
  753. background: #fff;
  754. border: 2rpx solid #EE4320;
  755. color: #EE4320;
  756. }
  757. }
  758. .price-tab-box{
  759. display: flex;
  760. flex-wrap: wrap;
  761. padding-top: 20rpx;
  762. .price-tab{
  763. width: 160rpx;
  764. height: 52rpx;
  765. line-height: 52rpx;
  766. text-align: center;
  767. background: #F0F0F0;
  768. border-radius: 8rpx 8rpx 8rpx 8rpx;
  769. font-size: 28rpx;
  770. color: #AAAAAA;
  771. box-sizing: border-box;
  772. margin-top: 20rpx;
  773. }
  774. .price-tab.active{
  775. background: #fff;
  776. border: 2rpx solid #EE4320;
  777. color: #EE4320;
  778. }
  779. }
  780. }
  781. .sub-title{
  782. font-size: 28rpx;
  783. font-weight: bold;
  784. // margin: 20rpx 0;
  785. .price-range{
  786. font-weight: 300;
  787. font-size: 28rpx;
  788. color: #EE4320;
  789. }
  790. }
  791. .mb28{
  792. margin-bottom: 28rpx!important;
  793. }
  794. .mt60{
  795. margin-top: 60rpx!important;
  796. }
  797. .zs-slider{
  798. width: 92%;
  799. // margin-bottom: 60rpx;
  800. }
  801. }
  802. .ml20{
  803. margin-left: 20rpx;
  804. }
  805. .btn-box{
  806. display: flex;
  807. align-items: center;
  808. justify-content: center;
  809. padding: 20rpx 0;
  810. .btn{
  811. width: 200rpx;
  812. height: 70rpx;
  813. line-height: 70rpx;
  814. text-align: center;
  815. border-radius: 35rpx;
  816. background: #F0F0F0;
  817. font-size: 28rpx;
  818. color: #AAAAAA;
  819. }
  820. .btn+.btn{
  821. background: #EE4320;
  822. color: #fff;
  823. margin-left: 20rpx;
  824. }
  825. }
  826. .u-safe-bottom{
  827. display: none!important;
  828. }
  829. }
  830. </style>