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