美文网首页
noty 对提示对话

noty 对提示对话

作者: 程序员的自我修养 | 来源:发表于2020-05-29 09:02 被阅读0次

$('a.shouhuo').click(function () {

   var sn = $(this).attr('id');

   var n = noty({

       text: '已收到货?',

       layout: 'center',

       modal: true,

       buttons: [

            {

               addClass: 'btn btn-primary', text: '确定', onClick: function ($noty) {

                $noty.close();

               location.href = '<?php echo Yii::app()->createUrl("a/order/confirmReceived"); ?>?order_sn=' + sn;

           }

            },

           {

               addClass: 'btn btn-danger', text: '取消', onClick: function ($noty) {

                $noty.close();

           }

            }

        ]

    })

})

beforeSend: function () {

   noty({

       layout: 'center',

       type: 'warning',

       modal: true,

       text: '<i class="fa fa-spinner fa-pulse"></i>查询中,请耐心等候..'

   });

},

newNoty({

    timeout:2000,

    layout:'center',

    type:'success',

    modal:true,

    killer:true,

    text: data.msg,

    callbacks: {

        afterClose:function() {

        }

    }

}).show(); 

相关文章

网友评论

      本文标题:noty 对提示对话

      本文链接:https://www.haomeiwen.com/subject/cbquohtx.html