Commit 878d9872 authored by marsandheart's avatar marsandheart

添加图片

parent b86e8e2e
...@@ -7,6 +7,9 @@ import IconAIA from '../assets/img/aia-icon.jpg'; ...@@ -7,6 +7,9 @@ import IconAIA from '../assets/img/aia-icon.jpg';
import IconDetail from '../assets/img/detail.png'; import IconDetail from '../assets/img/detail.png';
import IconCancel from '../assets/img/cancel.png'; import IconCancel from '../assets/img/cancel.png';
import IconCalculate from '../assets/img/calculate.png'; import IconCalculate from '../assets/img/calculate.png';
import IconCustomer from 'assets/img/customer.png';
import IconFile from 'assets/img/file.png';
import IconMoney from 'assets/img/money.png';
import TouchOpacity from '../components/TouchOpacity'; import TouchOpacity from '../components/TouchOpacity';
import TabTitle from './InsuredsInfo.components/TabTitle'; import TabTitle from './InsuredsInfo.components/TabTitle';
...@@ -109,9 +112,18 @@ export default function(props) { ...@@ -109,9 +112,18 @@ export default function(props) {
<div className={styles.page}> <div className={styles.page}>
<div className={styles.header}> <div className={styles.header}>
<img alt="logo" src={IconAIA} className={styles.headerImg} /> <img alt="logo" src={IconAIA} className={styles.headerImg} />
<TabTitle title={'客户信息'} /> <TabTitle>
<TabTitle title={'保单信息'} /> <img alt="customer" src={IconCustomer} className={styles.titleIcon}/>
<TabTitle title={'借/领/退款'} /> <span>客户管理</span>
</TabTitle>
<TabTitle>
<img alt="policy" src={IconFile} className={styles.titleIcon}/>
<span>保单信息</span>
</TabTitle>
<TabTitle>
<img alt="pay" src={IconMoney} className={styles.titleIcon}/>
<span>借/领/退款</span>
</TabTitle>
<div>C161361507</div> <div>C161361507</div>
</div> </div>
<div className={styles.headerExt}></div> <div className={styles.headerExt}></div>
......
@import 'assets/css/common.scss';
.page{ .page{
width: 100vw; width: 100vw;
...@@ -26,6 +27,15 @@ ...@@ -26,6 +27,15 @@
display: block; display: block;
} }
.titleIcon{
margin-right: 0.1rem;
width: 0.46rem;
height: 0.46rem;
border-radius: 0.23rem;
border: 1px solid #FFFFFF;
background-color: $primaryColor;
}
.main{ .main{
background: #EDE9E3; background: #EDE9E3;
margin: -0.2rem 0.05rem; margin: -0.2rem 0.05rem;
......
...@@ -12,13 +12,13 @@ class TabTitle extends React.Component { ...@@ -12,13 +12,13 @@ class TabTitle extends React.Component {
this.setState({ selected: !this.state.selected }); this.setState({ selected: !this.state.selected });
}; };
render() { render() {
const { title } = this.props; const { children } = this.props;
return ( return (
<div <div
className={this.state.selected ? styles.titleContentSelected : styles.titleContent} className={this.state.selected ? styles.titleContentSelected : styles.titleContent}
onClick={this.toggleCurrentTab} onClick={this.toggleCurrentTab}
> >
<span>{title}</span> {children}
</div> </div>
); );
} }
......
.titleContent{ .titleContent{
width: 10vw; user-select: none;
height: 7vh; height: 0.7rem;
font-size: 1.5vw; font-size: 0.16rem;
text-align: center; text-align: center;
align-items: center; align-items: center;
line-height: 6vh; line-height: 0.6rem;
color: #FFFFFF; color: #FFFFFF;
padding: 5px; padding: 0.05rem 0.2rem;
border-radius: 5px; border-radius: 0.05rem;
} }
.titleContentSelected{ .titleContentSelected{
......
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