Commit 90804c62 authored by wuhao's avatar wuhao 🎯

asder

parent 7bfc072d
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment