Commit 90e8345c authored by Mac's avatar Mac
parents 7597127a 22f0189c
...@@ -25,10 +25,17 @@ ...@@ -25,10 +25,17 @@
opacity: 0; opacity: 0;
text-align: center; text-align: center;
} }
.main .box.nomove{
top: 40%;
opacity: 1;
}
.main .box.move{ .main .box.move{
top: 40%; top: 40%;
opacity: 1; opacity: 1;
transition: all linear .5s; transition: all linear .5s;
-moz-transition: all linear .5s; /* Firefox 4 */
-webkit-transition: all linear .5s; /* Safari and Chrome */
-o-transition: all linear .5s; /* Opera */
} }
.main .box .hongbao{ .main .box .hongbao{
width: 80%; width: 80%;
...@@ -65,24 +72,29 @@ ...@@ -65,24 +72,29 @@
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<script> <script>
let buyIf = {}
let RushbuyTime = JSON.parse(localStorage.RushbuyTime) if (localStorage.buyInfo) {
$( buyIf = JSON.parse(localStorage.buyInfo)
function(){ }else {
history.go(-1)
}
if (buyIf.platform == 'app') {
move(1)
} else {
move(2)
}
let RushbuyTime = localStorage.RushbuyTime ? JSON.parse(localStorage.RushbuyTime) : {RushbuyTime: ''}
$('#RushbuyTime').html(`有效期截止:` + RushbuyTime.RushbuyTime) $('#RushbuyTime').html(`有效期截止:` + RushbuyTime.RushbuyTime)
function move(t){
if (t === 1) {
$('.box').addClass('nomove')
} else {
setTimeout(function(){ setTimeout(function(){
$('.box').addClass('move') $('.box').addClass('move')
}, 500) }, 500)
} }
)
let buyIf = {}
if (localStorage.buyInfo) {
buyIf = JSON.parse(localStorage.buyInfo)
}else {
window.location.href = 'https://activity.oytour.com/html/GT_activities.html';
} }
$('.anniu').click(function () { $('.anniu').click(function () {
var loadingFlag; var loadingFlag;
if (buyIf.platform == 'app') { if (buyIf.platform == 'app') {
window.postMessage(JSON.stringify({'action': 'showHud', 'message': '抢购中...'})); window.postMessage(JSON.stringify({'action': 'showHud', 'message': '抢购中...'}));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment