|
@@ -220,6 +220,11 @@ const formatAllGoods = (data, kitGroupPurchaseType) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const typeAndprice = {
|
|
|
+ GROUP: 'price',
|
|
|
+ LEASE: 'depositFee',
|
|
|
+}
|
|
|
+
|
|
|
export default {
|
|
|
props: ['detail', 'musicGroupId', 'voiceList'],
|
|
|
components: {
|
|
@@ -402,7 +407,7 @@ export default {
|
|
|
const item = this.musicalGoodsById[val]
|
|
|
if (item) {
|
|
|
this.musicalPrice = this.numFormat(item._calculated_price)
|
|
|
- this.kitGroupPurchaseTypePrice = this.numFormat(item.kitGroupPurchaseTypeJsonParse[this.form.type] || 0)
|
|
|
+ this.kitGroupPurchaseTypePrice = this.numFormat(item[typeAndprice[this.form.type]] || 0)
|
|
|
this.coursePurchaseTypeJsonTypePrice = this.numFormat(item.coursePurchaseTypeJsonTypePrice)
|
|
|
this.types = item.kitGroupPurchaseTypeJsonParse
|
|
|
} else {
|