detail.vue 19 KB

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