This commit is contained in:
weipengfei 2023-12-26 18:04:41 +08:00
parent 1452292f81
commit d73cd892ea
2 changed files with 4 additions and 7 deletions

View File

@ -765,9 +765,7 @@
}, },
// //
cartFn() { cartFn() {
getCartList({ getCartList().then(res => {
source: 103
}).then(res => {
this.totalMoney = 0 this.totalMoney = 0
this.cartList = res.data.list this.cartList = res.data.list
this.cartList.forEach(e => { this.cartList.forEach(e => {
@ -777,9 +775,7 @@
}) })
this.totalMoney = this.totalMoney.toFixed(2) this.totalMoney = this.totalMoney.toFixed(2)
}) })
getCartCounts({ getCartCounts().then(res => {
source: 103
}).then(res => {
this.goodsNum = res.data[0].count this.goodsNum = res.data[0].count
}) })
}, },

View File

@ -772,7 +772,8 @@
// //
cartFn() { cartFn() {
getCartList({ getCartList({
source: 103 source: 103,
product_type: 98
}).then(res => { }).then(res => {
this.totalMoney = 0 this.totalMoney = 0
this.cartList = res.data.list this.cartList = res.data.list