Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
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-08-28 18:16:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1d9b713974d46105723d820da17746f965746481
1d9b7139
1 parent
a0fc6093
fix: 更新优惠券详情页的显示和兑换逻辑
将积分显示改为直接显示优惠券标题,并修改兑换提示语为核销操作
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
src/pages/CouponDetail/index.vue
src/pages/CouponDetail/index.vue
View file @
1d9b713
...
...
@@ -11,9 +11,8 @@
<!-- Points and Title -->
<view class="text-center mb-8">
<view class="text-4xl font-bold text-blue-500 mb-2">
<text class="text-2xl">{{ reward.
points }} 积分
</text>
<text class="text-2xl">{{ reward.
title }}
</text>
</view>
<h1 class="text-xl font-bold">{{ reward.title }}</h1>
</view>
<!-- Details Sections -->
...
...
@@ -95,16 +94,16 @@ const reward = ref({
const handleRedeem = () => {
// Show a confirmation modal
Taro.showModal({
title: '
确认兑换
',
content: `将
消耗 ${reward.value.points} 积分兑换
此优惠券,是否确认?`,
title: '
温馨提示
',
content: `将
核销
此优惠券,是否确认?`,
success: (res) => {
if (res.confirm) {
// Simulate API call for redemption
Taro.showLoading({ title: '
兑换
中...' });
Taro.showLoading({ title: '
核销
中...' });
setTimeout(() => {
Taro.hideLoading();
Taro.showToast({
title: '
兑换
成功',
title: '
核销
成功',
icon: 'success',
duration: 2000
});
...
...
Please
register
or
login
to post a comment