| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <template>
- <view class="container">
- <!-- 顶部民宿图片区域 -->
- <view class="banner">
- <img class="img" src="../../static/index/banner.png" />
- <view class="slogan">
- <img src="../../static/index/slogan.png" />
- </view>
- </view>
- <!-- 民宿详细信息区域 -->
- <view class="detail">
- <view class="detail_name">民宿名称</view>
- <view class="detail_info">
- <view class="info_left">2021年装修|2023年开业</view>
- <view class="info_right">
- 设施/详情
- <img src="../../static/index/right.png" />
- </view>
- </view>
- <view class="detail_group">
- <view class="group_item">
- <img src="../../static/index/meeting.png" />
- 会议室
- </view>
- <view class="group_item">
- <img src="../../static/index/brekker.png" />
- 含早
- </view>
- <view class="group_item">
- <img src="../../static/index/parking.png" />
- 免费停车场
- </view>
- </view>
- <view class="address">
- <view class="address_left">宜春市靖安县北高速路口什么路899号</view>
- <view class="address_right">
- <view class="right_box">
- <img src="../../static/index/map.png" />
- </view>
- <view class="right_box">
- <img src="../../static/index/phone.png" />
- </view>
- </view>
- </view>
- <view class="distance">距离我520km</view>
- </view>
- <!-- 房型信息区域 -->
- <view class="body">
- <view class="body_header">123</view>
- <view class="body_content">456</view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {}
- },
- onLoad(options) {
- // console.log(JSON.parse(options.info))
- }
- }
- </script>
- <style lang="scss" scoped>
- .container {
- display: flex;
- flex-direction: column;
- position: relative;
- min-height: 100vh;
- background-color: #ebeced;
- .banner {
- position: relative;
- margin-top: 20rpx;
- width: 750rpx;
- height: 422rpx;
- .img {
- width: 100%;
- height: 100%;
- }
- .slogan {
- position: absolute;
- top: 0;
- left: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 163rpx;
- height: 60rpx;
- background-color: rgba(255, 255, 255, 0.4);
- img {
- width: 125rpx;
- height: 44rpx;
- }
- }
- }
- .detail {
- position: absolute;
- top: 265rpx;
- left: 20rpx;
- box-sizing: border-box;
- padding: 0 30rpx;
- width: 710rpx;
- height: 254rpx;
- border-radius: 10rpx;
- background-color: #fff;
- .detail_name {
- margin-top: 25rpx;
- font-size: 34rpx;
- font-weight: bold;
- }
- .detail_info {
- display: flex;
- justify-content: space-between;
- margin-top: 10rpx;
- .info_left {
- color: #999999;
- font-size: 20rpx;
- }
- .info_right {
- display: flex;
- align-items: center;
- color: #096562;
- font-size: 24rpx;
- img {
- margin-left: 6rpx;
- width: 10rpx;
- height: 20rpx;
- }
- }
- }
- .detail_group {
- display: flex;
- flex-wrap: wrap;
- margin-top: 5rpx;
- .group_item {
- display: flex;
- align-items: center;
- margin-right: 10rpx;
- color: #999999;
- font-size: 20rpx;
- img {
- margin-right: 5rpx;
- width: 22rpx;
- height: 22rpx;
- }
- }
- }
- .address {
- display: flex;
- justify-content: space-between;
- margin-top: 8rpx;
- font-size: 28rpx;
- font-weight: bold;
- .address_left {
- width: 480rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .address_right {
- display: flex;
- .right_box {
- margin-left: 28rpx;
- width: 50rpx;
- height: 78rpx;
- img {
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- .distance {
- margin-top: -35rpx;
- color: #999999;
- font-size: 24rpx;
- }
- }
- .body {
- position: absolute;
- top: 539rpx;
- left: 20rpx;
- width: 710rpx;
- border-radius: 10rpx;
- background-color: #fff;
- .body_header {
- height: 150rpx;
- border-radius: 10rpx 10rpx 0 0;
- background-color: skyblue;
- }
- .body_content {
- }
- }
- }
- </style>
|