hookehuyr

feat(商品详情页): 添加市场价和学校名称显示

<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-29 13:45:56
* @LastEditTime: 2025-07-30 14:48:32
* @FilePath: /jgdl/src/pages/productDetail/index.vue
* @Description: 商品详情页
-->
......@@ -41,9 +41,12 @@
<text class="text-2xl font-bold text-orange-500 mr-2">
¥ {{ product?.price?.toLocaleString() }}
</text>
<!-- <view class="ml-2 text-xs px-2 py-1 bg-orange-100 text-orange-600 rounded">
低于市场价{{ product.discountPercent }}%
</view> -->
<view v-if="product?.market_price" class="text-gray-400 text-xs line-through ml-2">
¥ {{ product.market_price?.toLocaleString() }}
</view>
</view>
<view>
<text class="text-xs text-gray-500 block">{{ product?.school_name }}</text>
</view>
</view>
......