|
@@ -41,7 +41,7 @@
|
|
|
<view class="long-item">{{ item.day | getLong(1) }}</view>
|
|
|
</view>
|
|
|
<view class="time">{{ item.time }}</view>
|
|
|
- <view class="action" :class="{ end: item.status == 3 || item.guessing }" @click="toDetail(item)">{{ item | getAction(nowActive) }}</view>
|
|
|
+ <view class="action" :class="{ end: item.status == 3 || item.guessing || Date.now() > item.guessing_endtime }" @click="toDetail(item)">{{ item | getAction(nowActive) }}</view>
|
|
|
</view>
|
|
|
<view class="detail-r">
|
|
|
<image v-if="item.status == 2 && item.accept_id == item.successId" class="success" src="../../static/icon/pk-success.png" mode=""></image>
|
|
@@ -100,7 +100,11 @@
|
|
|
if (item.guessing) {
|
|
|
return '已预测'
|
|
|
} else {
|
|
|
- return '围观竞猜'
|
|
|
+ if(Date.now() > item.guessing_endtime) {
|
|
|
+ return '竞猜结束'
|
|
|
+ } else {
|
|
|
+ return '围观竞猜'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return ''
|
|
@@ -170,7 +174,7 @@
|
|
|
uni.navigateTo({ url: '../challenge/challenge?type=1' })
|
|
|
} else if (type == '应战') {
|
|
|
uni.navigateTo({ url: '../challenge/challenge?type=2' })
|
|
|
- } else if (type == '挑战详情' || type == '围观竞猜' || type == '已竞猜') {
|
|
|
+ } else if (type == '挑战详情' || type == '围观竞猜' || type == '已竞猜' || type == '竞猜结束') {
|
|
|
uni.temp1 = item
|
|
|
uni.navigateTo({ url: '../challenge-detail/challenge-detail' + (type == '挑战详情' ? '?from=1' : '') })
|
|
|
}
|