detail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880
  1. <template>
  2. <view class="container" :style="'overflow:' + (showPage ? 'hidden' : 'visible')" v-if="info">
  3. <!-- 顶部民宿图片区域 -->
  4. <view class="banner">
  5. <img class="img" :src="info.coverImg" />
  6. <view class="slogan">
  7. <img src="../../static/index/slogan.png" />
  8. </view>
  9. </view>
  10. <!-- 民宿详细信息区域 -->
  11. <view class="detail">
  12. <view class="detail_name">{{ info.hname }}</view>
  13. <view class="detail_info">
  14. <view class="info_left">{{ info.fitupTime }}装修 | {{ info.openTime }}开业</view>
  15. <view class="info_right" @click="goPageDetailInfo">
  16. 设施/详情
  17. <img src="../../static/index/right.png" />
  18. </view>
  19. </view>
  20. <view class="detail_group">
  21. <view class="group_item" v-for="item in info.hconfigList" :key="item.id">
  22. <img :src="item.fileUrl" />
  23. {{ item.name }}
  24. </view>
  25. </view>
  26. <view class="address">
  27. <view class="address_left">{{ info.hposition }}</view>
  28. <view class="address_right">
  29. <view class="right_box" @click="handleMap(info)">
  30. <img src="../../static/index/map.png" />
  31. </view>
  32. <view class="right_box" @click="handlePhone(info.managerPhone)">
  33. <img src="../../static/index/phone.png" />
  34. </view>
  35. </view>
  36. </view>
  37. <view class="distance" v-if="distance">距离我{{ distance }}km</view>
  38. </view>
  39. <!-- 房型信息区域 -->
  40. <view class="body">
  41. <!-- 选择日期区域 -->
  42. <view class="body_header" @click="handleOpen">
  43. <view class="header_start">
  44. <view class="header_top">周{{ startTimeWeek }}入住</view>
  45. <view class="header_bottom">{{ startTimeMonth }}月{{ startTimeDay }}日</view>
  46. </view>
  47. <view class="header_night">
  48. <view class="night_line"></view>
  49. <view class="night_box">{{ nightNum }}晚</view>
  50. <view class="night_line"></view>
  51. </view>
  52. <view class="header_end">
  53. <view class="header_top">周{{ endTimeWeek }}离店</view>
  54. <view class="header_bottom">{{ endTimeMonth }}月{{ endTimeDay }}日</view>
  55. </view>
  56. </view>
  57. <!-- 日历组件 -->
  58. <uv-calendar
  59. ref="calendar"
  60. showLunar
  61. color="#096562"
  62. mode="range"
  63. :defaultDate="defaultDateMultiple"
  64. startText="住店"
  65. endText="离店"
  66. confirmDisabledText="请选择离店日期"
  67. @confirm="handleConfirm"
  68. ></uv-calendar>
  69. <!-- 房型列表区域 -->
  70. <view class="body_content" v-if="list.length">
  71. <!-- 每一个房型盒子区域 -->
  72. <view class="body_box" v-for="item in list" :key="item.id" @click="handleLookDetail(item)">
  73. <view class="box_left">
  74. <img :src="item.fileInfoList[0].url" />
  75. </view>
  76. <view class="box_center">
  77. <view class="center_top">{{ item.hName }}</view>
  78. <view class="center_center">
  79. <view class="center_item" v-if="item.hAreas">{{ item.hAreas }}㎡</view>
  80. <!-- <view class="center_item">大床</view>
  81. <view class="center_item">无早</view> -->
  82. </view>
  83. <view class="center_bottom">
  84. <img v-for="item2 in item.hConfigList" :key="item2.id" class="img" :src="item2.fileUrl" />
  85. </view>
  86. </view>
  87. <view class="box_right">
  88. <view class="right_price">
  89. <text>¥</text>
  90. {{ item.price }}
  91. </view>
  92. <view class="right_btn" :class="{ inactive: item.remainRooms * 1 <= 0 }" @click.stop="goPageAffOrder(item)">订</view>
  93. </view>
  94. </view>
  95. <!-- 点击房型弹窗区域 -->
  96. <uv-popup ref="popup" bgColor="none" :safeAreaInsetBottom="false">
  97. <view class="body_pop">
  98. <!-- 轮播图区域 -->
  99. <swiper indicator-dots circular indicator-color="#FFFFFF" indicator-active-color="#096562" class="pop_swiper">
  100. <swiper-item class="pop_swiper_item" v-for="item in roomInfo.fileInfoList" :key="item.id">
  101. <img class="img" :src="item.url" />
  102. </swiper-item>
  103. </swiper>
  104. <!-- 轮播图关闭图标区域 -->
  105. <img class="pop_icon" src="../../static/index/close.png" @click="handleClosePop" />
  106. <view class="pop_body">
  107. <view class="body_title">{{ roomInfo.hName }}</view>
  108. <view class="body_tags">
  109. <view class="tags_item">
  110. <img class="img" src="../../static/index/place.png" />
  111. {{ roomInfo.hAreas }}㎡
  112. </view>
  113. <view class="tags_item" v-for="item2 in roomInfo.hConfigList" :key="item2.id">
  114. <img class="img" :src="item2.fileUrl" />
  115. {{ item2.name }}
  116. </view>
  117. </view>
  118. <view class="body_title2">费用明细</view>
  119. <view class="body_detail">
  120. <!-- <view class="detail_old">¥{{ roomInfo.price }}</view> -->
  121. <!-- <view class="detail_box">
  122. 黄金会员9折
  123. <text>-¥25</text>
  124. </view>
  125. <view class="detail_box">
  126. 活动
  127. <text>-¥2.5</text>
  128. </view> -->
  129. <view class="detail_new">
  130. 每间每晚
  131. <view class="ml_10 color">¥</view>
  132. <view class="price color">{{ roomInfo.price }}</view>
  133. </view>
  134. </view>
  135. <view class="body_bottom">
  136. <view class="bottom_left" @click="handlePhone(info.managerPhone)">
  137. <img class="img" src="../../static/index/phone2.png" />
  138. 联系商家
  139. </view>
  140. <view class="bottom_right">
  141. <text>¥</text>
  142. {{ roomInfo.price }}
  143. <view class="btn" :class="{ inactive: roomInfo.remainRooms * 1 <= 0 }" @click="goPageAffOrder(roomInfo)">预定</view>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. </uv-popup>
  149. </view>
  150. <view class="noData" v-else>
  151. <img src="../../static/images/noData.png" />
  152. 暂无数据
  153. </view>
  154. </view>
  155. </view>
  156. </template>
  157. <script>
  158. export default {
  159. data() {
  160. return {
  161. // 滚动穿透控制
  162. showPage: false,
  163. // 房型数据数组
  164. list: [],
  165. // 住几晚
  166. nightNum: 1,
  167. // 入住时间-月
  168. startTimeMonth: '',
  169. // 入住时间-日
  170. startTimeDay: '',
  171. // 入住时间-星期
  172. startTimeWeek: '',
  173. // 离店时间-月
  174. endTimeMonth: '',
  175. // 离店时间-日
  176. endTimeDay: '',
  177. // 离店时间-星期
  178. endTimeWeek: '',
  179. // 日历默认选择日期
  180. defaultDateMultiple: [],
  181. // 酒店信息
  182. info: null,
  183. // 房间信息
  184. roomInfo: {},
  185. // 民宿Id
  186. hotelId: '',
  187. // 是否有定位权限
  188. showLocation: false,
  189. distance: '',
  190. queryStartTime: '',
  191. queryEndTime: ''
  192. }
  193. },
  194. onLoad(options) {
  195. this.getTimes()
  196. this.hotelId = options.id
  197. this.distance = options.distance === 'undefined' ? false : options.distance
  198. uni.getSetting({
  199. success: (res) => {
  200. this.showLocation = res.authSetting['scope.userLocation']
  201. this.getHotelInfo()
  202. }
  203. })
  204. },
  205. methods: {
  206. async getHotelInfo() {
  207. const res = await this.$myRequest({
  208. url: '/mhotel/ahpgetHouseByHotelId.action',
  209. data: {
  210. hotelId: this.hotelId,
  211. queryStartTime: this.queryStartTime,
  212. queryEndTime: this.queryEndTime
  213. }
  214. })
  215. // console.log(res)
  216. if (res.code === 200) {
  217. this.info = res.data.data
  218. this.list = res.data.data.houseList
  219. }
  220. },
  221. // 点击地图图标回调
  222. handleMap(item) {
  223. if (this.showLocation) {
  224. let lat = item.hpositionWens.split(',')[0] * 1
  225. let lng = item.hpositionWens.split(',')[1] * 1
  226. uni.openLocation({
  227. latitude: lat,
  228. longitude: lng,
  229. name: item.hname,
  230. address: item.hposition,
  231. success: () => {}
  232. })
  233. } else {
  234. uni.showModal({
  235. content: '当前没有定位权限,是否去设置打开?',
  236. confirmText: '确认',
  237. cancelText: '取消',
  238. success: (res) => {
  239. if (res.confirm) {
  240. uni.openSetting({
  241. success: (res) => {
  242. this.showLocation = true
  243. this.handleMap(item)
  244. }
  245. })
  246. } else {
  247. uni.showToast({
  248. title: '获取定位权限失败,无法使用地图功能',
  249. icon: 'none',
  250. mask: true
  251. })
  252. }
  253. }
  254. })
  255. }
  256. },
  257. // 点击电话图标回调
  258. handlePhone(phone) {
  259. uni.makePhoneCall({
  260. phoneNumber: phone
  261. })
  262. },
  263. // 点击弹窗关闭图标回调
  264. handleClosePop() {
  265. this.showPage = false
  266. this.$refs.popup.close()
  267. },
  268. // 点击每一个户型回调
  269. handleLookDetail(item) {
  270. console.log(item)
  271. this.roomInfo = item
  272. this.showPage = true
  273. this.$refs.popup.open('bottom')
  274. },
  275. // 点击设施详情回调
  276. goPageDetailInfo() {
  277. uni.navigateTo({
  278. url: `/pages/detailInfo/detailInfo?hotelId=${this.hotelId}`
  279. })
  280. },
  281. // 点击 订 预定 按钮回调
  282. goPageAffOrder(item) {
  283. let flag = uni.getStorageSync('openid')
  284. if (flag) {
  285. if (item.remainRooms * 1 > 0) {
  286. this.$refs.popup.close()
  287. this.showPage = false
  288. let info = JSON.stringify({
  289. nightNum: this.nightNum,
  290. startTimeDay: this.startTimeDay,
  291. startTimeMonth: this.startTimeMonth,
  292. startTimeWeek: this.startTimeWeek,
  293. endTimeDay: this.endTimeDay,
  294. endTimeMonth: this.endTimeMonth,
  295. endTimeWeek: this.endTimeWeek,
  296. item: item,
  297. queryStartTime: this.queryStartTime,
  298. queryEndTime: this.queryEndTime,
  299. dayList: this.defaultDateMultiple
  300. })
  301. uni.navigateTo({
  302. url: `/pages/affirmOrder/affirmOrder?info=${info}`
  303. })
  304. } else {
  305. uni.showToast({
  306. title: '该房间已售罄',
  307. icon: 'none',
  308. mask: true
  309. })
  310. }
  311. } else {
  312. uni.showToast({
  313. title: '请先登录',
  314. icon: 'none',
  315. mask: true
  316. })
  317. setTimeout(() => {
  318. uni.navigateTo({
  319. url: '/pages/login/login'
  320. })
  321. }, 1500)
  322. }
  323. },
  324. // 点击日期区域回调
  325. handleOpen() {
  326. this.$refs.calendar.open()
  327. },
  328. // 选择日历确定按钮回调
  329. handleConfirm(e) {
  330. this.defaultDateMultiple = e
  331. this.queryStartTime = e[0]
  332. this.queryEndTime = e[e.length - 1]
  333. this.getHotelInfo()
  334. this.startTimeWeek = this.getWeek(e[0])
  335. this.endTimeWeek = this.getWeek(e[e.length - 1])
  336. let temStart = e[0].split('-')
  337. let temEnd = e[e.length - 1].split('-')
  338. this.startTimeMonth = temStart[1]
  339. this.startTimeDay = temStart[2]
  340. this.endTimeMonth = temEnd[1]
  341. this.endTimeDay = temEnd[2]
  342. this.nightNum = e.length - 1
  343. },
  344. // 获取今明两天的日期,星期
  345. getTimes() {
  346. let weekList = ['日', '一', '二', '三', '四', '五', '六']
  347. //今天的日期
  348. let today = new Date()
  349. this.startTimeWeek = weekList[today.getDay()]
  350. this.startTimeMonth = (today.getMonth() + 1).toString().padStart(2, 0)
  351. this.startTimeDay = today.getDate().toString().padStart(2, 0)
  352. //明天的日期
  353. let tomorrow = new Date()
  354. tomorrow.setTime(tomorrow.getTime() + 24 * 60 * 60 * 1000)
  355. this.endTimeWeek = weekList[tomorrow.getDay()]
  356. this.endTimeMonth = (tomorrow.getMonth() + 1).toString().padStart(2, 0)
  357. this.endTimeDay = tomorrow.getDate().toString().padStart(2, 0)
  358. // 日历默认选择的日期
  359. this.defaultDateMultiple = [`${today.getFullYear()}-${this.startTimeMonth}-${this.startTimeDay}`, `${tomorrow.getFullYear()}-${this.endTimeMonth}-${this.endTimeDay}`]
  360. this.queryStartTime = this.defaultDateMultiple[0]
  361. this.queryEndTime = this.defaultDateMultiple[1]
  362. },
  363. // 传入参数获取当前是星期几
  364. getWeek(time) {
  365. let date = new Date(time)
  366. let week = date.getDay()
  367. let weekList = ['日', '一', '二', '三', '四', '五', '六']
  368. return weekList[week]
  369. }
  370. }
  371. }
  372. </script>
  373. <style lang="scss" scoped>
  374. .container {
  375. display: flex;
  376. flex-direction: column;
  377. position: relative;
  378. min-height: 100vh;
  379. background-color: #ebeced;
  380. .banner {
  381. position: relative;
  382. margin-top: 20rpx;
  383. width: 750rpx;
  384. height: 422rpx;
  385. .img {
  386. width: 100%;
  387. height: 100%;
  388. }
  389. .slogan {
  390. position: absolute;
  391. top: 0;
  392. left: 0;
  393. display: flex;
  394. justify-content: center;
  395. align-items: center;
  396. width: 163rpx;
  397. height: 60rpx;
  398. background-color: rgba(255, 255, 255, 0.4);
  399. img {
  400. width: 125rpx;
  401. height: 44rpx;
  402. }
  403. }
  404. }
  405. .detail {
  406. z-index: 1;
  407. float: left;
  408. margin: auto;
  409. margin-top: -177rpx;
  410. box-sizing: border-box;
  411. padding: 0 30rpx 30rpx;
  412. width: 710rpx;
  413. border-radius: 10rpx;
  414. background-color: #fff;
  415. .detail_name {
  416. margin-top: 25rpx;
  417. font-size: 34rpx;
  418. font-weight: bold;
  419. }
  420. .detail_info {
  421. display: flex;
  422. justify-content: space-between;
  423. margin-top: 10rpx;
  424. .info_left {
  425. color: #999999;
  426. font-size: 20rpx;
  427. }
  428. .info_right {
  429. display: flex;
  430. align-items: center;
  431. color: #096562;
  432. font-size: 24rpx;
  433. img {
  434. margin-left: 6rpx;
  435. width: 10rpx;
  436. height: 20rpx;
  437. }
  438. }
  439. }
  440. .detail_group {
  441. display: flex;
  442. flex-wrap: wrap;
  443. margin-top: 5rpx;
  444. width: 450rpx;
  445. .group_item {
  446. display: flex;
  447. align-items: center;
  448. margin-right: 10rpx;
  449. margin-bottom: 10rpx;
  450. color: #999999;
  451. font-size: 20rpx;
  452. img {
  453. margin-right: 5rpx;
  454. width: 22rpx;
  455. height: 22rpx;
  456. }
  457. }
  458. }
  459. .address {
  460. display: flex;
  461. justify-content: space-between;
  462. margin-top: 8rpx;
  463. font-size: 28rpx;
  464. font-weight: bold;
  465. .address_left {
  466. width: 480rpx;
  467. overflow: hidden;
  468. text-overflow: ellipsis;
  469. white-space: nowrap;
  470. }
  471. .address_right {
  472. display: flex;
  473. .right_box {
  474. margin-left: 28rpx;
  475. width: 50rpx;
  476. height: 78rpx;
  477. img {
  478. width: 100%;
  479. height: 100%;
  480. }
  481. }
  482. }
  483. }
  484. .distance {
  485. margin-top: -35rpx;
  486. color: #999999;
  487. font-size: 24rpx;
  488. }
  489. }
  490. .body {
  491. float: left;
  492. margin: auto;
  493. margin-top: 20rpx;
  494. padding-bottom: 30rpx;
  495. width: 710rpx;
  496. border-radius: 10rpx;
  497. background-color: #fff;
  498. .body_header {
  499. display: flex;
  500. justify-content: space-around;
  501. box-sizing: border-box;
  502. padding: 0 30rpx;
  503. height: 150rpx;
  504. .header_start {
  505. display: flex;
  506. flex-direction: column;
  507. justify-content: center;
  508. align-items: center;
  509. width: 213rpx;
  510. height: 150rpx;
  511. .header_top {
  512. margin-bottom: 10rpx;
  513. color: #999999;
  514. font-size: 24rpx;
  515. }
  516. .header_bottom {
  517. font-size: 34rpx;
  518. font-weight: bold;
  519. }
  520. }
  521. .header_night {
  522. display: flex;
  523. justify-content: center;
  524. align-items: center;
  525. .night_line {
  526. width: 17rpx;
  527. height: 1rpx;
  528. background-color: #296de3;
  529. }
  530. .night_box {
  531. display: flex;
  532. align-items: center;
  533. justify-content: center;
  534. width: 81rpx;
  535. height: 46rpx;
  536. font-size: 24rpx;
  537. border-radius: 66rpx;
  538. border: 1rpx solid #296de3;
  539. }
  540. }
  541. .header_end {
  542. display: flex;
  543. flex-direction: column;
  544. justify-content: center;
  545. align-items: center;
  546. width: 213rpx;
  547. height: 150rpx;
  548. .header_top {
  549. margin-bottom: 10rpx;
  550. color: #999999;
  551. font-size: 24rpx;
  552. }
  553. .header_bottom {
  554. font-size: 34rpx;
  555. font-weight: bold;
  556. }
  557. }
  558. }
  559. .body_content {
  560. .body_box {
  561. box-sizing: border-box;
  562. padding: 0 30rpx;
  563. margin-bottom: 30rpx;
  564. display: flex;
  565. height: 193rpx;
  566. border-bottom: 1rpx solid #cccccc;
  567. .box_left {
  568. width: 213rpx;
  569. height: 161rpx;
  570. border-radius: 5rpx;
  571. img {
  572. width: 100%;
  573. height: 100%;
  574. }
  575. }
  576. .box_center {
  577. margin-left: 16rpx;
  578. .center_top {
  579. font-size: 34rpx;
  580. font-weight: bold;
  581. }
  582. .center_center {
  583. display: flex;
  584. flex-wrap: wrap;
  585. margin-top: 10rpx;
  586. color: #999999;
  587. font-size: 24rpx;
  588. .center_item {
  589. margin-right: 15rpx;
  590. }
  591. }
  592. .center_bottom {
  593. margin-top: 25rpx;
  594. .img {
  595. margin-right: 15rpx;
  596. width: 30rpx;
  597. height: 30rpx;
  598. }
  599. }
  600. }
  601. .box_right {
  602. display: flex;
  603. flex-direction: column;
  604. align-items: flex-end;
  605. margin-left: auto;
  606. margin-top: 20rpx;
  607. .right_price {
  608. color: #ff5733;
  609. font-size: 42rpx;
  610. text {
  611. font-size: 24rpx;
  612. }
  613. }
  614. .right_btn {
  615. display: flex;
  616. justify-content: center;
  617. align-items: center;
  618. margin-top: 10rpx;
  619. width: 100rpx;
  620. height: 66rpx;
  621. color: #fff;
  622. font-size: 36rpx;
  623. border-radius: 11rpx;
  624. background-color: #096562;
  625. }
  626. .inactive {
  627. background-color: #cccccc;
  628. }
  629. }
  630. }
  631. .body_pop {
  632. position: relative;
  633. height: 955rpx;
  634. border-radius: 22rpx 22rpx 0 0;
  635. background-color: #fff;
  636. overflow-y: auto;
  637. .pop_swiper {
  638. height: 422rpx;
  639. border-radius: 22rpx 22rpx 0 0;
  640. .pop_swiper_item {
  641. width: 100%;
  642. height: 100%;
  643. .img {
  644. width: 100%;
  645. height: 100%;
  646. border-radius: 22rpx 22rpx 0 0;
  647. }
  648. }
  649. }
  650. .pop_icon {
  651. position: absolute;
  652. top: 20rpx;
  653. right: 30rpx;
  654. width: 58rpx;
  655. height: 58rpx;
  656. }
  657. .pop_body {
  658. box-sizing: border-box;
  659. padding: 0 20rpx 30rpx;
  660. .body_title {
  661. margin-top: 30rpx;
  662. font-size: 32rpx;
  663. font-weight: bold;
  664. }
  665. .body_tags {
  666. display: flex;
  667. flex-wrap: wrap;
  668. margin-top: 20rpx;
  669. .tags_item {
  670. display: flex;
  671. align-items: center;
  672. margin-right: 76rpx;
  673. margin-bottom: 20rpx;
  674. color: #383838;
  675. font-size: 24rpx;
  676. .img {
  677. margin-right: 5rpx;
  678. width: 28rpx;
  679. height: 28rpx;
  680. }
  681. }
  682. }
  683. .body_title2 {
  684. margin-top: 20rpx;
  685. font-size: 28rpx;
  686. }
  687. .body_detail {
  688. display: flex;
  689. flex-direction: column;
  690. justify-content: space-between;
  691. // align-items: flex-end;
  692. box-sizing: border-box;
  693. padding: 20rpx 30rpx;
  694. margin-top: 18rpx;
  695. width: 710rpx;
  696. height: 266rpx;
  697. font-size: 24rpx;
  698. border-radius: 7rpx;
  699. background-color: #f2f2f2;
  700. .detail_old {
  701. text-align: end;
  702. text-decoration: line-through;
  703. }
  704. .detail_box {
  705. display: flex;
  706. justify-content: space-between;
  707. color: #808080;
  708. text {
  709. color: #ff5733;
  710. }
  711. }
  712. .detail_new {
  713. display: flex;
  714. justify-content: flex-end;
  715. align-items: center;
  716. font-size: 24rpx;
  717. .color {
  718. color: #ff5733;
  719. }
  720. .price {
  721. font-size: 36rpx;
  722. }
  723. .ml_10 {
  724. margin-left: 10rpx;
  725. }
  726. }
  727. }
  728. .body_bottom {
  729. display: flex;
  730. justify-content: space-between;
  731. align-items: center;
  732. margin-top: 250rpx;
  733. height: 80rpx;
  734. .bottom_left {
  735. display: flex;
  736. align-items: center;
  737. color: #333333;
  738. font-size: 24rpx;
  739. .img {
  740. margin-right: 10rpx;
  741. width: 48rpx;
  742. height: 48rpx;
  743. }
  744. }
  745. .bottom_right {
  746. display: flex;
  747. align-items: center;
  748. color: #ff5733;
  749. font-size: 40rpx;
  750. font-weight: bold;
  751. text {
  752. font-size: 24rpx;
  753. }
  754. .btn {
  755. display: flex;
  756. justify-content: center;
  757. align-items: center;
  758. margin-left: 30rpx;
  759. width: 238rpx;
  760. height: 80rpx;
  761. color: #fff;
  762. font-size: 32rpx;
  763. font-weight: 400;
  764. border-radius: 64rpx;
  765. background-color: #096562;
  766. }
  767. .inactive {
  768. background-color: #cccccc;
  769. }
  770. }
  771. }
  772. }
  773. }
  774. }
  775. .noData {
  776. display: flex;
  777. flex-direction: column;
  778. justify-content: center;
  779. align-items: center;
  780. padding-bottom: 20rpx;
  781. img {
  782. margin-top: 60rpx;
  783. width: 600rpx;
  784. height: 600rpx;
  785. }
  786. }
  787. }
  788. }
  789. </style>