Commit 24f3e350 authored by zhengke's avatar zhengke

修改

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