zoukankan      html  css  js  c++  java
  • dialog使用(自用)

                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);
  • 相关阅读:
    vscode snippet
    OpenGL Type
    [转] fio参数详解
    [转] openchannel SSD( OCSSD)
    [转]linux内存管理
    proc/meminfo && hugepage
    [转] 从free到 page cache
    [转]linux网络协议栈(1)——链路层
    [转]linux 网络协议栈(1)——网络设备
    [转]linux网络协议栈(1)——socket buffer
  • 原文地址:https://www.cnblogs.com/tangbuluo/p/9415847.html
Copyright © 2011-2022 走看看