search.vue 22 KB

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