|
@@ -1,10 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
<u-navbar title="免费抽奖" :border="true" :placeholder="true" :autoBack="true" bgColor="#fff" />
|
|
<u-navbar title="免费抽奖" :border="true" :placeholder="true" :autoBack="true" bgColor="#fff" />
|
|
- <u-count-down :time="30 * 60 * 60 * 1000" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
|
|
|
|
|
|
+ <u-count-down :time="activityTime" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
|
|
<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>{{timeData.days}} 天</text>
|
|
|
|
|
|
+ <text v-if="timeData.days != 0" >{{timeData.days}} 天</text>
|
|
<text>{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}} :</text>
|
|
<text>{{ timeData.hours>10?timeData.hours:'0'+timeData.hours}} :</text>
|
|
<text>{{timeData.minutes}} :</text>
|
|
<text>{{timeData.minutes}} :</text>
|
|
<text>{{timeData.seconds}}</text>
|
|
<text>{{timeData.seconds}}</text>
|
|
@@ -114,6 +114,7 @@
|
|
timeData: {}, //时间
|
|
timeData: {}, //时间
|
|
awardsList: [], //奖品
|
|
awardsList: [], //奖品
|
|
inviteCode: '', //邀请码
|
|
inviteCode: '', //邀请码
|
|
|
|
+ activityTime: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(opthios) {
|
|
onLoad(opthios) {
|
|
@@ -141,15 +142,14 @@
|
|
})
|
|
})
|
|
})
|
|
})
|
|
this.awardsList = awardsList
|
|
this.awardsList = awardsList
|
|
- // let picUrlArr = res.data.picUrl.split(',')
|
|
|
|
- // picUrlArr.forEach(item => {
|
|
|
|
- // this.picUrlArr.push(env.filePublic + item + '?imageView2/2/w/750')
|
|
|
|
- // })
|
|
|
|
// 处理富文本
|
|
// 处理富文本
|
|
const description = res.data.description.replaceAll(".jpg\"", ".jpg?imageView2/2/w/750\"")
|
|
const description = res.data.description.replaceAll(".jpg\"", ".jpg?imageView2/2/w/750\"")
|
|
.replaceAll(".jpeg\"", ".jpeg?imageView2/2/w/750\"").replaceAll(".png\"",
|
|
.replaceAll(".jpeg\"", ".jpeg?imageView2/2/w/750\"").replaceAll(".png\"",
|
|
".png?imageView2/2/w/750\"");
|
|
".png?imageView2/2/w/750\"");
|
|
this.description = this.formatRichText(description);
|
|
this.description = this.formatRichText(description);
|
|
|
|
+ let timestamp = parseInt(new Date().getTime())
|
|
|
|
+ this.activityTime = this.info.endTime - timestamp
|
|
|
|
+ console.log(this.activityTime);
|
|
}
|
|
}
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|