提交 69ad5da0 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

Merge branch 'dev-stage2-20191125' of...

Merge branch 'dev-stage2-20191125' of http://192.168.110.53/com.pica.cloud.foundation.frontend/year-end-activitiy into dev-stage2-20191125
...@@ -237,6 +237,7 @@ ...@@ -237,6 +237,7 @@
data () { data () {
return { return {
canClick: true, // 课程、smo防止连续点击 canClick: true, // 课程、smo防止连续点击
canClockClick: true, // 打卡防止多次点击
hospital: '', // 加入机构审核中 显示的机构名称 hospital: '', // 加入机构审核中 显示的机构名称
awardModalShow: false, // 根据排名是否显示中奖弹窗 awardModalShow: false, // 根据排名是否显示中奖弹窗
showAwadModal: true, // 根据活动时间是否展示中奖弹层以及查看昨日榜单逻辑 showAwadModal: true, // 根据活动时间是否展示中奖弹层以及查看昨日榜单逻辑
...@@ -383,7 +384,7 @@ ...@@ -383,7 +384,7 @@
vm.clockSuccessVisible = false; vm.clockSuccessVisible = false;
}, },
returnScoreAwardTips() { returnScoreAwardTips() {
// let award = ''; let award = '';
if( vm.doctorInfo ) { if( vm.doctorInfo ) {
// 16号之前或者30号之后 提示:不在活动期间内 // 16号之前或者30号之后 提示:不在活动期间内
let msecSixteen = new Date('2019/12/16 00:00:00').getTime(); let msecSixteen = new Date('2019/12/16 00:00:00').getTime();
...@@ -858,6 +859,7 @@ ...@@ -858,6 +859,7 @@
if( vm.isClockFinish ){ // 已打卡,不执行,未打卡,去调用打卡接口 if( vm.isClockFinish ){ // 已打卡,不执行,未打卡,去调用打卡接口
// 已打卡,不处理 // 已打卡,不处理
}else{ // 未打卡,去打卡 }else{ // 未打卡,去打卡
if(vm.canClockClick){
vm.$sendBuriedData({ vm.$sendBuriedData({
component_tag: `302#302010` component_tag: `302#302010`
}); });
...@@ -887,6 +889,12 @@ ...@@ -887,6 +889,12 @@
vm.$toast('打卡发生错误,请重新进入活动,再次尝试打卡'); vm.$toast('打卡发生错误,请重新进入活动,再次尝试打卡');
} }
}) })
vm.canClockClick = false;
}
setTimeout(() => {
vm.canClockClick = true;
}, 1000)
} }
}else{ // 非打卡,直接走积木tims跳转逻辑 }else{ // 非打卡,直接走积木tims跳转逻辑
// alert('去课程或者患者招募 。。。。。。') // alert('去课程或者患者招募 。。。。。。')
......
...@@ -100,7 +100,6 @@ ...@@ -100,7 +100,6 @@
} }
}, },
mounted(){ mounted(){
alert(JSON.stringify(this.parsed))
document.querySelector('body').setAttribute('style', 'background: #FE9A51;'); document.querySelector('body').setAttribute('style', 'background: #FE9A51;');
// document.querySelector('body').setAttribute('style', 'overflow-x: hidden;'); // document.querySelector('body').setAttribute('style', 'overflow-x: hidden;');
this.checkCache(); this.checkCache();
......
...@@ -55,19 +55,25 @@ ...@@ -55,19 +55,25 @@
<script> <script>
import { wxShare } from '@/configs/wxShare'; import { wxShare } from '@/configs/wxShare';
export default { export default {
asyncData({ query }){ // asyncData({ query }){
const { status } = query; // 上个页面传递过来领取结果, false 为已领取, true 为领取成功 // const { status } = query; // 上个页面传递过来领取结果, false 为已领取, true 为领取成功
const statusTxt = (status=='true') ? '领取成功' : '您已领取'; // const statusTxt = (status=='true') ? '领取成功' : '您已领取';
return { // return {
statusTxt // statusTxt
} // }
}, // },
data(){ data(){
return { return {
shareObj: wxShare, shareObj: wxShare,
statusTxt: ''
} }
}, },
mounted(){ mounted(){
if(this.$route.query.status=='true'){
this.statusTxt = '领取成功';
}else{
this.statusTxt = '您已领取';
}
document.querySelector('body').setAttribute('style', 'background: "";'); document.querySelector('body').setAttribute('style', 'background: "";');
// document.querySelector('body').setAttribute('style', 'overflow-x: hidden;'); // document.querySelector('body').setAttribute('style', 'overflow-x: hidden;');
// 微信分享 // 微信分享
......
...@@ -56,8 +56,11 @@ export const checkToken = async (token) => { ...@@ -56,8 +56,11 @@ export const checkToken = async (token) => {
// 获取邀请人的头像和名字信息 // 获取邀请人的头像和名字信息
export const getInviteInfo = async (id) => { export const getInviteInfo = async (id) => {
return request({ return request({
url: `campaign/inviteOne/info?id=${id}`, url: `campaign/inviteOne/info`,
method: 'get' method: 'get',
params: {
id
}
}) })
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册