|
|
|
@ -1,28 +1,39 @@
|
|
|
|
|
import React, { useState } from 'react';
|
|
|
|
|
import {
|
|
|
|
|
Typography,
|
|
|
|
|
Radio,
|
|
|
|
|
Message,
|
|
|
|
|
Form,
|
|
|
|
|
Input,
|
|
|
|
|
Button,
|
|
|
|
|
Select,
|
|
|
|
|
Upload,
|
|
|
|
|
} from '@arco-design/web-react';
|
|
|
|
|
import { Radio, Message, Form, Button } from '@arco-design/web-react';
|
|
|
|
|
import {
|
|
|
|
|
FormArtistName,
|
|
|
|
|
FormArtistAvatar,
|
|
|
|
|
FormHomepageBackground,
|
|
|
|
|
FormBackendScreenshot,
|
|
|
|
|
FormAddress,
|
|
|
|
|
FormStyle,
|
|
|
|
|
FormType,
|
|
|
|
|
FormDescription,
|
|
|
|
|
FormUserName,
|
|
|
|
|
FormPassword,
|
|
|
|
|
} from '@/components/FormArtistInfo';
|
|
|
|
|
import styles from './style/index.module.less';
|
|
|
|
|
|
|
|
|
|
const { Title } = Typography;
|
|
|
|
|
const FormItem = Form.Item;
|
|
|
|
|
const { useForm, useWatch, Item: FormItem } = Form;
|
|
|
|
|
|
|
|
|
|
function StepArtistInfo() {
|
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
|
const [agree, setAgree] = useState(false);
|
|
|
|
|
const [form] = useForm();
|
|
|
|
|
const agree = useWatch('agree', form);
|
|
|
|
|
|
|
|
|
|
const handleSubmit = () => {
|
|
|
|
|
form
|
|
|
|
|
.validate()
|
|
|
|
|
.then((values) => {
|
|
|
|
|
console.log(111, values);
|
|
|
|
|
if (!agree) {
|
|
|
|
|
Message.warning('请阅读并同意《雀乐音乐用户服务协议》');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Form
|
|
|
|
@ -31,74 +42,39 @@ function StepArtistInfo() {
|
|
|
|
|
autoComplete="off"
|
|
|
|
|
labelCol={{ flex: '103px' }}
|
|
|
|
|
wrapperCol={{ flex: '468px' }}
|
|
|
|
|
onValuesChange={(v, vs) => {
|
|
|
|
|
console.log(v, vs);
|
|
|
|
|
}}
|
|
|
|
|
onSubmit={(v) => {
|
|
|
|
|
console.log(v);
|
|
|
|
|
}}
|
|
|
|
|
// onValuesChange={(v, vs) => {
|
|
|
|
|
// console.log(v, vs);
|
|
|
|
|
// }}
|
|
|
|
|
// onSubmit={handleSubmit}
|
|
|
|
|
>
|
|
|
|
|
{/* 歌手名 */}
|
|
|
|
|
<FormArtistName />
|
|
|
|
|
<div className={styles.heightHolder} />
|
|
|
|
|
{/* 艺人头像 */}
|
|
|
|
|
<FormArtistAvatar />
|
|
|
|
|
{/* 主页背景 */}
|
|
|
|
|
<FormHomepageBackground />
|
|
|
|
|
{/* 后台截图 */}
|
|
|
|
|
<FormBackendScreenshot />
|
|
|
|
|
<FormItem
|
|
|
|
|
label="所在地区"
|
|
|
|
|
field="clipPic"
|
|
|
|
|
rules={[{ required: true, message: '所在地区是必填项' }]}
|
|
|
|
|
>
|
|
|
|
|
<Select placeholder="please enter your age" />
|
|
|
|
|
</FormItem>
|
|
|
|
|
<FormItem
|
|
|
|
|
label="流派/风格"
|
|
|
|
|
field="style"
|
|
|
|
|
rules={[{ required: true, message: '流派/风格是必填项' }]}
|
|
|
|
|
>
|
|
|
|
|
<Select placeholder="please enter your age" />
|
|
|
|
|
</FormItem>
|
|
|
|
|
<FormItem
|
|
|
|
|
label="类型"
|
|
|
|
|
field="style2"
|
|
|
|
|
rules={[{ required: true, message: '类型是必填项' }]}
|
|
|
|
|
>
|
|
|
|
|
<Select placeholder="please enter your age" />
|
|
|
|
|
</FormItem>
|
|
|
|
|
<FormItem
|
|
|
|
|
label="艺人简介"
|
|
|
|
|
field="artistIntro"
|
|
|
|
|
rules={[{ required: true, message: '艺人简介是必填项' }]}
|
|
|
|
|
>
|
|
|
|
|
<Input placeholder="please enter your age" />
|
|
|
|
|
</FormItem>
|
|
|
|
|
<FormItem
|
|
|
|
|
label="后台登录名"
|
|
|
|
|
field="loginName"
|
|
|
|
|
rules={[{ required: true, message: '后台登录名是必填项' }]}
|
|
|
|
|
>
|
|
|
|
|
<Input placeholder="please enter your age" />
|
|
|
|
|
</FormItem>
|
|
|
|
|
<FormItem
|
|
|
|
|
label="登录密码"
|
|
|
|
|
field="loginPwd"
|
|
|
|
|
rules={[{ required: true, message: '登录密码是必填项' }]}
|
|
|
|
|
>
|
|
|
|
|
<Input placeholder="please enter your age" />
|
|
|
|
|
</FormItem>
|
|
|
|
|
<FormItem
|
|
|
|
|
wrapperCol={{ offset: 3 }}
|
|
|
|
|
field="agree"
|
|
|
|
|
rules={[
|
|
|
|
|
{ required: true, message: '请先同意《雀乐音乐用户服务协议》' },
|
|
|
|
|
]}
|
|
|
|
|
>
|
|
|
|
|
{/* 所在地区 */}
|
|
|
|
|
<FormAddress />
|
|
|
|
|
{/* 流派/风格 */}
|
|
|
|
|
<FormStyle />
|
|
|
|
|
{/* 类型 */}
|
|
|
|
|
<FormType />
|
|
|
|
|
{/* 艺人简介 */}
|
|
|
|
|
<FormDescription />
|
|
|
|
|
{/* 后台登录名 */}
|
|
|
|
|
<FormUserName />
|
|
|
|
|
{/* 登录密码 */}
|
|
|
|
|
<FormPassword />
|
|
|
|
|
<FormItem label=" " field="agree">
|
|
|
|
|
<Radio>
|
|
|
|
|
<span className={styles.policyName}>同意</span>
|
|
|
|
|
<span className={styles.policyName}>《雀乐音乐用户服务协议》</span>
|
|
|
|
|
</Radio>
|
|
|
|
|
</FormItem>
|
|
|
|
|
<FormItem wrapperCol={{ span: 24 }} className={styles.submitWrap}>
|
|
|
|
|
<Button type="primary" htmlType="submit">
|
|
|
|
|
<Button type="primary" onClick={handleSubmit}>
|
|
|
|
|
提交申请
|
|
|
|
|
</Button>
|
|
|
|
|
</FormItem>
|
|
|
|
|