|  | @@ -1,6 +1,6 @@
 | 
											
												
													
														|  |  import { useAjax } from "@/Hook/useAjax"
 |  |  import { useAjax } from "@/Hook/useAjax"
 | 
											
												
													
														|  |  import { exportUserH5Api } from "@/services/gameData/player"
 |  |  import { exportUserH5Api } from "@/services/gameData/player"
 | 
											
												
													
														|  | -import { Form, Input, Modal, message } from "antd"
 |  | 
 | 
											
												
													
														|  | 
 |  | +import { Form, Input, Modal, Radio, message } from "antd"
 | 
											
												
													
														|  |  import React from "react"
 |  |  import React from "react"
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -27,7 +27,7 @@ const ExportH5Modal: React.FC<Props> = ({ initialValues = {}, visible, onChange,
 | 
											
												
													
														|  |          let data = await form.validateFields()
 |  |          let data = await form.validateFields()
 | 
											
												
													
														|  |          console.log(data)
 |  |          console.log(data)
 | 
											
												
													
														|  |          exportUserH5.run({ ...data, userId: initialValues.userId }).then(res => {
 |  |          exportUserH5.run({ ...data, userId: initialValues.userId }).then(res => {
 | 
											
												
													
														|  | -            if (res.data) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +            if (res) {
 | 
											
												
													
														|  |                  message.success('导量成功')
 |  |                  message.success('导量成功')
 | 
											
												
													
														|  |                  onChange?.()
 |  |                  onChange?.()
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
										
											
												
													
														|  | @@ -41,7 +41,7 @@ const ExportH5Modal: React.FC<Props> = ({ initialValues = {}, visible, onChange,
 | 
											
												
													
														|  |              labelCol={{ span: 4 }}
 |  |              labelCol={{ span: 4 }}
 | 
											
												
													
														|  |              wrapperCol={{ span: 20 }}
 |  |              wrapperCol={{ span: 20 }}
 | 
											
												
													
														|  |              autoComplete="off"
 |  |              autoComplete="off"
 | 
											
												
													
														|  | -            initialValues={{ ...initialValues }}
 |  | 
 | 
											
												
													
														|  | 
 |  | +            initialValues={{ ...initialValues, type: 1 }}
 | 
											
												
													
														|  |          >
 |  |          >
 | 
											
												
													
														|  |              <Form.Item
 |  |              <Form.Item
 | 
											
												
													
														|  |                  label="手机号码"
 |  |                  label="手机号码"
 | 
											
										
											
												
													
														|  | @@ -50,7 +50,7 @@ const ExportH5Modal: React.FC<Props> = ({ initialValues = {}, visible, onChange,
 | 
											
												
													
														|  |                      {
 |  |                      {
 | 
											
												
													
														|  |                          required: true,
 |  |                          required: true,
 | 
											
												
													
														|  |                          validator(_rule, value) {
 |  |                          validator(_rule, value) {
 | 
											
												
													
														|  | -                            let reg = new RegExp(/^1[3-9]\d{9}$/,'g')
 |  | 
 | 
											
												
													
														|  | 
 |  | +                            let reg = new RegExp(/^1[3-9]\d{9}$/, 'g')
 | 
											
												
													
														|  |                              if (!value) {
 |  |                              if (!value) {
 | 
											
												
													
														|  |                                  return Promise.reject(new Error('请输入手机号!'))
 |  |                                  return Promise.reject(new Error('请输入手机号!'))
 | 
											
												
													
														|  |                              } else if (!reg.test(value)) {
 |  |                              } else if (!reg.test(value)) {
 | 
											
										
											
												
													
														|  | @@ -62,6 +62,18 @@ const ExportH5Modal: React.FC<Props> = ({ initialValues = {}, visible, onChange,
 | 
											
												
													
														|  |                  ]}>
 |  |                  ]}>
 | 
											
												
													
														|  |                  <Input placeholder="请输入手机号码" allowClear />
 |  |                  <Input placeholder="请输入手机号码" allowClear />
 | 
											
												
													
														|  |              </Form.Item>
 |  |              </Form.Item>
 | 
											
												
													
														|  | 
 |  | +            <Form.Item
 | 
											
												
													
														|  | 
 |  | +                label="选择平台"
 | 
											
												
													
														|  | 
 |  | +                name="type"
 | 
											
												
													
														|  | 
 |  | +            >
 | 
											
												
													
														|  | 
 |  | +                <Radio.Group >
 | 
											
												
													
														|  | 
 |  | +                    {
 | 
											
												
													
														|  | 
 |  | +                        [{ id: 1, name: "h5" }, { id: 2, name: "安卓" }, { id: 3, name: "IOS" }].map((item: any) => {
 | 
											
												
													
														|  | 
 |  | +                            return <Radio value={item.id} key={item.id}>{item.name}</Radio>
 | 
											
												
													
														|  | 
 |  | +                        })
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                </Radio.Group>
 | 
											
												
													
														|  | 
 |  | +            </Form.Item>
 | 
											
												
													
														|  |          </Form>
 |  |          </Form>
 | 
											
												
													
														|  |      </Modal>
 |  |      </Modal>
 | 
											
												
													
														|  |  }
 |  |  }
 |