45 lines
781 B
JavaScript
45 lines
781 B
JavaScript
// components/recentlyPlayed/index.js
|
|
import { PlayerManager } from "@/utils/playerManager";
|
|
|
|
Component({
|
|
/**
|
|
* 组件的属性列表
|
|
*/
|
|
properties: {
|
|
data: {
|
|
type: Object,
|
|
value: {},
|
|
observer: function (newVal, oldVal) {},
|
|
},
|
|
show: {
|
|
type: Boolean,
|
|
},
|
|
},
|
|
|
|
/**
|
|
* 组件的初始数据
|
|
*/
|
|
data: {},
|
|
|
|
/**
|
|
* 组件的方法列表
|
|
*/
|
|
methods: {
|
|
onChange() {
|
|
this.triggerEvent("change");
|
|
},
|
|
|
|
// 打开视频
|
|
openDetail(event) {
|
|
const data = event.currentTarget.dataset.item;
|
|
console.log(data);
|
|
if (data.wx_drama_id) {
|
|
PlayerManager.navigateToPlayer({
|
|
srcAppid: "wx2ab73633e3b9fcbf",
|
|
dramaId: data.wx_drama_id,
|
|
});
|
|
}
|
|
},
|
|
},
|
|
});
|