From c6abdfaf883e35e9c930dbdbe533d36e2966eb23 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 08 七月 2024 12:00:37 +0800 Subject: [PATCH] 检索页修改 --- pages/retrievalPage/index.js | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 51 insertions(+), 7 deletions(-) diff --git a/pages/retrievalPage/index.js b/pages/retrievalPage/index.js index 36d58a7..4346ab2 100644 --- a/pages/retrievalPage/index.js +++ b/pages/retrievalPage/index.js @@ -38,8 +38,41 @@ page: 1, total: 0, }, - tabValue: '0', + tabValue: 0, tabPanelstyle: 'display:flex;justify-content:center;align-items:center;', + // tab閫夐」 + tabList: [{ + title: "鍥句功", + index: "0", + // bookTotal: this.data.bookTotal + }, + { + title: "璇剧▼", + index: "1", + // bookTotal: this.data.courseTotal + }, + { + title: "鏁板瓧鏁欐潗", + index: "2", + // bookTotal: this.data.digitalTextbooksTotal + }, { + title: "涓撻", + index: "3", + // bookTotal: this.data.seminarTotal + }, + { + title: "涔︾洰", + index: "4", + // bookTotal: this.data.bookFairTotal + }, + { + title: "涔﹀睍", + index: "5", + // bookTotal: this.data.biblioClassificationTotal + }, + ], + tabsId: 0, //榛樿閫夊瀷涓鸿澶� + }, /** @@ -139,11 +172,6 @@ } else { this.retrievalPageGet() } - - - - - }, retrievalPageGet() { @@ -874,5 +902,21 @@ }, tabClick() { console.log(2323); - } + }, + // 婊戝姩鏃惰Е鍙戠殑浜嬩欢 + slideOn(e) { + // 鎷垮埌褰撳墠绱㈠紩骞跺姩鎬佹敼鍙� + this.setData({ + tabsId: e.detail.current + }) + }, + + //鐐瑰嚮tab鏃惰Е鍙� + tabsOn(e) { + this.setData({ + //鎷垮埌褰撳墠绱㈠紩骞跺姩鎬佹敼鍙� + tabsId: e.currentTarget.dataset.idx + }) + }, + }) \ No newline at end of file -- Gitblit v1.9.1