Commit 28bb4c68 by 姜雷

添加约车和报修的详情展开动画

parent e03bae99
...@@ -43,7 +43,12 @@ class PublicCarItem extends Component { ...@@ -43,7 +43,12 @@ class PublicCarItem extends Component {
<img src={titleIcon} alt="" /> <img src={titleIcon} alt="" />
</i> </i>
</div> </div>
<div className={styles.content} onClick={this.toggleDetail}> <div
className={`${styles.content} ${
showDetail ? styles.showDetailContent : ''
}`}
onClick={this.toggleDetail}
>
{data.dealResult === 1 ? ( {data.dealResult === 1 ? (
<div className={styles.dealing} onClick={this.dealHandle}> <div className={styles.dealing} onClick={this.dealHandle}>
处理中 处理中
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
} }
.content { .content {
composes: content from '../../Repair/components/style.css'; composes: content from '../../Repair/components/style.css';
max-height: 250px;
}
.showDetailContent {
max-height: 1000px;
} }
.dealing { .dealing {
composes: dealing from '../../Repair/components/style.css'; composes: dealing from '../../Repair/components/style.css';
......
...@@ -44,7 +44,12 @@ class RepairItem extends Component { ...@@ -44,7 +44,12 @@ class RepairItem extends Component {
<img src={titleIcon} alt="" /> <img src={titleIcon} alt="" />
</i> </i>
</div> </div>
<div className={styles.content} onClick={this.toggleDetail}> <div
className={`${styles.content} ${
showDetail ? styles.showDetailContent : ''
}`}
onClick={this.toggleDetail}
>
{data.dealState === 1 ? ( {data.dealState === 1 ? (
<div className={styles.dealing} onClick={this.dealHandle}> <div className={styles.dealing} onClick={this.dealHandle}>
处理中 处理中
...@@ -86,7 +91,10 @@ class RepairItem extends Component { ...@@ -86,7 +91,10 @@ class RepairItem extends Component {
</div> </div>
</div> </div>
</div>, </div>,
<div key="uploadImg" className={`${styles.listLine} ${styles.listLineImg}`}> <div
key="uploadImg"
className={`${styles.listLine} ${styles.listLineImg}`}
>
{imgList[0] && {imgList[0] &&
imgList.map((item, idx) => ( imgList.map((item, idx) => (
<div <div
......
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
flex: 1; flex: 1;
padding: 30px 12px; padding: 30px 12px;
overflow: hidden; overflow: hidden;
transition: all .5s ease-in;
max-height: 210px;
}
.showDetailContent {
max-height: 1000px;
} }
.dealing { .dealing {
position: absolute; 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