From 36b2ce21114082da777b66b4bda250c9ca7ecd30 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期四, 21 三月 2024 14:38:25 +0800 Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master --- packageBookService/pages/bookServices/detail/index.js | 31 +++++++++++++++++++++++-------- 1 files changed, 23 insertions(+), 8 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js index 6c00c0f..194c949 100644 --- a/packageBookService/pages/bookServices/detail/index.js +++ b/packageBookService/pages/bookServices/detail/index.js @@ -430,11 +430,11 @@ console.log('鏁欏璧勬簮', this.data.teach); this.findChildIds(this.data.teach, this.data.openTeachids = []) } else if (type.refCode == 'jsek_cloudLearning') { - // res.datas.cmsDatas[0].datas.forEach(item => { - // item.checked = false - // }) - // const list = await this.getAllResource(res.datas.cmsDatas[0].datas) - console.log(list, 'currentlist'); + res.datas.cmsDatas[0].datas.forEach(item => { + item.checked = false + }) + const list = await this.getAllResource(res.datas.cmsDatas[0].datas) + console.log(list, 'list'); this.setData({ learn: list, loading: false @@ -557,6 +557,17 @@ // 鍥句功娣诲姞璐墿杞� async addBookShopcCar() { + + const token = wx.getStorageSync('jsek-token') + if (!token) { + return wx.getUserProfile({ + desc: '鐢ㄦ埛鐧诲綍', + success: (res) => { + console.log(res); + } + }) + } + const shoppingCartGetId = [] let query = { @@ -1155,7 +1166,6 @@ }) res = await app.MG.store.initOrder(query) } - if (res.orderNumber && this.data.mockData.price) { wx.navigateTo({ url: `/pages/cart/paymentPage/index?orderNumber=${res.orderNumber}`, @@ -1206,11 +1216,16 @@ this.buyBook() } else if (this.data.tabValue == 'jsek_cloudLearning') { - console.log('浜戝涔�'); + const tree = this.selectComponent('#tree') + + tree.onCloudShoppingCart() + + } else if (this.data.tabValue == 'questionBank') { this.buyMock() } else { console.log(this.data.tabValue); } - } + }, + }) -- Gitblit v1.9.1