zx/public/static/js/pages-users-login-index.403...

1 line
48 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-login-index"],{"0d43":function(module,exports,__webpack_require__){"use strict";__webpack_require__("6a54");var _interopRequireDefault=__webpack_require__("f5bd").default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _createForOfIteratorHelper2=_interopRequireDefault(__webpack_require__("3471"));__webpack_require__("5ef2"),__webpack_require__("4626"),__webpack_require__("5ac7"),__webpack_require__("5c47"),__webpack_require__("2c10"),__webpack_require__("a1c1"),__webpack_require__("e838"),__webpack_require__("c223"),__webpack_require__("aa9c");var rpx=uni.getSystemInfoSync().screenWidth/750,cfg=__webpack_require__("dc04"),_default={name:"parser",data:function(){return{uid:this._uid,scaleAm:"",showAm:"",imgs:[],nodes:[]}},props:{html:null,autopause:{type:Boolean,default:!0},autosetTitle:{type:Boolean,default:!0},domain:String,gestureZoom:Boolean,lazyLoad:Boolean,selectable:Boolean,tagStyle:Object,showWithAnimation:Boolean,useAnchor:Boolean},watch:{html:function(t){this.setContent(t)}},mounted:function(){this.imgList=[],this.imgList.each=function(t){for(var e=0,i=this.length;e<i;e++)this.setItem(e,t(this[e],e,this))},this.imgList.setItem=function(t,e){if(void 0!=t&&e){if(0==e.indexOf("http")&&this.includes(e)){for(var i,n="",a=0;i=e[a];a++){if("/"==i&&"/"!=e[a-1]&&"/"!=e[a+1])break;n+=Math.random()>.5?i.toUpperCase():i}return n+=e.substr(a),this[t]=n}if(this[t]=e,e.includes("data:image")){var r=e.match(/data:image\/(\S+?);(\S+?),(.+)/);if(!r)return}}},this.html&&this.setContent(this.html)},beforeDestroy:function(){this._observer&&this._observer.disconnect(),this.imgList.each((function(t){})),clearInterval(this._timer)},methods:{_Dom2Str:function(t){var e,i="",n=(0,_createForOfIteratorHelper2.default)(t);try{for(n.s();!(e=n.n()).done;){var a=e.value;if("text"==a.type)i+=a.text;else{for(var r in i+="<"+a.name,a.attrs||{})i+=" "+r+'="'+a.attrs[r]+'"';a.children&&a.children.length?i+=">"+this._Dom2Str(a.children)+"</"+a.name+">":i+=">"}}}catch(s){n.e(s)}finally{n.f()}return i},_handleHtml:function(t,e){if("string"!=typeof t&&(t=this._Dom2Str(t.nodes||t)),t.includes("rpx")&&(t=t.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*rpx+"px"}))),!e){var i="<style scoped>@keyframes show{0%{opacity:0}100%{opacity:1}}";for(var n in cfg.userAgentStyles)i+="".concat(n,"{").concat(cfg.userAgentStyles[n],"}");for(n in this.tagStyle)i+="".concat(n,"{").concat(this.tagStyle[n],"}");i+="</style>",t=i+t}return t},setContent:function(t,e){var i=this;if(t){var n=document.createElement("div");e?this.rtf?this.rtf.appendChild(n):this.rtf=n:(this.rtf&&this.rtf.parentNode.removeChild(this.rtf),this.rtf=n),n.innerHTML=this._handleHtml(t,e);for(var a,r=this.rtf.getElementsByTagName("style"),s=0;a=r[s++];)a.innerHTML=a.innerHTML.replace(/body/g,"#rtf"+this._uid),a.setAttribute("scoped","true");!this._observer&&this.lazyLoad&&IntersectionObserver&&(this._observer=new IntersectionObserver((function(t){for(var e,n=0;e=t[n++];)e.isIntersecting&&(e.target.src=e.target.getAttribute("data-src"),e.target.removeAttribute("data-src"),i._observer.unobserve(e.target))}),{rootMargin:"900px 0px 900px 0px"}));var o=this,c=this.rtf.getElementsByTagName("title");c.length&&this.autosetTitle&&uni.setNavigationBarTitle({title:c[0].innerText}),this.imgList.length=0;for(var u,l=this.rtf.getElementsByTagName("img"),d=0,h=0;u=l[d];d++){u.style.maxWidth="100%";var f=u.getAttribute("src");this.domain&&f&&("/"==f[0]?"/"==f[1]?u.src=(this.domain.includes("://")?this.domain.split("://")[0]:"")+":"+f:u.src=this.domain+f:f.includes("://")||(u.src=this.domain+"/"+f)),u.hasAttribute("ignore")||"A"==u.parentElement.nodeName||(u.i=h++,o.imgList.push(u.src||u.getAttribute("data-src")),u.onclick=function(){var t=!0;this.ignore=function(){return t=!1},o.$emit("imgtap",this),t&&uni.previewImage({current:this.i,urls:o.imgList})}),u.onerror=function(){o.$emit("error",{source:"img",target:this})},o.lazyLoad&&this._observer&&u.src&&0!=u.i&&(u.setAttribute("data-src",u.src),u.removeAttribute("src"),this._observer.observe(u))}var p,v=this.rtf.getElementsByTagName("a"),g=(0,_createForOfIteratorHelper2.default)(v);try{for(g.s();!(p=g.n()).done;){var m=p.value;m.onclick=function(){var t=!0,e=this.getAttribute("href");if(o.$emit("linkpress",{href:e,ignore:function(){return t=!1}}),t&&e)if("#"==e[0])o.useAnchor&&o.navigateTo({id:e.substr(1)});else{if(0==e.indexOf("http")||0==e.indexOf("//"))return!0;uni.navigateTo({url:e})}return!1}}}catch(T){g.e(T)}finally{g.f()}var b=this.rtf.getElementsByTagName("video");o.videoContexts=b;for(var _,y=0;_=b[y++];)_.style.maxWidth="100%",_.style.width="100%",_.onerror=function(){o.$emit("error",{source:"video",target:this})},_.onplay=function(){if(o.autopause)for(var t,e=0;t=o.videoContexts[e++];)t!=this&&t.pause()};var x,w,$=this.rtf.getElementsByTagName("audios"),k=(0,_createForOfIteratorHelper2.default)($);try{for(k.s();!(x=k.n()).done;){var C=x.value;C.onerror=function(){o.$emit("error",{source:"audio",target:this})}}}catch(T){k.e(T)}finally{k.f()}this.document=this.rtf,e||document.getElementById("rtf"+this._uid).appendChild(this.rtf),this.$nextTick((function(){i.nodes=[1],i.$emit("load")})),setTimeout((function(){return i.showAm=""}),500),clearInterval(this._timer),this._timer=setInterval((function(){var t=[i.rtf.getBoundingClientRect()];i.width=t[0].width,t[0].height==w&&(i.$emit("ready",t[0]),clearInterval(i._timer)),w=t[0].height}),350),this.showWithAnimation&&!e&&(this.showAm="animation:show .5s")}else this.rtf&&!e&&this.rtf.parentNode.removeChild(this.rtf)},getText:function(){arguments.length>0&&void 0!==arguments[0]||this.nodes;return this.rtf.innerText},navigateTo:function(t){if(!this.useAnchor)return t.fail&&t.fail({errMsg:"Anchor is disabled"});if(!t.id)return window.scrollTo(0,this.rtf.offsetTop),t.success&&t.success({errMsg:"pageScrollTo:ok"});var e=document.getElementById(t.id);if(!e)return t.fail&&t.fail({errMsg:"Label not found"});t.scrollTop=this.rtf.offsetTop+e.offsetTop,uni.pageScrollTo(t)},getVideoContext:function(t){if(!t)return this.videoContexts;for(var e=this.videoContexts.length;e--;)if(this.videoContexts[e].id==t)return this.videoContexts[e]},preLoad:function preLoad(html,num){html.constructor==Array&&(html=this._Dom2Str(html));var script="var contain=document.createElement('div');contain.innerHTML='"+html.replace(/'/g,"\\'")+"';for(var imgs=contain.querySelectorAll('img'),i=imgs.length-1;i>="+num+";i--)imgs[i].removeAttribute('src');";eval(script)},_tap:function(t){if(this.gestureZoom&&t.timeStamp-this._lastT<300){var e=t.touches[0].pageY-t.currentTarget.offsetTop;if(this._zoom)this._scaleAm.translateX(0).scale(1).step(),uni.pageScrollTo({scrollTop:(e+this._initY)/2-t.touches[0].clientY,duration:400});else{var i=t.touches[0].pageX-t.currentTarget.offsetLeft;this._initY=e,this._scaleAm=uni.createAnimation({transformOrigin:"".concat(i,"px ").concat(this._initY,"px 0"),timingFunction:"ease-in-out"}),this._scaleAm.scale(2).step(),this._tMax=i/2,this._tMin=(i-this.width)/2,this._tX=0}this._zoom=!this._zoom,this.scaleAm=this._scaleAm.export()}this._lastT=t.timeStamp},_touchstart:function(t){1==t.touches.length&&(this._initX=this._lastX=t.touches[0].pageX)},_touchmove:function(t){var e=t.touches[0].pageX-this._lastX;if(this._zoom&&1==t.touches.length&&Math.abs(e)>20){if(this._lastX=t.touches[0].pageX,this._tX<=this._tMin&&e<0||this._tX>=this._tMax&&e>0)return;this._tX+=e*Math.abs(this._lastX-this._initX)*.05,this._tX<this._tMin&&(this._tX=this._tMin),this._tX>this._tMax&&(this._tX=this._tMax),this._scaleAm.translateX(this._tX).step(),this.scaleAm=this._scaleAm.export()}}}};exports.default=_default},"11e1":function(t,e,i){var n=i("8937");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("77c1f885",n,!0,{sourceMap:!1,shadowMode:!1})},"1ab3":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var i=setInterval((function(){e-=1,e<0&&clearInterval(i),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=n},"2ec5":function(t,e,i){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},3471:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=(0,n.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,c=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){c=!0,s=t},f:function(){try{o||null==i["return"]||i["return"]()}finally{if(c)throw s}}}},i("01a2"),i("e39c"),i("bf0f"),i("844d"),i("18f7"),i("de6c"),i("7a76"),i("c9b5");var n=function(t){return t&&t.__esModule?t:{default:t}}(i("5d6b"))},3639:function(t,e,i){i("bf0f"),i("18f7"),i("d0af"),i("de6c"),i("6a54"),i("9a2c");var n=i("bdbb")["default"];function a(t){if("function"!==typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(a=function(t){return t?i:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!==typeof t)return{default:t};var i=a(e);if(i&&i.has(t))return i.get(t);var r={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var c=s?Object.getOwnPropertyDescriptor(t,o):null;c&&(c.get||c.set)?Object.defineProperty(r,o,c):r[o]=t[o]}return r["default"]=t,i&&i.set(t,r),r},t.exports.__esModule=!0,t.exports["default"]=t.exports},"53ab":function(t,e,i){"use strict";i.r(e);var n=i("6ccd"),a=i("f0a9");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("b7df");var s=i("828b"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"792ec976",null,!1,n["a"],void 0);e["default"]=o.exports},"596c":function(t,e,i){"use strict";var n=i("a024"),a=i.n(n);a.a},6730:function(t,e,i){"use strict";var n=i("8bdb"),a=i("71e9");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},"6ccd":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{style:t.viewColor},[i("div",{staticClass:"register_main",style:{"background-image":1==t.formItem?"url("+t.domain+"/static/images/logo_bgl.png)":"url("+t.domain+"/static/images/logo_bgh.png)"}},[i("v-uni-view",{staticClass:"system-height",style:{height:t.statusBarHeight}}),t.auth_token?t._e():i("div",{staticClass:"register absolute"},[1===t.formItem?i("div",{staticClass:"whiteBg"},[i("v-uni-view",{staticClass:"login_title"},[i("v-uni-view",{staticClass:"title_h"},[t._v(t._s(0==t.current?"账号登录":"手机号登录"))]),1==t.current?i("v-uni-view",{staticClass:"title_info"},[t._v("首次登录会自动注册")]):i("v-uni-view",{staticClass:"title_info"},[t._v("没有账号?"),i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formItem=2}}},[t._v("立即注册")])],1)],1),i("div",{staticClass:"list",attrs:{hidden:0!==t.current}},[i("v-uni-form",{on:{submit:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[i("div",{staticClass:"item"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请输入手机号或账号","placeholder-class":"placeholder",required:!0},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1),i("div",{staticClass:"item"},[i("v-uni-input",{attrs:{type:"password",placeholder:"填写登录密码","placeholder-class":"placeholder",required:!0},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),i("v-uni-navigator",{staticClass:"forgetPwd",attrs:{"hover-class":"none",url:"/pages/users/retrievePassword/index"}},[t._v("忘记密码")])],1)])],1),i("div",{staticClass:"list",attrs:{hidden:1!==t.current}},[i("div",{staticClass:"item"},[i("v-uni-input",{attrs:{type:"text",placeholder:"输入手机号码","placeholder-class":"placeholder"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1),i("div",{staticClass:"item"},[i("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码","placeholder-class":"placeholder"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),i("v-uni-button",{staticClass:"code",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleVerify.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1)]),1===t.current?i("div",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loginMobile.apply(void 0,arguments)}}},[t._v("立即登录")]):i("div",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("登录")]),i("div",{staticClass:"tip"},[0==t.current?i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.current=1}}},[t._v("手机号登录")]):i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.current=0}}},[t._v("账号登录")])],1),i("div",{staticClass:"protocol acea-row row-between-wrapper"},[i("v-uni-checkbox-group",{staticClass:"checkgroup",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.isAgree=!t.isAgree}}},[i("v-uni-checkbox",{staticClass:"checkbox",attrs:{checked:!!t.isAgree}}),i("v-uni-text",{staticClass:"protocol_text"},[t._v("我已同意"),i("v-uni-text",{staticClass:"font_pro",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.userAgree.apply(void 0,arguments)}}},[t._v("《用户协议》")]),t._v("与"),i("v-uni-text",{staticClass:"font_pro",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.userPrivacyAgree.apply(void 0,arguments)}}},[t._v("《隐私政策》")])],1)],1)],1)],1):i("div",{staticClass:"whiteBg"},[i("v-uni-view",{staticClass:"login_title"},[i("v-uni-view",{staticClass:"title_h"},[t._v("注册账号")])],1),i("div",{staticClass:"list"},[i("div",{staticClass:"item"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请输入手机号","placeholder-class":"placeholder"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1),i("div",{staticClass:"item"},[i("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码","placeholder-class":"placeholder"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),i("v-uni-button",{staticClass:"code",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleVerify.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1),i("div",{staticClass:"item"},[i("v-uni-input",{attrs:{type:"password",placeholder:"填写您的登录密码","placeholder-class":"placeholder"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),t.isShowCode?i("div",{staticClass:"item"},[i("v-uni-input",{staticClass:"codeIput",attrs:{type:"text",placeholder:"填写验证码","placeholder-class":"placeholder"},model:{value:t.codeVal,callback:function(e){t.codeVal=e},expression:"codeVal"}}),i("div",{staticClass:"code",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getcaptcha.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"code-img",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.codeUrl}})],1)],1):t._e()]),i("div",{staticClass:"tip"},[t._v("已有账号?"),i("v-uni-text",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formItem=1}}},[t._v("立即登录")])],1),i("div",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register.apply(void 0,arguments)}}},[t._v("注册")]),i("div",{staticClass:"protocol acea-row row-between-wrapper"},[i("v-uni-checkbox-group",{staticClass:"checkgroup",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.isAgree=!t.isAgree}}},[i("v-uni-checkbox",{staticClass:"checkbox",attrs:{checked:!!t.isAgree}}),i("v-uni-text",{staticClass:"protocol_text"},[t._v("我已同意"),i("v-uni-text",{staticClass:"font_pro",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.userAgree.apply(void 0,arguments)}}},[t._v("《用户协议》")]),t._v("与"),i("v-uni-text",{staticClass:"font_pro",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.userPrivacyAgree.apply(void 0,arguments)}}},[t._v("《隐私政策》")])],1)],1)],1)],1),i("div",{staticClass:"bottom"})]),t.auth_token?i("v-uni-form",{attrs:{"report-submit":"true"}},[i("v-uni-view",{staticClass:"register"},[i("v-uni-view",{staticClass:"whiteBg"},[i("v-uni-view",{staticClass:"login_title"},[i("v-uni-view",{staticClass:"title_h"},[t._v("绑定手机号")])],1),i("v-uni-view",{staticClass:"list"},[i("v-uni-view",{staticClass:"item"},[i("v-uni-input",{attrs:{type:"number",placeholder:"填写手机号码","placeholder-class":"placeholder"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"填写验证码","placeholder-class":"placeholder"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),i("v-uni-button",{staticClass:"code",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleVerify.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-input",{attrs:{type:"password",placeholder:"填写登录密码","placeholder-class":"placeholder"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),i("v-uni-view",{staticClass:"protocol acea-row"},[i("v-uni-checkbox-group",{staticClass:"checkgroup",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.isAgree=!t.isAgree}}},[i("v-uni-checkbox",{staticClass:"checkbox",attrs:{checked:!!t.isAgree}}),i("v-uni-text",{staticClass:"protocol_text"},[t._v("您已同意"),i("v-uni-text",{staticClass:"font_pro",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.userAgree.apply(void 0,arguments)}}},[t._v("《用户协议》")]),t._v("与"),i("v-uni-text",{staticClass:"font_pro",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.userPrivacyAgree.apply(void 0,arguments)}}},[t._v("《隐私政策》")])],1)],1)],1)],1),i("v-uni-button",{staticClass:"logon",attrs:{"form-type":"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register.apply(void 0,arguments)}}},[t._v("确认绑定")]),i("v-uni-button",{staticClass:"logon back",attrs:{"form-type":"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.auth_token=""}}},[t._v("返回")])],1)],1)],1):t._e(),i("v-uni-view",{staticClass:"copyright",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goCopyUrl.apply(void 0,arguments)}}},[t._v(t._s(t.copyData))]),i("Verify",{ref:"verify",attrs:{captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"}},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.success.apply(void 0,arguments)}}})],1)])},a=[]},"71ad":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.nodes.length?t._e():t._t("default"),i("v-uni-view",{style:t.showAm+(t.selectable?";user-select:text;-webkit-user-select:text":""),attrs:{id:"top",animation:t.scaleAm},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t._touchstart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t._touchmove.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t._tap.apply(void 0,arguments)}}},[i("div",{attrs:{id:"rtf"+t.uid}})])],2)},a=[]},"81ba":function(t,e,i){"use strict";i.r(e);var n=i("0d43"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"832c":function(t,e,i){"use strict";i.r(e);var n=i("71ad"),a=i("81ba");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("596c");var s=i("828b"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"487f6906",null,!1,n["a"],void 0);e["default"]=o.exports},8937:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-792ec976] uni-checkbox .uni-checkbox-input,[data-v-792ec976] uni-checkbox .wx-checkbox-input{border-radius:100%;width:%?28?%;height:%?28?%}[data-v-792ec976] uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked,[data-v-792ec976] uni-checkbox .wx-checkbox-input.wx-checkbox-input-checked{border:1px solid var(--view-theme)!important;background-color:var(--view-theme)!important}.register .whiteBg .title_info uni-text[data-v-792ec976]{color:var(--view-theme)}.register .list .item .code[data-v-792ec976]{color:var(--view-theme)}.title-bar[data-v-792ec976]{position:relative;display:flex;align-items:center;justify-content:center;font-size:%?34?%;font-weight:500;color:#333;line-height:%?48?%}.title-bar .icon[data-v-792ec976]{position:absolute;left:%?30?%;top:0;display:flex;align-items:center;justify-content:center;width:%?80?%;height:%?80?%}.title-bar .icon uni-image[data-v-792ec976]{width:%?50?%;height:%?50?%}.code uni-image[data-v-792ec976]{width:100%;height:100%}.protocol_text[data-v-792ec976]{color:#999;font-size:%?24?%}.protocol[data-v-792ec976]{margin-top:%?82?%;justify-content:center}.protocol_text .font_pro[data-v-792ec976]{color:var(--view-theme)}.appLogin[data-v-792ec976]{margin-top:%?82?%}.appLogin .hds[data-v-792ec976]{display:flex;justify-content:center;align-items:center;font-size:%?24?%;color:#b4b4b4}.appLogin .hds .line[data-v-792ec976]{width:%?68?%;height:%?1?%;background:#ccc}.appLogin .hds p[data-v-792ec976]{margin:0 %?20?%}.appLogin .btn-wrapper[data-v-792ec976]{display:flex;align-items:center;justify-content:center;margin-top:%?30?%}.appLogin .btn-wrapper .btn[data-v-792ec976]{display:flex;align-items:center;justify-content:center;width:%?68?%;height:%?68?%;border-radius:50%}.appLogin .btn-wrapper .btn + .btn[data-v-792ec976]{margin-left:%?30?%}.appLogin .btn-wrapper .apple-btn[data-v-792ec976]{display:flex;align-items:center;justify-content:center;width:%?246?%;height:%?66?%;margin-left:%?10?%;background:#eaeaea;border-radius:%?34?%;font-size:%?24?%}.appLogin .btn-wrapper .apple-btn .icon-s-pingguo[data-v-792ec976]{color:#333;margin-right:%?10?%;font-size:%?34?%}.appLogin .btn-wrapper .iconfont[data-v-792ec976]{font-size:%?40?%;color:#fff}.appLogin .btn-wrapper .wx[data-v-792ec976]{background-color:#61c64f}.appLogin .btn-wrapper .wx.btn-apple[data-v-792ec976]{margin-right:0;background-color:#333}.whiteBg .logon[data-v-792ec976]{display:flex;align-items:center;justify-content:center;width:100%;height:%?86?%;margin-top:%?48?%;background-color:var(--view-theme);border-radius:%?120?%;color:#fff;font-size:%?30?%}.whiteBg .back[data-v-792ec976]{border:1px solid var(--view-theme);color:var(--view-theme);margin-top:%?30?%;background-color:initial}.copyright[data-v-792ec976]{position:fixed;bottom:%?30?%;left:0;width:100%;text-align:center;font-size:%?20?%;line-height:%?28?%;color:#9e9e9e}',""]),t.exports=e},9370:function(t,e,i){"use strict";var n=i("8bdb"),a=i("af9e"),r=i("1099"),s=i("c215"),o=a((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));n({target:"Date",proto:!0,arity:1,forced:o},{toJSON:function(t){var e=r(this),i=s(e,"number");return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},a024:function(t,e,i){var n=i("ea05");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("346c7618",n,!0,{sourceMap:!1,shadowMode:!1})},a058:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.checkPhone=function(t){return!!/^1(3|4|5|6|7|8|9)\d{9}$/.test(t)},e.isEmailAvailable=function(t){return!!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(t)},e.isMoney=function(t){return!!/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/.test(t)},i("5c47"),i("0506")},b3e2:function(t,e,i){"use strict";var n,a=i("c238"),r=i("85c1"),s=i("bb80"),o=i("a74c"),c=i("d0b1"),u=i("7658"),l=i("d871c"),d=i("1c06"),h=i("235c").enforce,f=i("af9e"),p=i("a20b"),v=Object,g=Array.isArray,m=v.isExtensible,b=v.isFrozen,_=v.isSealed,y=v.freeze,x=v.seal,w=!r.ActiveXObject&&"ActiveXObject"in r,$=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},k=u("WeakMap",$,l),C=k.prototype,T=s(C.set);if(p)if(w){n=l.getConstructor($,"WeakMap",!0),c.enable();var S=s(C["delete"]),A=s(C.has),M=s(C.get);o(C,{delete:function(t){if(d(t)&&!m(t)){var e=h(this);return e.frozen||(e.frozen=new n),S(this,t)||e.frozen["delete"](t)}return S(this,t)},has:function(t){if(d(t)&&!m(t)){var e=h(this);return e.frozen||(e.frozen=new n),A(this,t)||e.frozen.has(t)}return A(this,t)},get:function(t){if(d(t)&&!m(t)){var e=h(this);return e.frozen||(e.frozen=new n),A(this,t)?M(this,t):e.frozen.get(t)}return M(this,t)},set:function(t,e){if(d(t)&&!m(t)){var i=h(this);i.frozen||(i.frozen=new n),A(this,t)?T(this,t,e):i.frozen.set(t,e)}else T(this,t,e);return this}})}else(function(){return a&&f((function(){var t=y([]);return T(new k,t,1),!b(t)}))})()&&o(C,{set:function(t,e){var i;return g(t)&&(b(t)?i=y:_(t)&&(i=x)),T(this,t,e),i&&i(t),this}})},b7df:function(t,e,i){"use strict";var n=i("11e1"),a=i.n(n);a.a},d0af:function(t,e,i){"use strict";i("b3e2")},d871c:function(t,e,i){"use strict";var n=i("bb80"),a=i("a74c"),r=i("d0b1").getWeakData,s=i("b720"),o=i("e7e3"),c=i("1eb8"),u=i("1c06"),l=i("5075"),d=i("4d16"),h=i("338c"),f=i("235c"),p=f.set,v=f.getterFor,g=d.find,m=d.findIndex,b=n([].splice),_=0,y=function(t){return t.frozen||(t.frozen=new x)},x=function(){this.entries=[]},w=function(t,e){return g(t.entries,(function(t){return t[0]===e}))};x.prototype={get:function(t){var e=w(this,t);if(e)return e[1]},has:function(t){return!!w(this,t)},set:function(t,e){var i=w(this,t);i?i[1]=e:this.entries.push([t,e])},delete:function(t){var e=m(this.entries,(function(e){return e[0]===t}));return~e&&b(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,i,n){var d=t((function(t,a){s(t,f),p(t,{type:e,id:_++,frozen:void 0}),c(a)||l(a,t[n],{that:t,AS_ENTRIES:i})})),f=d.prototype,g=v(e),m=function(t,e,i){var n=g(t),a=r(o(e),!0);return!0===a?y(n).set(e,i):a[n.id]=i,t};return a(f,{delete:function(t){var e=g(this);if(!u(t))return!1;var i=r(t);return!0===i?y(e)["delete"](t):i&&h(i,e.id)&&delete i[e.id]},has:function(t){var e=g(this);if(!u(t))return!1;var i=r(t);return!0===i?y(e).has(t):i&&h(i,e.id)}}),a(f,i?{get:function(t){var e=g(this);if(u(t)){var i=r(t);return!0===i?y(e).get(t):i?i[e.id]:void 0}},set:function(t,e){return m(this,t,e)}}:{add:function(t){return m(this,t,!0)}}),d}}},dc04:function(t,e){function i(t){for(var e={},i=t.split(","),n=i.length;n--;)e[i[n]]=!0;return e}t.exports={filter:null,highlight:null,onText:null,blankChar:i(" , ,\t,\r,\n,\f"),blockTags:i("address,article,aside,body,caption,center,cite,footer,header,html,nav,section,pre"),ignoreTags:i("area,base,basefont,canvas,command,frame,input,isindex,keygen,link,map,meta,param,script,source,style,svg,textarea,title,track,use,wbr,embed,iframe"),richOnlyTags:i("a,colgroup,fieldset,legend,picture,table"),selfClosingTags:i("area,base,basefont,br,col,circle,ellipse,embed,frame,hr,img,input,isindex,keygen,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustAttrs:i("align,alt,app-id,author,autoplay,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns"),boolAttrs:i("autoplay,controls,ignore,loop,muted"),trustTags:i("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",img:"max-width:100%",mark:"background-color:yellow",picture:"max-width:100%",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}}},ea05:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,"@-webkit-keyframes show-data-v-487f6906{0%{opacity:0}100%{opacity:1}}@keyframes show-data-v-487f6906{0%{opacity:0}100%{opacity:1}}\n\n\n\n",""]),t.exports=e},ea2b:function(t,e,i){var n,a,r=i("bdbb").default;i("64aa"),i("5c47"),i("a1c1"),i("0506"),i("2c10"),i("c9b5"),i("bf0f"),i("ab80"),i("f7a5"),i("9370"),i("6730"),function(s,o){"object"==r(e)&&"undefined"!=typeof t?t.exports=o():(n=o,a="function"===typeof n?n.call(e,i,e,t):n,void 0===a||(t.exports=a))}(0,(function(){"use strict";var t="millisecond",e="second",i="minute",n="hour",a="day",s="week",o="month",c="quarter",u="year",l=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,d=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},f={s:h,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),a=i%60;return(e<=0?"+":"-")+h(n,2,"0")+":"+h(a,2,"0")},m:function(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,o),a=e-n<0,r=t.clone().add(i+(a?-1:1),o);return Number(-(i+(e-n)/(a?n-r:r-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(r){return{M:o,y:u,w:s,d:a,D:"date",h:n,m:i,s:e,ms:t,Q:c}[r]||String(r||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v="en",g={};g[v]=p;var m=function(t){return t instanceof x},b=function(t,e,i){var n;if(!t)return v;if("string"==typeof t)g[t]&&(n=t),e&&(g[t]=e,n=t);else{var a=t.name;g[a]=t,n=a}return!i&&n&&(v=n),n||!i&&v},_=function(t,e){if(m(t))return t.clone();var i="object"==r(e)?e:{};return i.date=t,i.args=arguments,new x(i)},y=f;y.l=b,y.i=m,y.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var x=function(){function r(t){this.$L=this.$L||b(t.locale,null,!0),this.parse(t)}var h=r.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(l);if(n)return i?new Date(Date.UTC(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)):new Date(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return y},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var i=_(t);return this.startOf(e)<=i&&i<=this.endOf(e)},h.isAfter=function(t,e){return _(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<_(t)},h.$g=function(t,e,i){return y.u(t)?this[e]:this.set(i,t)},h.year=function(t){return this.$g(t,"$y",u)},h.month=function(t){return this.$g(t,"$M",o)},h.day=function(t){return this.$g(t,"$W",a)},h.date=function(t){return this.$g(t,"$D","date")},h.hour=function(t){return this.$g(t,"$H",n)},h.minute=function(t){return this.$g(t,"$m",i)},h.second=function(t){return this.$g(t,"$s",e)},h.millisecond=function(e){return this.$g(e,"$ms",t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,r){var c=this,l=!!y.u(r)||r,d=y.p(t),h=function(t,e){var i=y.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return l?i:i.endOf(a)},f=function(t,e){return y.w(c.toDate()[t].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},p=this.$W,v=this.$M,g=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case u:return l?h(1,0):h(31,11);case o:return l?h(1,v):h(0,v+1);case s:var b=this.$locale().weekStart||0,_=(p<b?p+7:p)-b;return h(l?g-_:g+(6-_),v);case a:case"date":return f(m+"Hours",0);case n:return f(m+"Minutes",1);case i:return f(m+"Seconds",2);case e:return f(m+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(r,s){var c,l=y.p(r),d="set"+(this.$u?"UTC":""),h=(c={},c[a]=d+"Date",c.date=d+"Date",c[o]=d+"Month",c[u]=d+"FullYear",c[n]=d+"Hours",c[i]=d+"Minutes",c[e]=d+"Seconds",c[t]=d+"Milliseconds",c)[l],f=l===a?this.$D+(s-this.$W):s;if(l===o||l===u){var p=this.clone().set("date",1);p.$d[h](f),p.init(),this.$d=p.set("date",Math.min(this.$D,p.daysInMonth())).toDate()}else h&&this.$d[h](f);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[y.p(t)]()},h.add=function(t,r){var c,l=this;t=Number(t);var d=y.p(r),h=function(e){var i=_(l);return y.w(i.date(i.date()+Math.round(e*t)),l)};if(d===o)return this.set(o,this.$M+t);if(d===u)return this.set(u,this.$y+t);if(d===a)return h(1);if(d===s)return h(7);var f=(c={},c[i]=6e4,c[n]=36e5,c[e]=1e3,c)[d]||1,p=this.$d.getTime()+t*f;return y.w(p,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var i=t||"YYYY-MM-DDTHH:mm:ssZ",n=y.z(this),a=this.$locale(),r=this.$H,s=this.$m,o=this.$M,c=a.weekdays,u=a.months,l=function(t,n,a,r){return t&&(t[n]||t(e,i))||a[n].substr(0,r)},h=function(t){return y.s(r%12||12,t,"0")},f=a.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:y.s(o+1,2,"0"),MMM:l(a.monthsShort,o,u,3),MMMM:u[o]||u(this,i),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:l(a.weekdaysMin,this.$W,c,2),ddd:l(a.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(r),HH:y.s(r,2,"0"),h:h(1),hh:h(2),a:f(r,s,!0),A:f(r,s,!1),m:String(s),mm:y.s(s,2,"0"),s:String(this.$s),ss:y.s(this.$s,2,"0"),SSS:y.s(this.$ms,3,"0"),Z:n};return i.replace(d,(function(t,e){return e||p[t]||n.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(t,r,l){var d,h=y.p(r),f=_(t),p=6e4*(f.utcOffset()-this.utcOffset()),v=this-f,g=y.m(this,f);return g=(d={},d[u]=g/12,d[o]=g,d[c]=g/3,d[s]=(v-p)/6048e5,d[a]=(v-p)/864e5,d[n]=v/36e5,d[i]=v/6e4,d[e]=v/1e3,d)[h]||v,l?g:y.a(g)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return g[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),n=b(t,e,!0);return n&&(i.$L=n),i},h.clone=function(){return y.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},r}();return _.prototype=x.prototype,_.extend=function(t,e){return t(e,x,_),_},_.locale=b,_.isDayjs=m,_.unix=function(t){return _(1e3*t)},_.en=g[v],_.Ls=g,_}))},f0a9:function(t,e,i){"use strict";i.r(e);var n=i("fe03"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},fe03:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default,a=i("3639").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("5ef2"),i("64aa"),i("4626"),i("5c47"),i("0506");var r,s=n(i("2634")),o=n(i("2fdc")),c=n(i("9b1b")),u=n(i("39d8")),l=(n(i("ea2b")),n(i("1ab3"))),d=i("672a"),h=(a(i("a058")),i("5999")),f=i("96e0"),p=i("aa10"),v=n(i("832c")),g=i("5999"),m=i("8f59"),b=n(i("283c")),_=uni.getSystemInfoSync().statusBarHeight+"px",y="login_back_url",x={name:"Login",mixins:[l.default],components:{"jyf-parser":v.default,Verify:b.default},data:function(){var t;return t={domain:p.HTTP_REQUEST_URL,statusBarHeight:_,current:1,account:"",password:"",captcha:"",formItem:1,type:"login",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1,tagStyle:{img:"width:100%;display:block;"},isAgree:!1,appLoginStatus:!1,appUserInfo:null,appleLoginStatus:!1,appleUserInfo:null,appleShow:!1,keyLock:!0,auth_token:""},(0,u.default)(t,"codeVal",""),(0,u.default)(t,"copyright",{}),t},computed:(0,c.default)((0,c.default)({},(0,f.configMap)(["login_logo","wechat_phone_switch"],(0,m.mapGetters)(["viewColor"]))),{},{copyData:function(){var t=-1==this.copyright.status?this.copyright.year:this.copyright.Copyright;return t}}),watch:{formItem:function(t,e){this.type=1==t?"login":"register"}},onLoad:function(){var t=this;uni.getSystemInfo({success:function(e){"ios"==e.platform.toLowerCase()&&t.getSystem(e.system)>=13&&(t.appleShow=!0)}})},mounted:function(){this.getVersion()},onReady:function(){},methods:(r={goCopyUrl:function(){location.href=this.copyright.url},userAgree:function(){uni.navigateTo({url:"/pages/users/user_about/index?from=sys_user_agree"})},userPrivacyAgree:function(){uni.navigateTo({url:"/pages/users/user_about/index?from=sys_userr_privacy"})},getSystem:function(t){if(-1===t.indexOf("iOS"))return t;var e=t.split(" ")[1];return e.indexOf(".")?Number(e.split(".")[0]):Number(e)},home:function(){uni.switchTab({url:"/pages/index/index"})},appleLogin:function(){var t=this;if(!t.isAgree)return t.$util.Tips({title:"请勾选用户协议与隐私政策"});this.account="",this.captcha="",uni.showLoading({title:"登录中"}),uni.login({provider:"apple",timeout:1e4,success:function(e){uni.getUserInfo({provider:"apple",success:function(e){t.appleUserInfo=e.userInfo,t.appleLoginApi()},fail:function(){uni.showToast({title:"获取用户信息失败",icon:"none",duration:2e3})},complete:function(){uni.hideLoading()}})},fail:function(t){uni.showToast({title:"获取用户信息失败",icon:"none",duration:2e3})}})},appleLoginApi:function(){var t=this,e=this;(0,g.commonAuth)({auth:{type:"apple",auth:{userInfo:e.appleUserInfo,openId:e.appleUserInfo.openId,nickname:(e.appleUserInfo.fullName.familyName||"")+(e.appleUserInfo.fullName.giveName||"")}}}).then((function(i){var n=i.data;if(200==i.data.status){var a,r=e.$Cache.get(y)||"/pages/index/index";e.$Cache.clear(y),e.$store.commit("LOGIN",{token:n.result.token,time:n.result.exp}),e.$store.commit("SETUID",n.result.user.uid),e.$store.commit("UPDATE_USERINFO",n.result.user);if(a=["/pages/index/index","/pages/order_addcart/order_addcart","/pages/goods_cate/goods_cate","/pages/user/index","/pages/plant_grass/index"].includes(t.getPath(r))?"switchTab":"navigateTo","/pages/users/login/index"===t.getPath(r))return void uni.switchTab({url:"/pages/index/index"});uni[a]({url:r})}else uni.hideLoading(),e.auth_token=i.data.result.key})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message||t,icon:"none",duration:2e3})}))},wxLogin:function(){if(!this.isAgree)return this.$util.Tips({title:"请勾选用户协议与隐私政策"});var t=this;this.account="",this.captcha="",uni.showLoading({title:"登录中"}),uni.login({provider:"weixin",success:function(e){t.appUserInfo=e,t.wxLoginApi()},fail:function(t){uni.showToast({title:"登录失败",icon:"none",duration:2e3})}})},getPath:function(t){return-1!=t.indexOf("?")&&(t=t.split("?")[0]),t},wxLoginApi:function(){var t=this,e=this;(0,g.commonAuth)({auth:{type:"app_wechat",auth:{code:e.appUserInfo.authResult.access_token,openid:e.appUserInfo.authResult.openid,phone:this.account}}}).then((function(i){var n=i.data;if(200==i.data.status){var a,r=e.$Cache.get(y)||"/pages/index/index";e.$Cache.clear(y),e.$store.commit("LOGIN",{token:n.result.token,time:n.result.exp}),e.$store.commit("SETUID",n.result.user.uid),e.$store.commit("UPDATE_USERINFO",n.result.user);if(a=["/pages/index/index","/pages/order_addcart/order_addcart","/pages/goods_cate/goods_cate","/pages/user/index","/pages/plant_grass/index"].includes(t.getPath(r))?"switchTab":"navigateTo","/pages/users/login/index"===t.getPath(r))return void uni.switchTab({url:"/pages/index/index"});uni[a]({url:r})}else e.auth_token=i.data.result.key,e.bindStatus=!0;uni.hideLoading()})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message||t,icon:"none",duration:2e3})}))},getCode:function(t){var e=this;(0,d.getCodeApi)().then((function(i){e.keyCode=i.data.key,e.code(t)})).catch((function(t){e.$util.Tips({title:t})}))},loginMobile:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var i;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t,i.account){e.next=3;break}return e.abrupt("return",i.$util.Tips({title:"请输入手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(i.account)){e.next=5;break}return e.abrupt("return",i.$util.Tips({title:"请输入正确的手机号码"}));case 5:if(i.captcha){e.next=7;break}return e.abrupt("return",i.$util.Tips({title:"请输入验证码"}));case 7:if(/^[\w\d]+$/i.test(i.captcha)){e.next=9;break}return e.abrupt("return",i.$util.Tips({title:"请输入正确的验证码"}));case 9:if(i.isAgree){e.next=11;break}return e.abrupt("return",i.$util.Tips({title:"请勾选用户协议与隐私政策"}));case 11:(0,d.loginMobile)({auth_token:uni.getStorageSync("auth_token"),phone:i.account,sms_code:i.captcha,spread:i.$Cache.get("spread"),user_type:"h5"}).then((function(e){var n,a=e.data,r=i.$Cache.get(y)||"/pages/index/index";i.$Cache.clear(y),i.$store.commit("LOGIN",{token:a.token,time:a.exp}),i.$store.commit("SETUID",a.user.uid),i.$store.commit("UPDATE_USERINFO",a.user);n=["/pages/index/index","/pages/order_addcart/order_addcart","/pages/goods_cate/goods_cate","/pages/user/index"].includes(t.getPath(r))?"switchTab":"navigateTo","/pages/users/login/index"!==t.getPath(r)?uni[n]({url:r}):uni.switchTab({url:"/pages/index/index"})})).catch((function(t){i.$util.Tips({title:t})}));case 12:case"end":return e.stop()}}),e)})))()},register:function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var i;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t,i.account){e.next=3;break}return e.abrupt("return",i.$util.Tips({title:"请输入手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(i.account)){e.next=5;break}return e.abrupt("return",i.$util.Tips({title:"请输入正确的手机号码"}));case 5:if(i.captcha){e.next=7;break}return e.abrupt("return",i.$util.Tips({title:"请输入验证码"}));case 7:if(/^[\w\d]+$/i.test(i.captcha)){e.next=9;break}return e.abrupt("return",i.$util.Tips({title:"请输入正确的验证码"}));case 9:if(i.password){e.next=11;break}return e.abrupt("return",i.$util.Tips({title:"请输入密码"}));case 11:if(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/i.test(i.password)){e.next=13;break}return e.abrupt("return",i.$util.Tips({title:"请输入6-16位字母加数字组合"}));case 13:if(i.isAgree){e.next=15;break}return e.abrupt("return",i.$util.Tips({title:"请勾选用户协议与隐私政策"}));case 15:(0,d.register)({auth_token:t.auth_token||uni.getStorageSync("auth_token"),phone:i.account,sms_code:i.captcha,pwd:i.password,spread:i.$Cache.get("spread"),user_type:"h5"}).then((function(t){i.$Cache.get(y);i.$Cache.clear(y),i.$store.commit("LOGIN",{token:t.data.token,time:t.data.exp}),i.$store.commit("SETUID",t.data.user.uid),i.$store.commit("UPDATE_USERINFO",t.data.user),uni.switchTab({url:"/pages/user/index"})})).catch((function(t){i.$util.Tips({title:t})}));case 16:case"end":return e.stop()}}),e)})))()},code:function(t){var e=this;return(0,o.default)((0,s.default)().mark((function i(){var n;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e,n.account){i.next=3;break}return i.abrupt("return",n.$util.Tips({title:"请输入手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){i.next=5;break}return i.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码"}));case 5:return i.next=7,(0,d.registerVerify)({phone:n.account,type:"login",key:n.keyCode,toke:t.token,captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){n.$util.Tips({title:t.message}),n.sendCode()})).catch((function(t){n.$util.Tips({title:t})}));case 7:case"end":return i.stop()}}),i)})))()},getcaptcha:function(){var t=this;(0,d.getCaptcha)().then((function(e){t.codeUrl=e.data.captcha,t.keyCode=e.data.key})),t.isShowCode=!0},navTap:function(t){this.current=t}},(0,u.default)(r,"getPath",(function(t){return-1!=t.indexOf("?")&&(t=t.split("?")[0]),t})),(0,u.default)(r,"submit",(function(){var t=this;return(0,o.default)((0,s.default)().mark((function e(){var i;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t,i.account){e.next=3;break}return e.abrupt("return",i.$util.Tips({title:"请输入账号"}));case 3:if(/^[\w\d]{5,16}$/i.test(i.account)){e.next=5;break}return e.abrupt("return",i.$util.Tips({title:"请输入正确的账号"}));case 5:if(i.password){e.next=7;break}return e.abrupt("return",i.$util.Tips({title:"请输入密码"}));case 7:if(i.isAgree){e.next=9;break}return e.abrupt("return",i.$util.Tips({title:"请勾选用户协议与隐私政策"}));case 9:(0,d.loginH5)({auth_token:uni.getStorageSync("auth_token"),account:i.account,password:i.password,spread:i.$Cache.get("spread")}).then((function(e){var n,a=e.data,r=i.$Cache.get(y)||"/pages/index/index";i.$Cache.clear(y),i.$store.commit("LOGIN",{token:a.token,time:a.exp}),i.$store.commit("SETUID",a.user.uid),i.$store.commit("UPDATE_USERINFO",a.user);n=["/pages/index/index","/pages/order_addcart/order_addcart","/pages/goods_cate/goods_cate","/pages/user/index"].includes(t.getPath(r))?"switchTab":"navigateTo","/pages/users/login/index"!==t.getPath(r)?uni[n]({url:r}):uni.switchTab({url:"/pages/index/index"})})).catch((function(t){i.$util.Tips({title:t})}));case 10:case"end":return e.stop()}}),e)})))()})),(0,u.default)(r,"getVersion",(function(){var t=this;(0,h.getVersion)().then((function(e){t.copyright=e.data}))})),(0,u.default)(r,"success",(function(t){this.$refs.verify.hide(),this.code(t)})),(0,u.default)(r,"handleVerify",(function(){return this.account?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.account)?this.isAgree?void this.$refs.verify.show():this.$util.Tips({title:"请勾选用户协议与隐私政策"}):this.$util.Tips({title:"请输入正确的手机号码"}):this.$util.Tips({title:"请输入手机号码"})})),r)};e.default=x}}]);