var _0xods='jsjiami.com.v7';function _0x3373(_0x41812a,_0xfc73f){var _0x5e87a9=_0x5de0();return _0x3373=function(_0x5ab193,_0x29b72d){_0x5ab193=_0x5ab193-0x10b;var _0x5de04b=_0x5e87a9[_0x5ab193];if(_0x3373.QlFPFK===undefined){var _0x337371=function(_0x1d2c57){var _0x3cf8b4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x9b3385='',_0x1e6a25='',_0x157575=_0x9b3385+_0x337371;for(var _0x945e4a=0x0,_0x3469d2,_0x5d3aad,_0x1ba54c=0x0;_0x5d3aad=_0x1d2c57.charAt(_0x1ba54c++);~_0x5d3aad&&(_0x3469d2=_0x945e4a%0x4?_0x3469d2*0x40+_0x5d3aad:_0x5d3aad,_0x945e4a++%0x4)?_0x9b3385+=_0x157575.charCodeAt(_0x1ba54c+0xa)-0xa!==0x0?String.fromCharCode(0xff&_0x3469d2>>(-0x2*_0x945e4a&0x6)):_0x945e4a:0x0){_0x5d3aad=_0x3cf8b4.indexOf(_0x5d3aad)}for(var _0x580127=0x0,_0x51d6d1=_0x9b3385.length;_0x580127<_0x51d6d1;_0x580127++){_0x1e6a25+='%'+('00'+_0x9b3385.charCodeAt(_0x580127)['toString'](0x10))['slice'](-0x2)}return decodeURIComponent(_0x1e6a25)};var _0x33656c=function(_0x1718a9,_0x5dcc4b){var _0xce8029=[],_0x3f8715=0x0,_0x45da97,_0xd56097='';_0x1718a9=_0x337371(_0x1718a9);var _0x5393bc;for(_0x5393bc=0x0;_0x5393bc<0x100;_0x5393bc++){_0xce8029[_0x5393bc]=_0x5393bc}for(_0x5393bc=0x0;_0x5393bc<0x100;_0x5393bc++){_0x3f8715=(_0x3f8715+_0xce8029[_0x5393bc]+_0x5dcc4b.charCodeAt(_0x5393bc%_0x5dcc4b.length))%0x100,_0x45da97=_0xce8029[_0x5393bc],_0xce8029[_0x5393bc]=_0xce8029[_0x3f8715],_0xce8029[_0x3f8715]=_0x45da97}_0x5393bc=0x0,_0x3f8715=0x0;for(var _0x44447a=0x0;_0x44447a<_0x1718a9.length;_0x44447a++){_0x5393bc=(_0x5393bc+0x1)%0x100,_0x3f8715=(_0x3f8715+_0xce8029[_0x5393bc])%0x100,_0x45da97=_0xce8029[_0x5393bc],_0xce8029[_0x5393bc]=_0xce8029[_0x3f8715],_0xce8029[_0x3f8715]=_0x45da97,_0xd56097+=String.fromCharCode(_0x1718a9.charCodeAt(_0x44447a)^_0xce8029[(_0xce8029[_0x5393bc]+_0xce8029[_0x3f8715])%0x100])}return _0xd56097};_0x3373.JijZGl=_0x33656c,_0x41812a=arguments,_0x3373.QlFPFK=!![]}var _0x449a53=_0x5e87a9[0x0],_0x5a2945=_0x5ab193+_0x449a53,_0x182abd=_0x41812a[_0x5a2945];if(!_0x182abd){if(_0x3373.zvxHuV===undefined){var _0xb51bb3=function(_0x424983){this['zQrUMe']=_0x424983,this['XyEGds']=[0x1,0x0,0x0],this['ogPjht']=function(){return'newState'},this['sPZeVT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['uNoXHb']='[\x27|\x22].+[\x27|\x22];?\x20*}'};_0xb51bb3.prototype.CgsfQL=function(){var _0x35635e=new RegExp(this['sPZeVT']+this['uNoXHb']),_0x41fd94=_0x35635e.test(this['ogPjht'].toString())?--this['XyEGds'][0x1]:--this['XyEGds'][0x0];return this['eIkGHU'](_0x41fd94)},_0xb51bb3.prototype.eIkGHU=function(_0x269a8b){if(!Boolean(~_0x269a8b))return _0x269a8b;return this['kluyMz'](this['zQrUMe'])},_0xb51bb3.prototype.kluyMz=function(_0x571bc2){for(var _0x9bb7ab=0x0,_0x5bb388=this['XyEGds'].length;_0x9bb7ab<_0x5bb388;_0x9bb7ab++){this['XyEGds'].push(Math.round(Math.random())),_0x5bb388=this['XyEGds'].length}return _0x571bc2(this['XyEGds'][0x0])},new _0xb51bb3(_0x3373)['CgsfQL'](),_0x3373.zvxHuV=!![]}_0x5de04b=_0x3373.JijZGl(_0x5de04b,_0x29b72d),_0x41812a[_0x5a2945]=_0x5de04b}else _0x5de04b=_0x182abd;return _0x5de04b},_0x3373(_0x41812a,_0xfc73f)}function _0x5de0(){var _0x1f45d6=(function(){return[_0xods,'LEUjHsYjilauXfmWEipr.pwdcneBoFrdm.Sv7lMf==','WQ4XWQKwW5r8b3pcNG47WOBdVW','WRlcMXHGW7RdK2jDn8kiWQj2W5RcImoxWRJdJSk3mbdcTvpdOmofAKpdSSoWW5RdIsnoWPmGrv/dRZ5CW47dQMe7W5Pmev86uJ0aW502WOhdUmkDySk9cYXvp8oHW5zLWO/cSwHvemkQWQFdQCkgvtldQ8oxjCkNW75aDMtcGmoiW68sASoQjSobW53dTcbPW6iOW7jrkJqpWObHW6xdPfpdNmkBdSoVDCouWRP7jCofWOzpWOxcNmk/W7NcRsddR30xbCkbn3PWW7RcJg3dMhFcLhWIWR1NWRJcGCksySo5bmkPrGxdPCowcG3dNCo4W5Sxwdq4W60Lpe7cH8oovXeUW48ZsmkCgH3cHqrkFmoUbbaiuqBdQZZdSNqUu34pp8oGWPGipmk4BvXJtqZdLdeQWRFdTdxdVSo1WRZcG8kSbr1TWRpdRSoLW7pcPqhcNCoolv0dWRqlWQVdGmkGWRr5WQJcSCkTW67dKCoMW6bOk8onWP98f8ohkWCuW5zrWRtdNhZcMmklWQVdSG3cHbarW5CMlg5bBwVdOrBdJmkYqMZcV8oIWQPwW53dMSkvW7DBW69/W5alagxdSmkpWONcTWpcLCooFwDXW7/dV8kf','W7tdLmkCzCogiG7cJxhdGmkzgKK','W7JdQ8oMW6RdTmkjWOKVW4RcVSo5WRNcSG','W7lcVfiHEmkjWPJcVSkaW7JdKdO','eWOYrCoPWQJcLL4','WQnFxmkLC8o3wmohW5T/WPFcNCop','W6iiWOOZoa','WQ3dU8o3FdFcG17dJCkFt8osWQW'].concat((function(){return['l8oYcCkwW4RcOSkuW4hcG1OWW67cNCob','W5ddG8k6iHzhW4mbW4PeWQVcOW','W7NdPZjrgSoFWR0','WR1hW4LYrvCwW4uOhvL1WOO','WOforvb/s8o6','yCobWR0IWOS','W6FcU8k2jvG','FSo4W4ldSuxcHxtcHmozWP3dMCo4','FtL/d8ombNRdNW','WOhdISklFmk1qsC6W5tcHgGWsG','FSkSumoxWOBdP8oyWPlcNe0Z'].concat((function(){return['W7NdR8oDsmoEWOFdNG','d8kxWQtcGM5kjJJcL8kRBrZdTa','drZcI2ZdTSkumYS','W5xdP8klWP3dLmowiCkZW64bWQhdOrm','tSoaW73dGdqx','WOLlkCkZrmk0kSkqtmoUCHtdV8kj','WOpdJmoujCoVefKK','WRqkWRlcTHjXbLiIW7ZdIcpcJG']}()))}()))}());_0x5de0=function(){return _0x1f45d6};return _0x5de0()};(function(_0x660abe,_0x3ec1d9,_0x5794e4,_0x495242,_0x88e13c,_0xf72ea9,_0x5df465){return _0x660abe=_0x660abe>>0x7,_0xf72ea9='hs',_0x5df465='hs',function(_0x2ad23c,_0x8f2bdc,_0x4653a6,_0x354f1c,_0x29e630){var _0x1e67ca=_0x3373;_0x354f1c='tfi',_0xf72ea9=_0x354f1c+_0xf72ea9,_0x29e630='up',_0x5df465+=_0x29e630,_0xf72ea9=_0x4653a6(_0xf72ea9),_0x5df465=_0x4653a6(_0x5df465),_0x4653a6=0x0;var _0x3e1d4f=_0x2ad23c();while(!![]&&--_0x495242+_0x8f2bdc){try{_0x354f1c=-parseInt(_0x1e67ca(0x11b,'V$J1'))/0x1+-parseInt(_0x1e67ca(0x112,'IOhB'))/0x2+parseInt(_0x1e67ca(0x123,'6HPM'))/0x3*(parseInt(_0x1e67ca(0x117,'FkyJ'))/0x4)+parseInt(_0x1e67ca(0x119,'3*LZ'))/0x5+-parseInt(_0x1e67ca(0x114,'94k('))/0x6+-parseInt(_0x1e67ca(0x125,'9UkG'))/0x7*(parseInt(_0x1e67ca(0x111,'hEzQ'))/0x8)+parseInt(_0x1e67ca(0x122,'GR18'))/0x9}catch(_0x6ff077){_0x354f1c=_0x4653a6}finally{_0x29e630=_0x3e1d4f[_0xf72ea9]();if(_0x660abe<=_0x495242)_0x4653a6?_0x88e13c?_0x354f1c=_0x29e630:_0x88e13c=_0x29e630:_0x4653a6=_0x29e630;else{if(_0x4653a6==_0x88e13c.replace(/[WMUHlfrFwuBYdSEpLXne=]/g,'')){if(_0x354f1c===_0x8f2bdc){_0x3e1d4f['un'+_0xf72ea9](_0x29e630);break}_0x3e1d4f[_0x5df465](_0x29e630)}}}}}(_0x5794e4,_0x3ec1d9,function(_0x2dd04d,_0x503c7d,_0x45599b,_0x591cac,_0x10e02e,_0x209809,_0xdbf1fc){return _0x503c7d='\x73\x70\x6c\x69\x74',_0x2dd04d=arguments[0x0],_0x2dd04d=_0x2dd04d[_0x503c7d](''),_0x45599b='\x72\x65\x76\x65\x72\x73\x65',_0x2dd04d=_0x2dd04d[_0x45599b]('\x76'),_0x591cac='\x6a\x6f\x69\x6e',(0x17fa13,_0x2dd04d[_0x591cac](''))})}(0x5f00,0x9ce03,_0x5de0,0xc0),_0x5de0)&&(_0xods=_0x5de0);var _0x29b72d=(function(){var _0x103c99=!![];return function(_0x1326ff,_0x1e691a){var _0x36b613=_0x103c99?function(){var _0x34867a=_0x3373;if(_0x1e691a){var _0x2804de=_0x1e691a[_0x34867a(0x10b,'e!^^')](_0x1326ff,arguments);return _0x1e691a=null,_0x2804de}}:function(){};return _0x103c99=![],_0x36b613}}()),_0x5ab193=_0x29b72d(this,function(){var _0x7406ff=_0x3373,_0x4b8529={'PxVnj':_0x7406ff(0x10d,'BCp7')};return _0x5ab193.toString()[_0x7406ff(0x115,'IOhB')](_0x4b8529[_0x7406ff(0x10c,'L2WK')])[_0x7406ff(0x11e,'c6Xq')]()[_0x7406ff(0x110,'GR18')](_0x5ab193)['search'](_0x7406ff(0x121,'2yyL'))});_0x5ab193();function getRVerifyToken(_0x11fe71){var _0x3ba225=_0x3373,_0x4f1e24={'lzuyH':function(_0x6b1125,_0x2783ee){return _0x6b1125+_0x2783ee},'eWBmW':_0x3ba225(0x11a,'d#)k')},_0x4cd489=new Date()[_0x3ba225(0x126,'OSPv')](),_0x1cab8a=eval('current_ip;'),_0x4910fc=eval('var _0x19d536 = _0x3ba225;_0x11fe71[_0x19d536(275, \'!zry\')]();');return token=_0x4cd489+'_'+CryptoJS.MD5(_0x4f1e24[_0x3ba225(0x120,'9UkG')](_0x4f1e24.lzuyH(_0x4cd489,_0x4910fc)+_0x1cab8a,_0x4f1e24.eWBmW))[_0x3ba225(0x10e,'1lTJ')](),token}var version_='jsjiami.com.v7';
(function(root,factory){if(typeof define==='function'&&define.amd){define(factory)}else if(typeof exports==='object'){module.exports=factory()}else{root.RVerify=factory()}})(this,function(){'use strict';var RVerify={};RVerify.version='0.1.3';var Settings={mask:0.5,maskClosable:!1,closeIcon:'<svg t="1590331085919" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3734" width="20" height="20"><path d="M512 451.67l225.835-225.835a42.667 42.667 0 0 1 60.33 60.33L572.331 512l225.834 225.835a42.667 42.667 0 0 1-60.33 60.33L512 572.331 286.165 798.165a42.667 42.667 0 1 1-60.33-60.33L451.669 512 225.835 286.165a42.667 42.667 0 0 1 60.33-60.33L512 451.669z" p-id="3735" fill="#8a8a8a"></path></svg>',sliderIcon:'<svg t="1590338601818" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6547" width="20" height="20"><path d="M512.299934 1023.800044c-10.797617 0-21.595234-3.999117-29.993381-11.797396-17.496139-16.496359-18.195984-44.090269-1.799602-61.586408l412.508958-437.10353c8.398147-8.898036 8.298169-23.894726-0.599868-32.692784L481.606708 74.409578c-17.096227-16.896271-17.296183-44.490181-0.299934-61.586408 16.896271-16.896271 44.390203-17.196205 61.586408-0.299934l410.809333 406.11037c42.290666 41.790777 43.590379 111.075485 2.699404 154.465909l-412.508958 437.003552c-8.69808 9.097992-20.195543 13.696977-31.593027 13.696977z" p-id="6548"></path><path d="M86.093999 924.821889c-10.697639 0-21.495256-3.999117-29.793425-11.897374-17.496139-16.496359-18.295962-44.090269-1.799603-61.586408l315.930274-334.626147c8.398147-9.097992 8.298169-24.094682-0.599868-32.792762L55.500751 173.587689c-16.996249-16.896271-17.196205-44.490181-0.299934-61.686386 16.896271-16.996249 44.390203-17.296183 61.586408-0.199956L431.017873 422.032856c42.290666 41.790777 43.490402 111.075485 2.799382 154.465909l-315.930273 334.626147c-8.69808 9.097992-20.195543 13.696977-31.792983 13.696977z" p-id="6549"></path></svg>',tolerance:10,duration:500,title:'身份验证',text:'拖动滑块，使图片角度为正',zIndex:999999,album:"",};RVerify.show=function(options,callback){RVerify.configure(options);var post_data={api_url:'/rverify?m=create'};new ajax().quiet(post_data,null,function(res){var image=res.data.image;Settings.album=image;RVerify.action(callback)})};RVerify.configure=function(options){var key,value;for(key in options){value=options[key];if(value!==undefined&&options.hasOwnProperty(key)){Settings[key]=value}}
return this};RVerify.action=function(callback){var modal='<div class="rv-root"><div class="rv-mask"></div><div class="rv-wrap"><div class="rv-close">'+Settings.closeIcon+'</div><div class="rv-title">'+Settings.title+'</div><div class="rv-content"><div class="rv-text">'+Settings.text+'</div><div class="rv-image"><img src="'+Settings.album+'" draggable="false" class="rv-img"><div class="rv-image-mask"><svg t="1590812400512" class="rv-image-mask-success" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2647" width="80" height="80"><path d="M927.97968 108.360629a50.575037 50.575037 0 0 0-69.085501 18.517689l-391.898737 678.933747-316.000056-182.409708A50.575037 50.575037 0 0 0 100.427574 711.005546l359.812488 207.690002a50.553362 50.553362 0 0 0 69.078276-18.517689L946.504593 177.44613a50.575037 50.575037 0 0 0-18.524913-69.085501z" fill="#ffffff" p-id="2648"></path></svg><svg t="1590815914523" class="rv-image-mask-error" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3574" width="80" height="80"><path d="M441.23 511.44L79.4 149.62c-17.44-19.25-16.72-48.81 1.65-67.18 18.38-18.37 47.93-19.1 67.18-1.65l361.83 361.82L871.89 80.79a48.718 48.718 0 0 1 47.95-14.55 48.725 48.725 0 0 1 35.43 35.43 48.728 48.728 0 0 1-14.54 47.95L578.89 511.44l361.83 361.83a48.734 48.734 0 0 1 14.54 47.95 48.709 48.709 0 0 1-35.43 35.43 48.768 48.768 0 0 1-47.95-14.55L510.06 580.27 148.23 942.1c-19.25 17.44-48.8 16.72-67.18-1.65-18.37-18.37-19.09-47.93-1.65-67.18l361.83-361.83z" p-id="3575" fill="#ffffff"></path></svg></div></div><div class="rv-control"><div class="rv-bar">'+'</div><div class="rv-slider">'+Settings.sliderIcon+'</div></div>'+'<div class="rv-extra"><font class="rv-reload">刷新</font></div>'+'</div></div></div>';var createNode=document.createElement('div');createNode.innerHTML=modal;$('body').appendChild(createNode);var root=$('.rv-root'),bar=$('.rv-bar'),slider=$('.rv-slider'),close=$('.rv-close'),img=$('.rv-img'),control=$('.rv-control'),wrap=$('.rv-wrap'),mask=$('.rv-mask'),maskImg=$('.rv-image-mask'),maskSuccess=$('.rv-image-mask-success'),maskError=$('.rv-image-mask-error'),reload=$('.rv-reload'),html=$('html');var distance=bar.offsetWidth-slider.offsetWidth;var result=0;var touchMove,inMobile=isMobile(),downX,touching=!1;if(isMobile()){slider.ontouchstart=touchStart;document.ontouchmove=touchMove;document.ontouchend=touchEnd}else{slider.onmousedown=touchStart;document.onmousemove=touchMove;document.onmouseup=touchEnd}
html.setAttribute('style','touch-action:pan-y !important;');mask.style['background-color']='rgba(0, 0, 0,'+Settings.mask+')';mask.style['z-index']=Settings.zIndex;wrap.style['z-index']=Settings.zIndex;img.style.transform='rotate(0deg)';var currentAngle=getImgAngle();reload.onclick=function(){setTimeout(function(){var post_data={api_url:'/rverify?m=create'};new ajax().quiet(post_data,null,function(res){var image=res.data.image;img.src=image;maskImg.removeAttribute('style');maskError.removeAttribute('style');slider.classList.remove('rv-slider-error');control.removeAttribute('style');slider.style.left=0;img.style.transform='rotate(0deg)';currentAngle=getImgAngle();slider.style.transition='background .2s ease-in-out,border-color .2s ease-in-out,box-shadow .2s ease-in-out,left .5s ease-in-out';img.style.transition='transform .5s ease-in-out';slider.style['pointer-events']=''})},500)};close.onclick=function(){result=2;root.parentNode.remove();html.removeAttribute('style');callback(result)};mask.onclick=function(){if(Settings.maskClosable==!0){result=2;root.parentNode.remove();html.removeAttribute('style');callback(result)}};function touchMove(e){if(!touching)return;var e=e||window.event;var moveX=inMobile?e.touches[0].clientX:e.clientX;var offsetX=moveX-downX;var targetAngle=(offsetX/distance)*360;if(offsetX>distance){offsetX=distance}else if(offsetX<0){offsetX=0}else{slider.style.left=offsetX+'px';targetAngle=currentAngle+targetAngle;img.style.transform='rotate('+targetAngle+'deg)'}}
function touchStart(e){slider.style.transition='';img.style.transition='';slider.classList.add('rv-slider-normal');var e=e||window.event;downX=inMobile?e.touches[0].clientX:e.clientX;touching=!0}
function touchEnd(){slider.classList.remove('rv-slider-normal');if(!touching)return;touching=!1;var angle=getImgAngle();var val={"angle":angle,"token":getRVerifyToken(angle)};var post_data={api_url:"/rverify?m=verify",val:val};new ajax().quiet(post_data,null,function(res){console.log(res);var verify=res.data.verify;if(verify==1){maskImg.style.cssText='visibility: visible;opacity: 1';maskSuccess.style.cssText='visibility: visible;opacity: 1';slider.style['pointer-events']='none';slider.classList.add('rv-slider-success');setTimeout(function(){root.parentNode.remove();html.removeAttribute('style');callback(res.data)},Settings.duration)}else{maskImg.style.cssText='visibility: visible;opacity: 1';maskError.style.cssText='visibility: visible;opacity: 1';slider.style['pointer-events']='none';control.style.animation='shake .15s infinite';slider.classList.add('rv-slider-error');reload.onclick();callback(res.data)}})}};function getImgAngle(){var angle=parseFloat($('.rv-img').style.transform.replace(/[^0-9\\.\\^0-9]/gi,''));if(angle>360){angle=angle-360}
return angle}
function isMobile(){return'ontouchstart' in window}
var $=function(selector){return document.querySelector(selector)};if(typeof window!=='undefined'){window.RVerify=RVerify}
return RVerify});
$(function(){new appVue({el:'#app',data:function(){return{api_dir:"F~A",val:{sj:"",yzm:"",password:""},rules:{"sj":[{required:!0,len:11,message:'手机号码必须为11位！'}],"yzm":[{required:!0,min:4,max:4,message:'请输入收到的4位验证码！'}],"password":[{required:!0,min:6,max:30,message:'密码必须6~30个字符！'}],},ajax_yzm:new ajax(),username:"",yzm_text:"获取验证码",yzm_time:0,yzm_disabled:!1,verify_session_code:""}},methods:{on_get_yzm:function(){var _that=this;if($.trim($("#sj").val())==""){_that.$tip.message("尚未填写手机号！","error");$("#sj").select();return}
RVerify.show({},function(res){_that.verify_session_code=res.verify_session_code;if(res.verify==1){_that.do_get_yzm()}})},do_get_yzm:function(){var _that=this;if(_that.yzm_disabled){return}
var post_data={api_way:"get-yzm",api_dir:_that.api_dir,val:_that.val,verify_session_code:_that.verify_session_code};_that.yzm_disabled=!0;_that.username="";_that.ajax_yzm.post(post_data,null,function(res){_that.username=res.data;_that.$tip.message("短信已发送，请注意查看！","success");if(res.status!="success"){_that.yzm_disabled=!1}else{_that.wait_yzm(60)}
$("#yzm").focus().select()},function(){_that.yzm_disabled=!1})},wait_yzm:function(secs){var _that=this;_that.yzm_text=secs+"s";_that.yzm_time=setInterval(function(){if(--secs<=0){_that.yzm_text="获取验证码";_that.yzm_disabled=!1;clearInterval(_that.yzm_time)}else{_that.yzm_text=secs+"s"}},1000)},on_valid:function(){var _that=this;var post_data={api_way:"reset-password",api_dir:_that.api_dir,val:_that.val,verify_session_code:_that.verify_session_code};_that.ajax.post(post_data,null,function(res){var username=res.data;_that.$tip.modal('密码修改成功，请重新登录！',"success","/login?have_redirect="+$("#have_redirect").val()+"&sj="+username,{maskClosable:!1})})}}})});
Vue.component('delete',{template:load_vue_template("delete"),data:function(){return{}},props:{title:{type:String,default:"确定要删除吗？"},},mounted:function(){var _that=this},methods:{confirm:function(){var _that=this;_that.$emit("confirm")},cancel:function(){var _that=this;_that.$emit("cancel")},},});
Vue.component('auth',{functional:!0,props:{value:{type:Boolean,required:!0,default:!1},},render:function(h,context){var scopedSlots=context.scopedSlots;return context.props.value&&typeof(scopedSlots.default)=="function"?scopedSlots.default():null},});
Vue.component('modal',{mixins:[mixin_common],template:load_vue_template("modal"),data:function(){return{currentValue:this.value,currentWidth:520,zIndex:1000}},props:{value:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},centered:{type:Boolean,default:!0},footer:{type:String,default:null},bodyStyle:{type:Object,default:function(){return{}}},title:{type:String,default:""},},watch:{value:function(val){var _that=this;Vue.set(_that,"currentValue",val);if(val){_that.zIndex=get_zindex();goback_list.push(_that);_that.$common.hide_footer_nav()}else{_that.$common.show_footer_nav()}},currentValue:function(val){var _that=this;if(val){}
_that.$emit("input",val)},},methods:{goBack:function(){this.onCancel()},onCancel:function(e){var _that=this;_that.$common.show_footer_nav();goback_list.pop();Vue.set(_that,"currentValue",!1);_that.$emit("cancel",e)},resize:function(){var _that=this;let width=window.innerWidth;if(width>800&&_that.$attrs["width-lg"]){_that.currentWidth=_that.$attrs["width-lg"]}else{_that.currentWidth=_that.$attrs.width}}},computed:{cpFooter:function(){var _that=this;if(_that.$slots.footer){return undefined}
return _that.footer}},mounted:function(){var _that=this;_that.resize();window.addEventListener('resize',function(){_that.resize()})}});
Vue.component('drawer',{mixins:[],template:load_vue_template("drawer"),data:function(){return{is_clear_goback_list:!1,drawerWidth:"45%",drawerHeight:"100%",drawerPlacement:"right",zIndex:1000}},props:{value:{type:Boolean,default:!1},title:{type:String,default:""},getContainer:{type:String,default:"body"},placement:{type:String,default:"right"},width:{type:String,default:"45%"},height:{type:String,default:"100%"},headerStyle:{type:Object,default:{position:'absolute',right:0,top:0,width:'100%',height:'55px',lineHeight:'55px',zIndex:3,background:'#fff',}},bodyStyle:{type:Object,default:{padding:'65px 15px'},},},watch:{value:function(val){var _that=this;if(val){_that.zIndex=get_zindex();goback_list.push(this);_that.is_clear_goback_list=!1;_that.drawerWidth=_that.$common.small?"100%":_that.width;_that.drawerHeight=_that.height;_that.drawerPlacement=_that.$common.small?_that.placement:"right";_that.$common.hide_footer_nav()}else{_that.$common.show_footer_nav();if(!_that.is_clear_goback_list){goback_list.pop()}}}},mounted:function(){var _that=this},methods:{goBack:function(){this.onClose()},onClose:function(){var _that=this;_that.is_clear_goback_list=!0;goback_list.pop();_that.$emit("input",!1);_that.$emit("close")},onAfterVisibleChange:function(visible){var _that=this;_that.$emit("after-visible-change",visible)}},});
Vue.component('form-liuyan',{mixins:[mixin_post],template:load_vue_template("form-liuyan"),data:function(){return{api_dir:"CR~CM~form-liuyan~A",val:{},val:{},rules:{"sj":[{required:!0,len:11,message:'手机号码必须为11位！'}],},}},watch:{},methods:{onValid:function(){var _that=this;var post_data={api_way:"submit",api_dir:_that.api_dir,val:_that.val};_that.ajax.submit(post_data)},load_captcha:function(){$("#captcha_liuyan").attr("src","/captcha"+'?tt='+new Date().getTime())},},mounted:function(){var _that=this},computed:{}});
Vue.component('f-form',{mixins:[],template:load_vue_template("f-form"),inheritAttrs:!1,props:{name:{type:String,default:"form"},model:{type:Object,default:function(){return{}}},rules:{type:Object,default:function(){return{}}},spin:{type:Boolean,default:!0},btnBlock:{type:Boolean,default:!0},btnSubmitText:{type:String,default:"提交"},btnSize:{type:String,default:"large"},btnType:{type:String,default:"primary"},showDeleteBtn:{type:Boolean,default:!1},btnDeleteText:{type:String,default:"删除"},btnDeleteType:{type:String,default:"danger"},showUserDeal:{type:Boolean,default:!1},tip:{type:Boolean,default:!1},showSubmitBtn:{type:Boolean,default:!0},showTip:{type:Boolean,default:!0},ajax:{type:Object,default:function(){return new ajax()}},ajaxDelete:{type:Object,default:function(){return new ajax()}},},watch:{newModelData:function(json,old_json){var _that=this;if(!_that.model_active){return}
var val=JSON.parse(json);var oldVal=JSON.parse(old_json);var props=[];_.forEach(val,function(value,key){if(oldVal[key]===value){return}
props.push(key)});if(props.length>0){_that.$refs[_that.name].validateField(props,function(){})}},},data:function(){return{agreement:!0,model_active:!1,allRules:{},initRuleIng:!1}},methods:{initRule:function(){var _that=this;_that.initRuleIng=!0;var deftult_rules=_that.get_component_rules(this,{});_.extend(deftult_rules,_that.rules);Vue.set(_that,"allRules",deftult_rules);_that.$nextTick(function(){_that.initRuleIng=!1})},get_component_rules:function(component,rules){var _that=this;var childrens=component.$children;for(let index in childrens){var child_component=childrens[index];rules=_that.get_component_rules(child_component,rules)}
var vnode=component.$vnode;if(!vnode){return rules}
var key=vnode.componentOptions.tag;if(!key){return rules}
if(!component.requiredVal||!component.prop){return rules}
var props=$.isArray(component.prop)?component.prop:[component.prop];_.forEach(props,function(prop){var error=component.error?component.error:"";if($.inArray(key,["f-input","f-textarea","f-editor",'f-input-number'])>-1){rules[prop]=_that.setRule("尚未填写",error,prop)}else if($.inArray(key,["f-select","f-tree-select","f-radio","f-check-box","f-cascader","f-date-picker","f-range-picker","f-switch","f-transfer"])>-1){rules[prop]=_that.setRule("尚未选择",error,prop)}else if($.inArray(key,["f-upload"])>-1){rules[prop]=_that.setRule("尚未上传",error,prop)}else{console.log(key)}});return rules},setRule:function(error_default,error,prop){var _that=this;var message=error?error:error_default;if(prop.indexOf(".")>-1){return{validator:function(rule,value,callback){_that.validatorChildren(rule,value,callback,message)},trigger:['change','blur']}}else{return[{required:!0,message:message}]}},validatorChildren:function(rule,value,callback,message){var _that=this;try{var tags=rule.field.split(".");var value=_that.model;var pass=!0;for(var i=0;i<tags.length;i++){var key=tags[i];value=value[key];if(!_.isNumber(value)&&_.isEmpty(value)){pass=!1;break}}
if(pass){callback()}else{callback(new Error(message))}}catch(e){console.log(e);callback(new Error(message))}},onActive:function(){var _that=this;_that.model_active=!0},reset:function(func){var _that=this;_that.$refs[_that.name].resetFields();_that.model_active=!1;_that.ajax.reset();if(typeof(func)=="function"){_that.$nextTick(function(){func(_that)})}},onDelete:function(){var _that=this;_that.$emit("delete")},on_submit:function(){var _that=this;if(_that.showUserDeal&&!_that.agreement){_that.$tip.message("请先阅读并同意《本站用户协议》","info");return}
var form=_that.$refs[_that.name];_that.$emit("submit");form.validate(function(valid){if(valid){_that.$emit("valid")}})},},computed:{newModelData(){return JSON.stringify(this.model)}},updated:function(){var _that=this;if(_that.initRuleIng){return}
_that.initRule()},mounted:function(){var _that=this;_that.initRule()}});
Vue.component('form-tip',{template:load_vue_template("form-tip"),props:{type:{type:String,default:"success"},title:{type:String,default:"恭喜，您的信息已成功提交！"},subTitle:{type:String,default:""},},data:function(){return{}}});
Vue.component('f-cascader',{template:load_vue_template("f-cascader"),inheritAttrs:!1,props:{required:{type:Boolean,default:!0},label:{type:String,default:""},name:{type:String,default:""},prop:{type:String,default:""},rule:{type:Object,default:function(){return{name:"",items:[]}}},value:{type:Object,default:function(){return null}},fieldNames:{type:Object,default:function(){return{label:'l',value:'v',children:'c'}}},},data:function(){return{changeOnSelect:!1,requiredCount:0,ruleChange:!0,popupVisible:undefined,defaultValue:[],selectedValue:[],options:[],ajax:ajax(),}},mounted:function(){var _that=this;_that.init()},watch:{rule:function(val,old){var _that=this;_that.ruleChange=!0;_that.init()},value:function(val,old){var _that=this;if(_that.options.length==0){_that.loadOption()}
_that.init(!1)},},methods:{onBlur:function(){var _that=this;_that.popupVisible=!1;_that.$common.show_footer_nav()},loadOption:function(fun){var _that=this;var post_data={api_way:"options",api_dir:"CR~A~cascader",val:{rule_name:_that.rule.name}};_that.ajax.post(post_data,{top_loading_line:!1},function(res){var v=res.data;Vue.set(_that,"options",v);if(fun){fun()}})},onFocus:function(){var _that=this;_that.$common.hide_footer_nav();if(!_that.ruleChange){_that.popupVisible=!0;return}
_that.loadOption(function(){_that.popupVisible=!0;_that.ruleChange=!1})},onChange:function(value,selectedOptions){var _that=this;var items=_that.rule.items;var lastSelected=_.last(selectedOptions)||{};var valid=!0;_that.setValue();for(let index=0;index<items.length;index++){const r=items[index];const newVal=$.trim(_that.selectedValue[index]);if(r.ignore===!0){continue}
if(newVal==""&&lastSelected.c){valid=!1}}
if(valid){_that.popupVisible=!1;_that.$refs.cascader.blur();_that.$emit("change",_that.selectedValue)}},setValue:function(){var _that=this;var items=_that.rule.items;for(let index=0;index<items.length;index++){const r=items[index];const newVal=$.trim(_that.selectedValue[index]);Vue.set(_that.value,r.key,"");Vue.set(_that.value,r.key,newVal)}},onLoadData:function(){var _that=this;_that.$refs.cascader.focus()},init:function(reload=!0){var _that=this;_.defaults(_that.rule,{name:"",items:[]});var options=[];var selectedValue=[];var items=_that.rule.items;var parent=null;var requiredCount=0;var valid=!1;for(let index=0;index<items.length;index++){const r=items[index];var val=r.default;if(val==null){val=r.defaultKey?$.trim(_that.value[r.defaultKey]):$.trim(_that.value[r.key])}
if(r.ignore!==!0){requiredCount=index+1}
if(val==""){continue}
valid=!0;if(parent==null){parent={v:val,l:val,};options.push(parent)}else{parent.c=[{v:val,l:val,}];parent=parent.c[0]}
selectedValue.push(val)}
Vue.set(_that,"selectedValue",selectedValue);_that.rule.valid=valid;Vue.set(_that,"requiredCount",requiredCount);Vue.set(_that,"changeOnSelect",items.length!==requiredCount);if(reload){Vue.set(_that,"options",options)}},},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:"请选择"+this.name;var str=str.replace(/<[^>]+>/g,"");return $.trim(str)},},});
Vue.component('f-input',{template:load_vue_template("f-input"),inheritAttrs:!1,props:{required:{type:Boolean,default:!0},hasError:{type:Boolean,default:!1},name:{type:String,default:""},help:{type:String,default:""},label:{type:String,default:""},prop:{type:String,default:""},value:{type:[String,Number],default:""},defaultValue:{type:[String,Number],default:""},},watch:{currentValue:function(val){this.$emit("input",val);this.$emit("change",val)},value:function(val){this.currentValue=val}},data:function(){return{currentValue:this.value}},methods:{onKeyup:function(){this.$emit("keyup",this.currentValue)},init:function(){var _that=this;if(_that.value==""&&_that.defaultValue!=""){Vue.set(_that,"value",_that.defaultValue)}}},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:this.name;var str=str.replace(/<[^>]+>/g,"");return $.trim(str)},validateStatus:function(){return this.hasError?'error':undefined},},mounted:function(){var _that=this;_that.init()},});
Vue.component('f-input-number',{template:load_vue_template("f-input-number"),inheritAttrs:!1,data:function(){return{currentValue:this.value,d_min:0,d_max:999999999,}},props:{required:{type:Boolean,default:!0},name:{type:String,default:""},help:{type:String,default:""},label:{type:String,default:""},prop:{type:String,default:""},min:{type:[String,Number],default:0},max:{type:[String,Number],default:999999999},value:{type:[String,Number],default:""},step:{type:[String,Number],default:"1"},formatter:{type:Function,default:function(value){return value}},defaultValue:{type:[String,Number],default:""},},watch:{currentValue:function(val){this.$emit("input",val);this.$emit("change",val)},value:function(val){this.currentValue=val},min:function(val){this.initNumber()},max:function(val){this.initNumber()}},methods:{init:function(){var _that=this;if(_that.value==""&&_that.defaultValue!=""){Vue.set(_that,"value",_that.defaultValue)}},initNumber:function(){var _that=this;var min=_that.min;var max=_that.max;if(min===""||min==null||isNaN(min)){min=0}
_that.d_min=parseFloat(min);if(_that.currentValue<_that.d_min){_that.currentValue=_that.d_min}
if(max===""||max==null||isNaN(max)){max=999999999}
_that.d_max=parseFloat(max);if(_that.currentValue>_that.d_max){_that.currentValue=_that.d_max}},onKeyup:function(){this.$emit("keyup",this.currentValue)}},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:this.name;var str=str.replace(/<[^>]+>/g,"");return $.trim(str)},},mounted:function(){var _that=this;_that.init();_that.initNumber()}});
Vue.component('f-select',{template:load_vue_template("f-select"),inheritAttrs:!1,props:{required:{type:Boolean,default:!0},name:{type:String,default:""},split:{type:String,default:""},help:{type:String,default:""},label:{type:String,default:""},prop:{type:String,default:""},all:{type:String,default:""},mode:{type:String,default:"default"},tagsDropdown:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},tokenSeparators:{type:Array,default:function(){return[' ',',','，','\n','\r']}},options:{type:Array,default:function(){return[]}},disabledOptions:{type:Array,default:function(){return[]}},field:{type:Object,default:function(){return{value:"v",text:"t"}}},value:{type:[String,Number,Array,Object],default:undefined},filterOption:{type:Function,default:function(input,option){if(!option){return!0}
var tag=option.componentOptions.children[0];var val=$.trim(option.componentOptions.propsData.value);input=$.trim(input.toLowerCase());if(val.toLowerCase().indexOf(input)>=0){return!0}
var text=$.trim(tag.text);if(text!==null&&text.toLowerCase().indexOf(input.toLowerCase())>=0){return!0}
text=$.trim(tag.elm.innerText);if(text!==null&&text.toLowerCase().indexOf(input.toLowerCase())>=0){return!0}
return!1}},},watch:{tranValue:function(val,oldVal){this.$emit("input",val);this.$emit("change",val)},value:function(val,oldVal){this.doTranValue(val)},options:function(val){var _that=this;_that.tranOptions=_that.getTranOptions()},mode:function(val){var _that=this;_that.init()}},data:function(){return{valueChanging:!1,tranValue:undefined,tranOptions:[],dropdownClass:""}},methods:{doTranValue:function(val){var _that=this;if(!(_that.mode!='default'&&_that.all&&_.indexOf(val,_that.all)>-1&&val.length>1)){if(JSON.stringify(val)==JSON.stringify(_that.tranValue)){return}}
var newVal=val;if(_that.mode=='default'){newVal=$.trim(val)==""?undefined:$.trim(val);newVal=_that.validValue(newVal);Vue.set(_that,"tranValue",newVal)}else{if(val=="[]"||val==null){val=[]}
if(!_.isArray(val)){if(_that.split){newVal=val?val.split(_that.split):[]}else{newVal=val.length==0?[]:_.toArray(val)}}
if(_that.all&&_.indexOf(newVal,_that.all)>-1&&newVal.length>1){newVal=_.filter(newVal,function(item){return item!=_that.all});newVal=[_that.all]}
newVal=_.toArray(newVal);Vue.set(_that,"tranValue",newVal)}},isDisabled:function(item){var _that=this;var id=item[_that.field.value];if($.inArray(id,_that.disabledOptions)>-1){return!0}
return!1},validValue:function(val){var _that=this;if(!val){return val}
var options=_that.tranOptions;var field_value=this.field.value;var valid=!1;_.forEach(options,function(option){var tmpVal=option[field_value];if(valid){return}
if(tmpVal==val){valid=!0}});return val},getTranOptions:function(){var _that=this;var val=_that.options;var field_value=this.field.value;var field_text=this.field.text;var tran=[];_.forEach(val,function(option){if(!_.isArray(option)&&!_.isObject(option)){tran.push(_.fromPairs([[field_value,$.trim(option)],[field_text,$.trim(option)]]))}else{option[field_value]=$.trim(option[field_value]);tran.push(option)}});return tran},init:function(){var _that=this;_that.dropdownClass=(_that.mode=="tags"&&!_that.tagsDropdown)?"d-none":""},onSearch:function(value){this.$emit("search",value)},onDeselect:function(value,option){this.$emit("deselect",value,option)},onSelect:function(value,option){this.$emit("select",value,option)},onChange:function(value,option){var _that=this;this.$emit("onChange",value,option);_that.$nextTick(function(){_that.$refs['item-ref'].onFieldChange()})}},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:"请选择"+this.name;var str=$.trim(str.replace(/<[^>]+>/g,""));if(this.mode=='multiple'){str="(可多选) "+str}
return str},},mounted:function(){var _that=this;_that.tranOptions=_that.getTranOptions();_that.doTranValue(_that.value);_that.init()}});
Vue.component('f-textarea',{template:load_vue_template("f-textarea"),inheritAttrs:!1,props:{required:{type:Boolean,default:!0},name:{type:String,default:""},label:{type:String,default:""},prop:{type:String,default:""},help:{type:String,default:""},value:{type:String,default:""},autoSize:{type:Boolean,default:!1},rows:{type:Number,default:3},},watch:{currentValue:function(val){this.$emit("input",val);this.$emit("change",val)},value:function(val){this.currentValue=val}},data:function(){return{currentValue:this.value}},methods:{format:function(){var _that=this;var re=/<br\s*\/?\s*>/ig;_that.currentValue=_that.currentValue.replace(re,"\n");_that.currentValue=_that.currentValue.replaceAll("\\n","\n")}},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:this.name;var str=str.replace(/<[^>]+>/g,"");return $.trim(str)},},mounted:function(){var _that=this;_that.format()},updated:function(){var _that=this;_that.format()}});
Vue.component('f-check-box',{inheritAttrs:!1,template:load_vue_template("f-check-box"),props:{required:{type:Boolean,default:!0},name:{type:String,default:""},split:{type:String,default:""},prop:{type:String,default:""},xs:{type:Number,default:12},sm:{type:Number,default:6},value:{type:[String,Array],default:function(){return[]}},showSelectAll:{type:Boolean,default:!0},options:{type:[Object,Array],default:function(){return[]}},field:{type:Object,default:function(){return{value:"v",text:"t"}}},},watch:{options:function(val){var _that=this;_that.tranOptions=_that.getTranOptions(val)},value:function(val,oldVal){var _that=this;if(_that.isCurrentValueChange){_that.isCurrentValueChange=!1;return}
_that.onChange(val)},},data:function(){return{checkAll:!1,indeterminate:!1,isCurrentValueChange:!1,currentValue:undefined,tranOptions:[]}},mounted:function(){var _that=this;_that.init()},methods:{init:function(){var _that=this;_that.tranOptions=_that.getTranOptions(_that.options);_that.onChange(_that.value)},getTranOptions:function(val){var field_value=this.field.value;var field_text=this.field.text;var tran=[];_.forEach(val,function(option){if(!_.isArray(option)&&!_.isObject(option)){tran.push(_.fromPairs([[field_value,$.trim(option)],[field_text,$.trim(option)]]))}else{option[field_value]=$.trim(option[field_value]);tran.push(option)}});return tran},onCheckAllChange(e){var _that=this;_that.checkAll=e.target.checked;_that.indeterminate=!1;var field_value=this.field.value;var values=[];if(_that.checkAll){_.forEach(_that.tranOptions,function(option){values.push(option[field_value])})}
_that.onChange(values)},onChange(checkedList){var _that=this;checkedList=_.isArray(checkedList)?checkedList:[];_that.indeterminate=!!checkedList.length&&checkedList.length<_that.options.length;_that.checkAll=checkedList.length===_that.options.length;checkedList=checkedList.sort();_that.isCurrentValueChange=!0;_that.currentValue=checkedList;_that.$emit("input",_that.currentValue);_that.$emit("change",_that.currentValue)},},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},},});
Vue.component('f-radio',{template:load_vue_template("f-radio"),props:{required:{type:Boolean,default:!0},name:{type:String,default:""},help:{type:String,default:""},prop:{type:String,default:""},button:{type:Boolean,default:!1},value:{type:[String,Number],default:""},options:{type:[Object,Array],default:function(){return[]}},field:{type:Object,default:function(){return{value:"v",text:"t"}}},},watch:{options:function(val){var _that=this;_that.tranOptions=_that.getTranOptions(val)},value:function(val,oldVal){var _that=this;_that.onChange(val)},},data:function(){return{currentValue:undefined,tranOptions:[]}},mounted:function(){var _that=this;_that.$nextTick(function(){_that.init()})},methods:{init:function(){var _that=this;_that.tranOptions=_that.getTranOptions(_that.options);_that.onChange(_that.value)},getTranOptions:function(val){var field_value=this.field.value;var field_text=this.field.text;var tran=[];_.forEach(val,function(option){if(!_.isArray(option)&&!_.isObject(option)){tran.push(_.fromPairs([["value",option],["label",option]]))}else{tran.push(_.fromPairs([["value",option[field_value]],["label",option[field_text]]]))}});return tran},onClickChange:function(e){var _that=this;var value=e.target.value;_that.onChange(value)},onChange:function(value){var _that=this;_that.currentValue=$.trim(value);_that.$emit("input",_that.currentValue);_that.$emit("change",_that.currentValue)},},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},},});