|
@@ -18,9 +18,9 @@
|
|
<view style="height: 98rpx;background-color: #fff;margin: 0 30rpx;line-height: 98rpx;overflow: hidden;">
|
|
<view style="height: 98rpx;background-color: #fff;margin: 0 30rpx;line-height: 98rpx;overflow: hidden;">
|
|
<view class="data-btn">距离开始时间:
|
|
<view class="data-btn">距离开始时间:
|
|
<text v-if="timeData.days != 0">{{timeData.days}} 天</text>
|
|
<text v-if="timeData.days != 0">{{timeData.days}} 天</text>
|
|
- <text>{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}} :</text>
|
|
|
|
- <text>{{timeData.minutes>10?timeData.minutes:'0'+timeData.minutes}} :</text>
|
|
|
|
- <text>{{timeData.seconds>10?timeData.seconds:'0'+timeData.seconds}}</text>
|
|
|
|
|
|
+ <text>{{ timeData.hours>=10?timeData.hours:'0'+timeData.hours}} :</text>
|
|
|
|
+ <text>{{timeData.minutes>=10?timeData.minutes:'0'+timeData.minutes}} :</text>
|
|
|
|
+ <text>{{timeData.seconds>=10?timeData.seconds:'0'+timeData.seconds}}</text>
|
|
</view>
|
|
</view>
|
|
<view style="float: right;"><span style="font-weight: 600;">{{info.fakeNum}}</span>人已参与</view>
|
|
<view style="float: right;"><span style="font-weight: 600;">{{info.fakeNum}}</span>人已参与</view>
|
|
</view>
|
|
</view>
|
|
@@ -97,8 +97,8 @@
|
|
<view class="flex btn">
|
|
<view class="flex btn">
|
|
<button v-if="info.status && JSON.parse(info.status).value == 3" type="default" @click="exChange">获取抽奖码</button>
|
|
<button v-if="info.status && JSON.parse(info.status).value == 3" type="default" @click="exChange">获取抽奖码</button>
|
|
<u-count-down v-else :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
|
|
<u-count-down v-else :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
|
|
- <button style="background-color: #555;" type="default" @click="exChange">
|
|
|
|
- 开启倒计时:{{timeData.days}} 天{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}} :{{timeData.minutes>10?timeData.minutes:'0'+timeData.minutes}} :{{timeData.seconds>10?timeData.seconds:'0'+timeData.seconds}}
|
|
|
|
|
|
+ <button style="background-color: #555;" type="default">
|
|
|
|
+ 开启倒计时:{{timeData.days}} 天{{ timeData.hours>=10?timeData.hours:'0'+timeData.hours}} :{{timeData.minutes>=10?timeData.minutes:'0'+timeData.minutes}} :{{timeData.seconds>=10?timeData.seconds:'0'+timeData.seconds}}
|
|
</button>
|
|
</button>
|
|
</u-count-down>
|
|
</u-count-down>
|
|
</view>
|
|
</view>
|
|
@@ -136,7 +136,8 @@
|
|
timeData: {}, //时间
|
|
timeData: {}, //时间
|
|
awardsList: [], //奖品
|
|
awardsList: [], //奖品
|
|
inviteCode: '', //邀请码
|
|
inviteCode: '', //邀请码
|
|
- activityTime: 0
|
|
|
|
|
|
+ activityTime: 0,
|
|
|
|
+ activityTimeTwo: 0,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(opthios) {
|
|
onLoad(opthios) {
|