(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3b9a4338"],{"0cb2":function(e,t,n){var r=n("7b0b"),a=Math.floor,i="".replace,c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,o=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,s,u,l){var f=n+e.length,d=s.length,p=o;return void 0!==u&&(u=r(u),p=c),i.call(l,p,(function(r,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":c=u[i.slice(1,-1)];break;default:var o=+i;if(0===o)return r;if(o>d){var l=a(o/10);return 0===l?r:l<=d?void 0===s[l-1]?i.charAt(1):s[l-1]+i.charAt(1):r}c=s[o-1]}return void 0===c?"":c}))}},"107c":function(e,t,n){var r=n("d039");e.exports=r((function(){var e=RegExp("(?b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"14c3":function(e,t,n){var r=n("c6b6"),a=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var i=n.call(e,t);if("object"!==typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},5319:function(e,t,n){"use strict";var r=n("d784"),a=n("d039"),i=n("825a"),c=n("50c4"),o=n("a691"),s=n("1d80"),u=n("8aa5"),l=n("0cb2"),f=n("14c3"),d=n("b622"),p=d("replace"),h=Math.max,v=Math.min,g=function(e){return void 0===e?e:String(e)},x=function(){return"$0"==="a".replace(/./,"$0")}(),m=function(){return!!/./[p]&&""===/./[p]("a","$0")}(),b=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));r("replace",(function(e,t,n){var r=m?"$":"$0";return[function(e,n){var r=s(this),a=void 0==e?void 0:e[p];return void 0!==a?a.call(e,r,n):t.call(String(r),e,n)},function(e,a){if("string"===typeof a&&-1===a.indexOf(r)&&-1===a.indexOf("$<")){var s=n(t,this,e,a);if(s.done)return s.value}var d=i(this),p=String(e),x="function"===typeof a;x||(a=String(a));var m=d.global;if(m){var b=d.unicode;d.lastIndex=0}var k=[];while(1){var y=f(d,p);if(null===y)break;if(k.push(y),!m)break;var $=String(y[0]);""===$&&(d.lastIndex=u(p,c(d.lastIndex),b))}for(var w="",I=0,E=0;E=I&&(w+=p.slice(I,R)+N,I=R+_.length)}return w+p.slice(I)}]}),!b||!x||m)},8521:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.show?n("div",[n("van-nav-bar",{attrs:{title:"领导信箱","left-arrow":""},on:{"click-left":e.onClickLeft}})],1):e._e(),n("div",{staticClass:"inputAll"},[n("form",{on:{submit:function(t){return t.preventDefault(),e.submit(e.staff_num)}}},[n("div",{staticClass:"input-name"},[n("span",{staticClass:"span-name"},[e._v("姓名:")]),n("input",{staticClass:"input-border",attrs:{type:"text",name:"姓名",placeholder:"请输入姓名",readonly:""},domProps:{value:e.username}}),n("div",[n("van-checkbox",{attrs:{shape:"square"},on:{change:e.userNameChange},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("匿名")])],1)]),n("div",{staticClass:"input-message"},[n("van-field",{attrs:{rows:"5",colon:"true",name:"留言",label:"留言",type:"textarea",placeholder:"请输入留言"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),e._m(0)])])])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"input-button"},[n("input",{attrs:{type:"submit",value:"提交"}})])}],i=(n("ac1f"),n("5319"),n("b0c0"),{data:function(){return{checked:0,content:"",username:"",staff_num:"",token:sessionStorage.getItem("mytoken")?sessionStorage.getItem("mytoken"):"",show:!0,gettoken:""}},methods:{submit:function(e){""==this.username||""==this.content?this.$toast("请填写内容"):(this.$http.post("/api/workbench/leader_mailbox/add",{staff_num:e,status:this.checked,content:this.content,name:this.username}).then((function(e){console.log(e)})),this.$toast("建议已提交"))},userNameChange:function(){if(1==this.checked){var e=this.username;e=e.replace(/./g,"*"),this.username=e}else this.username},onClickLeft:function(){window.history.back()},getxinxi:function(){var e=this;this.$http.post("http://xixuan.nxjiewei.com:8011/api/user/info").then((function(t){if(e.staff_num=t.data.data.staff_num,e.username=t.data.data.name,1==e.checked){var n=e.username;n=n.replace(/./g,"*"),e.username=n,0==e.checked&&(e.username=t.data.data.name)}}))}},mounted:function(){this.gettoken=this.$route.query.token,this.token="Bearer ".concat(this.gettoken),sessionStorage.setItem("mytoken",this.token),this.show=this.$route.query.tabbar,this.getxinxi()}}),c=i,o=(n("b391"),n("2877")),s=Object(o["a"])(c,r,a,!1,null,null,null);t["default"]=s.exports},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},9263:function(e,t,n){"use strict";var r=n("ad6d"),a=n("9f7f"),i=n("5692"),c=n("7c73"),o=n("69f3").get,s=n("fce3"),u=n("107c"),l=RegExp.prototype.exec,f=i("native-string-replace",String.prototype.replace),d=l,p=function(){var e=/a/,t=/b*/g;return l.call(e,"a"),l.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),h=a.UNSUPPORTED_Y||a.BROKEN_CARET,v=void 0!==/()??/.exec("")[1],g=p||v||h||s||u;g&&(d=function(e){var t,n,a,i,s,u,g,x=this,m=o(x),b=m.raw;if(b)return b.lastIndex=x.lastIndex,t=d.call(b,e),x.lastIndex=b.lastIndex,t;var k=m.groups,y=h&&x.sticky,$=r.call(x),w=x.source,I=0,E=e;if(y&&($=$.replace("y",""),-1===$.indexOf("g")&&($+="g"),E=String(e).slice(x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&"\n"!==e[x.lastIndex-1])&&(w="(?: "+w+")",E=" "+E,I++),n=new RegExp("^(?:"+w+")",$)),v&&(n=new RegExp("^"+w+"$(?!\\s)",$)),p&&(a=x.lastIndex),i=l.call(y?n:x,E),y?i?(i.input=i.input.slice(I),i[0]=i[0].slice(I),i.index=x.lastIndex,x.lastIndex+=i[0].length):x.lastIndex=0:p&&i&&(x.lastIndex=x.global?i.index+i[0].length:a),v&&i&&i.length>1&&f.call(i[0],n,(function(){for(s=1;s