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
6b2c6efa
Commit
6b2c6efa
authored
Apr 24, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
55ac818c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
detail.vue
pages/hotel/detail.vue
+23
-7
No files found.
pages/hotel/detail.vue
View file @
6b2c6efa
...
...
@@ -154,10 +154,10 @@
style=
"background-color: #FCFCFC"
>
<view
class=
"hotelComprehensiv row items-center"
v-for=
"(item,index) in qRoomTypeList"
:key=
"index"
:class=
"[qMsg.RoomType
Name==item.RoomName_CN||(qMsg.RoomTypeName==''&&index==0)
?'active':'']"
:class=
"[qMsg.RoomType
==item.RoomTypeID
?'active':'']"
@
click=
"changeType(item,1)"
>
<text>
{{
item
.
RoomName_CN
}}
</text>
<view
v-if=
"qMsg.RoomType
Name==item.RoomName_CN||(qMsg.RoomTypeName==''&&index==0)
"
>
<view
v-if=
"qMsg.RoomType
==item.RoomTypeID
"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638760948784111958.png"
/>
</view>
...
...
@@ -171,10 +171,10 @@
style=
"background-color: #FCFCFC"
>
<view
class=
"hotelComprehensiv row items-center"
v-for=
"(item,index) in qBedTypeList"
:key=
"index"
:class=
"[qMsg.BedType
Name==item.BedTypeName||(qMsg.BedTypeName==''&&index==0)
?'active':'']"
:class=
"[qMsg.BedType
==item.BedType
?'active':'']"
@
click=
"changeType(item,2)"
>
<text>
{{
item
.
BedTypeName
?
item
.
BedTypeName
:
'-'
}}
</text>
<view
v-if=
"qMsg.BedType
Name==item.BedTypeName||(qMsg.BedTypeName==''&&index==0)
"
>
<view
v-if=
"qMsg.BedType
==item.BedType
"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638760948784111958.png"
/>
</view>
...
...
@@ -188,10 +188,10 @@
style=
"background-color: #FCFCFC"
>
<view
class=
"hotelComprehensiv row items-center"
v-for=
"(item,index) in qMealTypeList"
:key=
"index"
:class=
"[qMsg.MType
Name==item.MTypeName||(qMsg.MTypeName==''&&index==0)
?'active':'']"
:class=
"[qMsg.MType
==item.MealType
?'active':'']"
@
click=
"changeType(item)"
>
<text>
{{
item
.
MTypeName
?
item
.
MTypeName
:
'-'
}}
</text>
<view
v-if=
"qMsg.MType
Name==item.MTypeName||(qMsg.MTypeName==''&&index==0)
"
>
<view
v-if=
"qMsg.MType
==item.MealType
"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638760948784111958.png"
/>
</view>
...
...
@@ -386,7 +386,9 @@
HotelMealTypes
:
[],
qMsg
:
{
RoomTypeName
:
""
,
//房型筛选
RoomType
:
0
,
MTypeName
:
""
,
//早餐筛选
MType
:
0
,
BedTypeName
:
""
,
//床型筛选
BedType
:
""
,
},
...
...
@@ -621,6 +623,7 @@
if
(
type
==
1
)
{
this
.
optionsTitle
[
0
]
=
item
.
RoomName_CN
!=
'房型(全部)'
?
item
.
RoomName_CN
:
'房型'
this
.
qMsg
.
RoomTypeName
=
item
.
RoomName_CN
!=
'房型(全部)'
?
item
.
RoomName_CN
:
''
;
this
.
qMsg
.
RoomType
=
item
.
RoomTypeID
}
else
if
(
type
==
2
){
this
.
optionsTitle
[
2
]
=
item
.
BedTypeName
!=
'床型(全部)'
?
item
.
BedTypeName
:
'床型'
this
.
qMsg
.
BedTypeName
=
item
.
BedTypeName
!=
'床型(全部)'
?
item
.
BedTypeName
:
''
;
...
...
@@ -628,11 +631,15 @@
}
else
{
this
.
optionsTitle
[
1
]
=
item
.
MTypeName
!=
'餐型(全部)'
?
item
.
MTypeName
:
'餐型'
this
.
qMsg
.
MTypeName
=
item
.
MTypeName
!=
'餐型(全部)'
?
item
.
MTypeName
:
''
;
this
.
qMsg
.
MType
=
item
.
MealType
}
this
.
$refs
.
uDropdown
.
close
();
},
// 获取房间价格
getHotelPrices
()
{
uni
.
showLoading
({
title
:
'加载中'
,
});
this
.
loading
=
true
this
.
apipost
(
'dmc_post_GetDiDaPriceSearchList'
,
{
hotelId
:
this
.
roomMsg
.
hotelid
,
...
...
@@ -657,6 +664,7 @@
})
}
this
.
qBedTypeList
=
tempData
.
qBedTypeList
;
console
.
log
(
this
.
qRoomTypeList
,
'-----'
)
if
(
this
.
qBedTypeList
&&
this
.
qBedTypeList
.
length
>
0
)
{
this
.
qBedTypeList
.
unshift
({
BedType
:
0
,
...
...
@@ -671,8 +679,16 @@
MealType
:
0
,
})
}
uni
.
hideLoading
()
}
})
},
err
=>
{
this
.
loading
=
false
uni
.
hideLoading
()
uni
.
showToast
({
title
:
err
.
message
,
icon
:
'none'
,
})
}
)
},
//获取道旅餐食类型
getdidaMealType
()
{
...
...
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