微信二维码中文乱码问题解决
Opened this issue · 0 comments
maitreyarael commented
/static/api/js/trans/trans_weixin.js 换成官方的就不乱码了
window._bd_share_main.F.module("trans/trans_weixin",function(e,t){var n="bdshare_weixin_qrcode_dialog",r="",i=0,s,o,u,a={},f=e("base/tangram").T,l=e("conf/const").URLS,c=function(e){var t=Math.round(200/e.length);t=t<2?2:t,i=te.length;var n='
',r=[n],s="";return f.each(e,function(e,n){r.push(""),f.each(n,function(e,n){s='<td style="width:'+t+"px;height:"+t+"px;padding:0;margin:0;border:none;background:#"+(n?"000":"FFF")+'">',r.push(s)})}),r.push("','
"].join("");o=f(e).appendTo("body"),s=f(t).appendTo("body"),g()}u=s.find("#"+n+"_qr"),b()},g=function(){s.find(".bd_weixin_popup_close").click(w),f("body").on("keydown",function(e){e.keyCode==27&&w()}),f(window).resize(function(){y()})},y=function(){var e=f(window).scrollTop(),t=s.outerWidth(),n=s.outerHeight(),r=f(window).width(),i=f(window).height(),u=(i-n)/2+e,a=(r-t)/2;u=u<0?0:u,a=a<0?0:a,o.width(t).height(n).css({left:a,top:u}),s.css({left:a,top:u})},b=function(){s.show(),o.show(),y()},w=function(){s.hide(),o.hide()},E=function(e){var t="10006-weixin-1-52626-6b3bffd01fdde4900130bc5a2751b6d1";if(a.sign==="off")return e;if(a.sign==="normal"){var n=e.indexOf("#"),r=e.indexOf("?");return n==-1?e+(r==-1?"?":"&")+t:e.replace("#",(r==-1?"?":"&")+t+"#")}return e.replace(/#.$/g,"")+"#"+t},S=function(e){e=E(e);var t=[];return f.each(e,function(e,n){/[^\x00-\xff]/.test(n)?t[e]=encodeURI(n):t[e]=n}),e=t.join(""),e},x=function(){window._bd_share_main.F.use("component/pop_dialog",function(e){e.Dialog.hide()})},T=function(e){a=e,r=S(e.url),window._bd_share_main.F.use("weixin_popup.css",function(){x(),m(),d()})};t.run=T});',"\u5206\u4eab\u5230\u5fae\u4fe1\u670b\u53cb\u5708",'×',"
",'','\u6253\u5f00\u5fae\u4fe1\uff0c\u70b9\u51fb\u5e95\u90e8\u7684\u201c\u53d1\u73b0\u201d\uff0c
\u4f7f\u7528\u201c\u626b\u4e00\u626b\u201d\u5373\u53ef\u5c06\u7f51\u9875\u5206\u4eab\u81f3\u670b\u53cb\u5708\u3002
',"\u4f7f\u7528\u201c\u626b\u4e00\u626b\u201d\u5373\u53ef\u5c06\u7f51\u9875\u5206\u4eab\u81f3\u670b\u53cb\u5708\u3002