发布视频

This commit is contained in:
luyuan 2020-10-15 16:17:39 +08:00
parent f58ccbb11d
commit 9c0e6ffd39
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
4 changed files with 14 additions and 5 deletions

View File

@ -176,10 +176,19 @@ export async function liveadd(data:any) {
/**
*
*/
export async function videoadd(data:any) {
export async function videoadd( form: any,data: any) {
const res=await post<Liveaddrule>('video',data)
if(res.code==0){
message.success("发布成功")
form.value = {
title: "",
img: "",
fileid: "",
fileurl: "",
fileduration: "",
desc: "",
video:[""],
}
}
}

View File

@ -84,8 +84,8 @@
<a-form-item label="母语" class="form-item">
<a-input class="shuru" placeholder="请输入您的母语" />
</a-form-item>
<a-form-item label="课语言" class="form-item">
<a-select class="getcode" placeholder="请选择您的课语言">
<a-form-item label="授" class="form-item">
<a-select class="getcode" placeholder="请选择您的授">
<a-select-option value="Zhejiang">
中国+0086
</a-select-option>

View File

@ -32,7 +32,7 @@
<a-input size="small" v-model:value="userinfo.live" placeholder="请输入居住地" />
</div>
<div class="input-box teach-lang">
<div class="label">课语言</div>
<div class="label"></div>
<a-select
v-model:value="userinfo.tlanguage"
style="width: 171px"

View File

@ -233,7 +233,7 @@ export default defineComponent({
const onSubmit = async (e: FromSend) => {
e.preventDefault();
console.log(toRaw(form.value), 111);
// videoadd(toRaw(form));
videoadd(form, toRaw(form.value));
};
return {