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
90804c62
Commit
90804c62
authored
Nov 22, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
7bfc072d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
187 additions
and
6 deletions
+187
-6
index.jsx
src/layouts/index.jsx
+187
-6
No files found.
src/layouts/index.jsx
View file @
90804c62
...
...
@@ -247,10 +247,10 @@ function Layout({ children, location }) {
className=
"olik"
onScroll=
{
(
e
)
=>
{
let
divheight
=
document
.
getElementById
(
'webFooter'
).
clientHeight
;
if
(
e
.
target
.
scrollTop
<
e
.
target
.
firstChild
.
clientHeight
-
divheight
)
{
let
clientHeight
=
e
.
target
.
clientHeight
;
let
scrollHeight
=
e
.
target
.
scrollHeight
;
if
(
e
.
target
.
scrollTop
<
scrollHeight
-
clientHeight
-
divheight
)
{
setchanges
(
false
);
}
else
{
setchanges
(
true
);
...
...
@@ -258,7 +258,8 @@ function Layout({ children, location }) {
}
}
>
<
div
className=
"content"
>
{
children
}
</
div
>
<
div
className=
{
styles
.
navbar
}
style=
{
styled
}
>
<
div
id=
"sets"
></
div
>
<
div
className=
{
styles
.
navbar
}
style=
{
styled
}
id=
"mine"
>
{
colls
&&
(
<
Row
style=
{
{
...
...
@@ -351,7 +352,6 @@ function Layout({ children, location }) {
</
Col
>
</
Row
>
)
}
<
Row
gutter=
{
36
}
style=
{
{
...
...
@@ -433,6 +433,187 @@ function Layout({ children, location }) {
</
Col
>
</
Row
>
</
div
>
{
!
changes
&&
(
<
div
className=
{
styles
.
navbar
}
id=
"mines"
>
{
colls
&&
(
<
Row
style=
{
{
width
:
'100%'
,
marginBottom
:
'1rem'
,
}
}
className=
"submit"
gutter=
{
36
}
>
<
Col
{
...
col
}
style=
{
{
margin
:
'0.3rem 0'
}
}
>
<
label
htmlFor=
"contact"
>
<
b
>
*
</
b
>
联系人
</
label
>
<
Input
name=
"contact"
value=
{
vals
.
contact
}
onChange=
{
(
e
)
=>
{
setval
(
'contact'
,
e
.
target
.
value
);
}
}
/>
</
Col
>
<
Col
{
...
col
}
style=
{
{
margin
:
'0.3rem 0'
}
}
>
<
label
htmlFor=
"telephone"
>
<
b
>
*
</
b
>
联系方式
</
label
>
<
Input
name=
"telephone"
value=
{
vals
.
telephone
}
onChange=
{
(
e
)
=>
{
setval
(
'telephone'
,
e
.
target
.
value
);
}
}
/>
</
Col
>
<
Col
{
...
col
}
style=
{
{
margin
:
'0.3rem 0'
}
}
>
<
label
htmlFor=
"companyName"
>
<
b
>
*
</
b
>
公司名称
</
label
>
<
Input
name=
"companyName"
value=
{
vals
.
companyName
}
onChange=
{
(
e
)
=>
{
setval
(
'companyName'
,
e
.
target
.
value
);
}
}
/>
</
Col
>
<
Col
{
...
col
}
style=
{
{
margin
:
'0.3rem 0'
}
}
>
<
label
htmlFor=
"trade"
>
所属行业(选填)
</
label
>
<
Input
name=
"trade"
value=
{
vals
.
trade
}
onChange=
{
(
e
)
=>
{
setval
(
'trade'
,
e
.
target
.
value
);
}
}
/>
</
Col
>
<
Col
{
...
cola
}
style=
{
{
display
:
'flex'
,
justifyContent
:
'center'
,
alignItems
:
'flex-end'
,
margin
:
'0.3rem 0'
,
}
}
>
<
div
className=
{
`${styles.diybtn} bglightc`
}
style=
{
{
color
:
'#ffffff'
,
textShadow
:
'0px 0px 2px #999999'
,
}
}
onClick=
{
()
=>
{
if
(
!
vals
.
contact
||
!
vals
.
telephone
||
!
vals
.
companyName
)
{
message
.
warn
(
'请填写必填项!'
);
return
;
}
doFetch
({
url
:
'/customerAdvice/add'
,
params
:
{
...
vals
},
}).
then
((
res
)
=>
{
if
(
res
.
code
==
'0000'
)
{
message
.
success
(
'我们已收到您的申请,稍后将有专员联系您...'
,
);
}
});
}
}
>
提交
</
div
>
</
Col
>
</
Row
>
)
}
<
Row
gutter=
{
36
}
style=
{
{
width
:
'100%'
,
}
}
>
<
Col
{
...
cola
}
className=
"center"
style=
{
{
fontSize
:
'0.8rem'
,
margin
:
'0.3rem 0'
}
}
>
<
div
className=
"center"
style=
{
{
marginRight
:
18
,
border
:
'1px solid rgba(1, 92, 172, 1)'
,
color
:
'rgba(1, 92, 172, 1)'
,
width
:
'1.5rem'
,
height
:
'1.5rem'
,
borderRadius
:
'50%'
,
}
}
>
<
PhoneFilled
rotate=
{
90
}
/>
</
div
>
025-86111901
</
Col
>
<
Col
{
...
colds
}
className=
"center"
style=
{
{
fontSize
:
'0.8rem'
,
cursor
:
'pointer'
,
margin
:
'0.3rem 0'
,
}
}
onClick=
{
()
=>
{
Modal
.
info
({
title
:
'添加微信'
,
content
:
(
<
img
src=
{
require
(
'@/assets/qrcode.png'
)
}
style=
{
{
width
:
'100%'
}
}
/>
),
okButtonProps
:
{
style
:
{
display
:
'none'
},
},
maskClosable
:
true
,
});
}
}
>
<
div
className=
"center"
style=
{
{
marginRight
:
18
,
color
:
'rgba(1, 92, 172, 1)'
,
backgroundColor
:
'rgba(69, 176, 53, 1)'
,
width
:
'1.5rem'
,
height
:
'1.5rem'
,
borderRadius
:
'50%'
,
}
}
>
<
WechatFilled
style=
{
{
color
:
'#FFFFFF'
}
}
/>
</
div
>
微信咨询
</
Col
>
<
Col
{
...
cola
}
className=
"center"
style=
{
{
fontSize
:
'0.8rem'
,
margin
:
'0.3rem 0'
}
}
>
<
div
className=
{
styles
.
diybtn
}
onClick=
{
()
=>
{
setcolls
(
!
colls
);
}
}
>
{
!
colls
?
'免费体验'
:
'取消'
}
</
div
>
</
Col
>
</
Row
>
</
div
>
)
}
<
Footer
></
Footer
>
</
Scrollbars
>
</
div
>
...
...
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