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
b79cdb6d
Commit
b79cdb6d
authored
Dec 21, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化行程路线 天数 导航
parent
c1d58870
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
24 deletions
+55
-24
About.vue
src/pages/About.vue
+2
-2
detailsNew.vue
src/pages/detailsNew.vue
+53
-22
No files found.
src/pages/About.vue
View file @
b79cdb6d
...
...
@@ -440,11 +440,11 @@
<img
v-if=
"$q.platform.is.desktop"
class=
"full-width"
style=
"margin-top: -10%"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/partners.png"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/partners.png
?t=123456
"
/>
<img
v-else
class=
"full-width q-mt-md"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/partners-m.png"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/partners-m.png
?t=123456
"
/>
<div
:class=
"$q.platform.is.desktop ? 'wrapper mt-150' : 'q-pa-md'"
>
<div
class=
"text-center bold"
:class=
"$q.platform.is.desktop ? 'f40' : 'f25'"
>
歷年榮譽
</div>
...
...
src/pages/detailsNew.vue
View file @
b79cdb6d
...
...
@@ -425,19 +425,41 @@
"
>
<!-- style="position: sticky; top: 100px" -->
<div>
<div
class=
"trip-module text-subtitle2 cursor-pointer q-mb-lg"
v-for=
"(x, i) in days"
:key=
"i"
@
click=
"goScrollHandler(x.top + 50)"
:class=
"{
'active-trip-moduleDay text-red active':
currentHeight >= x.top &&
(i == days.length - 1 || currentHeight < days[i + 1].top),
}"
>
{{ x.display }}
<div
v-if=
"true"
>
<div
v-for=
"(x, i) in days"
:key=
"i"
>
<div
v-if=
"moreDays==2&&i==7"
style=
"text-align: center;margin-bottom: 21px;cursor: pointer;"
@
click=
"goScrollHandler(x.top + 50),moreDays=1"
>
...
</div>
<div
v-if=
"(moreDays&&moreDays==1||!moreDays)&&i<8"
class=
"trip-module text-subtitle2 cursor-pointer q-mb-lg"
@
click=
"goScrollHandler(x.top + 50)"
:class=
"{
'active-trip-moduleDay text-red active':
currentHeight >= x.top &&
(i == days.length - 1 || currentHeight < days[i + 1].top),
}"
>
{{ x.display }}
</div>
<div
v-if=
"moreDays&&moreDays==2&&i>=8"
class=
"trip-module text-subtitle2 cursor-pointer q-mb-lg"
@
click=
"goScrollHandler(x.top + 50)"
:class=
"{
'active-trip-moduleDay text-red active':
currentHeight >= x.top &&
(i == days.length - 1 || currentHeight < days[i + 1].top),
}"
>
{{ x.display }}
</div>
<div
v-if=
"(!moreDays||moreDays==1)&&days.length>8&&i==8"
style=
"text-align: center;cursor: pointer;"
@
click=
"goScrollHandler(x.top + 50),moreDays=2"
>
...
</div>
</div>
</div>
</div>
...
...
@@ -519,7 +541,7 @@
<trip
:trip=
"dataList"
@
change=
"changeTripShowHandler"
></trip>
</
template
>
<
template
v-if=
"dataList.dayList.length>3"
>
<block
:currentHeightDay=
"currentHeight"
:days=
"days"
:tripList=
"dayList"
:isDirect=
"isDirect"
:clickDate=
"clickDate"
></block>
<block
v-if=
"false"
:currentHeightDay=
"currentHeight"
:days=
"days"
:tripList=
"dayList"
:isDirect=
"isDirect"
:clickDate=
"clickDate"
></block>
</
template
>
</template>
<!--
...
...
@@ -924,6 +946,7 @@ export default {
zoomDiyContext
:
1
,
detailsImageList
:[],
tripImages
:[],
moreDays
:
0
,
};
},
components
:
{
...
...
@@ -1284,15 +1307,17 @@ export default {
}
setTimeout
(()
=>
{
this
.
navs
.
forEach
((
x
)
=>
{
x
.
top
=
this
.
$refs
[
x
.
val
].
getBoundingClientRect
().
top
+
this
.
currentHeight
-
60
;
// x.top =
// this.$refs[x.val].getBoundingClientRect().top +
// this.currentHeight -
// 60;
x
.
top
=
this
.
$refs
[
x
.
val
].
getBoundingClientRect
().
top
});
this
.
priceListHeight
=
this
.
$refs
.
pricelist
.
getBoundingClientRect
().
top
+
this
.
currentHeight
-
60
;
// this.priceListHeight =
// this.$refs.pricelist.getBoundingClientRect().top +
// this.currentHeight -
// 60;
this
.
priceListHeight
=
this
.
$refs
.
pricelist
.
getBoundingClientRect
().
top
this
.
days
=
[];
this
.
dayList
.
forEach
((
x
)
=>
{
let
dayListObj
=
{
...
...
@@ -1303,6 +1328,12 @@ export default {
};
this
.
days
.
push
(
dayListObj
);
});
if
(
this
.
days
.
length
>
8
){
this
.
moreDays
=
0
}
else
{
this
.
moreDays
=
1
}
},
1000
);
try
{
...
...
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