// pages/Component/showList/showList.js const util = require("../../../utils/util") const urlDef = require("../../../utils/urls") Component({ /** * 组件的属性列表 */ properties: { list: { type: Array, value: [] }, }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { doThumbsUp: function (e) { let id = e.currentTarget.dataset.id this.properties.list.map(o => { if (o.videoId == id) { this.triggerEvent('callThumbsUp', o) } }) }, doPlay: function (e) { let playUrl = e.currentTarget.dataset.url console.log('playUrl: ' + playUrl) } }, })