| | |
| | | title: '购物车' |
| | | }); |
| | | this.shoppingCartGet(); |
| | | console.log(this.data.shoppingCartData.length, 'this.data.shoppingCartData.length'); |
| | | |
| | | this.setData({ |
| | | swipeOpened: true |
| | | }) |
| | |
| | | searchList: [] |
| | | }; |
| | | app.MG.store.getShoppingCartProductList(query).then(res => { |
| | | console.log(res, 'res'); |
| | | |
| | | this.setData({ |
| | | totalSize: res.totalSize |
| | | }) |
| | |
| | | // }) |
| | | const type = item.saleMethod.type == 'createProductItemSaleMethod' ? 'item' : 'product'; |
| | | item.type = type; // 将type设置为item对象的属性,而不是使用setData |
| | | console.log(item.linkCmsItems[0].name); |
| | | |
| | | item.name = item.linkCmsItems[0].name ? item.productMonWithLinkDto.product.name + ':' + item.linkCmsItems[0].name : item.productMonWithLinkDto.product.name |
| | | }); |
| | | |
| | |
| | | let data = { |
| | | linkIds: selectedIds |
| | | } |
| | | // '&onNorderSaleMethod=' + |
| | | app.MG.store.shoppingCartCreateOrder(data).then(res => { |
| | | |
| | | const url = '/pages/cart/paymentPage/index?orderNumber=' + res.orderNumber |
| | | wx.navigateTo({ |
| | | url |
| | |
| | | linkIds: selectedIds |
| | | } |
| | | app.MG.store.shoppingCartCreateOrder(data).then(res => { |
| | | const url = '/pages/cart/paymentPage/index?orderNumber=' + res.orderNumber |
| | | console.log(res.saleMethodLinks[0].orderSaleMethod.id, 'ressss798'); |
| | | const url = '/pages/cart/paymentPage/index?orderNumber=' + res.orderNumber + '&onNorderSaleMethod=' + res.saleMethodLinks[0].orderSaleMethod.id |
| | | wx.navigateTo({ |
| | | url |
| | | }); |
| | |
| | | console.log(item); |
| | | console.log(item.productMonWithLinkDto.product.id); |
| | | console.log(item.productMonWithLinkDto.product.name); |
| | | // wx.navigateTo({ |
| | | // url: '/packageBookService/pages/bookServices/detail/index?id=' + item.productMonWithLinkDto.product.id + '&name=' + item.productMonWithLinkDto.product.name |
| | | // }) |
| | | wx.navigateTo({ |
| | | url: '/packageBookService/pages/bookServices/detail/index?id=' + item.productMonWithLinkDto.product.id + '&name=' + item.productMonWithLinkDto.product.name |
| | | }) |
| | | } |
| | | }); |