Authored by hongyong.zhao

bug fix

<view>
<block wx:if="{{product.status === 0}}">
<block wx:if="{{product.status === 0 || product.is_full === 1}}">
<view class="btn cancel" >活动结束</view>
</block>
... ...
... ... @@ -38,7 +38,7 @@ Component({
},1000)
},
formatCountDown:function formatCountDown(end) {
if (end === 0) {
if (end === 0 || (end * 1000 - Date.now() < 0)) {
return '00000000'
}
var timeInSecond = (end * 1000 - Date.now()) / 1000
... ...
... ... @@ -232,9 +232,9 @@ Page(Object.assign({
let participantCount = r1.code === 200 ? r1.data.joinNum : 0;
if (product.status >= ACTIVITY.END) {
participantCount = product.limit;
}
// if (product.status >= ACTIVITY.END) {
// participantCount = product.limit;
// }
this.setData({
product: product,
... ...