Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0f435030
authored
May 01, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:【商城】店铺装修-优惠劵:完善优惠描述、剩余数量
parent
3b0ab0d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/components/DiyEditor/components/mobile/CouponCard/component.tsx
+1
-1
src/components/DiyEditor/components/mobile/CouponCard/index.vue
+9
-2
No files found.
src/components/DiyEditor/components/mobile/CouponCard/component.tsx
View file @
0f435030
...
...
@@ -43,7 +43,7 @@ export const CouponDiscountDesc = defineComponent({
const
discountDesc
=
coupon
.
discountType
===
PromotionDiscountTypeEnum
.
PRICE
.
type
?
`减
${
floatToFixed2
(
coupon
.
discountPrice
)}
元`
:
`打
${
coupon
.
discountPercent
}
折`
:
`打
${
coupon
.
discountPercent
/
10.0
}
折`
return
()
=>
(
<
div
>
<
span
>
{
useCondition
}
</
span
>
...
...
src/components/DiyEditor/components/mobile/CouponCard/index.vue
View file @
0f435030
...
...
@@ -49,7 +49,13 @@
<div
class=
"flex flex-col justify-evenly gap-4px"
>
<!-- 优惠值 -->
<CouponDiscount
:coupon=
"coupon"
/>
<div>
{{
coupon
.
name
}}
</div>
<!-- 优惠描述 -->
<CouponDiscountDesc
:coupon=
"coupon"
/>
<!-- 领取说明 -->
<div
v-if=
"coupon.totalCount >= 0"
>
仅剩:
{{
coupon
.
totalCount
-
coupon
.
takeCount
}}
张
</div>
<div
v-else-if=
"coupon.totalCount === -1"
>
仅剩:不限制
</div>
</div>
<div
class=
"flex flex-col"
>
<div
...
...
@@ -67,7 +73,8 @@
<div
v-else
class=
"flex flex-col items-center justify-around gap-4px p-4px"
>
<!-- 优惠值 -->
<CouponDiscount
:coupon=
"coupon"
/>
<div>
{{
coupon
.
name
}}
</div>
<!-- 优惠描述 -->
<CouponDiscountDesc
:coupon=
"coupon"
/>
<div
class=
"rounded-20px p-x-8px p-y-2px"
:style=
"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment