From f72f8966ba4e1715e8df82d5cf1c7e912b6da719 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 01 四月 2024 10:21:07 +0800 Subject: [PATCH] 检索的bug --- pages/student/index.js | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/pages/student/index.js b/pages/student/index.js index f3cc83e..e6050f6 100644 --- a/pages/student/index.js +++ b/pages/student/index.js @@ -1,5 +1,7 @@ const app = getApp(); -import { getPublicImage } from "../../assets/js/middleGround/tool.js"; +import { + getPublicImage +} from "../../assets/js/middleGround/tool.js"; Page({ /** @@ -23,7 +25,6 @@ isBackTop: false, setScrollValue: 0, skeletonLoding: true, - }, /** @@ -74,12 +75,10 @@ } else if (this.data.active == '2') { keywords = "jsek_digitalTextbooks"; } - let searchData = [ - { - keywords: keywords, - field: "ProductType", - }, - ]; + let searchData = [{ + keywords: keywords, + field: "ProductType", + }, ]; let data = { Size: this.data.limit, Start: this.data.page * this.data.limit - this.data.limit, @@ -120,6 +119,15 @@ } }) }, + + goBookDetails(e) { + const { + book + } = e.currentTarget.dataset; + wx.navigateTo({ + url: `/packageBookService/pages/bookServices/detail/index?id=${book.product.id}&name=${book.product.name}`, + }); + }, /** * 椤甸潰鐩稿叧浜嬩欢澶勭悊鍑芥暟--鐩戝惉鐢ㄦ埛涓嬫媺鍔ㄤ綔 */ -- Gitblit v1.9.1