123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <template>
- <view class="hotel">
- <zs-img class="banner" width="750rpx" height="556rpx" src="http://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/y82Lt1MyVdPu5f5f6895568756dbbea184cccce3825b.png/1.png"></zs-img>
-
- <view class="search-box">
- <view class="address-box">
- <view class="address">
- 重庆江北国际机场T3航站楼楼楼楼楼楼楼楼
- </view>
- <image class="more" src="../../static/right.png" mode=""></image>
- <view class="nearby">
- 附近酒店
- </view>
- <image class="position" src="../../static/rePosition.png" mode=""></image>
- </view>
-
- <view class="chooose-box">
- <view class="time-box">
-
- <view class="start-time">
- 03月07日
- </view>
- <view class="day">
- 周四
- </view>
- <view class="line">
- —
- </view>
- <view class="end-time">
- 03月07日
- </view>
- <view class="day">
- 周五
- </view>
- </view>
-
- <view class="total">
- 共1晚
- <image class="more" src="@/static/right.png" mode=""></image>
- </view>
- </view>
-
- <view class="input-box">
- <input class="input" type="text" v-model="value" placeholder="搜索酒店名/地名/关键词" />
- <image class="more" src="@/static/right.png" mode=""></image>
- </view>
-
- <view class="btn-box">
- <button class="btn" type="default">特惠购票</button>
- </view>
-
- </view>
-
- <!-- 列表 -->
- <zs-list class="store-box" mt="0" @load="loadMore" :status="status">
- <view class="left">
- <view class="hotel-item" v-for="(item,index) in list" :key="index">
- <view >
- <zs-img src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/662f340632e63427d1a36a50/ext/GOODS_INFO/750_750.jpg/1.jpg?x-oss-process=image/resize,w_376" width="340rpx" height="340rpx" mode="widthFix"></zs-img>
- <view class="info">
- <view class="price-box">
- <view class="left">
- <view class="price">
- ¥580
- </view>
- </view>
-
- <view class="right">
- 评分
- </view>
- </view>
- <view class="title">
- 重庆秘境森林里温汤的的绝
- 美民宿
- </view>
- <view class="desc">
- 观山湖区
- </view>
-
- </view>
- </view>
-
- </view>
- </view>
- <view class="right">
- <view class="hotel-item" v-for="(item,index) in list" :key="index">
- <view >
- <zs-img src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/662f340632e63427d1a36a50/ext/GOODS_INFO/750_750.jpg/1.jpg?x-oss-process=image/resize,w_376" width="340rpx" height="340rpx" mode="widthFix"></zs-img>
- <view class="info">
- <view class="price-box">
- <view class="left">
- <view class="price">
- ¥580
- </view>
- </view>
-
- <view class="right">
- 评分
- </view>
- </view>
- <view class="title">
- 重庆秘境森林里温汤的的绝
- 美民宿
- </view>
- <view class="desc">
- 观山湖区
- </view>
-
- </view>
- </view>
-
- </view>
- </view>
-
- </zs-list>
-
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- value: '',
- list:9,
- list1:9,
- }
- },
- }
- </script>
- <style lang="scss" >
- .hotel{
- background: #F9F9F9;
- min-height: 100vh;
- .banner{
-
- }
- .search-box{
- padding: 28rpx 24rpx;
- width: 702rpx;
- background: #FFFFFF;
- border-radius: 16rpx 16rpx 16rpx 16rpx;
- margin: -224rpx 24rpx 20rpx;
- position: relative;
- // top: -224rpx;
- box-sizing: border-box;
- .address-box{
- display: flex;
- align-items: center;
- padding-bottom: 30rpx;
- .address{
- flex: 1;
- font-weight: 600;
- font-size: 32rpx;
- color: #222222;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .more{
- width: 48rpx;
- height: 48rpx;
- margin: 0 16rpx;
- }
- .nearby{
- font-weight: 300;
- font-size: 24rpx;
- color: #222222;
- }
- .position{
- width: 48rpx;
- height: 48rpx;
- }
- }
- .chooose-box{
- padding: 78rpx 0 24rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- border-top:1rpx solid #F0F0F0;
- border-bottom: 1rpx solid #F0F0F0;
- .time-box{
- display: flex;
- align-items: flex-end;
- .start-time,.end-time{
- font-weight: 600;
- font-size: 32rpx;
- color: #222222;
- position: relative;
- }
- .start-time::before{
- content: '入住';
- position: absolute;
- top:calc(-100% - 20rpx);
- left: 0;
- font-weight: 300;
- font-size: 24rpx;
- color: #222222;
- }
- .end-time::before{
- content: '离店';
- position: absolute;
- top:calc(-100% - 20rpx);
- left: 0;
- font-weight: 300;
- font-size: 24rpx;
- color: #222222;
- }
-
- .line{
- font-weight: 600;
- font-size: 32rpx;
- color: #222222;
- margin: 0 16rpx;
- }
- .day{
- font-weight: 300;
- font-size: 28rpx;
- color: #222222;
- margin-left: 16rpx;
- vertical-align: bottom;
- }
- }
- .total{
- display: flex;
- align-items: center;
- font-weight: 300;
- font-size: 24rpx;
- color: #222222;
- .more{
- width: 48rpx;
- height: 48rpx;
- }
- }
- }
-
- .input-box{
- position: relative;
- line-height: 84rpx;
- border-bottom: 1rpx solid #F0F0F0;
- .input{
- width: 100%;
- height: 84rpx;
- line-height: 84rpx;
- padding-right: 48rpx;
- font-size: 24rpx;
- color: #222222;
- }
- .more{
- width: 48rpx;
- height: 48rpx;
- position: absolute;
- top: 50%;
- right: 0%;
- transform: translateY(-50%);
- }
- }
- .btn-box{
- padding-top: 28rpx;
- .btn{
- height: 80rpx;
- background: #EE4320;
- border-radius: 40rpx;
- font-weight: 600;
- font-size: 28rpx;
- color: #FFFFFF;
- }
- }
- }
-
- .zs-list {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- padding: 0 24rpx;
-
- .left {
- .adv-swiper{
- width: 340rpx;
- height: 444rpx;
- margin-bottom: 25rpx;
- .adv-item{
- width: 340rpx;
- height: 444rpx;
- }
- }
- }
- .ad{
- width: 340rpx;
- border-radius: 16rpx;
- }
-
- .hotel-item {
- width: 340rpx;
- margin-bottom: 20rpx;
- // box-shadow: 0rpx 0rpx 24rpx 2rpx rgba(0, 0, 0, 0.08);
- border-radius: 16rpx;
- background: #fff;
-
- .icon {
- width: 100%;
- height: 300rpx;
- border-radius: 16rpx 16rpx 0 0;
- }
-
- .info{
- flex: 1;
- padding: 16rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- position: relative;
- .title{
- font-size: 28rpx;
- font-weight: bold;
- overflow: hidden;
- text-overflow: ellipsis;
- /* 弹性伸缩盒子模型显示 */
- display: -webkit-box;
- /* 限制在一个块元素显示的文本的行数 */
- -webkit-line-clamp: 2;
- /* 设置或检索伸缩盒对象的子元素的排列方式 */
- -webkit-box-orient: vertical;
- margin-top: 10rpx;
- }
-
- .desc{
- font-size: 24rpx;
- color: #AAAAAA;
- overflow: hidden;
- text-overflow: ellipsis;
- /* 弹性伸缩盒子模型显示 */
- display: -webkit-box;
- /* 限制在一个块元素显示的文本的行数 */
- -webkit-line-clamp: 2;
- /* 设置或检索伸缩盒对象的子元素的排列方式 */
- -webkit-box-orient: vertical;
- margin-top: 12rpx;
- }
-
- .price-box{
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 12rpx;
- .left{
- display: flex;
- align-items: flex-end;
- .unit{
- font-size: 20rpx;
- color: $uni-color-primary;
- font-weight: bold;
- }
- .price{
- font-size: 32rpx;
- color: $uni-color-primary;
- font-weight: bold;
- }
- }
- .right{
- font-size: 24rpx;
- color: #AAAAAA;
- }
- }
-
- }
- }
- }
-
- }
- </style>
|