diff --git a/src/assets/data/resource.js b/src/assets/data/resource.js index ceb3466..f791a8d 100644 --- a/src/assets/data/resource.js +++ b/src/assets/data/resource.js @@ -1256,6 +1256,90 @@ export default { "is_private": 1 } }, + { + "id": "0be47c89-f6e8-4d5d-820a-072e75c52fbf", + video: 'http://douyin.ttentau.top/16.mp4', + "video_data_size": 17839401, + "duration": 262127, + "desc": "水刀的原理,为什么被称为最锋利的刀?", + "allow_download": 1, + "allow_duet": 0, + "allow_react": 0, + "allow_music": 1, + "allow_douplus": 1, + "allow_share": 1, + "digg_count": 156000, + "comment_count": 14000, + "download_count": 704, + "play_count": 0, + "share_count": 8982, + "forward_count": 36, + "collect_count": 856, + "sort": 252, + "is_top": 0, + city: '', + address: '', + "musicId": "11e5f2b6-3ecc-4f6c-ae95-609313b9e22a", + "create_time": "1630423745", + "creator_id": "54884802577", + "status": 1, + "topics": [ + { + "id": "6e2d8f8b-a7f3-43ca-861c-882abd9eeaf6", + "name": "科普", + "creator_id": "93864497380", + "create_time": "1630423585", + "status": 1 + }, + { + "id": "6e2d8f8b-a7f3-43ca-861c-882abd9eeaf6", + "name": "水刀", + "creator_id": "93864497380", + "create_time": "1630423585", + "status": 1 + } + ], + "music": { + "id": "8ce2cb26-4772-4c7b-91d9-a2580c667c21", + "cover": "https://p3.douyinpic.com/aweme/100x100/85f000239e43c3c985b5.jpeg?from=116350172", + "mp3": "https://sf6-cdn-tos.douyinstatic.com/obj/ies-music/6995889105167076132.mp3", + "title": "@原声-有你科技 - 胡歌", + "creator_id": "54884802577", + "create_time": "1630391758", + "status": 1 + }, + "author": { + school: { + name: '', + department: '', + joinTime: '', + education: '', + displayType: '', + }, + "id": "7", + "unique_id_modify_time": "1630393144", + "unique_id": "", + "favoriting_count": 143, + "avatar": new URL('../img/icon/avatar/25.png', import.meta.url).href, + "city": "", + "province": '', + "country": "", + "birthday": "", + "cover": "https://p3.douyinpic.com/obj/c8510002be9a3a61aad2?from=116350172", + "following_count": 78, + "follower_count": 123900, + "aweme_count": 2090000, + "nickname": "有你科技", + certification: '成都文化旅游发展股份有限公司西岭雪山运营分公司', + "phone": "", + "sex": "", + "last_login_time": "1630423555", + "create_time": "1630423555", + "status": 1, + "desc": `#窗含西岭千秋雪#\n千秋西岭,成都之颠,海拔5364米\n日出云海,阴阳界奇观`, + "is_private": 1 + } + }, ], my: [ { diff --git a/src/components/BVideo.vue b/src/components/BVideo.vue index 0e2945a..abb97b0 100644 --- a/src/components/BVideo.vue +++ b/src/components/BVideo.vue @@ -10,7 +10,7 @@

您的浏览器不支持 video 标签。

-
+
@@ -159,6 +159,12 @@ export default { default: () => { return false } + }, + isUp: { + type: Boolean, + default: () => { + return false + } } }, computed: { @@ -192,6 +198,7 @@ export default { test: [1, 2], lVideo: this.video, + videoScreenHeight: 0, videoPoster: `?vframe/jpg/offset/0/w/${document.body.clientWidth}` } }, @@ -203,10 +210,12 @@ export default { let video = this.$refs.video video.currentTime = 0 let fun = e => { + this.loading = false this.currentTime = Math.ceil(e.target.currentTime) this.pageX = this.currentTime * this.step } video.addEventListener('loadedmetadata', e => { + this.videoScreenHeight = video.videoHeight / (video.videoWidth / this.width) this.duration = video.duration if (this.duration > 60) { // if (this.duration > 6) { diff --git a/src/components/Comment.vue b/src/components/Comment.vue index e442729..1d7f6e4 100644 --- a/src/components/Comment.vue +++ b/src/components/Comment.vue @@ -5,7 +5,7 @@ @cancel="cancel" :show-heng-gang="false" maskMode="light" - height="70vh" + :height="height" mode="white">