闫增涛
2024-04-09 3d73fb33c46aada16a6060adcd4ea14bb33b6b2a
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);
    },
  },
});