diff --git a/client/public/index.html b/client/public/index.html index fa2be91..432ad6d 100644 --- a/client/public/index.html +++ b/client/public/index.html @@ -6,12 +6,18 @@ <%= webpackConfig.name %> + + + + + +
- + diff --git a/client/src/api/video.js b/client/src/api/video.js index eef165e..4ec4bc3 100644 --- a/client/src/api/video.js +++ b/client/src/api/video.js @@ -43,10 +43,17 @@ export function getVideo(id) { }) } +export function getVideoPlayCode(id) { + return request({ + url: `/vod/playcode/${id}/`, + method: 'get' + }) +} + export function getMyView(id, data) { return request({ url: `/vod/video/${id}/myview/`, method: 'put', data }) -} \ No newline at end of file +} diff --git a/client/src/views/testvideo/index.vue b/client/src/views/testvideo/index.vue index 6921c99..5b4a5a4 100644 --- a/client/src/views/testvideo/index.vue +++ b/client/src/views/testvideo/index.vue @@ -25,7 +25,10 @@
{{ video.name }}
- {{video.viewsp}} +
+ {{video.views}} + {{video.viewsp}} +
视频描述:{{ video.description }}