From 93463d63f0dd81c436aa3335506611aab8356b88 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 25 三月 2024 23:39:40 +0800 Subject: [PATCH] 样式修改 --- pages/cart/index.js | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pages/cart/index.js b/pages/cart/index.js index 2abc176..ad14b41 100644 --- a/pages/cart/index.js +++ b/pages/cart/index.js @@ -25,9 +25,13 @@ this.shoppingCartGet(); }, onShow() { + if (typeof this.getTabBar === 'function' && this.getTabBar()) { + this.getTabBar().setData({ + active: 3 + }) + } this.shoppingCartGet(); this.setData({ totalPrice: 0.00, selectedCount: 0, checkAll: false, }) - }, onDelete(e) { const item = e.currentTarget.dataset.item; @@ -53,6 +57,7 @@ }) res.datas.forEach(item => { + console.log(item, 'item456'); item.imgUrl = getPublicImage(item.productMonWithLinkDto.product.icon, '', '160'); this.setData({ @@ -121,8 +126,13 @@ const selectedIds = selectedItems.map(item => item.id); console.log('閫変腑鐨勫晢鍝� id:', selectedIds); if (selectedIds.length) { - app.MG.store.shoppingCartCreateOrder({ linkIds: selectedIds }).then(res => { + let data = { + linkIds: selectedIds + } + app.MG.store.shoppingCartCreateOrder(data).then(res => { console.log(res, 456); + + const url = '/pages/cart/paymentPage/index?orderNumber=' + res.orderNumber wx.navigateTo({ url -- Gitblit v1.9.1