| | |
| | | |
| | | getDataList(isReachBottom) { |
| | | var searchArr = []; |
| | | console.log(this.data.searchText, "earch") |
| | | if (this.data.searchText != undefined && this.data.searchText != "") { |
| | | searchArr.push({ |
| | | compareType: "Contains", |
| | |
| | | }) |
| | | } else { |
| | | this.setData({ |
| | | list: [], |
| | | skeletonLoding: false, |
| | | loading: false |
| | | }) |
| | |
| | | }) |
| | | this.getDataList(false); |
| | | }, |
| | | async goBookDetails(e) { |
| | | |
| | | console.log(e.currentTarget.dataset); |
| | | const { |
| | | book, |
| | | remarks |
| | | } = e.currentTarget.dataset; |
| | | let parentData = null; |
| | | let bookId = book.orderSaleMethod.product.id; |
| | | |
| | | parentData = await app.MG.store.getProductBySaleMethod({ |
| | | 'saleMethodId': book.orderSaleMethod.id |
| | | }) |
| | | if (parentData.parentProduct.length > 0) { |
| | | bookId = parentData.parentProduct[parentData.parentProduct.length - 1].id; |
| | | } |
| | | wx.navigateTo({ |
| | | url: `/packageBookService/pages/bookServices/detail/index?id=${bookId}&name=${book.name}`, |
| | | }); |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |