From f9066bcdf11edfc2bd8f82efc64187c2ce1e20de Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Wed, 14 Oct 2020 16:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 22 ++++- src/components/VideoCont.vue | 160 ++++++++++++++++++--------------- src/components/VideoPlay.vue | 11 ++- src/views/regime/VideoInfo.vue | 18 ++-- 4 files changed, 128 insertions(+), 83 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 493ab4f..61ff106 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -197,14 +197,34 @@ interface VideoDetail{ deleted_at: null; created_at: string; updated_at: string; + share:number, + watch:number } export async function videodetail(data?:any) { const res=await get('video/'+data) - return res.data + console.log(res,"lllk") + return { + videoid: res.data.videoid, + memberid: res.data.memberid, + title: res.data.title, + img: res.data.img, + fileid: res.data.fileid, + fileurl: res.data.fileurl, + fileduration: res.data.fileduration, + status: res.data.status, + desc: res.data.desc, + deleted_at: res.data.deleted_at, + created_at: res.data.created_at, + updated_at: res.data.updated_at, + watch:res.data.watch, + share:res.data.share + } } + + /** * 删除视频 */ diff --git a/src/components/VideoCont.vue b/src/components/VideoCont.vue index 4f99382..5c62d20 100644 --- a/src/components/VideoCont.vue +++ b/src/components/VideoCont.vue @@ -1,87 +1,99 @@ \ No newline at end of file diff --git a/src/components/VideoPlay.vue b/src/components/VideoPlay.vue index 3446a3d..13e12cf 100644 --- a/src/components/VideoPlay.vue +++ b/src/components/VideoPlay.vue @@ -1,6 +1,7 @@