|
@@ -15,7 +15,7 @@
|
|
|
</view>
|
|
|
<view class="middles">
|
|
|
<view class="qr_codes">
|
|
|
- <image class="code" src="../static/erCode.png"></image>
|
|
|
+ <image class="code" src="../static/erCode.png" show-menu-by-longpress="true"></image>
|
|
|
</view>
|
|
|
<view class="discern">长按识别二维码 加活动专属微信号</view>
|
|
|
</view>
|
|
@@ -46,17 +46,19 @@
|
|
|
<view class="distance_time">
|
|
|
<view class="time_item">
|
|
|
距模考开始时间还有:
|
|
|
- <u-count-down :timestamp="startTime" :show-days="true" separator="zh"
|
|
|
+ <u-count-down v-if="sDay > 1" :timestamp="lastStartDay" :show-days="true" separator="zh"
|
|
|
:show-hours="false" :show-minutes="false" :show-seconds="false" font-size="28"
|
|
|
bg-color="#DFECFD" separator-color="#222222" color="#222222" separator-size="28">
|
|
|
</u-count-down>
|
|
|
+ <text v-else>0天</text>
|
|
|
</view>
|
|
|
<view class="time_item">
|
|
|
距模考结束时间还有:
|
|
|
- <u-count-down :timestamp="endTime" :show-days="true" separator="zh"
|
|
|
+ <u-count-down v-if="eDay > 1" :timestamp="lastEndDay" :show-days="true" separator="zh"
|
|
|
:show-hours="false" :show-minutes="false" :show-seconds="false" font-size="28"
|
|
|
bg-color="#DFECFD" separator-color="#222222" color="#222222" separator-size="28">
|
|
|
</u-count-down>
|
|
|
+ <text v-else>0天</text>
|
|
|
</view>
|
|
|
<view class="time_item">活动咨询电话:020-87085982/87085982</view>
|
|
|
</view>
|
|
@@ -74,13 +76,21 @@ export default {
|
|
|
return {
|
|
|
startTime: '',
|
|
|
endTime: '',
|
|
|
+ lastStartDay: '',
|
|
|
+ lastEndDay: '',
|
|
|
+ sDay: '',
|
|
|
+ eDay: '',
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
console.log('option: ', option)
|
|
|
- // option.startTime * 1000 ,1662087489
|
|
|
- this.startTime = option.startTime - parseInt(curTime/1000)
|
|
|
- this.endTime = option.endTime - parseInt(curTime/1000)
|
|
|
+ this.startTime = option.startTime
|
|
|
+ this.endTime = option.endTime
|
|
|
+ this.lastStartDay = option.startTime - parseInt(curTime/1000)
|
|
|
+ this.lastEndDay = option.endTime - parseInt(curTime/1000)
|
|
|
+ this.sDay = this.lastStartDay/24/60/60
|
|
|
+ this.eDay = this.lastEndDay/24/60/60
|
|
|
+ console.log('lastStartDay', this.lastStartDay, this.lastEndDay, this.sDay, this.eDay)
|
|
|
},
|
|
|
onShow() {
|
|
|
|