This commit is contained in:
liuyuan
2025-07-14 10:01:35 +08:00
parent 93eea53283
commit 437994f38b
2 changed files with 4 additions and 1 deletions

View File

@@ -1084,7 +1084,7 @@
}, },
onHandleClickBuy(e) { onHandleClickBuy(e) {
var mynavData = JSON.stringify({ var mynavData = JSON.stringify({
goods: [this.selectGoodsData], goods: [{...this.selectGoodsData,productAmount:1}],
typeId: 0, typeId: 0,
navTitle: this.course.title, navTitle: this.course.title,
title: this.course.title, title: this.course.title,

View File

@@ -281,6 +281,9 @@ export default {
this.goodsDataList = res.productList.filter( this.goodsDataList = res.productList.filter(
(e) => this.options.goods[0].productName == e.productName (e) => this.options.goods[0].productName == e.productName
); );
this.goodsDataList.map(e=>{
e.productAmount=e.productAmount?e.productAmount:1
})
}); });
}, },