. 1 layer.confirm ( '<font Color = "Red"> carefully check the account information submitted after the irrevocable !! </ font>' , { 2 icon:. 3 , . 3 title: "Financial accounting operation confirmation" , 4 btn: [ 'OK', 'cancel' ] . 5 }, function (index, layero) { . 6 // submitted background . 7 the console.log ( 'Confirm' ) . 8 $ .post ( "/ the index.php / the Admin / ServiceEvent / confirm? access_token = "+ token, field,function (res) { . 9 IF (res.code ==. 1 ) { 10 layer.msg (res.msg, {icon:. 1 }); . 11 layui.table.reload ( 'LAY--Service-index'); // overloaded table 12 is Layer .close (index); // perform a shutdown 13 is } the else { 14 layer.alert (res.msg, {icon: 2 }); 15 } 16 }); 17 layer.closeAll('dialog'); 18 },function () { 19 console.log('cancel') 20 } 21 );
layer.alert(res.msg,{icon:2});