From 4c472f6bbf82e5ef95b60ac8e417760d89a7ba36 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期五, 29 三月 2024 19:39:17 +0800 Subject: [PATCH] 购物车2 --- packagePersonal/pages/sampleBooks/index.js | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/packagePersonal/pages/sampleBooks/index.js b/packagePersonal/pages/sampleBooks/index.js index 984fa38..317096f 100644 --- a/packagePersonal/pages/sampleBooks/index.js +++ b/packagePersonal/pages/sampleBooks/index.js @@ -46,6 +46,22 @@ */ onLoad(options) { console.log(options); + if (options) { + this.setData({ + active: options.tabActive, + active1: options.stateTab + }) + if (this.data.active == '1') { + this.setData({ + topicIdOrRefCode: 'applyBook', + }) + } else { + this.setData({ + topicIdOrRefCode: 'applyEntityBook', + }) + } + } + console this.getDataList(false); }, tabClick(item) { -- Gitblit v1.9.1