eapp 的几个弹框
<!-- 弹出框 alert -->
Eapp.ui.alert("这是弹框啊",function(){
Eapp.window.open(`/pages/aaa/erer`)
});
<!-- 如果确定后的跳转需要传参的话,需要先var获取一下,或者是改变一下this指向,或者是事件里传一下。具体看吧。 -->
tankuang(id){
// var that = this;
// var id = this.id
Eapp.ui.alert("这是弹框啊",function(){
Eapp.window.open(`/pages/aaa/erer?id=${id}`)
});
},
<!-- 提示框 -->
Eapp.ui.toast.success("成功");
Eapp.ui.toast.fail("失败") //失败的图标也是个对勾,不建议使用
Eapp.ui.toast.text("嘿嘿嘿嘿嘿嘿嘿")
<!-- 提示询问框 -->
Eapp.ui.confirm("确定要干点儿啥嘛",()=>{
console.log("确定的事件")
},()=>{
console.log("取消的事件")
})
<!-- 转圈 (加载中)-->
Eapp.ui.loading() // 转
Eapp.ui.stopLoading() // 停