优化:每日红包 - 兼容不限量领取方式显示内容

This commit is contained in:
wuhui_zzw 2023-09-13 11:54:52 +08:00
parent 81aa141a1b
commit 7dd2f8c511
2 changed files with 3 additions and 3 deletions

View File

@ -238,7 +238,7 @@ Page({
});
if (that.data.syMun) {
that.setData({
bfbMum: (Number(res.data.receive.receive_amount) / Number(res.data.receive.amount_sum.toFixed(2)) * 100)
bfbMum: (Number(res.data.receive.receive_amount) / Number(res.data.receive.amount_sum).toFixed(2) * 100)
});
}
if (that.data.type_status.value == 2 && that.data.redData.business_hours_start != 0 && !app._isTextEmpty(that.data.redData.business_hours_start) && that.data.redData.business_hours_start != null) {

View File

@ -23,11 +23,11 @@
<view>今日红包总额</view>
<view class="redisw">{{link.is_red_packet_all_amount == 1?'****':(amount?amount.amount : 0.00)}}</view>
</view>
<view class="redlis">
<view class="redlis" wx:if="{{redData.is_open_infinite != 1}}">
<view>今日红包总量</view>
<view>{{link.is_red_packet_all_total == 1?'****':(amount?amount.number_sum : 0.00)}}</view>
</view>
<view class="redlis">
<view class="redlis" wx:if="{{redData.is_open_infinite != 1}}">
<view>剩余红包</view>
<view>{{redData.surplus_num}}</view>
</view>