|
@@ -157,7 +157,6 @@
|
|
|
} catch (error) {
|
|
|
if (error.message !== 'endIterative') throw error
|
|
|
}
|
|
|
- console.log(`下一个奖品的邀请人数以及奖品的索引位置: ${tempNum}, ${tempIndex}`)
|
|
|
// maxInviteNum:最后一个奖品所需要邀请的人数
|
|
|
if (this.inviteObj.helpcount >= this.maxInviteNum) {
|
|
|
tempNum = this.maxInviteNum
|
|
@@ -194,13 +193,22 @@
|
|
|
// 显示领取奖励弹窗
|
|
|
const { data: response } = await reqJudgeMobileIsNull({ unionid: this.unionid })
|
|
|
console.log("领取奖品,判断手机号接口: ", response)
|
|
|
- if (!response.result) return window.location.href = `https://mem.360lj.com/ym/ymallWechat/code?redirectCode=activityIndex&id=${this.id}`
|
|
|
+ if(process.env.VUE_APP_Name == "测试环境" || process.env.VUE_APP_Name == "开发环境") {
|
|
|
+ if (!response.result) return window.location.href = `https://mem.360lj.com/ym2/ymallWechat/code?redirectCode=activityIndex&id=${this.id}`
|
|
|
+ }else {
|
|
|
+ if (!response.result) return window.location.href = `https://mem.360lj.com/ym/ymallWechat/code?redirectCode=activityIndex&id=${this.id}`
|
|
|
+ }
|
|
|
this.getPrizeModal = true
|
|
|
},
|
|
|
// 监听立即邀请按钮点击事件
|
|
|
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()
|
|
@@ -211,7 +219,6 @@
|
|
|
} else {
|
|
|
this.$toast('活动未开始')
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|