From 80921e1122d8dcf8d0080015b00b8df5cadb90e6 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 06 九月 2024 11:47:50 +0800 Subject: [PATCH] study --- packageDomain/pages/resourceDetails/document/index.js | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/packageDomain/pages/resourceDetails/document/index.js b/packageDomain/pages/resourceDetails/document/index.js index 0ca3e50..4808f57 100644 --- a/packageDomain/pages/resourceDetails/document/index.js +++ b/packageDomain/pages/resourceDetails/document/index.js @@ -16,6 +16,7 @@ navBarHeight: '', barHeight: '', activeId: '', + storeInfo: '', bookId: '', bookName: '', cmsId: '', @@ -55,6 +56,7 @@ activeId: options.activeId, bookId: options.bookId, bookName: options.bookName, + storeInfo: options.storeInfo, cmsId: options.cmsId, parentName: options.parentName, parentProductLinkPath: options.parentProductLinkPath, @@ -62,6 +64,12 @@ applyState: options.applyState, deadline: options.deadline }) + const token = wx.getStorageSync(app.config.tokenKey) + if (!token) { + loginInfo(app, (data) => { + if (data) {} else {} + }) + } this.resourceDetailsData() }, @@ -174,6 +182,9 @@ size: 999 } } + if (this.data.storeInfo) { + query.storeInfo = this.data.storeInfo + } app.MG.store.getProductDetail(query).then((res) => { console.log(res); res.datas.cmsDatas[0].datas.forEach((item) => { -- Gitblit v1.9.1