detail.vue 19 KB

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