|
@@ -50,7 +50,7 @@
|
|
|
</div>
|
|
|
<div class="line-wrap">
|
|
|
<img class="icon icon1" src="../static/img/anniversaryCelebrate/icon1.png" />
|
|
|
- <img class="icon icon2" src="../static/img/anniversaryCelebrate/icon3.png" />
|
|
|
+ <img class="icon icon2" src="../static/img/anniversaryCelebrate/icon2.png" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -66,26 +66,24 @@
|
|
|
<div class="get-award-wrap">
|
|
|
<img class="award-img" src="../static/img/anniversaryCelebrate/left-bg.png" />
|
|
|
<img class="get-award-img" src="../static/img/anniversaryCelebrate/get-award-show.png" />
|
|
|
- <div class="get-award-text">领取</div>
|
|
|
+ <div class="get-award-text">充值奖励</div>
|
|
|
</div>
|
|
|
- <div class="get-award-wrap">
|
|
|
+ <div class="get-award-wrap get-award-right-wrap">
|
|
|
<img class="award-img right-bg" src="../static/img/anniversaryCelebrate/right-bg.png" />
|
|
|
<img class="get-award-img" src="../static/img/anniversaryCelebrate/get-award-success-hidden.png" />
|
|
|
- <div class="get-award-text used-text">已使用</div>
|
|
|
+ <div class="get-award-text used-text">分配奖励</div>
|
|
|
+ <div class="no-distribution-award">999+</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="light-title-wrap">
|
|
|
- <div class="light-title-text award-text">奖品</div>
|
|
|
- <div class="light-title-text light-title-time">时间</div>
|
|
|
- <div class="light-title-text active-text">操作</div>
|
|
|
- </div>
|
|
|
<div class="light-content-container">
|
|
|
- <div class="light-content-list"></div>
|
|
|
+ <div class="light-content-list">
|
|
|
+ <div class="light-content-text">点亮一颗星获得星曜7天时长奖励</div>
|
|
|
+ </div>
|
|
|
<div class="all-light">已全部点亮<text class="light-number"></text>次</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="activity-intrduction-wrap">
|
|
|
- <div>活动时间:2022年6月10日-2022年6月19日</div>
|
|
|
+ <div>活动时间:2022年6月18日-2022年6月27日</div>
|
|
|
<div>活动参与套餐:星曜套餐月卡年卡(自动续费除外)</div>
|
|
|
</div>
|
|
|
<div class="law-statement">请阅读相关《法律声明》文件</div>
|
|
@@ -192,7 +190,7 @@
|
|
|
</script>
|
|
|
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
- // var baseUrl = 'http://192.168.31.198'
|
|
|
+ var baseUrl = 'http://14.18.190.141:1280'
|
|
|
let timer,flag = true;
|
|
|
var url = window.location.href;
|
|
|
url = url.split('/')
|
|
@@ -242,9 +240,22 @@
|
|
|
residueDegree = res.data.residueDegree;
|
|
|
anniversarySwitch = res.data.anniversarySwitch;
|
|
|
result = res.data.lighten;
|
|
|
- lighten = result.split(','), str = '';
|
|
|
+ lighten = result && result.split(',') || [], str = '';
|
|
|
$('.rest-number').eq(0).text(residueDegree);
|
|
|
$('.light-number').eq(0).text(res.data.allTotal);
|
|
|
+ if(residueDegree == 0){
|
|
|
+ $('.line-wrap')[0].className = 'line-wrap';
|
|
|
+ $('.icon1')[0].src = '../static/img/anniversaryCelebrate/icon1.png';
|
|
|
+ $('.icon2')[0].src = '../static/img/anniversaryCelebrate/icon2.png';
|
|
|
+ }else if(residueDegree >=1 && residueDegree < 5){
|
|
|
+ $('.line-wrap')[0].className = 'line-wrap line-wrap-one';
|
|
|
+ $('.icon1')[0].src = '../static/img/anniversaryCelebrate/icon4.png';
|
|
|
+ $('.icon2')[0].src = '../static/img/anniversaryCelebrate/icon2.png';
|
|
|
+ } else if(residueDegree >= 5){
|
|
|
+ $('.line-wrap')[0].className = 'line-wrap line-wrap-two';
|
|
|
+ $('.icon1')[0].src = '../static/img/anniversaryCelebrate/icon4.png';
|
|
|
+ $('.icon2')[0].src = '../static/img/anniversaryCelebrate/icon3.png';
|
|
|
+ }
|
|
|
if(anniversarySwitch !== 0){
|
|
|
let awardText = anniversarySwitch == 1 ? '<div>活动暂未开启</div>请稍安勿躁' : '<div>活动已结束</div>期待下次的见面'
|
|
|
$('.no-start-dialog').eq(0).append(awardText);
|
|
@@ -252,7 +263,7 @@
|
|
|
$('.no-start-mask').show();
|
|
|
document.documentElement.style.overflow='hidden';
|
|
|
}
|
|
|
- if(result == ''){
|
|
|
+ if(result == '' || !lighten){
|
|
|
return
|
|
|
}
|
|
|
//更新点亮星星
|
|
@@ -274,7 +285,7 @@
|
|
|
},
|
|
|
})
|
|
|
};
|
|
|
- getAward();
|
|
|
+ // getAward();
|
|
|
//点击抽奖
|
|
|
$('.once-btn')[0].addEventListener('click',() => {
|
|
|
if(!animationFlag) return;
|
|
@@ -345,6 +356,7 @@
|
|
|
}
|
|
|
let currData = list.filter(item => item.awardType == 0);
|
|
|
list = [...currData, ...otherData];
|
|
|
+ getAward();
|
|
|
if(type !== 'report'){
|
|
|
$('.award-result-dialog-sure').animate({top: '1.86rem'},"fast");
|
|
|
$('.award-result-mask').show();
|
|
@@ -414,7 +426,7 @@
|
|
|
imgNumber++;
|
|
|
},400)
|
|
|
}
|
|
|
- $('.times-text-number').eq(0).text(residueDegree - 1);
|
|
|
+ $('.times-text-number').eq(0).text(residueDegree - times);
|
|
|
$('.award-result-wrap').eq(0).append(str);
|
|
|
init();
|
|
|
}else{
|
|
@@ -425,6 +437,13 @@
|
|
|
},
|
|
|
})
|
|
|
}
|
|
|
+ //点击确定
|
|
|
+ $('.distribution-award')[0].addEventListener('click',() => {
|
|
|
+ animationFlag = true;
|
|
|
+ $('.award-result-dialog').animate({top: '-10.96rem'},"fast");
|
|
|
+ $('.award-result-mask').hide();
|
|
|
+ document.documentElement.style.overflow='auto';
|
|
|
+ },false);
|
|
|
//点击抽奖关闭按钮
|
|
|
$('.award-result-close')[0].addEventListener('click',() => {
|
|
|
animationFlag = true;
|