alert.js 431 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Component({ data:{ alertHidden:true }, methods:{ show:function(info,info2='',confirmtext='确定'){ this.setData({ alertHidden:false, info:info, info2:info2, confirmtext:confirmtext }) }, close:function(){ this.setData({ alertHidden:true }) } } })