Merge branct push -u or h 'version_1.0' of http://gitlab.ldxinyong.com/enterpriseManagement/lz_management_vue into version_1.0

This commit is contained in:
quyixiao 2020-08-24 19:59:04 +08:00
commit 12ecfd0f60
2 changed files with 17 additions and 7 deletions

View File

@ -42,6 +42,8 @@ export default {
console.log('走钉钉免登流程')
this.dingtalkLogin()
this.checkDingTalkLogin()
} else {
this.verify = '请使用手机钉钉扫码打开'
}
},
methods: {
@ -87,7 +89,7 @@ export default {
if (res && res.code === 0) {
console.log('获取token')
this.dataForm.verify='已经登记,祝你好运下午1点44分员工新天地现场开奖'
this.dataForm.verify='已经登记,祝您好运七夕下午5点20分员工新天地现场开奖'
console.log('跳转')
} else {

View File

@ -1,5 +1,5 @@
<template>
<div>
<div v-loading='hasSendCode'>
<h1 class="brand-info__text">{{dataForm.verify}}</h1>
<h2 class="brand-info__text">{{dataForm.uuid}}</h2>
@ -58,9 +58,9 @@ export default {
time: -1,
rand: 0,
timer: false,
hasSendCode: false,
hasSendCode: true,
query: {
luckId: 2
luckId: 1//
},
data: [],
luckdata: [],
@ -94,10 +94,11 @@ export default {
this.luckdata.unshift(item)
}
//
this.hasSendCode = true;
apiUpdateLuck(this.luckdata).then(res => {
console.log(res)
if (res && res.code === 0) {
console.log(res.luck.isFinish)
console.log(res.luck)
this.requst = res.luck
if(res.luck.isFinish === 1){
this.dataForm.verify=res.luck.name + '——活动结束'
@ -105,6 +106,7 @@ export default {
} else {
this.$message.error(res.msg)
}
this.hasSendCode = false;
})
}
}
@ -128,6 +130,7 @@ export default {
this.dataForm.verify='无法登记。' + res.msg
this.$message.error(res.msg)
}
this.hasSendCode = false;
})
},
dataTimeChange () {
@ -135,12 +138,17 @@ export default {
this.dataForm.uuid = this.requst.luckGoodsReqs[this.time].name
setTimeout(() =>{
this.randData(this.requst.luckGoodsReqs[this.time].counts)
}, 100)
}, 20)
}
},
randData (count) {
if (this.timer === true) {
var obj = []
if(count > this.requst.luckRecordReqs.length){//
console.log('奖品数大于报名人数')
count = this.requst.luckRecordReqs.length
console.log(count)
}
for(var i = 0; i < count; i++){
if(this.rand >= this.requst.luckRecordReqs.length){
@ -152,7 +160,7 @@ export default {
this.data = obj
setTimeout(() =>{
this.randData(count)
}, 100)
}, 20)
}
}
}