/**
* Created by yx on 2017/12/21.
*/
export default {
/**
* 带按钮的弹框
**/
showAlert:function(content,callback,singleButton){
if(typeof(content)=="string"){
if(callback){
if(singleButton){
// alert("内容加function两个按钮");
showDouble(content,callback);
}else{
// alert("内容加function一个按钮");
showSingle(content,callback);
}
return;
}
showSingle(content);
}
},
//弹窗提示自定义弹框
eduToast:function(msg, duration){
duration = isNaN(duration) ? 3000 : duration;
var m = document.createElement('div');
m.innerHTML = msg;
m.style.cssText = "width: 60%;min-width: 150px;opacity: 0.7;height: 30px;color: rgb(255, 255, 255);line-hei