Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
J
jiayun
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
xuchentao
jiayun
Commits
c5411758
Commit
c5411758
authored
Aug 03, 2026
by
xuchentao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 移除联系方式弹窗操作按钮
parent
bcc91c4a
Pipeline
#444
passed with stage
in 15 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
21 deletions
+1
-21
ContactDialog.astro
src/components/ContactDialog.astro
+0
-5
Base.astro
src/layouts/Base.astro
+0
-13
global.css
src/styles/global.css
+1
-3
No files found.
src/components/ContactDialog.astro
View file @
c5411758
...
@@ -22,10 +22,5 @@ import Icon from "./Icon.astro";
...
@@ -22,10 +22,5 @@ import Icon from "./Icon.astro";
<dd>{site.contact.serviceHours}</dd>
<dd>{site.contact.serviceHours}</dd>
</div>
</div>
</dl>
</dl>
<div class="contact-dialog__actions">
<button class="button" type="button" data-copy-phone data-phone={site.contact.phone}>复制电话</button>
<a class="button button--secondary" href="/contact/">查看联系页面 <Icon name="arrow" size={17} /></a>
</div>
<p class="contact-dialog__status" data-copy-phone-status aria-live="polite"></p>
</div>
</div>
</dialog>
</dialog>
src/layouts/Base.astro
View file @
c5411758
...
@@ -104,19 +104,6 @@ const allLd = [organizationLd, ...pageLd.filter((item) => Object.keys(item).leng
...
@@ -104,19 +104,6 @@ const allLd = [organizationLd, ...pageLd.filter((item) => Object.keys(item).leng
contactDialog
.
addEventListener
(
'click'
,
(
event
)
=>
{
contactDialog
.
addEventListener
(
'click'
,
(
event
)
=>
{
if
(
event
.
target
===
contactDialog
)
contactDialog
.
close
();
if
(
event
.
target
===
contactDialog
)
contactDialog
.
close
();
});
});
const
copyButton
=
contactDialog
.
querySelector
(
'[data-copy-phone]'
);
const
copyStatus
=
contactDialog
.
querySelector
(
'[data-copy-phone-status]'
);
copyButton
?.
addEventListener
(
'click'
,
async
()
=>
{
const
phone
=
copyButton
.
getAttribute
(
'data-phone'
)
||
''
;
try
{
if
(
!
navigator
.
clipboard
)
throw
new
Error
(
'Clipboard API unavailable'
);
await
navigator
.
clipboard
.
writeText
(
phone
);
if
(
copyStatus
)
copyStatus
.
textContent
=
`电话
${
phone
}
已复制`
;
}
catch
{
if
(
copyStatus
)
copyStatus
.
textContent
=
`请手动记录电话:
${
phone
}
`
;
}
});
}
}
</script>
</script>
</body>
</body>
...
...
src/styles/global.css
View file @
c5411758
...
@@ -45,8 +45,6 @@ h3 { font-size: 21px; }
...
@@ -45,8 +45,6 @@ h3 { font-size: 21px; }
.contact-dialog__details
dt
{
display
:
flex
;
align-items
:
center
;
gap
:
8px
;
color
:
var
(
--muted
);
font-size
:
12px
;
font-weight
:
700
;
}
.contact-dialog__details
dt
{
display
:
flex
;
align-items
:
center
;
gap
:
8px
;
color
:
var
(
--muted
);
font-size
:
12px
;
font-weight
:
700
;
}
.contact-dialog__details
dt
svg
{
flex
:
none
;
color
:
var
(
--primary
);
}
.contact-dialog__details
dt
svg
{
flex
:
none
;
color
:
var
(
--primary
);
}
.contact-dialog__details
dd
{
margin
:
0
;
font-size
:
14px
;
font-weight
:
700
;
text-align
:
right
;
}
.contact-dialog__details
dd
{
margin
:
0
;
font-size
:
14px
;
font-weight
:
700
;
text-align
:
right
;
}
.contact-dialog__actions
{
display
:
flex
;
flex-wrap
:
wrap
;
gap
:
12px
;
}
.contact-dialog__status
{
min-height
:
24px
;
margin
:
12px
0
-12px
;
color
:
var
(
--primary
);
font-size
:
12px
;
}
.button
{
display
:
inline-flex
;
align-items
:
center
;
justify-content
:
center
;
gap
:
9px
;
min-height
:
52px
;
padding
:
0
24px
;
border
:
1px
solid
var
(
--primary
);
border-radius
:
999px
;
color
:
#fff
;
background
:
var
(
--primary
);
font-size
:
15px
;
font-weight
:
700
;
transition
:
.24s
ease
;
cursor
:
pointer
;
}
.button
{
display
:
inline-flex
;
align-items
:
center
;
justify-content
:
center
;
gap
:
9px
;
min-height
:
52px
;
padding
:
0
24px
;
border
:
1px
solid
var
(
--primary
);
border-radius
:
999px
;
color
:
#fff
;
background
:
var
(
--primary
);
font-size
:
15px
;
font-weight
:
700
;
transition
:
.24s
ease
;
cursor
:
pointer
;
}
.button
:hover
{
color
:
#fff
;
background
:
var
(
--primary-hover
);
border-color
:
var
(
--primary-hover
);
transform
:
translateY
(
-2px
);
box-shadow
:
0
12px
24px
rgba
(
255
,
125
,
65
,
.24
);
}
.button
:hover
{
color
:
#fff
;
background
:
var
(
--primary-hover
);
border-color
:
var
(
--primary-hover
);
transform
:
translateY
(
-2px
);
box-shadow
:
0
12px
24px
rgba
(
255
,
125
,
65
,
.24
);
}
...
@@ -187,5 +185,5 @@ h3 { font-size: 21px; }
...
@@ -187,5 +185,5 @@ h3 { font-size: 21px; }
.stats-grid
strong
{
font-size
:
26px
;
}
.stats-grid
div
{
padding
:
25px
18px
;
}
.service-grid
,
.article-grid
,
.process-grid
,
.values-grid
,
.fit-grid
,
.certification-cards
{
grid-template-columns
:
1
fr
;
}
.service-card
{
min-height
:
285px
;
}
.trust-proof
{
min-height
:
auto
;
padding
:
36px
28px
;
}
.faq-layout
{
gap
:
16px
;
}
.faq-list
summary
{
min-height
:
82px
;
}
.faq-list
details
>
p
{
padding-left
:
48px
;
}
.stats-grid
strong
{
font-size
:
26px
;
}
.stats-grid
div
{
padding
:
25px
18px
;
}
.service-grid
,
.article-grid
,
.process-grid
,
.values-grid
,
.fit-grid
,
.certification-cards
{
grid-template-columns
:
1
fr
;
}
.service-card
{
min-height
:
285px
;
}
.trust-proof
{
min-height
:
auto
;
padding
:
36px
28px
;
}
.faq-layout
{
gap
:
16px
;
}
.faq-list
summary
{
min-height
:
82px
;
}
.faq-list
details
>
p
{
padding-left
:
48px
;
}
.page-hero
{
padding
:
62px
0
72px
;
}
.page-hero
::after
{
display
:
none
;
}
.breadcrumb
{
margin-bottom
:
30px
;
}
.service-detail-list
{
gap
:
70px
;
}
.about-story__facts
,
.service-detail__summary
,
.visit-panel
{
min-height
:
auto
;
padding
:
36px
28px
;
}
.join-hero
{
padding
:
65px
0
;
}
.join-card
{
padding
:
28px
;
}
.contact-hero
{
padding
:
65px
0
;
}
.contact-number
a
{
font-size
:
32px
;
}
.visit-tips
.container
{
grid-template-columns
:
1
fr
;
}
.visit-tips
.container
>
*
{
padding
:
22px
;
}
.article-card__body
{
padding
:
24px
;
}
.article-page
>
header
{
padding
:
58px
0
;
}
.article-layout
{
padding-top
:
48px
;
padding-bottom
:
80px
;
}
.article-content
{
font-size
:
15px
;
}
.empty-state
{
padding
:
55px
24px
;
}
.page-hero
{
padding
:
62px
0
72px
;
}
.page-hero
::after
{
display
:
none
;
}
.breadcrumb
{
margin-bottom
:
30px
;
}
.service-detail-list
{
gap
:
70px
;
}
.about-story__facts
,
.service-detail__summary
,
.visit-panel
{
min-height
:
auto
;
padding
:
36px
28px
;
}
.join-hero
{
padding
:
65px
0
;
}
.join-card
{
padding
:
28px
;
}
.contact-hero
{
padding
:
65px
0
;
}
.contact-number
a
{
font-size
:
32px
;
}
.visit-tips
.container
{
grid-template-columns
:
1
fr
;
}
.visit-tips
.container
>
*
{
padding
:
22px
;
}
.article-card__body
{
padding
:
24px
;
}
.article-page
>
header
{
padding
:
58px
0
;
}
.article-layout
{
padding-top
:
48px
;
padding-bottom
:
80px
;
}
.article-content
{
font-size
:
15px
;
}
.empty-state
{
padding
:
55px
24px
;
}
.cta-section
{
padding-bottom
:
68px
;
}
.cta-panel
{
padding
:
36px
26px
;
}
.cta-actions
{
width
:
100%
;
}
.cta-actions
.button
{
width
:
100%
;
}
.footer-grid
{
grid-template-columns
:
1
fr
1
fr
;
}
.footer-brand
,
.footer-contact
{
grid-column
:
1
/
-1
;
}
.footer-bottom
{
flex-direction
:
column
;
gap
:
8px
;
}
.footer-logo
{
width
:
170px
;
}
.cta-section
{
padding-bottom
:
68px
;
}
.cta-panel
{
padding
:
36px
26px
;
}
.cta-actions
{
width
:
100%
;
}
.cta-actions
.button
{
width
:
100%
;
}
.footer-grid
{
grid-template-columns
:
1
fr
1
fr
;
}
.footer-brand
,
.footer-contact
{
grid-column
:
1
/
-1
;
}
.footer-bottom
{
flex-direction
:
column
;
gap
:
8px
;
}
.footer-logo
{
width
:
170px
;
}
.contact-dialog__panel
{
padding
:
34px
22px
26px
;
}
.contact-dialog
h2
{
font-size
:
32px
;
}
.contact-dialog__details
>
div
{
grid-template-columns
:
1
fr
;
gap
:
4px
;
}
.contact-dialog__details
dd
{
padding-left
:
29px
;
text-align
:
left
;
}
.contact-dialog__actions
.button
{
width
:
100%
;
}
.contact-dialog__panel
{
padding
:
34px
22px
26px
;
}
.contact-dialog
h2
{
font-size
:
32px
;
}
.contact-dialog__details
>
div
{
grid-template-columns
:
1
fr
;
gap
:
4px
;
}
.contact-dialog__details
dd
{
padding-left
:
29px
;
text-align
:
left
;
}
}
}
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