packageBookService/pages/bookServices/detail/index.js
@@ -1928,14 +1928,7 @@ }); return false; } if (this.data.paperBookList.length >= 2) { wx.showToast({ title: "每次最多只可申请2本样书", icon: "none", duration: 1000, }); return false; } let isHas = this.data.paperBookList.find( (pitem) => pitem.id == this.data.bookDetail.id ); @@ -1947,6 +1940,14 @@ }); return false; } if (this.data.paperBookList.length >= 2) { wx.showToast({ title: "每次最多只可申请2本样书", icon: "none", duration: 1000, }); return false; } this.addBookFun(this.data.bookDetail, "pBook"); } else { wx.showModal({