From e03417edfeaf52c017e4a5539f3b41ad0204a2f0 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 05 三月 2024 19:03:51 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/jsek-applet --- 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