|
@@ -90,6 +90,7 @@
|
|
import {checkLogin,getUserInfo} from '@/api/login.js'
|
|
import {checkLogin,getUserInfo} from '@/api/login.js'
|
|
import {parseQueryString} from '@/libs/tools.js'
|
|
import {parseQueryString} from '@/libs/tools.js'
|
|
import {sellerFindByPartnerNo} from '@/api/user.js'
|
|
import {sellerFindByPartnerNo} from '@/api/user.js'
|
|
|
|
+ import moment from 'moment'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -188,11 +189,14 @@
|
|
findEnable().then(res => {
|
|
findEnable().then(res => {
|
|
if(res.status == 200 && res.data){
|
|
if(res.status == 200 && res.data){
|
|
this.$u.vuex('vuex_LuckDraw',res.data)
|
|
this.$u.vuex('vuex_LuckDraw',res.data)
|
|
- findCustomerTimes({id:this.luckDraw.luckyDrawNo}).then(res => {
|
|
|
|
|
|
+ // 判断活动是否过期
|
|
|
|
+
|
|
|
|
+ findCustomerTimes({id:res.data.luckyDrawNo}).then(res => {
|
|
let reTimes = 0
|
|
let reTimes = 0
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
reTimes = res.data.timesSurplus || 0
|
|
reTimes = res.data.timesSurplus || 0
|
|
}
|
|
}
|
|
|
|
+ this.$u.vuex('vuex_LuckDrawTimes',reTimes)
|
|
this.showLottery = reTimes > 0
|
|
this.showLottery = reTimes > 0
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|