@@ -14,7 +14,8 @@
<el-checkbox class="option" v-for="item in list" :label="item.id" :key="item.id">
<strong>
<span>{{item.name}}</span>
- <span>{{item.groupPurchasePrice > 0 ? (item.groupPurchasePrice | moneyFormat) + ' 元' : '免费'}}</span>
+ <span v-if="item.groupPurchasePrice > 0">{{item.groupPurchasePrice | moneyFormat}} 元</span>
+ <span v-else>免费</span>
</strong>
</el-checkbox>
</el-checkbox-group>
@@ -304,7 +304,7 @@ export default {
fetchDetail() {
const setRes = res => {
const { data } = res
- this.item = data
+ this.item = data || {}
if (data) {
this.originalAccessoriesPrice = data.originalAccessoriesPrice
this.originalMusicalPrice = data.originalMusicalPrice