标签:fun settime xtend color set cti var for back
三个按钮:‘拨打‘,‘挂断‘ 这两个是不同时出现的。
var dialog = layer.open({
type: 2
,title: ‘拨打电话‘
,content: ‘customerPhone.jsp‘
,maxmin: true
,area: layui.setter.area_percent
,offset:‘t‘
,btn: [‘拨打‘,‘挂断‘,‘关闭‘]
,btnAlign: ‘c‘
,success:function(layero,index){
window.formData = rec;
window.formData = $.extend(rec,{
seatStatus:$("#seatStatus").val(),
callType:$("#callType").val(),
});
$("a.layui-layer-btn1").css("background-color","#FF5722");
setTimeout(function () {
callPhone(rec.id,rec.mobile);
$("a.layui-layer-btn0").hide();
$("a.layui-layer-btn1").show();
},500)
}
,yes:function (index, layero) {
callPhone(rec.id,rec.mobile);
$("a.layui-layer-btn0").hide();
$("a.layui-layer-btn1").show();
return false;
}
,btn2:function (index, layero) {
hangUpPhone();
$("a.layui-layer-btn0").show();
$("a.layui-layer-btn1").hide();
return false;
}
,btn3:function (index, layero) {
}
});
控制的代码就是:
$("a.layui-layer-btn0").show();
$("a.layui-layer-btn1").hide();
标签:fun settime xtend color set cti var for back
原文地址:https://blog.51cto.com/14816966/2500765