detail.vue 20 KB

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