标签:process json custom div 弹框 roc seo function mes
var dialog = false; if(data.status == API_SUCCESS){ //成功 if(data.result.action && data.result.action == ‘recharge_processing‘){ dialog = { // 充值处理中弹框 setValue: { title:‘‘, html: true, text:‘<div class="processingImg"></div><div class="processContent"><h1>银行处理中</h1><span>您的绑卡充值信息已经提交,等待银行返回结<br>果,请稍后到我的账户,进入充值页面,点击<br>充值列表查看充值结果。</span></div>‘, confirmButtonText: "我知道了" }, callback: [function(isConfirm){ if(isConfirm){ window.location.href = "/my/info"; } }] } }else{ dialog = { setValue: { title: "", html: true, text: ‘<div class="success-cont"><div class="success-img bindcard-img"></div><p>‘+ data.message +‘</p></div>‘, customClass: ‘pop-success‘, showCancelButton: true, showConfirmButton: true, confirmButtonText: "马上充值", cancelButtonText: "知道了", closeOnConfirm: false, closeOnCancel: false }, callback: [function(isConfirm){ var url = data.result.url; if (isConfirm) { checkDialogCall(url); } else { checkDialogCall("/my/info"); } }] } } } checkJson(data,function(){ }, dialog);
标签:process json custom div 弹框 roc seo function mes
原文地址:https://www.cnblogs.com/tangbuluo/p/9415847.html