packageBookService/pages/bookServices/detail/components/learnResource/learnResource.js
@@ -23,6 +23,10 @@ type: Boolean, default: false }, isShowBuyCloundBtn:{ type:Boolean, default:true } }, /** @@ -72,6 +76,14 @@ wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/components/learnTask/index?bookId=${this.properties.bookId}`, }) }, buyCloudLearnClass() { var myEventDetail = {} // detail对象,提供给事件监听函数 var myEventOption = { bubbles: true, composed: true } // 触发事件的选项 this.triggerEvent('buyCloudLearnClass', myEventDetail, myEventOption) } } })