|
@@ -12,38 +12,43 @@ export default class Index extends Component {
|
12
|
12
|
style: {}
|
13
|
13
|
}
|
14
|
14
|
handleClick() {
|
15
|
|
- this.setState({
|
16
|
|
- show: false
|
17
|
|
- })
|
|
15
|
+ setTimeout(() => {
|
|
16
|
+ this.setState({
|
|
17
|
+ show: false
|
|
18
|
+ })
|
|
19
|
+ }, 260)
|
18
|
20
|
}
|
19
|
21
|
handleClickTwo() {
|
20
|
|
- this.setState({
|
21
|
|
- show: true
|
22
|
|
- })
|
|
22
|
+ setTimeout(() => {
|
|
23
|
+ this.setState({
|
|
24
|
+ show: true
|
|
25
|
+ })
|
|
26
|
+ }, 260)
|
|
27
|
+
|
23
|
28
|
}
|
24
|
29
|
render() {
|
25
|
30
|
const { show } = this.state
|
26
|
31
|
return (
|
27
|
32
|
<View>
|
28
|
|
- {show &&
|
29
|
|
- <View className="consultant" style={this.props.style} onClick={this.handleClick} >
|
30
|
|
- <Image src={require('@assets/person/left.png')} className='left-img'></Image>
|
31
|
|
- <Image src="http://pic3.zhimg.com/50/v2-55f854baa56381deff541029d51662d0_hd.jpg" className='img'></Image>
|
32
|
|
- <View className="text">哈哈哈</View>
|
33
|
|
- </View>
|
34
|
|
- }
|
35
|
|
- {!show &&
|
36
|
|
- <View className="consultant-more" style={this.props.style} >
|
37
|
|
- <Image src={require('@assets/person/cancel.png')} onClick={this.handleClickTwo}className='cancel-img'></Image>
|
38
|
|
- <Image src="http://pic3.zhimg.com/50/v2-55f854baa56381deff541029d51662d0_hd.jpg" className='touxiang'></Image>
|
39
|
|
- <View className="text">
|
40
|
|
- <View className="name">哈哈哈</View>
|
41
|
|
- <View className="company">南京橙蕉互动数字科技有限公司</View>
|
42
|
|
- </View>
|
43
|
|
- <Image src={require('@assets/person/phone.png')} className='phone-img'></Image>
|
44
|
|
- <Image src={require('@assets/person/message.png')} className='message-img'></Image>
|
|
33
|
+ {/* {show && */}
|
|
34
|
+ <View className={show ? "consultant show" : "consultant hide"} style={this.props.style} onClick={this.handleClick} >
|
|
35
|
+ <Image src={require('@assets/person/left.png')} className='left-img'></Image>
|
|
36
|
+ <Image src="http://pic3.zhimg.com/50/v2-55f854baa56381deff541029d51662d0_hd.jpg" className='img'></Image>
|
|
37
|
+ <View className="text">哈哈哈</View>
|
|
38
|
+ </View>
|
|
39
|
+ {/* } */}
|
|
40
|
+ {/* {!show && */}
|
|
41
|
+ <View className={show ? "consultant-more hide " : "consultant-more more-show "} style={this.props.style} >
|
|
42
|
+ <Image src={require('@assets/person/cancel.png')} onClick={this.handleClickTwo} className='cancel-img'></Image>
|
|
43
|
+ <Image src="http://pic3.zhimg.com/50/v2-55f854baa56381deff541029d51662d0_hd.jpg" className='touxiang'></Image>
|
|
44
|
+ <View className="text">
|
|
45
|
+ <View className="name">哈哈哈</View>
|
|
46
|
+ <View className="company">南京橙蕉互动数字科技有限公司</View>
|
45
|
47
|
</View>
|
46
|
|
- }
|
|
48
|
+ <Image src={require('@assets/person/phone.png')} className='phone-img'></Image>
|
|
49
|
+ <Image src={require('@assets/person/message.png')} className='message-img'></Image>
|
|
50
|
+ </View>
|
|
51
|
+ {/* } */}
|
47
|
52
|
|
48
|
53
|
<View>
|
49
|
54
|
</View>
|