Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
ngic-company
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
wuhao
ngic-company
Commits
ae6efadc
Commit
ae6efadc
authored
Jan 05, 2023
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
087cb0b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
39 deletions
+40
-39
index.jsx
src/layouts/index.jsx
+39
-38
index.less
src/layouts/index.less
+1
-1
No files found.
src/layouts/index.jsx
View file @
ae6efadc
...
...
@@ -10,6 +10,7 @@ import {
Input
,
Modal
,
message
,
Popover
,
}
from
'antd'
;
import
{
history
,
Helmet
}
from
'umi'
;
import
routes
from
'../../routes'
;
...
...
@@ -372,10 +373,11 @@ function Layout({ children, location }) {
}
}
>
<
div
className=
{
`${styles.diybtn}
bglightc
`
}
className=
{
`${styles.diybtn}`
}
style=
{
{
color
:
'#ffffff'
,
textShadow
:
'0px 0px 2px #999999'
,
backgroundColor
:
'#1890ff'
,
}
}
onClick=
{
()
=>
{
if
(
!
vals
.
contact
||
!
vals
.
telephone
||
!
vals
.
companyName
)
{
...
...
@@ -424,8 +426,18 @@ function Layout({ children, location }) {
>
<
PhoneFilled
rotate=
{
90
}
/>
</
div
>
025-86111901
<
span
style=
{
{
color
:
'#1890ff'
}
}
>
025-86111901
</
span
>
</
Col
>
<
Popover
content=
{
<
img
src=
{
'https://ng-website.oss-cn-hangzhou.aliyuncs.com/assets/qrcode.png'
}
style=
{
{
width
:
'168px'
,
margin
:
'8px 0'
}
}
/>
}
>
<
Col
{
...
colds
}
className=
"center"
...
...
@@ -434,23 +446,6 @@ function Layout({ children, location }) {
cursor
:
'pointer'
,
margin
:
'0.3rem 0'
,
}
}
onClick=
{
()
=>
{
Modal
.
info
({
title
:
'添加微信'
,
content
:
(
<
img
src=
{
'https://ng-website.oss-cn-hangzhou.aliyuncs.com/assets/qrcode.png'
}
style=
{
{
width
:
'100%'
}
}
/>
),
okButtonProps
:
{
style
:
{
display
:
'none'
},
},
maskClosable
:
true
,
});
}
}
>
<
div
className=
"center"
...
...
@@ -465,8 +460,10 @@ function Layout({ children, location }) {
>
<
WechatFilled
style=
{
{
color
:
'#FFFFFF'
}
}
/>
</
div
>
微信咨询
<
span
style=
{
{
color
:
'rgba(69, 176, 53, 1)'
}
}
>
微信咨询
</
span
>
</
Col
>
</
Popover
>
<
Col
{
...
cola
}
className=
"center"
...
...
@@ -474,6 +471,10 @@ function Layout({ children, location }) {
>
<
div
className=
{
styles
.
diybtn
}
style=
{
{
backgroundColor
:
!
colls
?
'#1890ff'
:
'#999999'
,
color
:
'#fff'
,
}
}
onClick=
{
()
=>
{
setcolls
(
!
colls
);
setvals
({});
...
...
src/layouts/index.less
View file @
ae6efadc
...
...
@@ -117,7 +117,7 @@
.navbar {
padding: 0 2rem !important;
border-top: 1px solid #f0f0f0 !important;
background-color: rgba(255, 255, 255, 0.5);
background-color: rgba(255, 255, 255, 0.
8
5);
margin-top: 3rem;
}
.diybtn {
...
...
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