Authored by lea guo

yohood抽奖

... ... @@ -8,7 +8,7 @@ Component({
observer(product) {
const { end_time: endTime, start_time: startTime, status } = product;
let nextActivityTime = '';
if (status === 1 && endTime) {
if (status === 1 || status === 3) {
nextActivityTime = `${formatTimeByDefined(
startTime,
'Y.M.D h:m',
... ...
... ... @@ -14,8 +14,8 @@
<view class="number-seprator" wx:if="{{index !== 2}}">:</view>
</view>
</view>
<view class="next-preview" wx:if="{{product.status === 1}}" hidden="{{ show }}">
<text class="next-tip">下一场活动时间</text>
<view class="next-preview" wx:if="{{product.status === 1 || product.status === 3}}" hidden="{{ show }}">
<text class="next-tip">{{product.status === 1 ? '下一场活动时间' : '活动时间'}}</text>
<text class="next-time">{{nextActivityTime}}</text>
</view>
<view class="avatarcontainer">
... ...
... ... @@ -182,9 +182,14 @@ Page(
wx.showLoading({
mask: true,
});
this._init({isPulldown: true}).then(() => {
wx.stopPullDownRefresh();
});
const {product = {}} = this.data;
if(product.status === 3) {
wx.navigateTo({url: '/pages/zeroSell/originalPriceSell'})
}else {
this._init({isPulldown: true}).then(() => {
wx.stopPullDownRefresh();
});
}
},
/**
... ...
... ... @@ -32,7 +32,7 @@
<view class="fellow-bar" wx:if="{{product.status && !shareFlag}}">
<block wx:if="{{product.status >= 3}}">
<view class="endTip">
<text>{{notice.content || '本场活动已结束,请关注中奖结果通知'}}</text>
<text>{{notice.content || '本场活动已结束(下拉刷新可查看新活动)'}}</text>
</view>
</block>
<block wx:elif="{{notice.content}}">
... ...