|
@@ -79,7 +79,7 @@ var payContainer = new Vue({
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
- layer.msg(response.msg, {icon: 7});
|
|
|
+ CAIMEI.Alert(response.msg,'确定',false);
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -149,11 +149,12 @@ var payContainer = new Vue({
|
|
|
PayApi.PayOrderPayWhetherSuccess({orderId: _self.payInfo.payOrderId, paySuccessCounter:_self.paySuccessCounter},function(response){
|
|
|
// console.log(response);
|
|
|
if(response.code === 0){
|
|
|
+ CAIMEI.dialog('支付成功');
|
|
|
clearTimeout(timer); //清理定时任务
|
|
|
- layer.msg('支付成功', {icon: 1});
|
|
|
setTimeout(function(){
|
|
|
window.location.href = '/index.html';
|
|
|
- },3000);
|
|
|
+ },2000);
|
|
|
+
|
|
|
}else{
|
|
|
timer = setTimeout(function(){
|
|
|
_self.setTimerWechatPay()
|
|
@@ -167,8 +168,8 @@ var payContainer = new Vue({
|
|
|
PayApi.PayOrderFindOrderStatus({mbOrderId:_self.mbOrderId},function(response){
|
|
|
var data = response.data.data;
|
|
|
if(data.status === '1'){
|
|
|
+ CAIMEI.dialog('支付成功');
|
|
|
clearTimeout(timer); //清理定时任务
|
|
|
- layer.msg('支付成功', {icon: 1});
|
|
|
setTimeout(function(){
|
|
|
window.location.href = '/index.html';
|
|
|
},3000);
|