Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
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
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
罗超
bigwood
Commits
804f7589
Commit
804f7589
authored
Dec 16, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
ab994abc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
21 deletions
+25
-21
DetailsList.vue
src/components/scattered/list/DetailsList.vue
+15
-11
ListHeader.vue
src/components/scattered/list/ListHeader.vue
+7
-5
ListTable.vue
src/components/scattered/list/ListTable.vue
+0
-1
hotelDetails.vue
src/pages/scattered/hotelDetails.vue
+3
-4
No files found.
src/components/scattered/list/DetailsList.vue
View file @
804f7589
...
...
@@ -130,7 +130,8 @@
import
{
moneyFormat
}
from
'../../../utils/tools'
export
default
defineComponent
({
components
:
{
svgIcon
},
setup
()
{
props
:[
'hotelDetails'
],
setup
(
props
)
{
const
$q
=
useQuasar
()
const
qDateProxy
=
ref
(
null
)
as
any
const
qNameProxy
=
ref
(
null
)
as
any
...
...
@@ -170,11 +171,14 @@
data
.
scrollStyle
=
useScrollModule
().
scrollStyle
const
search
=
inject
(
DirtionmaryHelper
.
HOTEL_QUERY_PARAM
)
as
any
search
.
searchroomGroup
.
push
({
roomNum
:
1
,
numberOfAdults
:
1
,
numberOfChildren
:
0
})
if
(
search
.
searchroomGroup
.
length
==
0
){
search
.
searchroomGroup
.
push
({
roomNum
:
1
,
numberOfAdults
:
1
,
numberOfChildren
:
0
})
}
data
.
dateRange
.
to
=
date
.
formatDate
(
date
.
addToDate
(
new
Date
(),
{
days
:
9
}),
'YYYY/MM/DD'
)
data
.
dateRange
.
from
=
date
.
formatDate
(
date
.
addToDate
(
new
Date
(),
{
days
:
8
}),
'YYYY/MM/DD'
)
data
.
dateRangeFormat
=
`
${
data
.
dateRange
.
from
}
-
${
data
.
dateRange
.
to
}
`
...
...
@@ -185,9 +189,7 @@
data
.
ScatMeaList
=
useHotel
.
getHotelScatMeal
()
const
methods
=
{
goUrl
(
url
:
stringify
,
row
:
{}){
console
.
log
(
row
,
'---'
)
return
url
=
`
${
url
}
/
${
search
.
hotelId
}
/
${
row
.
roomOptionCd
}
/
${
row
.
imgUrl
}
`
url
=
`
${
url
}
/
${
search
.
hotelId
}
/
${
row
.
roomOptionCd
}
`
window
.
open
(
url
,
'_blank'
)
},
getPrice
(
price
){
...
...
@@ -365,6 +367,7 @@
childNum
:
data
.
childNum
,
arrivalDate
:
search
.
arrivalDate
,
departureDate
:
search
.
departureDate
,
imgUrl
:
props
.
hotelDetails
.
hotelImageUrl1
}
localStorage
.
setItem
(
DirtionmaryHelper
.
SCATTERED_HOTEL_DATE
,
JSON
.
stringify
(
d
))
}
...
...
@@ -386,10 +389,11 @@
watch
(
data
.
childNum
,
(
n
,
o
)
=>
{
methods
.
setData
()
})
watch
(
props
.
hotelDetails
,
(
n
,
o
)
=>
{
methods
.
setData
()
})
onMounted
(()
=>
{
methods
.
initHotel
()
methods
.
setData
()
})
return
{
...
toRefs
(
data
),
...
...
src/components/scattered/list/ListHeader.vue
View file @
804f7589
...
...
@@ -133,11 +133,13 @@ export default defineComponent({
data
.
scrollStyle
=
useScrollModule
().
scrollStyle
const
search
=
inject
(
DirtionmaryHelper
.
HOTEL_QUERY_PARAM
)
as
any
search
.
searchroomGroup
.
push
({
roomNum
:
1
,
numberOfAdults
:
1
,
numberOfChildren
:
0
})
if
(
search
.
searchroomGroup
.
length
==
0
){
search
.
searchroomGroup
.
push
({
roomNum
:
1
,
numberOfAdults
:
1
,
numberOfChildren
:
0
})
}
data
.
dateRange
.
to
=
date
.
formatDate
(
date
.
addToDate
(
new
Date
(),
{
days
:
9
}),
'YYYY/MM/DD'
)
data
.
dateRange
.
from
=
date
.
formatDate
(
date
.
addToDate
(
new
Date
(),
{
days
:
8
}),
'YYYY/MM/DD'
)
data
.
dateRangeFormat
=
`
${
data
.
dateRange
.
from
}
-
${
data
.
dateRange
.
to
}
`
...
...
src/components/scattered/list/ListTable.vue
View file @
804f7589
...
...
@@ -118,7 +118,6 @@ export default defineComponent({
})
data
.
themeList
=
useHotel
.
getHotelTheme
()
console
.
log
(
data
.
themeList
,
'-----'
)
data
.
pageTitle
=
inject
(
DirtionmaryHelper
.
PAGE_TITLE_KEY
)
...
...
src/pages/scattered/hotelDetails.vue
View file @
804f7589
...
...
@@ -56,7 +56,7 @@
</GoogleMap>
</div>
</div>
<DetailsList></DetailsList>
<DetailsList
:hotelDetails=
"h"
></DetailsList>
<div
class=
"bg-light-blue-1 q-pa-md fz14 rounded-borders"
>
<div
class=
"text-weight-bold"
>
{{
$t
(
'v101.scatteredDetails.jiudianxinxi'
)
}}
</div>
<!--
<div
class=
"text-grey-8 q-mt-sm"
>
{{
h
.
Descriptions
}}
</div>
-->
...
...
@@ -216,9 +216,9 @@
pageTitle
.
value
=
t
(
'v101.scatteredDetails.xiangqing'
)
data
.
scrollStyle
=
useScrollModule
().
scrollStyle
data
.
getParamsMsg
=
localStorage
.
getItem
(
DirtionmaryHelper
.
SCATTERED_HOTEL_DATE
)
data
.
getParamsMsg
=
JSON
.
parse
(
localStorage
.
getItem
(
DirtionmaryHelper
.
SCATTERED_HOTEL_DATE
)
)
data
.
urlParamsMsg
=
currentRouter
.
currentRoute
.
value
.
params
console
.
log
(
data
.
urlParamsMsg
.
hotelId
,
'
----'
)
console
.
log
(
data
.
getParamsMsg
.
searchroomGroup
,
'-
----'
)
const
search
=
reactive
({
hotelId
:
data
.
urlParamsMsg
.
hotelId
,
sort
:
1
,
...
...
@@ -270,7 +270,6 @@
);
InternetArr
.
forEach
((
x
:
String
,
index
:
Number
)
=>
{
if
(
x
==
1
){
console
.
log
(
data
.
InterList
[
index
].
name
,
'===='
)
data
.
InterArr
.
push
(
data
.
InterList
[
index
].
name
)
}
})
...
...
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