|
@@ -29,6 +29,9 @@
|
|
|
background: linear-gradient(173deg, #FFA573 0%, #F01212 100%);
|
|
|
border-radius: 0.10rem;
|
|
|
}
|
|
|
+ .pop-tip-group.active {
|
|
|
+ width: 2.4rem;
|
|
|
+ }
|
|
|
.pop-tip-group.tip-box::after,
|
|
|
.pop-tip-group.active::after {
|
|
|
content: '';
|
|
@@ -52,7 +55,7 @@
|
|
|
width: 0.72rem;
|
|
|
height: 0.32rem;
|
|
|
display: inline-block;
|
|
|
- background: url('{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/public/image/icon-1212.png?v={{Msg "seo" "version"}}');
|
|
|
+ /*background: url('{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/public/image/icon-1212.png?v={{Msg "seo" "version"}}');*/
|
|
|
background-size: cover;
|
|
|
background-repeat: no-repeat;
|
|
|
}
|
|
@@ -91,7 +94,7 @@
|
|
|
<div>每天一块钱,立刻拥有全网商机!</div>
|
|
|
</div>
|
|
|
<div class="pop-tip-group active" style="display: none">
|
|
|
- <div>限时早鸟价,买1年送1年</div>
|
|
|
+ <div>买1年送1年</div>
|
|
|
</div>
|
|
|
<div class="pop-button" data-need-bind-phone data-url="/jyapp/vipsubscribe/vipsubscribe_new{{if .T.disWord}}?disWord={{.T.disWord}}{{end}}" id="vip-introduce">
|
|
|
<img data-name="default" src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/vipsubscribe/image/info/btnBottom.png?v={{Msg "seo" "version"}}">
|
|
@@ -106,21 +109,35 @@
|
|
|
<script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/big-member/js/utils.js?v={{Msg "seo" "mod_version"}}'></script>
|
|
|
<script>
|
|
|
// 双12活动
|
|
|
+ var initPageTime = new Date().getTime()
|
|
|
+ function activeReloadPage (nowTime, endTime) {
|
|
|
+ if (initPageTime >= endTime) { return }
|
|
|
+ var reloadTime = endTime - nowTime
|
|
|
+ if (reloadTime <= (4 * 60 * 60 * 1000) ) {
|
|
|
+ setTimeout(function (){
|
|
|
+ location.reload()
|
|
|
+ }, reloadTime)
|
|
|
+ }
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
url: '/doubletwelve/activing',
|
|
|
dataType: 'json',
|
|
|
success: function(res) {
|
|
|
if (res && res.nowtime) {
|
|
|
- if (res.nowtime <= res.endtime && res.nowtime >= res.starttime) {
|
|
|
- $(".pop-tip-group").hide()
|
|
|
- $(".pop-tip-group.active").show()
|
|
|
- $('.pop-button img[data-name]').hide()
|
|
|
- $('.pop-button img[data-name="active"]').show()
|
|
|
- } else {
|
|
|
- if (res.nowtime <= res.endtime) {
|
|
|
- setTimeout(function (){
|
|
|
- location.reload()
|
|
|
- }, (res.endtime - res.nowtime) * 1000)
|
|
|
+
|
|
|
+ var canTimeEnd = res.nowtime <= res.endtime
|
|
|
+ var canTimeStart = res.nowtime >= res.starttime
|
|
|
+
|
|
|
+ if (canTimeEnd) {
|
|
|
+ if (canTimeStart) {
|
|
|
+ // 活动中
|
|
|
+ $(".pop-tip-group").hide()
|
|
|
+ $(".pop-tip-group.active").show()
|
|
|
+ $('.pop-button img[data-name]').hide()
|
|
|
+ $('.pop-button img[data-name="active"]').show()
|
|
|
+ activeReloadPage(res.nowtime * 1000, res.endtime * 1000)
|
|
|
+ } else {
|
|
|
+ activeReloadPage(res.nowtime * 1000, res.starttime * 1000)
|
|
|
}
|
|
|
}
|
|
|
}
|