Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-07-30 14:54:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
44c96b827741f7c87c5c0487d0b71d77ce8435df
44c96b82
1 parent
de94a455
feat(商品详情页): 添加市场价和学校名称显示
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
src/pages/productDetail/index.vue
src/pages/productDetail/index.vue
View file @
44c96b8
<!--
* @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>
...
...
Please
register
or
login
to post a comment