😑 日常写BUG, 改BUG

This commit is contained in:
hunlongyu
2020-05-30 16:14:26 +08:00
parent 214a267ba5
commit 79adbd1f81
4 changed files with 14 additions and 10238 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "zy",
"version": "1.0.13",
"version": "1.0.14",
"private": true,
"author": {
"name": "Hunlongyu",
@@ -16,7 +16,8 @@
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps",
"electron:generate-icons": "electron-icon-builder --input=./public/icon.png --output=build --flatten",
"release": "vue-cli-service electron:build -p always"
"release": "vue-cli-service electron:build -p always",
"dist": "vue-cli-service electron:build --win --ia32"
},
"main": "background.js",
"dependencies": {

View File

@@ -299,7 +299,7 @@ export default {
top: 50px;
left: 0;
width: 100%;
height: calc(100 - 50px);
height: calc(100% - 50px);
display: flex;
justify-content: center;
align-items: center;

View File

@@ -191,11 +191,8 @@ export default {
this.right.show = false
this.right.type = ''
},
video: {
handler () {
this.getUrls()
},
deep: true
'video.index' () {
this.getUrls()
}
},
methods: {
@@ -224,12 +221,10 @@ export default {
this.right.listData = res.m3u8_urls
const m = res.m3u8_urls
console.log(m, 'm3u8 url')
const arr = []
for (const i of m) {
arr.push(i.split('$')[1])
}
console.log(arr)
this.length = arr.length
this.xg.src = arr[index]
this.showNext = this.length > 1
@@ -254,8 +249,6 @@ export default {
}
this.xg.off('ended')
})
console.log(this.xg.src, 'src')
})
})
},
@@ -319,24 +312,24 @@ export default {
this.right.type = ''
},
nextEvent () {
const v = { ...this.video }
const i = v.index + 1
if (i < this.right.listData.length) {
this.video.currentTime = 0
console.log(this.video.index, 'inex 1')
if (this.video.index < this.right.listData.length - 1) {
this.video.index++
this.video.currentTime = 0
} else {
this.$m.warning(this.$t('last_video'))
}
console.log(this.video.index, 'inex 2')
},
prevEvent () {
const v = { ...this.video }
const i = v.index - 1
if (i > 0) {
this.video.currentTime = 0
console.log(this.video.index, 'inex 3')
if (this.video.index > 0) {
this.video.index--
this.video.currentTime = 0
} else {
this.$m.warning(this.$t('first_video'))
}
console.log(this.video.index, 'inex 4')
},
listEvent () {
if (this.right.type === 'list') {

10218
yarn.lock

File diff suppressed because it is too large Load Diff