Merge pull request 'xbx' (#108) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/108
This commit is contained in:
commit
3665d7613a
@ -168,6 +168,7 @@ export async function liveadd(data: any) {
|
|||||||
console.log(res)
|
console.log(res)
|
||||||
if(res.code==0){
|
if(res.code==0){
|
||||||
message.success(res.msg)
|
message.success(res.msg)
|
||||||
|
router.push("/regime/live")
|
||||||
}else{
|
}else{
|
||||||
message.error(res.msg)
|
message.error(res.msg)
|
||||||
}
|
}
|
||||||
@ -189,6 +190,7 @@ export async function videoadd( form: any,data: any) {
|
|||||||
desc: "",
|
desc: "",
|
||||||
video: [""],
|
video: [""],
|
||||||
}
|
}
|
||||||
|
router.push("/regime/video")
|
||||||
}else{
|
}else{
|
||||||
message.error(res.msg)
|
message.error(res.msg)
|
||||||
}
|
}
|
||||||
@ -1005,3 +1007,9 @@ export async function getaddr() {
|
|||||||
// const res = await get('StopMCUMixTranscode', {roomid});
|
// const res = await get('StopMCUMixTranscode', {roomid});
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
export async function interests() {
|
||||||
|
const res = await get('interests');
|
||||||
|
return res.data;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="list" @mouseout="tuichu()">
|
<div class="list">
|
||||||
<div v-for="(i,j) in list" :key="j" style="overflow: hidden;" @click="routeto(j)">
|
<div v-for="(i,j) in list" :key="j" style="overflow: hidden;" @click="routeto(j)">
|
||||||
<div class="item" :class="{'selitem': j == selnum, 'seltop': j == selnum - 1, 'selbottom': j == selnum + 1}">
|
<div class="item" :class="{'selitem': j == selnum, 'seltop': j == selnum - 1, 'selbottom': j == selnum + 1}">
|
||||||
<div class="route">
|
<div class="route">
|
||||||
@ -216,9 +216,6 @@ export default defineComponent({
|
|||||||
router.replace("/");
|
router.replace("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
function tuichu(){
|
|
||||||
console.log(1121)
|
|
||||||
}
|
|
||||||
|
|
||||||
return{
|
return{
|
||||||
list,
|
list,
|
||||||
@ -227,7 +224,6 @@ export default defineComponent({
|
|||||||
userinfo,
|
userinfo,
|
||||||
logout,
|
logout,
|
||||||
mouse,
|
mouse,
|
||||||
tuichu,
|
|
||||||
lan,
|
lan,
|
||||||
jiantou: require('../static/images/jiantou.png'),
|
jiantou: require('../static/images/jiantou.png'),
|
||||||
jiantous: require('../static/images/kuozhan1.png')
|
jiantous: require('../static/images/kuozhan1.png')
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="width: 100%"></div>
|
<div style="width: 100%"></div>
|
||||||
<div class="setting">
|
<div class="setting">
|
||||||
<a-dropdown :trigger="['click']" :getPopupContainer="triggerNode => triggerNode.parentNode">
|
<a-dropdown :trigger="['click']" :getPopupContainer="triggerNode => triggerNode.parentNode" v-if="islogin">
|
||||||
<div class="item" @click="e => e.preventDefault()">
|
<div class="item" @click="e => e.preventDefault()">
|
||||||
<img src="@/static/images/shijian.png" alt="" class="icon">
|
<img src="@/static/images/shijian.png" alt="" class="icon">
|
||||||
<div class="name">{{userinfo.zoneStr}}</div>
|
<div class="name">{{userinfo.zoneStr}}</div>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
|
|
||||||
<a-dropdown :trigger="['click']" :getPopupContainer="triggerNode => triggerNode.parentNode">
|
<a-dropdown :trigger="['click']" :getPopupContainer="triggerNode => triggerNode.parentNode" v-if="islogin">
|
||||||
<div class="item" @click="e => e.preventDefault()">
|
<div class="item" @click="e => e.preventDefault()">
|
||||||
<img src="@/static/images/qianbi.png" alt="" class="icon">
|
<img src="@/static/images/qianbi.png" alt="" class="icon">
|
||||||
<div class="name">{{userinfo.currency}}</div>
|
<div class="name">{{userinfo.currency}}</div>
|
||||||
@ -97,7 +97,7 @@
|
|||||||
</a-menu>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
<div class="item" style="border-right: none;" @click="navto('/regime/date')">
|
<div class="item" style="border-right: none;" @click="navto('/regime/date')" v-if="islogin">
|
||||||
<img src="@/static/images/rili.png" alt="" class="icon">
|
<img src="@/static/images/rili.png" alt="" class="icon">
|
||||||
<div class="name">{{lan.$t('rili')}}</div>
|
<div class="name">{{lan.$t('rili')}}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -282,6 +282,8 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
const nowroute=ref<string>("")
|
const nowroute=ref<string>("")
|
||||||
|
|
||||||
|
const islogin = computed(()=>store.state.islogin)
|
||||||
|
|
||||||
function navto(index: number | string){
|
function navto(index: number | string){
|
||||||
if(!store.state.islogin){
|
if(!store.state.islogin){
|
||||||
return ;
|
return ;
|
||||||
@ -337,7 +339,8 @@ export default defineComponent({
|
|||||||
setlanguage,
|
setlanguage,
|
||||||
nowroute,
|
nowroute,
|
||||||
toindex,
|
toindex,
|
||||||
lan
|
lan,
|
||||||
|
islogin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -76,15 +76,15 @@
|
|||||||
width: 62px;
|
width: 62px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
background-color: #ccc;
|
background-color: #07AD97;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 9px;
|
font-size: 9px;
|
||||||
&:hover{
|
// &:hover{
|
||||||
background-color: #07AD97;
|
// background-color: #;
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
</a-select-option>
|
</a-select-option>
|
||||||
<a-select-option value="Jiangsu"> Jiangsu </a-select-option>
|
<a-select-option value="Jiangsu"> Jiangsu </a-select-option>
|
||||||
</a-select> -->
|
</a-select> -->
|
||||||
<a-select :default-value="quhaolist[0].code" size="small" @change="getquhao" class="getcode">
|
<a-select :default-value="quhaolist[0].name + '+' + quhaolist[0].code" size="small" option-label-prop="label" @change="getquhao" class="getcode" show-search >
|
||||||
<a-select-option v-for="(i,j) in quhaolist" :key="j" :value="i.code">
|
<a-select-option v-for="(i,j) in quhaolist" :key="j" :value="i.name + '+' + i.code" :label="'+' + i.code">
|
||||||
{{i.name}}+{{i.code}}
|
{{i.name}}+{{i.code}}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
<!-- <a-select-option value="Jiangsu"> Jiangsu </a-select-option> -->
|
<!-- <a-select-option value="Jiangsu"> Jiangsu </a-select-option> -->
|
||||||
@ -206,6 +206,7 @@ export default defineComponent({
|
|||||||
function getquhao(e?: any){
|
function getquhao(e?: any){
|
||||||
console.log(e)
|
console.log(e)
|
||||||
myquhao.value = e.toString()
|
myquhao.value = e.toString()
|
||||||
|
myquhao.value = myquhao.value.split("+")[1];
|
||||||
console.log(myquhao.value)
|
console.log(myquhao.value)
|
||||||
}
|
}
|
||||||
function login(): void {
|
function login(): void {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="line"></div>
|
<div class="line"></div>
|
||||||
<div class="choose">
|
<div class="choose">
|
||||||
<div class="label">{{lan.$t('xuanzezhanghu')}}</div>
|
<div class="label"><span style="color:red">*</span>{{lan.$t('xuanzezhanghu')}}</div>
|
||||||
<!-- <a-radio></a-radio> -->
|
<!-- <a-radio></a-radio> -->
|
||||||
<div v-if="lan.$s()=='zh'">
|
<div v-if="lan.$s()=='zh'">
|
||||||
<a-radio-group
|
<a-radio-group
|
||||||
@ -58,11 +58,11 @@
|
|||||||
<a-form >
|
<a-form >
|
||||||
<div>
|
<div>
|
||||||
<div class="infoitem">
|
<div class="infoitem">
|
||||||
<span class="label label1">{{lan.$t('xingming')}}</span>
|
<span class="label label1"><span style="color:red">*</span>{{lan.$t('xingming')}}</span>
|
||||||
<a-input v-model:value="accountinfo.mname" class="shuru" :placeholder="lan.$t('shuruxingming')" />
|
<a-input v-model:value="accountinfo.mname" class="shuru" :placeholder="lan.$t('shuruxingming')" />
|
||||||
</div>
|
</div>
|
||||||
<div class="infoitem">
|
<div class="infoitem">
|
||||||
<span class="label label1">{{lan.$t('kahao')}}</span>
|
<span class="label label1"><span style="color:red">*</span>{{lan.$t('kahao')}}</span>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="accountinfo.bankcode"
|
v-model:value="accountinfo.bankcode"
|
||||||
class="shuru"
|
class="shuru"
|
||||||
@ -70,7 +70,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="infoitem">
|
<div class="infoitem">
|
||||||
<span class="label label1">{{lan.$t('kaihuhang')}}</span>
|
<span class="label label1"><span style="color:red">*</span>{{lan.$t('kaihuhang')}}</span>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="accountinfo.bankname"
|
v-model:value="accountinfo.bankname"
|
||||||
class="shuru shuru2"
|
class="shuru shuru2"
|
||||||
@ -83,7 +83,7 @@
|
|||||||
<div class="cashoutmoney" v-if="accountinfo.type == 2 && lan.$s()=='zh'">
|
<div class="cashoutmoney" v-if="accountinfo.type == 2 && lan.$s()=='zh'">
|
||||||
<div>
|
<div>
|
||||||
<div class="infoitem">
|
<div class="infoitem">
|
||||||
<span class="label label1">{{lan.$t('zhanghao')}}</span>
|
<span class="label label1"><span style="color:red">*</span>{{lan.$t('zhanghao')}}</span>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="accountinfo.account"
|
v-model:value="accountinfo.account"
|
||||||
class="shuru"
|
class="shuru"
|
||||||
@ -93,7 +93,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cashoutmoney" v-if="accountinfo.type == 1 && lan.$s()=='zh'">
|
<div class="cashoutmoney" v-if="accountinfo.type == 1 && lan.$s()=='zh'">
|
||||||
<div class="label label1">{{lan.$t('saomabangding')}}</div>
|
<div class="label label1"><span style="color:red">*</span>{{lan.$t('saomabangding')}}</div>
|
||||||
<div class="ewmbox">
|
<div class="ewmbox">
|
||||||
<img src="@/static/images/erweima.png" alt="" class="ewmpic" />
|
<img src="@/static/images/erweima.png" alt="" class="ewmpic" />
|
||||||
<div class="desc">{{lan.$t('zhu')}}:</div>
|
<div class="desc">{{lan.$t('zhu')}}:</div>
|
||||||
@ -106,11 +106,11 @@
|
|||||||
<div class="cashoutmoney" v-if="paytypeforign == 1 && lan.$s()=='en'">
|
<div class="cashoutmoney" v-if="paytypeforign == 1 && lan.$s()=='en'">
|
||||||
<div>
|
<div>
|
||||||
<div class="infoitem">
|
<div class="infoitem">
|
||||||
<span class="label label1">{{lan.$t('zhanghuming')}}</span>
|
<span class="label label1"><span style="color:red">*</span>{{lan.$t('zhanghuming')}}</span>
|
||||||
<a-input v-model="accountinfo.mname" class="shuru" :placeholder="lan.$t('shuruxingming')" />
|
<a-input v-model="accountinfo.mname" class="shuru" :placeholder="lan.$t('shuruxingming')" />
|
||||||
</div>
|
</div>
|
||||||
<div class="infoitem">
|
<div class="infoitem">
|
||||||
<span class="label label1">{{lan.$t('yinhangzhanghu')}}</span>
|
<span class="label label1"><span style="color:red">*</span>{{lan.$t('yinhangzhanghu')}}</span>
|
||||||
<a-input
|
<a-input
|
||||||
v-model="accountinfo.bankcode"
|
v-model="accountinfo.bankcode"
|
||||||
class="shuru shuru2"
|
class="shuru shuru2"
|
||||||
@ -118,7 +118,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="infoitem infoitem1">
|
<div class="infoitem infoitem1">
|
||||||
<div class="label label1 label2"> {{lan.$t(yinhangbic)}} /swift code </div>
|
<div class="label label1 label2"> <span style="color:red">*</span>{{lan.$t(yinhangbic)}} /swift code </div>
|
||||||
<a-input
|
<a-input
|
||||||
v-model="accountinfo.bankname"
|
v-model="accountinfo.bankname"
|
||||||
class="shuru shuru1"
|
class="shuru shuru1"
|
||||||
@ -131,7 +131,7 @@
|
|||||||
<div class="cashoutmoney" v-if="paytypeforign == 2 && lan.$s()=='en'">
|
<div class="cashoutmoney" v-if="paytypeforign == 2 && lan.$s()=='en'">
|
||||||
<div>
|
<div>
|
||||||
<div class="infoitem">
|
<div class="infoitem">
|
||||||
<span class="label label1">{{lan.$t('zhanghao')}}</span>
|
<span class="label label1"><span style="color:red">*</span>{{lan.$t('zhanghao')}}</span>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="accountinfo.account"
|
v-model:value="accountinfo.account"
|
||||||
class="shuru"
|
class="shuru"
|
||||||
|
@ -85,9 +85,9 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<a-select-option
|
<a-select-option
|
||||||
v-for="(item, index) in chiveslist[1]"
|
v-for="(item, index) in interestslist"
|
||||||
:key="index"
|
:key="index"
|
||||||
:value="item.languageid"
|
:value="parseInt(item.value)"
|
||||||
>
|
>
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
@ -516,6 +516,7 @@ import {
|
|||||||
getlanguages,
|
getlanguages,
|
||||||
getquhaolist,
|
getquhaolist,
|
||||||
getzonelist,
|
getzonelist,
|
||||||
|
interests,
|
||||||
putmember,
|
putmember,
|
||||||
sendsms,
|
sendsms,
|
||||||
} from "@/api/index";
|
} from "@/api/index";
|
||||||
@ -549,6 +550,10 @@ export default defineComponent({
|
|||||||
const formData = ref(toRaw(userinfo.value));
|
const formData = ref(toRaw(userinfo.value));
|
||||||
watch(userinfo, () => {
|
watch(userinfo, () => {
|
||||||
formData.value = toRaw(userinfo.value);
|
formData.value = toRaw(userinfo.value);
|
||||||
|
// console.log(lan.$s(), formData.value.languageValue)
|
||||||
|
if(lan.$s() != formData.value.languageValue){
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
console.log(userinfo.value.currencyValue, "listsssss");
|
console.log(userinfo.value.currencyValue, "listsssss");
|
||||||
currencyindex.value = userinfo.value.currency;
|
currencyindex.value = userinfo.value.currency;
|
||||||
console.log(currencyindex.value, "listsssss");
|
console.log(currencyindex.value, "listsssss");
|
||||||
@ -586,6 +591,20 @@ export default defineComponent({
|
|||||||
zoneid: 1,
|
zoneid: 1,
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
const interestslist = ref<any>([
|
||||||
|
{
|
||||||
|
"dictionaryid": 202,
|
||||||
|
"name": "中文",
|
||||||
|
"alias": "",
|
||||||
|
"code": "104110001000",
|
||||||
|
"position": 1,
|
||||||
|
"publish": 1,
|
||||||
|
"value": "1",
|
||||||
|
"deleted_at": null,
|
||||||
|
"created_at": "2020-08-13 18:17:18",
|
||||||
|
"updated_at": "2020-08-13 18:17:18"
|
||||||
|
}
|
||||||
|
])
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
chiveslist.value = await getarchives();
|
chiveslist.value = await getarchives();
|
||||||
languages.value = await getlanguages();
|
languages.value = await getlanguages();
|
||||||
@ -593,8 +612,8 @@ export default defineComponent({
|
|||||||
myquhao.value = quhaolist.value[0].code;
|
myquhao.value = quhaolist.value[0].code;
|
||||||
currencylist.value = await getcurrencys();
|
currencylist.value = await getcurrencys();
|
||||||
zonelist.value = await getzonelist();
|
zonelist.value = await getzonelist();
|
||||||
|
interestslist.value = await interests();
|
||||||
// currencyindex.value=userinfo.value.currencyValue
|
// currencyindex.value=userinfo.value.currencyValue
|
||||||
|
|
||||||
console.log(userinfo.value);
|
console.log(userinfo.value);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -974,6 +993,7 @@ export default defineComponent({
|
|||||||
showname,
|
showname,
|
||||||
uploadspic,
|
uploadspic,
|
||||||
lan,
|
lan,
|
||||||
|
interestslist
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -1176,7 +1196,7 @@ export default defineComponent({
|
|||||||
.confirm-btn {
|
.confirm-btn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background: #ccc;
|
background: #07ad97;
|
||||||
font-size: 9px;
|
font-size: 9px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
@ -1188,9 +1208,9 @@ export default defineComponent({
|
|||||||
padding: 0 17px;
|
padding: 0 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.confirm-btn:hover {
|
// .confirm-btn:hover {
|
||||||
background: #07ad97;
|
// background: #07ad97;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
.password-container {
|
.password-container {
|
||||||
.title {
|
.title {
|
||||||
@ -1254,7 +1274,7 @@ export default defineComponent({
|
|||||||
.submit-btn {
|
.submit-btn {
|
||||||
width: 63px;
|
width: 63px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: #ccc;
|
background: #08ae98;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@ -1264,9 +1284,9 @@ export default defineComponent({
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
.submit-btn:hover {
|
// .submit-btn:hover {
|
||||||
background: #08ae98;
|
// background: #08ae98;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
::v-deep(.ant-upload-list) {
|
::v-deep(.ant-upload-list) {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -2,14 +2,14 @@
|
|||||||
<div class="upload-video">
|
<div class="upload-video">
|
||||||
<a-form :label-col="labelCol" :wrapper-col="wrapperCol">
|
<a-form :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||||
<div class="title">{{ lan.$t("shangchuanshipin") }}</div>
|
<div class="title">{{ lan.$t("shangchuanshipin") }}</div>
|
||||||
<a-form-item :label="lan.$t('shipinbiaoti')">
|
<a-form-item :label="lan.$t('shipinbiaoti')" :rules="{ required: true, message: 'Please input Activity name', trigger: 'blur'}">
|
||||||
<a-input
|
<a-input
|
||||||
size="small"
|
size="small"
|
||||||
v-model:value="form.title"
|
v-model:value="form.title"
|
||||||
:placeholder="lan.$t('shurushipinbiaoti')"
|
:placeholder="lan.$t('shurushipinbiaoti')"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :label="lan.$t('shipinfengmian')" class="video-cover">
|
<a-form-item :label="lan.$t('shipinfengmian')" class="video-cover" :rules="{ required: true, message: 'Please input Activity name', trigger: 'blur'}">
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<a-upload
|
<a-upload
|
||||||
list-type="picture"
|
list-type="picture"
|
||||||
@ -54,6 +54,7 @@
|
|||||||
<a-form-item
|
<a-form-item
|
||||||
:label="lan.$t('shipinjieshao')"
|
:label="lan.$t('shipinjieshao')"
|
||||||
class="video-introduction"
|
class="video-introduction"
|
||||||
|
:rules="{ required: true, message: 'Please input Activity name', trigger: 'blur'}"
|
||||||
>
|
>
|
||||||
<a-upload
|
<a-upload
|
||||||
list-type="picture"
|
list-type="picture"
|
||||||
@ -298,8 +299,6 @@ export default defineComponent({
|
|||||||
return;
|
return;
|
||||||
} else if (subdata.fileurl == "") {
|
} else if (subdata.fileurl == "") {
|
||||||
message.error(lan.$t("wenjianweikong"));
|
message.error(lan.$t("wenjianweikong"));
|
||||||
} else if (subdata.desc == "") {
|
|
||||||
message.error(lan.$t("jianjieweikong"));
|
|
||||||
} else {
|
} else {
|
||||||
if (routes.query.id) {
|
if (routes.query.id) {
|
||||||
form.value.id = routes.query.id;
|
form.value.id = routes.query.id;
|
||||||
@ -424,14 +423,14 @@ export default defineComponent({
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
width: 63px;
|
width: 63px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: #ccc;
|
background: #08ae98;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
&:hover {
|
// &:hover {
|
||||||
background: #08ae98;
|
// background: #08ae98;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.video-cover {
|
.video-cover {
|
||||||
|
@ -122,6 +122,7 @@
|
|||||||
show-time
|
show-time
|
||||||
format="YYYY-MM-DD HH:mm"
|
format="YYYY-MM-DD HH:mm"
|
||||||
:value="form.dateline"
|
:value="form.dateline"
|
||||||
|
:disabled-date="disabledDate"
|
||||||
@change="startchange"
|
@change="startchange"
|
||||||
:placeholder="lan.$t('shezhikaishishijian')"
|
:placeholder="lan.$t('shezhikaishishijian')"
|
||||||
:getCalendarContainer="
|
:getCalendarContainer="
|
||||||
@ -372,9 +373,6 @@ export default defineComponent({
|
|||||||
} else if (subdata.livenumber == "") {
|
} else if (subdata.livenumber == "") {
|
||||||
message.error(lan.$t('zhiborenshuweikong'));
|
message.error(lan.$t('zhiborenshuweikong'));
|
||||||
return;
|
return;
|
||||||
} else if (subdata.desc == "") {
|
|
||||||
message.error(lan.$t('zhibojianjieweikong'));
|
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
if(subdata.livetime < 30 || subdata.livetime > 120){
|
if(subdata.livetime < 30 || subdata.livetime > 120){
|
||||||
message.error("直播时长最短30min, 最长120min");
|
message.error("直播时长最短30min, 最长120min");
|
||||||
@ -515,6 +513,12 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function disabledDate(current: any){
|
||||||
|
console.log(current + 0)
|
||||||
|
const now = dayjs().date(dayjs().date() - 1);
|
||||||
|
return current && current < now;
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
labelCol: { span: 4 },
|
labelCol: { span: 4 },
|
||||||
wrapperCol: { span: 14 },
|
wrapperCol: { span: 14 },
|
||||||
@ -545,6 +549,7 @@ export default defineComponent({
|
|||||||
ifallowupload,
|
ifallowupload,
|
||||||
fankui,
|
fankui,
|
||||||
lan,
|
lan,
|
||||||
|
disabledDate
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@ -621,14 +626,14 @@ export default defineComponent({
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
width: 63px;
|
width: 63px;
|
||||||
height: 23px;
|
height: 23px;
|
||||||
background: #ccc;
|
background: #08ae98;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
&:hover{
|
// &:hover{
|
||||||
background: #08ae98;
|
// background: #08ae98;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item-cover {
|
.item-cover {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user