闫增涛
2024-09-19 cfd502b3e4c27bf8d0d92002e918835dccb06e05
packageBookService/pages/bookServices/detail/components/learnResource/learnResource.js
@@ -18,6 +18,14 @@
    },
    isGoBuyResource: {
      type: Boolean
    },
    isShowBuyCloundMenu: {
      type: Boolean,
      default: false
    },
    isShowBuyCloundBtn:{
      type:Boolean,
      default:true
    }
  },
@@ -68,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)
    }
  }
})