Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
24f3e350
Commit
24f3e350
authored
Jun 02, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d5a8ebd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
19 deletions
+16
-19
hotel-good.vue
pages/hotel/components/hotel-good.vue
+15
-19
list.vue
pages/hotel/list.vue
+1
-0
No files found.
pages/hotel/components/hotel-good.vue
View file @
24f3e350
...
...
@@ -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
:
30
rpx
;
border-bottom
:
1
rpx
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
:
20
rpx
;
}
.hotel-list-item
.hotel-info
.hotel-name
{
...
...
@@ -123,6 +117,8 @@
font-weight
:
500
;
color
:
#999999
;
line-height
:
30
rpx
;
display
:
flex
;
align-items
:
center
;
}
.hotel-list-item
.hotel-info
.hotel-start
.other-rate
{
...
...
pages/hotel/list.vue
View file @
24f3e350
...
...
@@ -423,6 +423,7 @@
font-weight
:
500
;
color
:
#111111
;
line-height
:
29
rpx
;
margin-top
:
-6px
;
}
.hotel-list
.search-box
.days
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment