添加了请求权限
This commit is contained in:
@@ -122,22 +122,22 @@
|
||||
<template v-slot:closeIcon>
|
||||
<img src="@/static/images/delete.png" class="close" />
|
||||
</template>
|
||||
<div class="notice-container report" v-if="0">
|
||||
<div class="notice-container report" v-if="lives.status == 1">
|
||||
<div class="title">您尚未获得直播资格</div>
|
||||
<div class="title sub-title">
|
||||
您被 学生XXX<span class="red">举报,发生违规行为</span
|
||||
>,如有疑问,点击反馈
|
||||
{{lives.data.msg}}
|
||||
</div>
|
||||
<div class="confirm-btn">意见反馈</div>
|
||||
</div>
|
||||
<div class="notice-container" v-else>
|
||||
<div class="title">您尚未获得直播资格</div>
|
||||
<div class="title sub-title">
|
||||
上一周/月您在平台视频点击量为
|
||||
<!-- 上一周/月您在平台视频点击量为
|
||||
<span class="red">第24名</span>,要在前
|
||||
<span class="bule">20名</span> 才能获得直播资格
|
||||
<span class="bule">20名</span> 才能获得直播资格 -->
|
||||
{{lives.msg}}
|
||||
</div>
|
||||
<rank-list></rank-list>
|
||||
<rank-list :list="lives.data"></rank-list>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
@@ -161,7 +161,7 @@ import RankList from "./RankList.vue";
|
||||
import { previewCover } from "@/utils/common";
|
||||
import { FromSend, ImgInfo } from "@/types/index";
|
||||
import { uploadflie } from "@/utils/vod";
|
||||
import { liveadd, liveinfo, setlive } from "@/api";
|
||||
import { getlivest, liveadd, liveinfo, setlive } from "@/api";
|
||||
import { useRoute } from 'vue-router';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
@@ -191,6 +191,7 @@ export default defineComponent({
|
||||
const uploadpicprogress: Ref<number> = ref(0);
|
||||
const videofile = ref<File>();
|
||||
const videos = ref<Array<any>>([]);
|
||||
const lives = ref<any>({});
|
||||
/**
|
||||
* 验证直播时间
|
||||
*/
|
||||
@@ -300,7 +301,7 @@ export default defineComponent({
|
||||
console.log("error", err);
|
||||
});
|
||||
};
|
||||
const isEntitled: Ref<boolean> = ref(false);
|
||||
const isEntitled: Ref<boolean> = ref(true);
|
||||
/**
|
||||
* 隐藏无资格提示
|
||||
*/
|
||||
@@ -366,6 +367,13 @@ export default defineComponent({
|
||||
form.value.img = res.video.url;
|
||||
}
|
||||
|
||||
getlivest().then((res) => {
|
||||
if(res){
|
||||
isEntitled.value = true;
|
||||
lives.value = res;
|
||||
}
|
||||
})
|
||||
|
||||
return {
|
||||
labelCol: { span: 4 },
|
||||
wrapperCol: { span: 14 },
|
||||
@@ -388,6 +396,7 @@ export default defineComponent({
|
||||
startchange,
|
||||
videofile,
|
||||
videos,
|
||||
lives
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user