添加了提示

This commit is contained in:
luyuan 2020-10-30 15:08:34 +08:00
parent 7cfc371999
commit 5659fff54c
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -119,6 +119,7 @@
type="number" type="number"
/> />
<span class="unit">{{ lan.$t("fenzhong") }}</span> <span class="unit">{{ lan.$t("fenzhong") }}</span>
<div style="color: red;font-size: 0.12rem;line-height: 1.3;">*最短30min, 最长120min</div>
</a-form-item> </a-form-item>
<a-form-item <a-form-item
:label="lan.$t('zhiborenshu')" :label="lan.$t('zhiborenshu')"
@ -130,6 +131,8 @@
:placeholder="lan.$t('shuruzhiborenshu')" :placeholder="lan.$t('shuruzhiborenshu')"
type="number" type="number"
/> />
<div style="color: red;font-size: 0.12rem;line-height: 1.3;">*最少1人, 最多4人</div>
</a-form-item> </a-form-item>
<a-form-item :label="lan.$t('zhibojianjie')" class="brief"> <a-form-item :label="lan.$t('zhibojianjie')" class="brief">
<a-textarea <a-textarea
@ -349,6 +352,14 @@ export default defineComponent({
message.error("直播简介不能为空"); message.error("直播简介不能为空");
return; return;
} else { } else {
if(subdata.livetime < 30 || subdata.livetime > 120){
message.error("直播时长最短30min, 最长120min");
return ;
}
if(subdata.livenumber > 4 || subdata.livenumber < 1){
message.error("直播人数最少1人, 最多4人");
return ;
}
if (!lives.value.status) { if (!lives.value.status) {
// subdata.fileid=picinfo. // subdata.fileid=picinfo.
if (id != undefined && id) { if (id != undefined && id) {