From e72f509ca0728f571fcf652e1e60d7af970518cf Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期四, 06 六月 2024 17:49:57 +0800 Subject: [PATCH] 数字教材跳转阅读器 --- packageBookService/pages/bookServices/detail/buyResource/index.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/buyResource/index.js b/packageBookService/pages/bookServices/detail/buyResource/index.js index b4032b9..6cdc969 100644 --- a/packageBookService/pages/bookServices/detail/buyResource/index.js +++ b/packageBookService/pages/bookServices/detail/buyResource/index.js @@ -127,7 +127,7 @@ // 鎵佸钩鍖栨暟鎹浆鎹ree getTreeList(rootList, pathLength, newArr, path) { for (const item of rootList) { - if (item.productLinkPath.length == pathLength && item.productLinkPath.includes(path)) { + if ((pathLength - item.productLinkPath.length >= 0 && pathLength - item.productLinkPath.length <= 3) && item.productLinkPath.includes(path)) { if (item.sysType == 'CmsItem') { if (item.selectType == 'webpage') { item.disabled = true @@ -234,6 +234,7 @@ itemFields: { SysType: 'CmsFolder', // 璧勬簮绫诲瀷锛岃瘯璇绘枃浠讹紝鏄惁鍏佽涓嬭浇绛夊弬鏁� + learnSelectType: [], selectType: [], freeFile: [], file: [], @@ -288,7 +289,8 @@ // }) // } // debugger - this.getTreeList(res.datas.cmsDatas[0].datas, 17, list, '\\') + const num = query.cmsPath.length + 6 + this.getTreeList(res.datas.cmsDatas[0].datas, num, list, '\\') list = this.ensureTreeConsistency(list) list = this.changeResourceChildren(list) console.log('淇敼鍚庝簯', list); @@ -570,7 +572,7 @@ if (isSHow) { return false; } else { - return data.saleMethod[0].price > 0 ? true : false; + return data.saleMethod[0].Price > 0 ? true : false; } return !isSHow; } else { -- Gitblit v1.9.1