"),t=$(".imgc").find(".imgitem").length,3==t&&$(".img-btn").hide()),$(".imgactive")}function getInputsNum(){for(var t=document.getElementsByTagName("textarea"),e=t[0].value,a=e.trim(),i=0,n=0;n0&&$.confirm(" ","是否放弃已填写信息?",["继续填写","放弃"],function(t){"1"==t.index&&$.doAction("backs")})}mui.init().plusReady(function(){plus.webview.currentWebview().parent().show("pop-in",300),plus.nativeUI.closeWaiting()}),$(document.body).on("tap",".img-btn",function(){$(".imgactive").removeClass("imgactive"),$(this).addClass("imgactive"),$(".use-delete").parent().css("display","none"),$("#photo").popover("toggle")}).on("tap",".imgc>img",function(){$(".use-delete").parent().css("display",""),$(".imgactive").removeClass("imgactive"),$(this).addClass("imgactive"),$("#photomui").popover("toggle")}).on("tap",".use-camera",function(){$("#photo").popover("toggle"),captureImage()}).on("tap",".use-gallery",function(){$("#photo").popover("toggle"),galleryImage()}).on("tap",".use-delete",function(){$("#photo").popover("toggle");var t=$(".imgactive");deleteEl(t)}).on("tap",".cancel-btn",function(){$("#photo").popover("toggle")}).on("tap","#button",function(){var t=$("#question").val(),e=$("#contact").val(),a=$.util.getUserInfo(),i=a?a.nmPern||a.nmUsr:"未知",n=[];$(".hasv").each(function(t,e){n.push($(e).data("value"))});var o={};o.fb_content=t,o.fb_contact=e,o.pictures=n.join(","),o.regisName=i;var c=getInputsNum();if(e){var u=$("#contact"),s=u.attr("pattern"),l=new RegExp(s);if(!l.test(u.val()))return mui.toast(u.attr("msg")),!1}c<10?mui.toast("输入内容至少10个字"):c>200?mui.toast("输入内容最多200个字"):ls.usrnote.postFeedback(o,function(){mui.toast("提交成功,感谢您的反馈!"),$.doAction("backs")})}),$.back=function(){"function"==typeof $.options.beforeback&&$.options.beforeback()===!1||goBack()},window.addEventListener("checkContent",function(){goBack()})