update 优惠券修改

main
wwl 2024-03-18 18:52:29 +08:00
parent dc55deda6f
commit 7c106ff3bc
4 changed files with 13 additions and 3 deletions

View File

@ -50,7 +50,15 @@ function SpCoupon (props) {
'background-size': '100% 100%' 'background-size': '100% 100%'
})}> })}>
<View className="coupons-list-item-left"> <View className="coupons-list-item-left">
<View className='coupons-list-item-money'><Text className='coupons-list-item-unit'>¥</Text><Text className="coupons-list-item-num">{reduceCost || 0}</Text></View> <View className='coupons-list-item-money'>
{cardType === 'cash' &&
<><Text className='coupons-list-item-unit'>¥</Text><Text className="coupons-list-item-num">{reduceCost || 0}</Text></>
}
{cardType === 'discount' && <>
<Text className="coupons-list-item-num">{discount || 0}</Text>
<Text className='coupons-list-item-unit'></Text>
</>}
</View>
<View className="coupons-list-item-desc">{leastCost}可用</View> <View className="coupons-list-item-desc">{leastCost}可用</View>
</View> </View>
<View className="coupons-list-item-right"> <View className="coupons-list-item-right">

View File

@ -214,6 +214,7 @@ page {
align-items: center; align-items: center;
font-size: 22px; font-size: 22px;
line-height: 1; line-height: 1;
transition: all 0.3s ease-in-out;
.icon-my { .icon-my {
font-size: 28px; font-size: 28px;
font-weight: bold; font-weight: bold;

View File

@ -38,7 +38,8 @@ function CouponCenter (props) {
end_date: 1, end_date: 1,
card_id, card_id,
distributor_id, distributor_id,
item_id: item_id || itemid item_id: item_id || itemid,
receive: true
} }
const { const {
list, list,

View File

@ -33,7 +33,7 @@ function CouponIndex () {
status: '1', status: '1',
page: pageIndex, page: pageIndex,
pageSize, pageSize,
card_type: couponType, // card_type: couponType,
scope_type: 'all' scope_type: 'all'
} }
const { list, total_count: total } = await api.member.getUserCardList(params) const { list, total_count: total } = await api.member.getUserCardList(params)