|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import React, { useState } from 'react';
|
|
|
|
|
import { Radio, Message, Form, Button } from '@arco-design/web-react';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import {
|
|
|
|
|
FormArtistName,
|
|
|
|
|
FormArtistAvatar,
|
|
|
|
@ -29,6 +30,35 @@ function StepArtistInfo() {
|
|
|
|
|
Message.warning('请阅读并同意《雀乐音乐用户服务协议》');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const {
|
|
|
|
|
address,
|
|
|
|
|
avatar,
|
|
|
|
|
backgroundImage,
|
|
|
|
|
description,
|
|
|
|
|
nickName,
|
|
|
|
|
password,
|
|
|
|
|
screenshot,
|
|
|
|
|
style,
|
|
|
|
|
type,
|
|
|
|
|
userName,
|
|
|
|
|
} = values;
|
|
|
|
|
axios
|
|
|
|
|
.post('/user/artist/register', {
|
|
|
|
|
address,
|
|
|
|
|
avatar: avatar?.[0]?.response?.data?.fullUrl,
|
|
|
|
|
backgroundImage: backgroundImage?.[0]?.response?.data?.fullUrl,
|
|
|
|
|
// bandUserId: '',
|
|
|
|
|
description,
|
|
|
|
|
nickName,
|
|
|
|
|
password,
|
|
|
|
|
screenshot: screenshot?.[0]?.response?.data?.fullUrl,
|
|
|
|
|
style,
|
|
|
|
|
type,
|
|
|
|
|
userName,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
console.log(222, res);
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err);
|
|
|
|
|