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
397d38e7
Commit
397d38e7
authored
Apr 23, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'B2C' of
http://gitlab.oytour.com/zk123/jz_travel
into B2C
parents
66da1f5f
efa824d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
hotel-good.vue
pages/hotel/components/hotel-good.vue
+8
-5
detail.vue
pages/hotel/detail.vue
+11
-5
No files found.
pages/hotel/components/hotel-good.vue
View file @
397d38e7
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
</view>
</view>
<view
class=
"hotel-info column"
>
<view
class=
"hotel-info column"
>
<view
class=
"hotel-name row items-center"
>
<view
class=
"hotel-name row items-center"
>
<img
v-if=
"item.starRating>=3"
class=
"hotel-SubR"
<img
class=
"hotel-SubR"
:class=
"[item.starRating==3?'hotel-SubStar3':item.starRating==4?'hotel-SubStar4':item.starRating==5?'hotel-SubStar5':'']"
:class=
"[item.starRating==3?'hotel-SubStar3':item.starRating==4?'hotel-SubStar4':item.starRating==5?'hotel-SubStar5':'
hotel-SubStar2
']"
:src=
"item.starRating==3?StarImgs[0]:item.starRating==4?StarImgs[1]:item.starRating==5?StarImgs[2]:
''
"
/>
:src=
"item.starRating==3?StarImgs[0]:item.starRating==4?StarImgs[1]:item.starRating==5?StarImgs[2]:
StarImgs[3]
"
/>
<
text
v-else
class=
"hotel-Economy"
>
经济型
</text
>
<
!--
<text
v-else
class=
"hotel-Economy"
>
经济型
</text>
--
>
{{
item
.
name
}}
{{
item
.
name
}}
</view>
</view>
<view
class=
"hotel-Subtitle row"
>
<view
class=
"hotel-Subtitle row"
>
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel3stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel3stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel4stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel4stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel5stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel5stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638809441661552596.png'
,
],
],
myDayObj
:
null
,
myDayObj
:
null
,
}
}
...
@@ -239,7 +240,9 @@
...
@@ -239,7 +240,9 @@
height
:
35
rpx
;
height
:
35
rpx
;
display
:
block
;
display
:
block
;
}
}
.hotel-SubStar2
img
{
width
:
74
rpx
;
}
.hotel-SubStar3
img
{
.hotel-SubStar3
img
{
width
:
74
rpx
;
width
:
74
rpx
;
}
}
...
...
pages/hotel/detail.vue
View file @
397d38e7
...
@@ -66,10 +66,10 @@
...
@@ -66,10 +66,10 @@
<view
style=
"flex: 1"
>
<view
style=
"flex: 1"
>
<view
class=
"hotel-name"
>
<view
class=
"hotel-name"
>
<img
class=
"hotel-Sub"
<img
class=
"hotel-Sub"
:class=
"[dataList.starRating==3?'hotel-Sub3':dataList.starRating==4?'hotel-Sub4':
'
']"
:class=
"[dataList.starRating==3?'hotel-Sub3':dataList.starRating==4?'hotel-Sub4':
dataList.starRating==5?'hotel-Sub5':'hotel-Sub2
']"
v-if=
"dataList.starRating>=3&&dataList.starRating
<6
"
style=
""
style=
""
:src=
"dataList.starRating==3?StarImgs[0]:dataList.starRating==4?StarImgs[1]:
StarImgs[2
]"
/>
:src=
"dataList.starRating==3?StarImgs[0]:dataList.starRating==4?StarImgs[1]:
dataList.starRating==5?StarImgs[2]:StarImgs[3
]"
/>
<
text
v-else
class=
"hotel-Economy"
>
经济型
</text
>
<
!--
<text
v-else
class=
"hotel-Economy"
>
经济型
</text>
--
>
{{
dataList
.
name
}}
{{
dataList
.
name
}}
</view>
</view>
<view
class=
"hotel-brand"
>
<view
class=
"hotel-brand"
>
...
@@ -340,6 +340,7 @@
...
@@ -340,6 +340,7 @@
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel3stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel3stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel4stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel4stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel5stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/hotel5stars.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638809441661552596.png'
],
],
openImg
:
[
openImg
:
[
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638762717498946531.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638762717498946531.png'
,
...
@@ -1501,7 +1502,9 @@
...
@@ -1501,7 +1502,9 @@
position
:
relative
;
position
:
relative
;
top
:
10
rpx
top
:
10
rpx
}
}
.hotel-Sub.hotel-Sub2
{
width
:
85
rpx
;
}
.hotel-Sub.hotel-Sub3
{
.hotel-Sub.hotel-Sub3
{
width
:
85
rpx
;
width
:
85
rpx
;
}
}
...
@@ -1509,6 +1512,9 @@
...
@@ -1509,6 +1512,9 @@
.hotel-Sub.hotel-Sub4
{
.hotel-Sub.hotel-Sub4
{
width
:
101
rpx
;
width
:
101
rpx
;
}
}
.hotel-Sub.hotel-Sub5
{
width
:
116
rpx
;
}
.hotel-Economy
{
.hotel-Economy
{
font-weight
:
500
;
font-weight
:
500
;
...
...
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