|
|
@@ -1,11 +1,34 @@
|
|
|
import React, {Component} from 'react';
|
|
|
+import {Switch, Input, Icon} from 'antd';
|
|
|
|
|
|
class WxResult extends Component {
|
|
|
+ constructor(props) {
|
|
|
+ super(props);
|
|
|
+ this.state = {
|
|
|
+ url: '1111',
|
|
|
+ checked: true
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
render() {
|
|
|
return (
|
|
|
<div>
|
|
|
- Wechat result
|
|
|
+ <div style={{width: 300}}>
|
|
|
+ <span>URL: </span>
|
|
|
+ <Input
|
|
|
+ placeholder="display your URL"
|
|
|
+ prefix={<Icon type="copy"/>}
|
|
|
+ value={this.state.url}
|
|
|
+ onChange={() => {}}
|
|
|
+ disabled={!this.state.checked}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div style={{marginTop: 30}}>
|
|
|
+ <span>fc switch </span>
|
|
|
+ <Switch defaultChecked onChange={(checked) => {
|
|
|
+ this.setState({checked})
|
|
|
+ }}/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
)
|
|
|
}
|