$define(["wgt_util","jquery.qrcode","wgt_readyload"],function(d,t,e,s){return{init:function(t){t=this._params;var e=$compcl.getscope(t.id);!function o(n){var t=n.find(".p_name").attr("infodetailid");if(t!=undefined){var e={id:number(t),apptag:1};d.ajax({type:"get",url:"/commentviewcount/ajax/updateandgetviewcount",data:e,async:!1,success:function(t){var e=json.parse(t);e&&200==e.status&&(n.find(".p_view .font").html(''+e.data),s.setcomppostion())}})}}(e);var n=d(".js-introcontent",e).html();if(null!=d.trim(n)&&d.trim(n)!=undefined&&""!=d.trim(n)&&(d.showrichtext(e,t.id,"p_details",n),d(".js-introcontent",e).html("")),t.params.c_qrcode){var a=commonshorturl+t.params.c_qrcode,i=t.params.qrcodewidth,r=t.params.qrcodeheight;e.find(".js_qrcode").qrcode({width:i,height:r,render:"canvas",text:a})}else e.find(".p_savetext").css("display","none")}}});