|
@@ -204,6 +204,11 @@
|
|
|
handleInviteClick() {
|
|
|
let { begintime, endtime } = this.baseInfoObj
|
|
|
const nowtime = new Date().getTime()
|
|
|
+ begintime = begintime.replace(/-/g, "/");
|
|
|
+ endtime = endtime.replace(/-/g, "/");
|
|
|
+ console.log('开始时间: ', begintime)
|
|
|
+ console.log('结束时间: ', endtime)
|
|
|
+ console.log("当前时间: ", nowtime)
|
|
|
if (new Date(begintime).getTime() < nowtime && nowtime < new Date(endtime).getTime()) {
|
|
|
// 活动进行中.
|
|
|
this.createImage()
|
|
@@ -214,7 +219,6 @@
|
|
|
} else {
|
|
|
this.$toast('活动未开始')
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|