|
@@ -184,9 +184,8 @@ var payContainer = new Vue({
|
|
CAIMEI.dialog('支付成功');
|
|
CAIMEI.dialog('支付成功');
|
|
clearTimeout(timer); //清理定时任务
|
|
clearTimeout(timer); //清理定时任务
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
- window.location.href = '/index.html';
|
|
|
|
|
|
+ _self.windowLocationHref()
|
|
},2000);
|
|
},2000);
|
|
-
|
|
|
|
}else{
|
|
}else{
|
|
timer = setTimeout(function(){
|
|
timer = setTimeout(function(){
|
|
_self.setTimerWechatPay()
|
|
_self.setTimerWechatPay()
|
|
@@ -200,7 +199,7 @@ var payContainer = new Vue({
|
|
CAIMEI.dialog('支付成功');
|
|
CAIMEI.dialog('支付成功');
|
|
clearTimeout(timer); //清理定时任务
|
|
clearTimeout(timer); //清理定时任务
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
- window.location.href = '/index.html';
|
|
|
|
|
|
+ _self.windowLocationHref()
|
|
},2000);
|
|
},2000);
|
|
}else{
|
|
}else{
|
|
timer = setTimeout(function(){
|
|
timer = setTimeout(function(){
|
|
@@ -215,7 +214,7 @@ var payContainer = new Vue({
|
|
CAIMEI.dialog('支付成功');
|
|
CAIMEI.dialog('支付成功');
|
|
clearTimeout(timer); //清理定时任务
|
|
clearTimeout(timer); //清理定时任务
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
- window.location.href = '/index.html';
|
|
|
|
|
|
+ _self.windowLocationHref()
|
|
},2000);
|
|
},2000);
|
|
|
|
|
|
}else{
|
|
}else{
|
|
@@ -235,8 +234,8 @@ var payContainer = new Vue({
|
|
CAIMEI.dialog('支付成功');
|
|
CAIMEI.dialog('支付成功');
|
|
clearTimeout(timer); //清理定时任务
|
|
clearTimeout(timer); //清理定时任务
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
- window.location.href = '/index.html';
|
|
|
|
- },3000);
|
|
|
|
|
|
+ _self.windowLocationHref()
|
|
|
|
+ },2000);
|
|
}else{
|
|
}else{
|
|
timer = setTimeout(function(){
|
|
timer = setTimeout(function(){
|
|
_self.setTimerAliPay()
|
|
_self.setTimerAliPay()
|
|
@@ -244,6 +243,18 @@ var payContainer = new Vue({
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ windowLocationHref:function(){
|
|
|
|
+ var _self = this;
|
|
|
|
+ if( _self.pageType === '1'){
|
|
|
|
+ window.location.href = '/pay/success.html?pageType=second&type=success&payAmount='+_self.payAmount;
|
|
|
|
+ }else if(_self.pageType === '2'){
|
|
|
|
+ window.location.href = '/pay/success.html?pageType=vip&type=success&payAmount='+_self.payAmount;
|
|
|
|
+ }else if(_self.pageType === '3') {
|
|
|
|
+ window.location.href = '/pay/success.html?pageType=coupon&type=success&payAmount=' + _self.payAmount;
|
|
|
|
+ }else{
|
|
|
|
+ window.location.href = '/pay/success.html?pageType=www&type=success&payAmount='+_self.payAmount;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
hidePayAlert:function(){//隐藏已支付弹窗
|
|
hidePayAlert:function(){//隐藏已支付弹窗
|
|
var _self = this;
|
|
var _self = this;
|
|
_self.isPayAlert = false;
|
|
_self.isPayAlert = false;
|