修改直播价格展示信息错误

master
学习很差啦 2023-02-21 14:25:32 +08:00
parent 49d023cef0
commit 32b29f45e7
2 changed files with 6 additions and 5 deletions

View File

@ -200,8 +200,8 @@
{{ row.price | unitPrice("¥") }}{{ row.price2 | unitPrice("¥") }}
</div>
<div v-if="row.priceType == 3">
{{ row.price | unitPrice("¥")
}}<span class="original-price">{{ row.price2 | unitPrice("¥") }}</span>
{{ row.price2 | unitPrice("¥")
}}<span class="original-price">{{ row.price | unitPrice("¥") }}</span>
</div>
</div>
</template>
@ -345,6 +345,7 @@ export default {
};
},
mounted() {
/**
* 如果query.id有值说明是查看详情
* liveStatus 可以判断当前直播状态 从而区分数据 是否是未开始已开启已关闭
@ -610,7 +611,7 @@ export default {
if (res.success) {
this.$Message.success("添加成功!");
this.$router.push({ path: "/promotion/live" });
this.$router.push({ path: "/live" });
}
this.spinShow = false;
});

View File

@ -55,7 +55,7 @@
<div v-else>
<div v-if="row.priceType == 1">{{row.price | unitPrice('')}}</div>
<div v-if="row.priceType == 2">{{row.price | unitPrice('')}}{{row.price2 | unitPrice('')}}</div>
<div v-if="row.priceType == 3">{{row.price | unitPrice('¥')}}<span class="original-price">{{row.price2 | unitPrice('')}}</span></div>
<div v-if="row.priceType == 3">{{row.price2 | unitPrice('¥')}}<span class="original-price">{{row.price | unitPrice('')}}</span></div>
</div>
</template>
@ -264,7 +264,7 @@ export default {
async saveLiveGoods() {
this.saveGoodsLoading = true;
let submit = this.liveGoodsData.map((element) => {
console.log(element);
return {
goodsId: element.goodsId, //id
goodsImage: element.small, // 300 * 300