Showing
1 changed file
with
7 additions
and
1 deletions
| ... | @@ -86,7 +86,13 @@ export default { | ... | @@ -86,7 +86,13 @@ export default { |
| 86 | ] | 86 | ] |
| 87 | }) | 87 | }) |
| 88 | this.mp = mp; | 88 | this.mp = mp; |
| 89 | - this.detail = _.cloneDeep(this.item) | 89 | + this.detail = _.cloneDeep(this.item); |
| 90 | + var video = mp.video(); | ||
| 91 | + // 监听原生video事件 | ||
| 92 | + var _this = this; | ||
| 93 | + video && video.addEventListener('play', function (event) { | ||
| 94 | + _this.handleAction('play', _this.item.id) | ||
| 95 | + }); | ||
| 90 | }, 500); | 96 | }, 500); |
| 91 | }, | 97 | }, |
| 92 | methods: { | 98 | methods: { | ... | ... |
-
Please register or login to post a comment