wip: i
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
<view class="header">
|
<view class="header">
|
||||||
<view class="left">公告:开奖结果同步傲拾</view>
|
<view class="left">公告:开奖结果同步傲拾</view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="btn" @click="toPage(1)">投注记录</view>
|
<view class="btn" @click="toPage(2)">投注记录</view>
|
||||||
<view class="btn" @click="toPage(2)">开奖记录</view>
|
<view class="btn" @click="toPage(1)">开奖记录</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="user-info">
|
<view class="user-info">
|
||||||
@@ -48,7 +48,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="countdown">
|
<view class="countdown">
|
||||||
{{ Number(kjData.nowPeriods) + 1 || 0 }}期开奖还剩: {{ timeStr || '0分0秒' }}
|
<text v-if="isKj">正在开奖中,已停止投注!!!</text>
|
||||||
|
<text v-else>
|
||||||
|
{{ Number(kjData.nowPeriods) + 1 || 0 }}期开奖还剩: {{ timeStr || '0分0秒' }}
|
||||||
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="bet-opt">
|
<view class="bet-opt">
|
||||||
<view class="item" v-for="(item, index) in betOpts" :key="index" @click="handleBet(item)">
|
<view class="item" v-for="(item, index) in betOpts" :key="index" @click="handleBet(item)">
|
||||||
@@ -130,6 +133,8 @@ const get_list = async () => {
|
|||||||
|
|
||||||
const timeStr = ref('')
|
const timeStr = ref('')
|
||||||
|
|
||||||
|
const isKj = ref(false)
|
||||||
|
|
||||||
const countdownFn = () => {
|
const countdownFn = () => {
|
||||||
const currentTimestamp = dayjs().valueOf()
|
const currentTimestamp = dayjs().valueOf()
|
||||||
const timeLeft = kjData.value.drawTime * 1000 - currentTimestamp
|
const timeLeft = kjData.value.drawTime * 1000 - currentTimestamp
|
||||||
@@ -139,11 +144,13 @@ const countdownFn = () => {
|
|||||||
const s = Number(dayjs(timeLeft).format('ss'))
|
const s = Number(dayjs(timeLeft).format('ss'))
|
||||||
|
|
||||||
if (m === 0 && s === 0) {
|
if (m === 0 && s === 0) {
|
||||||
console.log('结束')
|
|
||||||
clearInterval(timeId.value)
|
clearInterval(timeId.value)
|
||||||
|
// setTimeout(() => {
|
||||||
get_list()
|
get_list()
|
||||||
get_info()
|
get_info()
|
||||||
|
// }, 5000)
|
||||||
}
|
}
|
||||||
|
isKj.value = m === 0 && s < 40 ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
const get_info = async () => {
|
const get_info = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user