1 line
49 KiB
JavaScript
1 line
49 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-login-login_copy"],{"010d":function(module,exports,__webpack_require__){"use strict";__webpack_require__("7a82");var _interopRequireDefault=__webpack_require__("4ea4").default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _createForOfIteratorHelper2=_interopRequireDefault(__webpack_require__("b85c"));__webpack_require__("c975"),__webpack_require__("caad"),__webpack_require__("2532"),__webpack_require__("ac1f"),__webpack_require__("466d"),__webpack_require__("5319"),__webpack_require__("acd8"),__webpack_require__("99af"),__webpack_require__("14d9");var rpx=uni.getSystemInfoSync().screenWidth/750,cfg=__webpack_require__("e8d8"),_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 p=u.getAttribute("src");this.domain&&p&&("/"==p[0]?"/"==p[1]?u.src=(this.domain.includes("://")?this.domain.split("://")[0]:"")+":"+p:u.src=this.domain+p:p.includes("://")||(u.src=this.domain+"/"+p)),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 f,g=this.rtf.getElementsByTagName("a"),v=(0,_createForOfIteratorHelper2.default)(g);try{for(v.s();!(f=v.n()).done;){var m=f.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){v.e(T)}finally{v.f()}var b=this.rtf.getElementsByTagName("video");o.videoContexts=b;for(var _,w=0;_=b[w++];)_.style.maxWidth="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 y,x,$=this.rtf.getElementsByTagName("audios"),k=(0,_createForOfIteratorHelper2.default)($);try{for(k.s();!(y=k.n()).done;){var C=y.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==x&&(i.$emit("ready",t[0]),clearInterval(i._timer)),x=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},"0b71":function(t,e,i){"use strict";i.r(e);var n=i("b0e3"),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},"1b3b":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-18322694]{background-color:#fff!important}body.?%PAGE?%[data-v-18322694]{background-color:#fff!important}[data-v-18322694] uni-checkbox .uni-checkbox-input{border-radius:100%}.ChangePassword .phone[data-v-18322694]{font-size:%?32?%;font-weight:700;text-align:center;margin-top:%?55?%}.ChangePassword .list[data-v-18322694]{width:%?580?%;margin:%?53?% auto 0 auto}.ChangePassword .list .item[data-v-18322694]{width:100%;height:%?110?%;border-bottom:%?2?% solid #f0f0f0}.ChangePassword .list .item uni-input[data-v-18322694]{width:100%;height:100%;font-size:%?32?%}.ChangePassword .list .item .placeholder[data-v-18322694]{color:#b9b9bc}.ChangePassword .list .item uni-input.codeIput[data-v-18322694]{width:%?240?%}.ChangePassword .list .item .code[data-v-18322694]{font-size:%?32?%;background-color:#fff;color:var(--view-theme)}.ChangePassword .list .item .code.on[data-v-18322694]{color:#b9b9bc}.ChangePassword .confirmBnt[data-v-18322694]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;color:#fff;margin:%?92?% auto 0 auto;text-align:center;line-height:%?90?%;background-color:var(--view-theme)}.ChangePassword .confirmBnt.back[data-v-18322694]{background-color:#fff;border:1px solid var(--view-theme);color:var(--view-theme);margin-top:%?30?%}.getPhoneBtn[data-v-18322694]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;border:%?1?% solid #3cb625;color:#3cb625;margin:%?40?% auto 0 auto;text-align:center;line-height:%?90?%}.getPhoneBtn .iconfont[data-v-18322694]{font-size:%?32?%;margin-right:%?12?%}.code uni-image[data-v-18322694]{width:100%;height:100%}.acea-row.row-middle uni-input[data-v-18322694]{margin-left:%?20?%}.settlementAgreement[data-v-18322694]{width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:10}.protocol_text[data-v-18322694]{color:#999;font-size:%?24?%}.settlementAgreement .setAgCount[data-v-18322694]{background:#fff;width:%?656?%;height:458px;position:absolute;top:50%;left:50%;border-radius:%?12?%;-webkit-border-radius:%?12?%;padding:%?52?%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);transform:translate(-50%,-50%);overflow:hidden}.settlementAgreement .setAgCount .content[data-v-18322694]{height:%?900?%;overflow-y:scroll}.settlementAgreement .setAgCount .content[data-v-18322694] p{font-size:13px;line-height:22px}.settlementAgreement .setAgCount .content[data-v-18322694] img{max-width:100%}.settlementAgreement .setAgCount .icon[data-v-18322694]{font-size:%?42?%;color:#b4b1b4;position:absolute;top:%?15?%;right:%?15?%}.settlementAgreement .setAgCount .title[data-v-18322694]{color:#333;font-size:%?32?%;text-align:center;font-weight:700}.settlementAgreement .setAgCount .content[data-v-18322694]{margin-top:%?32?%;color:#333;font-size:%?26?%;line-height:22px;text-align:justify;text-justify:distribute-all-lines;height:%?756?%;overflow-y:scroll}.protocol[data-v-18322694]{display:flex;justify-content:center;text-align:center;margin-top:%?30?%}.protocol_text .font_pro[data-v-18322694]{color:var(--view-theme)}.appLogin .hds[data-v-18322694]{display:flex;justify-content:center;align-items:center;font-size:%?24?%;color:#b4b4b4}.appLogin .hds .line[data-v-18322694]{width:%?68?%;height:%?1?%;background:#ccc}.appLogin .hds p[data-v-18322694]{margin:0 %?20?%}.appLogin .btn-wrapper[data-v-18322694]{display:flex;align-items:center;justify-content:center;margin-top:%?30?%}.appLogin .btn-wrapper .btn[data-v-18322694]{display:flex;align-items:center;justify-content:center;width:%?68?%;height:%?68?%;border-radius:50%}.appLogin .btn-wrapper .btn + .btn[data-v-18322694]{margin-left:%?30?%}.appLogin .btn-wrapper .apple-btn[data-v-18322694]{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-18322694]{color:#333;margin-right:%?10?%;font-size:%?34?%}.appLogin .btn-wrapper .iconfont[data-v-18322694]{font-size:%?40?%;color:#fff}.appLogin .btn-wrapper .wx[data-v-18322694]{background-color:#61c64f}.appLogin .btn-wrapper .wx.btn-apple[data-v-18322694]{margin-right:0;background-color:#333}.appLogin .btn-wrapper .mima[data-v-18322694]{background-color:#28b3e9}.appLogin .btn-wrapper .yanzheng[data-v-18322694]{background-color:#f89c23}.code img[data-v-18322694]{width:100%;height:100%}.acea-row.row-middle uni-input[data-v-18322694]{margin-left:%?20?%;display:block}.login-wrapper[data-v-18322694]{padding:%?30?%}.login-wrapper .shading[data-v-18322694]{display:flex;align-items:center;justify-content:center;width:100%;margin-top:%?200?%}.login-wrapper .shading uni-image[data-v-18322694]{width:%?180?%;height:%?180?%}.login-wrapper .whiteBg[data-v-18322694]{margin-top:%?100?%}.login-wrapper .whiteBg .list[data-v-18322694]{border-radius:%?16?%;overflow:hidden}.login-wrapper .whiteBg .list .item[data-v-18322694]{border-bottom:1px solid #f0f0f0;background:#fff}.login-wrapper .whiteBg .list .item .row-middle[data-v-18322694]{position:relative;padding:%?16?% %?45?%}.login-wrapper .whiteBg .list .item .row-middle uni-input[data-v-18322694]{flex:1;font-size:%?28?%;height:%?80?%}.login-wrapper .whiteBg .list .item .row-middle .code[data-v-18322694]{color:#e93323;font-size:%?26?%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.login-wrapper .whiteBg .logon[data-v-18322694]{display:flex;align-items:center;justify-content:center;width:100%;height:%?86?%;margin-top:%?80?%;background-color:#e93323;border-radius:%?120?%;color:#fff;font-size:%?30?%}.login-wrapper .whiteBg .tips[data-v-18322694]{margin:%?30?%;text-align:center;color:#999}.copyright[data-v-18322694]{position:absolute;bottom:%?30?%;left:0;width:100%;text-align:center;font-size:%?20?%;line-height:%?28?%;color:#ccc}.copyright .cell[data-v-18322694]{font-size:%?20?%}',""]),t.exports=e},"1e98":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={jyfParser:i("9b71").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{style:t.viewColor},[t.auth_token?t._e():n("div",{staticClass:"register absolute"},[n("div",{staticClass:"login"},[n("div",{staticClass:"shading"},[n("div",{staticClass:"pictrue acea-row row-center-wrapper",staticStyle:{"background-color":"transparent !important"}},[n("v-uni-image",{attrs:{src:i("2c90")}})],1)]),1===t.formItem?n("div",{staticClass:"whiteBg"},[n("div",{staticClass:"title acea-row row-center-wrapper"},t._l(t.navList,(function(e,i){return n("div",{key:i,staticClass:"item",class:t.current===i?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTap(i)}}},[t._v(t._s(e))])})),0),n("div",{staticClass:"list",attrs:{hidden:1!==t.current}},[n("v-uni-form",{on:{submit:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/phone_1.png"}}),n("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)]),n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),n("v-uni-input",{attrs:{type:"password",placeholder:"填写登录密码","placeholder-class":"placeholder",required:!0},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1)])]),n("div",{staticClass:"tip"},[n("span"),n("v-uni-navigator",{staticClass:"forgetPwd",attrs:{"hover-class":"none",url:"/pages/users/retrievePassword/index"}},[t._v("忘记密码")])],1)],1),n("div",{staticClass:"list",attrs:{hidden:0!==t.current}},[n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/phone_1.png"}}),n("v-uni-input",{attrs:{type:"text",placeholder:"输入手机号码","placeholder-class":"placeholder"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1)]),n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),n("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"填写验证码","placeholder-class":"placeholder",maxlength:"4"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),n("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)]),t.isShowCode?n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),n("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"填写验证码","placeholder-class":"placeholder",maxlength:"4"},model:{value:t.codeVal,callback:function(e){t.codeVal=e},expression:"codeVal"}}),n("div",{staticClass:"code",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getcaptcha.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"code-img",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.codeUrl}})],1)],1)]):t._e()]),n("div",{staticClass:"logon",attrs:{hidden:0!==t.current},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loginMobile.apply(void 0,arguments)}}},[t._v("登录")]),n("div",{staticClass:"logon",attrs:{hidden:0===t.current},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("登录")]),n("div",{staticClass:"protocol acea-row row-between-wrapper"},[n("v-uni-checkbox-group",{staticClass:"checkgroup",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.isAgree=!t.isAgree}}},[n("v-uni-checkbox",{staticClass:"checkbox",attrs:{checked:!!t.isAgree}}),n("v-uni-text",{staticClass:"protocol_text"},[t._v("我已同意"),n("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("与"),n("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)]):n("div",{staticClass:"whiteBg"},[n("div",{staticClass:"title"},[t._v("注册账号")]),n("div",{staticClass:"list"},[n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/phone_1.png"}}),n("v-uni-input",{attrs:{type:"text",placeholder:"输入手机号码","placeholder-class":"placeholder"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1)]),n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),n("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"填写验证码",maxLength:"4","placeholder-class":"placeholder"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),n("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)]),n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/code_1.png"}}),n("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?n("div",{staticClass:"item"},[n("div",{staticClass:"acea-row row-middle"},[n("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),n("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"填写验证码",maxlength:"4","placeholder-class":"placeholder"},model:{value:t.codeVal,callback:function(e){t.codeVal=e},expression:"codeVal"}}),n("div",{staticClass:"code",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getcaptcha.apply(void 0,arguments)}}},[n("v-uni-image",{staticClass:"code-img",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.codeUrl}})],1)],1)]):t._e()]),n("div",{staticClass:"tip"},[n("div",[t._v("已有账号?"),n("span",{staticClass:"font-color-red",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formItem=1}}},[t._v("去登录")])])]),n("div",{staticClass:"logon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register.apply(void 0,arguments)}}},[t._v("注册")]),n("div",{staticClass:"protocol acea-row row-between-wrapper"},[n("v-uni-checkbox-group",{staticClass:"checkgroup",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.isAgree=!t.isAgree}}},[n("v-uni-checkbox",{staticClass:"checkbox",attrs:{checked:!!t.isAgree}}),n("v-uni-text",{staticClass:"protocol_text"},[t._v("我已同意"),n("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("与"),n("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)])]),n("div",{staticClass:"bottom"}),t.showAgreement?n("v-uni-view",{staticClass:"settlementAgreement"},[n("v-uni-view",{staticClass:"setAgCount"},[n("i",{staticClass:"icon iconfont icon-cha",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showAgreement=!1}}}),n("div",{staticClass:"title"},[t._v("用户协议与隐私政策")]),n("v-uni-view",{staticClass:"content"},[n("jyf-parser",{ref:"article",attrs:{html:t.agreement,"tag-style":t.tagStyle}})],1)],1)],1):t._e()],1),t.auth_token?n("v-uni-form",{attrs:{"report-submit":"true"}},[n("v-uni-view",{staticClass:"ChangePassword"},[n("v-uni-view",{staticClass:"list"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-input",{attrs:{type:"number",placeholder:"填写手机号码","placeholder-class":"placeholder"},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}})],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"填写验证码",maxlength:"4","placeholder-class":"placeholder"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),n("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),n("v-uni-view",{staticClass:"item"},[n("v-uni-input",{attrs:{type:"password",placeholder:"填写登录密码","placeholder-class":"placeholder"},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),n("v-uni-view",{staticClass:"protocol acea-row row-between-wrapper"},[n("v-uni-checkbox-group",{staticClass:"checkgroup",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.isAgree=!t.isAgree}}},[n("v-uni-checkbox",{staticClass:"checkbox",attrs:{checked:!!t.isAgree}}),n("v-uni-text",{staticClass:"protocol_text"},[t._v("我已同意"),n("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("与"),n("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),n("v-uni-button",{staticClass:"confirmBnt",attrs:{"form-type":"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register.apply(void 0,arguments)}}},[t._v("确认绑定")]),n("v-uni-button",{staticClass:"confirmBnt back",attrs:{"form-type":"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.auth_token=""}}},[t._v("返回")])],1)],1):t._e(),n("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)},r=[]},"2c90":function(t,e,i){t.exports=i.p+"static/img/logo1.87e9329e.png"},"366b":function(t,e,i){"use strict";i("7a82"),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("ac1f"),i("00b4")},"3e17":function(t,e,i){"use strict";var n=i("9a61"),a=i.n(n);a.a},"4ba7":function(t,e,i){"use strict";var n=i("e137"),a=i.n(n);a.a},"4bdd":function(t,e,i){var n,a,r=i("7037").default;i("a9e3"),i("ac1f"),i("5319"),i("00b4"),i("466d"),i("d401"),i("d3b7"),i("25f0"),i("fb6a"),i("f4b3"),i("bf19"),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},p={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}},f={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("_")},g="en",v={};v[g]=f;var m=function(t){return t instanceof y},b=function(t,e,i){var n;if(!t)return g;if("string"==typeof t)v[t]&&(n=t),e&&(v[t]=e,n=t);else{var a=t.name;v[a]=t,n=a}return!i&&n&&(g=n),n||!i&&g},_=function(t,e){if(m(t))return t.clone();var i="object"==r(e)?e:{};return i.date=t,i.args=arguments,new y(i)},w=p;w.l=b,w.i=m,w.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var y=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(w.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 w},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 w.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=!!w.u(r)||r,d=w.p(t),h=function(t,e){var i=w.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return l?i:i.endOf(a)},p=function(t,e){return w.w(c.toDate()[t].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},f=this.$W,g=this.$M,v=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,g):h(0,g+1);case s:var b=this.$locale().weekStart||0,_=(f<b?f+7:f)-b;return h(l?v-_:v+(6-_),g);case a:case"date":return p(m+"Hours",0);case n:return p(m+"Minutes",1);case i:return p(m+"Seconds",2);case e:return p(m+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(r,s){var c,l=w.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],p=l===a?this.$D+(s-this.$W):s;if(l===o||l===u){var f=this.clone().set("date",1);f.$d[h](p),f.init(),this.$d=f.set("date",Math.min(this.$D,f.daysInMonth())).toDate()}else h&&this.$d[h](p);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[w.p(t)]()},h.add=function(t,r){var c,l=this;t=Number(t);var d=w.p(r),h=function(e){var i=_(l);return w.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 p=(c={},c[i]=6e4,c[n]=36e5,c[e]=1e3,c)[d]||1,f=this.$d.getTime()+t*p;return w.w(f,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=w.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 w.s(r%12||12,t,"0")},p=a.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:w.s(o+1,2,"0"),MMM:l(a.monthsShort,o,u,3),MMMM:u[o]||u(this,i),D:this.$D,DD:w.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:w.s(r,2,"0"),h:h(1),hh:h(2),a:p(r,s,!0),A:p(r,s,!1),m:String(s),mm:w.s(s,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:n};return i.replace(d,(function(t,e){return e||f[t]||n.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(t,r,l){var d,h=w.p(r),p=_(t),f=6e4*(p.utcOffset()-this.utcOffset()),g=this-p,v=w.m(this,p);return v=(d={},d[u]=v/12,d[o]=v,d[c]=v/3,d[s]=(g-f)/6048e5,d[a]=(g-f)/864e5,d[n]=g/36e5,d[i]=g/6e4,d[e]=g/1e3,d)[h]||g,l?v:w.a(v)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return v[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 w.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=y.prototype,_.extend=function(t,e){return t(e,y,_),_},_.locale=b,_.isDayjs=m,_.unix=function(t){return _(1e3*t)},_.en=v[g],_.Ls=v,_}))},67561: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}}),t._l(t.imgs,(function(e,n){return i("v-uni-image",{key:n,attrs:{id:n,src:e,hidden:!0},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t._load.apply(void 0,arguments)}}})}))],2)],2)},a=[]},"8fa3":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"@-webkit-keyframes show-data-v-6dfbdbd8{0%{opacity:0}100%{opacity:1}}@keyframes show-data-v-6dfbdbd8{0%{opacity:0}100%{opacity:1}}\n\n\n\n",""]),t.exports=e},"9a61":function(t,e,i){var n=i("1b3b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("79d2e995",n,!0,{sourceMap:!1,shadowMode:!1})},"9b71":function(t,e,i){"use strict";i.r(e);var n=i("67561"),a=i("b5cd");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("4ba7");var s=i("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"6dfbdbd8",null,!1,n["a"],void 0);e["default"]=o.exports},b0e3:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default,a=i("dbce").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c975"),i("a9e3"),i("caad"),i("ac1f"),i("00b4");var r,s=n(i("c7eb")),o=n(i("1da1")),c=n(i("ade3")),u=(n(i("4bdd")),n(i("e193"))),l=i("33b4"),d=(a(i("366b")),i("d49e"),i("cc48")),h=i("5315"),p=n(i("9b71")),f=i("cc48"),g=i("26cb"),v=n(i("4b41")),m="login_back_url",b={name:"Login",mixins:[u.default],components:{"jyf-parser":p.default,Verify:v.default},data:function(){var t;return t={navList:["快速登录","账号登录"],current:0,account:"",password:"",captcha:"",formItem:1,type:"login",keyCode:"",codeUrl:"",codeVal:"",isShowCode:!1,showAgreement:!1,tagStyle:{img:"width:100%;display:block;"},isAgree:!1,agreement:"",appLoginStatus:!1,appUserInfo:null,appleLoginStatus:!1,appleUserInfo:null,appleShow:!1,keyLock:!0,auth_token:""},(0,c.default)(t,"codeVal",""),(0,c.default)(t,"copyright",{}),t},computed:(0,h.configMap)(["login_logo"],(0,g.mapGetters)(["viewColor"])),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)}}),this.getVersion()},mounted:function(){},onReady:function(){},methods:(r={goCopyUrl:function(){},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)},appleLogin:function(){var t=this;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,f.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(m)||"/pages/index/index";e.$Cache.clear(m),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,f.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(m)||"/pages/index/index";e.$Cache.clear(m),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})}))},getAgreement:function(){var t=this;(0,l.getAgreementApi)("sys_user_agree").then((function(e){t.agreement=e.data.sys_user_agree}))},getCode:function(t){var e=this;(0,l.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,l.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=e.data;t.checkOpenId(n.user);var a,r=i.$Cache.get(m)||"/pages/index/index";if(i.$Cache.clear(m),i.$store.commit("LOGIN",{token:n.token,time:n.exp}),i.$store.commit("SETUID",n.user.uid),i.$store.commit("UPDATE_USERINFO",n.user),n.is_new_user)return uni.navigateTo({url:"/pages/helpPeople/helpPeople"});a=["/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[a]({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,l.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){var e=i.$Cache.get(m)||"/pages/index/index";if(i.$Cache.clear(m),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),"/pages/index/index"!=e&&"/pages/user/index"!=e)return uni.navigateTo({url:e,fail:function(t){uni.switchTab({url:"/pages/index/index"})}});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,l.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,l.getCaptcha)().then((function(e){t.codeUrl=e.data.captcha,t.keyCode=e.data.key})),t.isShowCode=!0},navTap:function(t){this.current=t}},(0,c.default)(r,"getPath",(function(t){return-1!=t.indexOf("?")&&(t=t.split("?")[0]),t})),(0,c.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,l.loginH5)({auth_token:uni.getStorageSync("auth_token"),account:i.account,password:i.password,spread:i.$Cache.get("spread")}).then((function(e){var n=e.data;t.checkOpenId(n.user);var a,r=i.$Cache.get(m)||"/pages/index/index";if(i.$Cache.clear(m),i.$store.commit("LOGIN",{token:n.token,time:n.exp}),i.$store.commit("SETUID",n.user.uid),i.$store.commit("UPDATE_USERINFO",n.user),n.is_new_user)return uni.navigateTo({url:"/pages/helpPeople/helpPeople"});a=["/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[a]({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,c.default)(r,"getVersion",(function(){var t=this;(0,d.getVersion)().then((function(e){t.copyright=e.data}))})),(0,c.default)(r,"success",(function(t){this.$refs.verify.hide(),this.code(t)})),(0,c.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:"请输入手机号码"})})),(0,c.default)(r,"checkOpenId",(function(t){if(0===t.wechat_user_id){var e=this;try{wx.getUserInfo({success:function(t){var i=t.encryptedData,n=t.iv;wx.login({success:function(t){t.code&&(0,d.bindMp)({code:t.code,iv:n,encryptedData:i,phone:e.account}).then((function(t){}))}})},fail:function(t){}})}catch(i){}}})),r)};e.default=b},b5cd:function(t,e,i){"use strict";i.r(e);var n=i("010d"),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},b85c:function(t,e,i){"use strict";i("7a82"),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("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("d9e2"),i("d401");var n=function(t){return t&&t.__esModule?t:{default:t}}(i("06c5"))},bf19:function(t,e,i){"use strict";var n=i("23e7"),a=i("c65b");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},d49e:function(t,e){},dcb1:function(t,e,i){"use strict";i.r(e);var n=i("1e98"),a=i("0b71");for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("3e17");var s=i("f0c5"),o=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"18322694",null,!1,n["a"],void 0);e["default"]=o.exports},e137:function(t,e,i){var n=i("8fa3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("565c5503",n,!0,{sourceMap:!1,shadowMode:!1})},e193:function(t,e,i){"use strict";i("7a82"),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},e8d8: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"}}},f4b3:function(t,e,i){"use strict";var n=i("23e7"),a=i("d039"),r=i("7b0b"),s=i("c04e"),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}})}}]); |