|
@@ -3,7 +3,7 @@ import { Form, Input, message, Icon, Cascader, Select, Row, Col, Checkbox, Butto
|
|
|
import "./group.less";
|
|
|
import ajax from 'jquery/src/ajax/xhr.js'
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
-
|
|
|
+import Modal from './modal';
|
|
|
|
|
|
const FormItem = Form.Item;
|
|
|
const Option = Select.Option;
|
|
@@ -145,6 +145,9 @@ const Group = Form.create()(React.createClass({
|
|
|
reloadVCode() {
|
|
|
this.state.vCodeUrl = globalConfig.context + '/open/getVCode?t=' + Math.random();
|
|
|
},
|
|
|
+ closeModal() {
|
|
|
+ this.setState({ showDesc: false });
|
|
|
+ },
|
|
|
render() {
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
const formItemLayout = {
|
|
@@ -164,8 +167,7 @@ const Group = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="密码"
|
|
|
extra={<span><Icon type="exclamation-circle" /> 建议字母、数字和符号两种以上组合,6-20个字符</span>}
|
|
|
- hasFeedback
|
|
|
- >
|
|
|
+ hasFeedback >
|
|
|
{getFieldDecorator('password', {
|
|
|
rules: [{
|
|
|
required: true, message: '请输入密码!',
|
|
@@ -271,13 +273,14 @@ const Group = Form.create()(React.createClass({
|
|
|
{getFieldDecorator('agreement', {
|
|
|
valuePropName: 'checked',
|
|
|
})(
|
|
|
- <Checkbox>同意 <a> 阿凡提会员服务协议条款</a></Checkbox>
|
|
|
+ <Checkbox>同意 <a onClick={() => { this.setState({ showDesc: true }); }}> 阿凡提会员服务协议条款</a></Checkbox>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<FormItem {...tailFormItemLayout}>
|
|
|
<Button type="primary" htmlType="submit" size="large">提 交</Button>
|
|
|
</FormItem>
|
|
|
</Form>
|
|
|
+ <Modal showDesc={this.state.showDesc} closeModal={this.closeModal} />
|
|
|
</div>
|
|
|
);
|
|
|
},
|