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) {