Commit 06a5db57 authored by GuanHua's avatar GuanHua

fix: 生成电子合同接口添加参数

parent 0e814124
import React from 'react' import React from 'react'
import styles from './index.less' import styles from './index.less'
import { LAYOUT_TYPE } from '@/constants' import { LAYOUT_TYPE } from '@/constants'
import ImageBox from '@/components/ImageBox'
import { GlobalConfig } from '@/global/config' import { GlobalConfig } from '@/global/config'
interface ShopHeaderPropsType { interface ShopHeaderPropsType {
...@@ -35,7 +36,7 @@ const CommonHeader: React.FC<ShopHeaderPropsType> = (props) => { ...@@ -35,7 +36,7 @@ const CommonHeader: React.FC<ShopHeaderPropsType> = (props) => {
<div className={styles.common_header_container}> <div className={styles.common_header_container}>
<div className={styles.logo}> <div className={styles.logo}>
<a href={getLink()}> <a href={getLink()}>
<img src={logoUrl} /> <ImageBox width={145} height={50} imgUrl={logoUrl} />
</a> </a>
</div> </div>
<div className={styles.common_header_split}></div> <div className={styles.common_header_split}></div>
......
...@@ -4,4 +4,9 @@ ...@@ -4,4 +4,9 @@
&:hover { &:hover {
color: var(--mall_main_color); color: var(--mall_main_color);
} }
} }
\ No newline at end of file
.errorText {
color: #D32F2F;
padding: 16px 0;
}
...@@ -6,12 +6,13 @@ import styles from './index.less' ...@@ -6,12 +6,13 @@ import styles from './index.less'
interface ContractPropsType { interface ContractPropsType {
state: boolean; state: boolean;
onChange: Function; onChange: Function;
contractInfo: any contractInfo: any;
errorInfo?: any,
} }
const Contract: React.FC<ContractPropsType> = (props) => { const Contract: React.FC<ContractPropsType> = (props) => {
const { state, onChange, contractInfo } = props const { state, onChange, contractInfo, errorInfo } = props
return ( return (
<div className={styles.contract}> <div className={styles.contract}>
...@@ -21,14 +22,17 @@ const Contract: React.FC<ContractPropsType> = (props) => { ...@@ -21,14 +22,17 @@ const Contract: React.FC<ContractPropsType> = (props) => {
<QuestionCircleOutlined className={styles.common_title_icon} /> <QuestionCircleOutlined className={styles.common_title_icon} />
</Tooltip> </Tooltip>
</div> </div>
<div className={styles.checkbox}> {
<Checkbox checked={state} onChange={(e) => onChange(e.target.checked)}> contractInfo && (
<span>我同意签订:</span> <div className={styles.checkbox}>
</Checkbox> <Checkbox checked={state} onChange={(e) => onChange(e.target.checked)}>
{ <span>我同意签订:</span>
contractInfo && <a href={contractInfo?.contractUrl} download rel="noreferrer" target="_blank" className={styles.checkbox_contract_text}>{contractInfo?.contractName}</a> </Checkbox>
} <a href={contractInfo?.contractUrl} download rel="noreferrer" target="_blank" className={styles.checkbox_contract_text}>{contractInfo?.contractName}</a>
</div> </div>
)
}
{ (errorInfo && !contractInfo) && <span className={styles.errorText}>{errorInfo}</span> }
</div> </div>
) )
} }
......
...@@ -144,9 +144,9 @@ ...@@ -144,9 +144,9 @@
height: 50px; height: 50px;
outline: none; outline: none;
font-size: 16px; font-size: 16px;
border-color: #D32F2F; border-color: var(--mall_main_color);
border-radius: 0; border-radius: 0;
background-color: #D32F2F; background-color: var(--mall_main_color);
cursor: pointer; cursor: pointer;
&:hover { &:hover {
...@@ -156,4 +156,4 @@ ...@@ -156,4 +156,4 @@
} }
} }
} }
} }
\ No newline at end of file
This diff is collapsed.
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