packageBookService/pages/bookServices/detail/components/relatedBooks/index.js
@@ -6,10 +6,15 @@ properties: { relatedBookData: { type: Array, value:[] value: [], }, relatedBookLoading: { type: Boolean, }, noRelatedBookData: { type: Boolean, }, }, /** * 组件的初始数据 */ @@ -18,5 +23,18 @@ /** * 组件的方法列表 */ methods: {}, methods: { goBookDetails(e) { const item = e.currentTarget.dataset.item; var myEventDetail = { id: item.id, name: item.name, }; var myEventOption = { bubbles: true, composed: true, }; this.triggerEvent("goBookDetails", myEventDetail, myEventOption); }, }, });