<template>
  <view class="hotelFacilitiesXinXi">
    <!--:style="{background: `url(${dataList.HotelImg[0].Path}) no-repeat`}"-->
        <view class="hotelInforBox">
        <image class="hotelInforBoxBj" mode="aspectFill" :src="dataList.rooms[0].Path?dataList.rooms[0].Path:dataList.images[0].url" />
        <view class="hotelInforCenterBox">
            <view class="hotelInforTitle">
              {{ dataList.name }}
            </view>
            <view class="hotelInforCenter column">
              <!--
                <view class="hotelInforCB row-sb-n">
                  <view class="hotelInforCBL">开业时间：<text>2015年</text></view>
                  <view class="hotelInforCBR">房间数量：<text>238间</text></view>
                </view>-->
                <view class="hotelInforCB row-sb-n">
                <view class="hotelInforCBL">酒店等级：
                    <img class="hotelInforStar"
                    v-for="(item,index) in dataList.starRating" 
                    :key="index" 
                    src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638762795578682801.png"/>
                    
                </view>
                <!--<view class="hotelInforCBR">总楼层数：<text>31楼</text></view>-->
                </view>
                <view class="hotelInforCB">
                联系电话：
                  <text>
                      {{dataList.telephone}}
                  </text>
                  <img v-if="dataList.telephone&&dataList.telephone.length<12"
                    class="hotelInforPhone" 
                    src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638763341462574374.png"/>
                </view>
                <view class="row hotelInforCAddress">
                <view>详细地址：</view>
                <view class="hotelInforCAddressL">
                    {{ dataList.location.address }}
                </view>
                </view>
            </view>
            </view>
        </view>  
    
    </view>
</template>

<script>
export default {
    props: ['dataList'],
    data() {
        return {
        
        };
    },
    onLoad(options) {
        
    },
    created() {
        
    },
    methods: {
    
    },
};
</script>

<style scoped>
@import url("@/asset/css/flex.css");
.hotelFacilitiesXinXi{
    padding: 30rpx 31rpx 40rpx 31rpx;
    border-bottom: 1rpx solid #E9E9E9;
  }
  .hotelInforBox{
    background-size: 100% 100%;
    position: relative;
    border-radius: 34rpx 34rpx 14rpx 14rpx;
    overflow: hidden;
  }
  .hotelInforBoxBj{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
  }
  .hotelInforCenterBox{
    background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotelinfobj.png')no-repeat;
    background-size: 100% 100%;
    padding: 46rpx 25rpx 44rpx 25rpx;
    position: relative;
    z-index: 1;
  }
  .hotelInforTitle{
    font-weight: bold;
    font-size: 32rpx;
    color: #F3F1EF;
    padding-bottom: 43rpx;
  }
  .hotelInforCenter{
    background: rgba(23,23,23,.7);
    border-radius: 34rpx 34rpx 14rpx 14rpx;
    padding: 36rpx 32rpx 77rpx 32rpx;
    color: #fff;
    font-size: 24rpx;
  }
  .hotelInforStar{
    width:24rpx;
    height:22rpx;
    margin-right: 5rpx;
    position: relative;
    top:3rpx;
  }
  .hotelInforPhone{
    width: 27rpx;
    height:30rpx;
    margin-left: 25rpx;
    position: relative;
    top:3rpx;
  }
  .hotelInforCAddress{
    margin-top: 20rpx;
    letter-spacing: 1rpx;
    line-height: 42rpx;
  }
  .hotelInforCB{
    margin-top: 20rpx;
    letter-spacing: 1rpx;
  }
  .hotelInforCB:first-child{
    margin-top: 0;
  }
  .hotelInforCAddressL{
    width: 1px;
    flex: 1;
  } 
  .hotelInforCBL{
    width: 300rpx;
  }
  .hotelInforCBR{
    flex: 1;
  }
</style>
