Commit 361567b7 by 姜雷

Merge branch 'test' into 'master'

Test See merge request !20
parents b31bef40 718da86d
......@@ -97,7 +97,7 @@ class PublicCarList extends Component {
MyBody = props => {
return (
<div className={styles.repairList}>
<div className={styles.listInfo}>显示最近半年的报修记录</div>
<div className={styles.listInfo}>显示最近半年的约车记录</div>
{props.children}
</div>
);
......
......@@ -43,7 +43,12 @@ class PublicCarItem extends Component {
<img src={titleIcon} alt="" />
</i>
</div>
<div className={styles.content} onClick={this.toggleDetail}>
<div
className={`${styles.content} ${
showDetail ? styles.showDetailContent : ''
}`}
onClick={this.toggleDetail}
>
{data.dealResult === 1 ? (
<div className={styles.dealing} onClick={this.dealHandle}>
处理中
......@@ -132,8 +137,8 @@ class PublicCarItem extends Component {
{data.dealResult === 1
? '待处理后显示'
: data.carPlate
? data.carPlate
: '无'}
? data.carPlate
: '无'}
</div>
</div>,
data.dealResult === 3 ? (
......
......@@ -20,6 +20,10 @@
}
.content {
composes: content from '../../Repair/components/style.css';
max-height: 250px;
}
.showDetailContent {
max-height: 1000px;
}
.dealing {
composes: dealing from '../../Repair/components/style.css';
......
......@@ -218,7 +218,7 @@ class PublicCarDeal extends Component {
} = this.state;
return (
<div className={styles.repairList}>
<div className={styles.listInfo}>显示最近半年的报修记录</div>
<div className={styles.listInfo}>显示最近半年的约车记录</div>
{props.children}
<Modal
className={styles.dealDialog}
......
......@@ -44,7 +44,12 @@ class RepairItem extends Component {
<img src={titleIcon} alt="" />
</i>
</div>
<div className={styles.content} onClick={this.toggleDetail}>
<div
className={`${styles.content} ${
showDetail ? styles.showDetailContent : ''
}`}
onClick={this.toggleDetail}
>
{data.dealState === 1 ? (
<div className={styles.dealing} onClick={this.dealHandle}>
处理中
......@@ -86,7 +91,10 @@ class RepairItem extends Component {
</div>
</div>
</div>,
<div key="uploadImg" className={`${styles.listLine} ${styles.listLineImg}`}>
<div
key="uploadImg"
className={`${styles.listLine} ${styles.listLineImg}`}
>
{imgList[0] &&
imgList.map((item, idx) => (
<div
......
......@@ -32,6 +32,11 @@
flex: 1;
padding: 30px 12px;
overflow: hidden;
transition: all .5s ease-in;
max-height: 210px;
}
.showDetailContent {
max-height: 1000px;
}
.dealing {
position: absolute;
......
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