Commit 24f3e350 authored by zhengke's avatar zhengke

修改

parent d5a8ebd0
......@@ -9,9 +9,8 @@
<view class="hotel-start">
<!-- TODO:判定是否为星级酒店,如果是显示星级,不是,显示另外一种方式 -->
<view class="rate" v-if="item.Star>=1&&item.Star<=5">
<u-rate active-color="#FEB969" inactive-color="#FFF" is-fill="true" :current="item.Star" active-icon="star"
inactive-icon="star" disabled :count="5"></u-rate>
<text style="margin-left: 20rpx;vertical-align: top;">{{item.StarName}}</text>
<u-rate active-color="#FEB969" inactive-color="#b2b2b2" :current="item.Star" active-icon="star" inactive-icon="star" disabled></u-rate>
<text style="margin-left: 20rpx;vertical-align: top;">{{item.Star+'.0'}}</text>
</view>
<view class="other-rate" v-if="item.Star==9">
<text>温泉酒店</text>
......@@ -24,8 +23,8 @@
</view>
<view class="localtion">{{item.Address}}</view>
<view>
<u-tag v-for="(subItem,subIndex) in item.TagList" :key="subIndex" style="margin-right:10rpx;" :text="subItem"
bg-color="#FFF" border-color="#DFBE6E" color="#DFBE6E" size="mini"></u-tag>
<u-tag v-for="(subItem,subIndex) in item.TagList" :key="subIndex" style="margin-right:10rpx;" :text="subItem" bg-color="#FFF" border-color="#DFBE6E" color="#DFBE6E"
size="mini"></u-tag>
</view>
<view class="price">
<text></text>
......@@ -44,13 +43,13 @@
type: Array,
default: null
},
dayObj: {
dayObj:{
type: Object,
default: null
},
searchObj: {
type: Object,
default: null
searchObj:{
type:Object,
default:null
}
},
data() {
......@@ -61,17 +60,11 @@
created() {
console.log(this.HotelList, 'hotel');
},
methods: {
getStar(num) {
if (num) {
return num.toFixed(1);
}
return 0.0;
},
goHotelDetail(id) {
methods:{
goHotelDetail(id){
let myDayObj = JSON.stringify(this.dayObj);
uni.navigateTo({
url: "/pages/hotel/detail?id=" + id + '&dayObj=' + myDayObj + '&searchObj=' + JSON.stringify(this.searchObj)
url: "/pages/hotel/detail?id=" + id + '&dayObj=' + myDayObj+'&searchObj='+JSON.stringify(this.searchObj)
});
}
}
......@@ -84,7 +77,7 @@
padding-bottom: 30rpx;
border-bottom: 1rpx solid #E2E2E2;
display: flex;
align-items: center;
align-items: flex-start;
}
.hotel-list-item .img-box {
......@@ -102,6 +95,7 @@
.hotel-list-item .hotel-info {
width: 1px;
flex: 1;
margin-top:20rpx;
}
.hotel-list-item .hotel-info .hotel-name {
......@@ -123,6 +117,8 @@
font-weight: 500;
color: #999999;
line-height: 30rpx;
display: flex;
align-items: center;
}
.hotel-list-item .hotel-info .hotel-start .other-rate {
......
......@@ -423,6 +423,7 @@
font-weight: 500;
color: #111111;
line-height: 29rpx;
margin-top:-6px;
}
.hotel-list .search-box .days {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment