🗃 进一步完善小窗口模式

This commit is contained in:
hunlongyu
2020-04-23 17:26:16 +08:00
parent 055813eabd
commit 74a7d6b35b
4 changed files with 122 additions and 22 deletions

View File

@@ -231,9 +231,6 @@ export default {
this.video.index++
}
})
this.xg.on('error', () => {
console.log('play error')
})
}).catch(err => {
this.$m.error(err)
})
@@ -263,6 +260,7 @@ export default {
const h = { ...this.video }
history.find({ detail: h.detail }).then(res => {
if (res) {
h.id = res.id
history.update(res.id, h)
} else {
h.currentTime = ''
@@ -347,11 +345,11 @@ export default {
this.xg.pause()
mini.find().then(res => {
const d = { ...this.video }
delete d.id
d.currentTime = this.xg.currentTime
d.id = 0
if (res) {
mini.update(d)
} else {
d.id = 0
mini.add(d)
}
ipc.send('min')

View File

@@ -29,8 +29,6 @@
</div>
<div class="tFooter">
<span class="tFooter-span">{{data.length}} {{$t('total')}}</span>
<span @click="oneClickUpdate">一键更新</span>
<span @click="cancleUpdate">取消更新</span>
</div>
</div>
</div>
@@ -123,15 +121,6 @@ export default {
v: e
}
},
oneClickUpdate () {
video.all().then(res => {
const arr = res.reverse()
for (const i of arr) {
console.log(i, 'iiiii')
}
})
},
cancleUpdate () {},
updateEvent (e) {
tools.detail_get(e.site, e.detail).then(res => {
const nameOne = e.name.replace(/\s*/g, '')