Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
5035c476
Commit
5035c476
authored
May 07, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式调整
parent
c3f813d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
20 deletions
+32
-20
calendarproduct.vue
src/components/trip/calendarproduct.vue
+31
-20
quasar.variables.scss
src/css/quasar.variables.scss
+1
-0
No files found.
src/components/trip/calendarproduct.vue
View file @
5035c476
...
...
@@ -23,28 +23,35 @@
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"rounded-borders text-center text-weight-bold"
:class=
"
{
<div
class=
"text-center text-weight-bold q-mb-sm"
style=
"padding: 0 4px; width: 14.285%"
v-for=
"(x, i) in dayList"
:key=
"i"
@
click=
"chosenDateHandler(x)"
>
<div
style=
"padding: 4px 0px; "
:class=
"
{
'cursor-pointer hover-date': x.value != ''
&&
x.price,
'cursor-not-allowed': (!x.price || x.price.remainNum==0)
&&
x.value != '',
'bg-primary': x.value != ''
&&
x.value == currentDate,
}" style="padding: 8px 4px; width: 14.285%" v-for="(x, i) in dayList" :key="i"
@click="chosenDateHandler(x)">
<div
class=
"text-dark"
:class=
"
{ 'text-white': x.value == currentDate }" v-if="x.price">
{{
x
.
display
}}
'bg-primary rounded-borders': x.value != ''
&&
x.value == currentDate,
'remainBorder': x.value!= ''
&&
x.value != currentDate
&&
x.price
&&
x.price.remainNum>0,
}">
<div
class=
"text-dark"
:class=
"
{ 'text-white': x.value == currentDate }" v-if="x.price">
{{
x
.
display
}}
</div>
<div
class=
"text-grey-6"
v-else
>
{{
x
.
display
}}
</div>
<div
class=
"f12"
:class=
"
{
'text-grey-1': x.value == currentDate,
' text-grey-7': x.value != currentDate,
'q-mt-sm': x.price
&&
x.price.remainNum==0
}">
<!--
{{
x
.
price
&&
x
.
price
.
remainNum
>
0
?
moneyFormat
(
x
.
price
.
originalB2CPrice
,
0
)
:(
x
.
price
&&
x
.
price
.
remainNum
==
0
?
'售罄'
:
' '
)
}}
-->
<p
v-if=
"x.price && x.price.remainNum>0"
>
{{
x
.
price
&&
x
.
price
.
remainNum
>
0
?
'可售:'
+
x
.
price
.
remainNum
:
''
}}
</p>
{{
x
.
price
&&
x
.
price
.
remainNum
>
0
?
moneyFormat
(
x
.
price
.
originalB2CPrice
,
0
)
:(
x
.
price
&&
x
.
price
.
remainNum
==
0
?
'售罄'
:
' '
)
}}
</div>
<div
class=
"text-grey-6"
v-else
>
{{
x
.
display
}}
</div>
<div
class=
"f12"
:class=
"
{
'text-grey-1': x.value == currentDate,
' text-grey-7': x.value != currentDate,
'q-mt-sm': x.price
&&
x.price.remainNum==0
}">
<!--
{{
x
.
price
&&
x
.
price
.
remainNum
>
0
?
moneyFormat
(
x
.
price
.
originalB2CPrice
,
0
)
:(
x
.
price
&&
x
.
price
.
remainNum
==
0
?
'售罄'
:
' '
)
}}
-->
<p
v-if=
"x.price && x.price.remainNum>0"
>
{{
x
.
price
&&
x
.
price
.
remainNum
>
0
?
'可售:'
+
x
.
price
.
remainNum
:
''
}}
</p>
{{
x
.
price
&&
x
.
price
.
remainNum
>
0
?
moneyFormat
(
x
.
price
.
originalB2CPrice
,
0
)
:(
x
.
price
&&
x
.
price
.
remainNum
==
0
?
'售罄'
:
' '
)
}}
</div>
</div>
</div>
...
...
@@ -217,9 +224,13 @@
</
script
>
<
style
>
<
style
lang=
"scss"
>
.hover-date
:hover
{
background
:
#eee
;
}
.remainBorder
{
border-top
:
2px
solid
#000
;
background
:
$primary-1
;
}
</
style
>
src/css/quasar.variables.scss
View file @
5035c476
...
...
@@ -11,6 +11,7 @@
// $primary : #1976D2;
//$primary : #31C3E0;
$primary
:
rgb
(
5
,
32
,
50
);
//#1976D2
$primary-1
:
rgba
(
5
,
32
,
50
,.
1
);
$secondary
:
rgb
(
137
,
118
,
88
);
$accent
:
#9C27B0
;
$dark
:
#1D1D1D
;
...
...
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