From f9d4b09377c5471e1202be2fef2c89de27b6654d Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期三, 13 三月 2024 19:50:42 +0800 Subject: [PATCH] feat(撒): 的 --- pages/goods/details/components/buy-bar/index.js | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/pages/goods/details/components/buy-bar/index.js b/pages/goods/details/components/buy-bar/index.js index ae274e2..16d3f33 100644 --- a/pages/goods/details/components/buy-bar/index.js +++ b/pages/goods/details/components/buy-bar/index.js @@ -40,6 +40,7 @@ data: { fillPrice: false, + shoppingCartGetId: null }, methods: { @@ -47,6 +48,24 @@ const { isStock } = this.properties; if (!isStock) return; this.triggerEvent('toAddCart'); + // let query = { + // start: 0, + // size: 999, + // filterList: [], + // searchList: [] + // } + // app.MG.store.getShoppingCartProductList(query).then(res => { + // res.datas.forEach((item) => { + // console.log(item.saleMethod.id, 'item.saleMethod.id'); + // this.setData({ + // shoppingCartGetId: item.saleMethod.id + // }) + + // }) + // }) + + + }, toBuyNow(e) { -- Gitblit v1.9.1