- -
+
-
{{i.name}}
{{i.type}}
{{i.year}}
@@ -94,10 +94,10 @@
{{i.site.name}}
{{i.note}}
- 播放
- 收藏
- 分享
- 下载
+ 播放
+ 收藏
+ 分享
+ 下载
@@ -281,30 +281,30 @@ export default {
}
})
},
- detailEvent (e) {
+ detailEvent (site, e) {
this.detail = {
show: true,
- key: this.site.key,
+ key: site.key,
info: e
}
},
- playEvent (e) {
- history.find({ site: this.site.key, ids: e.id }).then(res => {
+ playEvent (site, e) {
+ history.find({ site: site.key, ids: e.id }).then(res => {
if (res) {
this.video = { key: res.site, info: { id: res.ids, name: res.name, index: res.index } }
} else {
- this.video = { key: this.site.key, info: { id: e.id, name: e.name, index: 0 } }
+ this.video = { key: site.key, info: { id: e.id, name: e.name, index: 0 } }
}
})
this.view = 'Play'
},
- starEvent (e) {
- star.find({ site: this.site.key, ids: e.id }).then(res => {
+ starEvent (site, e) {
+ star.find({ site: site.key, ids: e.id }).then(res => {
if (res) {
this.$message.info('已存在')
} else {
const docs = {
- site: this.site.key,
+ site: site,
ids: e.id,
name: e.name,
type: e.type,
@@ -320,15 +320,15 @@ export default {
this.$message.warning('收藏失败')
})
},
- shareEvent (e) {
+ shareEvent (site, e) {
this.share = {
show: true,
- key: this.site.key,
+ key: site.key,
info: e
}
},
- downloadEvent (e) {
- zy.download(this.site.key, e.id).then(res => {
+ downloadEvent (site, e) {
+ zy.download(site.key, e.id).then(res => {
if (res.length > 0) {
const text = res.dl.dd._t
if (text) {
diff --git a/src/components/Star.vue b/src/components/Star.vue
index 882757c..d6ef016 100644
--- a/src/components/Star.vue
+++ b/src/components/Star.vue
@@ -11,7 +11,7 @@
{{i.name}}
{{i.type}}
{{i.year}}
-
{{i.site}}
+
{{i.site.name}}
{{i.note}}
播放
@@ -83,7 +83,7 @@ export default {
detailEvent (e) {
this.detail = {
show: true,
- key: e.site,
+ key: e.site.key,
info: {
id: e.ids,
name: e.name
@@ -91,11 +91,11 @@ export default {
}
},
playEvent (e) {
- history.find({ site: e.site, ids: e.ids }).then(res => {
+ history.find({ site: e.site.key, ids: e.ids }).then(res => {
if (res) {
this.video = { key: res.site, info: { id: res.ids, name: res.name, index: res.index } }
} else {
- this.video = { key: e.site, info: { id: e.ids, name: e.name, index: 0 } }
+ this.video = { key: e.site.key, info: { id: e.ids, name: e.name, index: 0 } }
}
})
this.view = 'Play'
@@ -113,12 +113,12 @@ export default {
shareEvent (e) {
this.share = {
show: true,
- key: e.site,
+ key: e.site.key,
info: e
}
},
updateEvent (e) {
- zy.detail(e.site, e.ids).then(res => {
+ zy.detail(e.site.key, e.ids).then(res => {
if (e.last === res.last) {
var msg = `同步"${e.name}"成功, 未查询到更新。`
this.$message.info(msg)
@@ -150,7 +150,7 @@ export default {
})
},
downloadEvent (e) {
- zy.download(e.site, e.ids).then(res => {
+ zy.download(e.site.key, e.ids).then(res => {
if (res) {
const text = res.dl.dd._t
if (text) {