隐藏划线价

This commit is contained in:
wangxiaowei 2024-07-29 17:30:39 +08:00
parent 4b8534d1d6
commit 9ae4a8959b
3 changed files with 10 additions and 9 deletions

@ -100,11 +100,11 @@
</view>
</view>
<view v-if="p_id == 0">
<view class="muted">
<!-- <view class="muted">
<text class="xxs">原价</text>
<price-format :subscript-size="22" :first-size="22"
:second-size="22" :price="item.market_price"></price-format>
</view>
</view> -->
<view class="primary mt10">
<price-format :price="item.min_price" :subscript-size="22"
:first-size="34" :second-size="26"></price-format>

@ -1,9 +1,10 @@
<template>
<text :style="{color, 'font-weight': weight}" :class="(lineThrough ? 'line-through' : '') + ' price-format'">
<text v-if="showSubscript" :style="{'font-size': subscriptSize + 'rpx', 'margin-right': '2rpx'}">¥</text>
<text :style="{'font-size': firstSize + 'rpx', 'margin-right': '1rpx'}">{{priceSlice.first}}</text>
<text v-if="priceSlice.second" :style="{'font-size': secondSize + 'rpx'}">.{{priceSlice.second}}</text>
</text>
<!-- 隐藏划线价(市场价) -->
<text v-if="!lineThrough" :style="{color, 'font-weight': weight}" :class="(lineThrough ? 'line-through' : '') + ' price-format'">
<text v-if="showSubscript" :style="{'font-size': subscriptSize + 'rpx', 'margin-right': '2rpx'}">¥</text>
<text :style="{'font-size': firstSize + 'rpx', 'margin-right': '1rpx'}">{{priceSlice.first}}</text>
<text v-if="priceSlice.second" :style="{'font-size': secondSize + 'rpx'}">.{{priceSlice.second}}</text>
</text>
</template>
<script>

@ -75,9 +75,9 @@
<price-format :first-size="46" :second-size="32" :subscript-size="32"
:price="goodsDetail.min_price" :weight="500"></price-format>
</view>
<view class="line-through muted md" v-if="p_id == 0">
<!-- <view class="line-through muted md" v-if="p_id == 0">
<price-format :price="goodsDetail.market_price"></price-format>
</view>
</view> -->
<!-- <view class="vip-price flex" v-if="goodsType == 0 && goodsDetail.member_price && p_id == 0">
<view class="price-name xxs">会员价</view>