packageBookService/pages/bookServices/detail/components/testResource/testResource.js
@@ -8,6 +8,9 @@ isBuyBank: { type: Boolean }, isShoppingBank: { type: Boolean }, bankSaleData: { type: Object }, @@ -222,6 +225,15 @@ composed: true } // 触发事件的选项 this.triggerEvent('buyBank', myEventDetail, myEventOption) }, // 题库加入购物车 handleShoppingBank() { var myEventDetail = {} var myEventOption = { bubbles: true, composed: true } this.triggerEvent('handleShoppingBank', myEventDetail, myEventOption) } }, });