feat: 商铺详情页商户优惠上方新增原价模块,内容取门票信息字段

This commit is contained in:
jacobxu666
2026-08-28 10:42:42 +08:00
parent cda36ddc1e
commit 5bba52ae1f
+14
View File
@@ -20,6 +20,16 @@
</view>
</view>
<!-- 原价(内容取商铺门票信息字段) -->
<view class="discount-section" v-if="ticketInfoList.length">
<view class="section-title">
<text class="discount-title">原价</text>
</view>
<view class="discount-list">
<text class="discount-item" v-for="(item, index) in ticketInfoList" :key="index">{{ item }}</text>
</view>
</view>
<!-- 商户优惠 -->
<view class="discount-section">
<view class="section-title">
@@ -47,6 +57,10 @@ export default {
}
},
computed: {
ticketInfoList() {
if (!this.store || !this.store.ticketInfo) return []
return this.store.ticketInfo.split('\n')
},
discountList() {
if (!this.store || !this.store.merchantDiscount) return []
return this.store.merchantDiscount.split('\n')