(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,n=this.length;e.5?n.toUpperCase():n}return i+=e.substr(a),this[t]=i}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,n="",i=(0,_createForOfIteratorHelper2.default)(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;if("text"==a.type)n+=a.text;else{for(var r in n+="<"+a.name,a.attrs||{})n+=" "+r+'="'+a.attrs[r]+'"';a.children&&a.children.length?n+=">"+this._Dom2Str(a.children)+"":n+=">"}}}catch(o){i.e(o)}finally{i.f()}return n},_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 n="",t=n+t}return t},setContent:function(t,e){var n=this;if(t){var i=document.createElement("div");e?this.rtf?this.rtf.appendChild(i):this.rtf=i:(this.rtf&&this.rtf.parentNode.removeChild(this.rtf),this.rtf=i),i.innerHTML=this._handleHtml(t,e);for(var a,r=this.rtf.getElementsByTagName("style"),o=0;a=r[o++];)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,i=0;e=t[i++];)e.isIntersecting&&(e.target.src=e.target.getAttribute("data-src"),e.target.removeAttribute("data-src"),n._observer.unobserve(e.target))}),{rootMargin:"900px 0px 900px 0px"}));var s=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++,s.imgList.push(u.src||u.getAttribute("data-src")),u.onclick=function(){var t=!0;this.ignore=function(){return t=!1},s.$emit("imgtap",this),t&&uni.previewImage({current:this.i,urls:s.imgList})}),u.onerror=function(){s.$emit("error",{source:"img",target:this})},s.lazyLoad&&this._observer&&u.src&&0!=u.i&&(u.setAttribute("data-src",u.src),u.removeAttribute("src"),this._observer.observe(u))}var p,g=this.rtf.getElementsByTagName("a"),v=(0,_createForOfIteratorHelper2.default)(g);try{for(v.s();!(p=v.n()).done;){var m=p.value;m.onclick=function(){var t=!0,e=this.getAttribute("href");if(s.$emit("linkpress",{href:e,ignore:function(){return t=!1}}),t&&e)if("#"==e[0])s.useAnchor&&s.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");s.videoContexts=b;for(var w,_=0;w=b[_++];)w.style.maxWidth="100%",w.onerror=function(){s.$emit("error",{source:"video",target:this})},w.onplay=function(){if(s.autopause)for(var t,e=0;t=s.videoContexts[e++];)t!=this&&t.pause()};var y,x,k=this.rtf.getElementsByTagName("audios"),$=(0,_createForOfIteratorHelper2.default)(k);try{for($.s();!(y=$.n()).done;){var C=y.value;C.onerror=function(){s.$emit("error",{source:"audio",target:this})}}}catch(T){$.e(T)}finally{$.f()}this.document=this.rtf,e||document.getElementById("rtf"+this._uid).appendChild(this.rtf),this.$nextTick((function(){n.nodes=[1],n.$emit("load")})),setTimeout((function(){return n.showAm=""}),500),clearInterval(this._timer),this._timer=setInterval((function(){var t=[n.rtf.getBoundingClientRect()];n.width=t[0].width,t[0].height==x&&(n.$emit("ready",t[0]),clearInterval(n._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 n=t.touches[0].pageX-t.currentTarget.offsetLeft;this._initY=e,this._scaleAm=uni.createAnimation({transformOrigin:"".concat(n,"px ").concat(this._initY,"px 0"),timingFunction:"ease-in-out"}),this._scaleAm.scale(2).step(),this._tMax=n/2,this._tMin=(n-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._tXthis._tMax&&(this._tX=this._tMax),this._scaleAm.translateX(this._tX).step(),this.scaleAm=this._scaleAm.export()}}}};exports.default=_default},"0b71":function(t,e,n){"use strict";n.r(e);var i=n("b0e3"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"2c90":function(t,e,n){t.exports=n.p+"static/img/logo1.87e9329e.png"},"366b":function(t,e,n){"use strict";n("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)},n("ac1f"),n("00b4")},"4ba7":function(t,e,n){"use strict";var i=n("e137"),a=n.n(i);a.a},"4bdd":function(t,e,n){var i,a,r=n("7037").default;n("a9e3"),n("ac1f"),n("5319"),n("00b4"),n("466d"),n("d401"),n("d3b7"),n("25f0"),n("fb6a"),n("f4b3"),n("bf19"),function(o,s){"object"==r(e)&&"undefined"!=typeof t?t.exports=s():(i=s,a="function"===typeof i?i.call(e,n,e,t):i,void 0===a||(t.exports=a))}(0,(function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",a="day",o="week",s="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,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},f={s:h,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+h(i,2,"0")+":"+h(a,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,s),a=e-i<0,r=t.clone().add(n+(a?-1:1),s);return Number(-(n+(e-i)/(a?i-r:r-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(r){return{M:s,y:u,w:o,d:a,D:"date",h:i,m:n,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("_")},g="en",v={};v[g]=p;var m=function(t){return t instanceof y},b=function(t,e,n){var i;if(!t)return g;if("string"==typeof t)v[t]&&(i=t),e&&(v[t]=e,i=t);else{var a=t.name;v[a]=t,i=a}return!n&&i&&(g=i),i||!n&&g},w=function(t,e){if(m(t))return t.clone();var n="object"==r(e)?e:{};return n.date=t,n.args=arguments,new y(n)},_=f;_.l=b,_.i=m,_.w=function(t,e){return w(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,n=t.utc;if(null===e)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(l);if(i)return n?new Date(Date.UTC(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)):new Date(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[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 _},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return w(t)=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,p.commonAuth)({auth:{type:"apple",auth:{userInfo:e.appleUserInfo,openId:e.appleUserInfo.openId,nickname:(e.appleUserInfo.fullName.familyName||"")+(e.appleUserInfo.fullName.giveName||"")}}}).then((function(n){var i=n.data;if(200==n.data.status){var a,r=e.$Cache.get("login_back_url_weixin")||e.$Cache.get(m)||"/pages/index/index";e.$Cache.clear(m),e.$Cache.clear("login_back_url_weixin"),e.$store.commit("LOGIN",{token:i.result.token,time:i.result.exp}),e.$store.commit("SETUID",i.result.user.uid),e.$store.commit("UPDATE_USERINFO",i.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=n.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,p.commonAuth)({auth:{type:"app_wechat",auth:{code:e.appUserInfo.authResult.access_token,openid:e.appUserInfo.authResult.openid,phone:this.account}}}).then((function(n){var i=n.data;if(200==n.data.status){var a,r=e.$Cache.get("login_back_url_weixin")||e.$Cache.get(m)||"/pages/index/index";e.$Cache.clear(m),e.$Cache.clear("login_back_url_weixin"),e.$store.commit("LOGIN",{token:i.result.token,time:i.result.exp}),e.$store.commit("SETUID",i.result.user.uid),e.$store.commit("UPDATE_USERINFO",i.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=n.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(n){e.keyCode=n.data.key,e.code(t)})).catch((function(t){e.$util.Tips({title:t})}))},loginMobile:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.account){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:"请输入手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){e.next=5;break}return e.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码"}));case 5:if(n.captcha){e.next=7;break}return e.abrupt("return",n.$util.Tips({title:"请输入验证码"}));case 7:if(/^[\w\d]+$/i.test(n.captcha)){e.next=9;break}return e.abrupt("return",n.$util.Tips({title:"请输入正确的验证码"}));case 9:if(n.isAgree){e.next=11;break}return e.abrupt("return",n.$util.Tips({title:"请勾选用户协议与隐私政策"}));case 11:(0,l.loginMobile)({auth_token:uni.getStorageSync("auth_token"),phone:n.account,sms_code:n.captcha,spread:n.$Cache.get("spread"),user_type:"h5"}).then((function(e){var i=e.data;t.checkOpenId(i.user);var a,r=n.$Cache.get("login_back_url_weixin")||n.$Cache.get(m)||"/pages/index/index";if(n.$store.commit("LOGIN",{token:i.token,time:i.exp}),n.$store.commit("SETUID",i.user.uid),n.$store.commit("UPDATE_USERINFO",i.user),i.is_new_user&&n.$Cache.get("login_back_url_weixin"))return uni.navigateTo({url:"/pages/helpPeople/helpPeople"});n.$Cache.clear(m),n.$Cache.clear("login_back_url_weixin");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){n.$util.Tips({title:t})}));case 12:case"end":return e.stop()}}),e)})))()},register:function(){var t=this;return(0,s.default)((0,o.default)().mark((function e(){var n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.account){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:"请输入手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.account)){e.next=5;break}return e.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码"}));case 5:if(n.captcha){e.next=7;break}return e.abrupt("return",n.$util.Tips({title:"请输入验证码"}));case 7:if(/^[\w\d]+$/i.test(n.captcha)){e.next=9;break}return e.abrupt("return",n.$util.Tips({title:"请输入正确的验证码"}));case 9:if(n.password){e.next=11;break}return e.abrupt("return",n.$util.Tips({title:"请输入密码"}));case 11:if(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/i.test(n.password)){e.next=13;break}return e.abrupt("return",n.$util.Tips({title:"请输入6-16位字母加数字组合"}));case 13:if(n.isAgree){e.next=15;break}return e.abrupt("return",n.$util.Tips({title:"请勾选用户协议与隐私政策"}));case 15:(0,l.register)({auth_token:t.auth_token||uni.getStorageSync("auth_token"),phone:n.account,sms_code:n.captcha,pwd:n.password,spread:n.$Cache.get("spread"),user_type:"h5"}).then((function(e){n.$store.commit("LOGIN",{token:e.data.token,time:e.data.exp}),n.$store.commit("SETUID",e.data.user.uid),n.$store.commit("UPDATE_USERINFO",e.data.user);var i,a=n.$Cache.get("login_back_url_weixin")||n.$Cache.get(m)||"/pages/index/index";n.$Cache.clear(m),n.$Cache.clear("login_back_url_weixin");i=["/pages/index/index","/pages/order_addcart/order_addcart","/pages/goods_cate/goods_cate","/pages/user/index"].includes(t.getPath(a))?"switchTab":"navigateTo",uni[i]({url:a})})).catch((function(t){n.$util.Tips({title:t})}));case 16:case"end":return e.stop()}}),e)})))()},code:function(t){var e=this;return(0,s.default)((0,o.default)().mark((function n(){var i;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e,i.account){n.next=3;break}return n.abrupt("return",i.$util.Tips({title:"请输入手机号码"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(i.account)){n.next=5;break}return n.abrupt("return",i.$util.Tips({title:"请输入正确的手机号码"}));case 5:return n.next=7,(0,l.registerVerify)({phone:i.account,type:"login",key:i.keyCode,toke:t.token,captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){i.$util.Tips({title:t.message}),i.sendCode()})).catch((function(t){i.$util.Tips({title:t})}));case 7:case"end":return n.stop()}}),n)})))()},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,s.default)((0,o.default)().mark((function e(){var n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.account){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:"请输入账号"}));case 3:if(/^[\w\d]{5,16}$/i.test(n.account)){e.next=5;break}return e.abrupt("return",n.$util.Tips({title:"请输入正确的账号"}));case 5:if(n.password){e.next=7;break}return e.abrupt("return",n.$util.Tips({title:"请输入密码"}));case 7:if(n.isAgree){e.next=9;break}return e.abrupt("return",n.$util.Tips({title:"请勾选用户协议与隐私政策"}));case 9:(0,l.loginH5)({auth_token:uni.getStorageSync("auth_token"),account:n.account,password:n.password,spread:n.$Cache.get("spread")}).then((function(e){var i=e.data;t.checkOpenId(i.user);var a,r=n.$Cache.get("login_back_url_weixin")||n.$Cache.get(m)||"/pages/index/index";if(n.$store.commit("LOGIN",{token:i.token,time:i.exp}),n.$store.commit("SETUID",i.user.uid),n.$store.commit("UPDATE_USERINFO",i.user),i.is_new_user&&n.$Cache.get("login_back_url_weixin"))return uni.navigateTo({url:"/pages/helpPeople/helpPeople"});n.$Cache.clear(m),n.$Cache.clear("login_back_url_weixin");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){n.$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 n=t.encryptedData,i=t.iv;wx.login({success:function(t){t.code&&(0,d.bindMp)({code:t.code,iv:i,encryptedData:n,phone:e.account}).then((function(t){}))}})},fail:function(t){}})}catch(n){}}})),r)};e.default=b},b5cd:function(t,e,n){"use strict";n.r(e);var i=n("010d"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},b85c:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(0,i.default)(t))||e&&t&&"number"===typeof t.length){n&&(t=n);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 o,s=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,o=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(c)throw o}}}},n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401");var i=function(t){return t&&t.__esModule?t:{default:t}}(n("06c5"))},bf19:function(t,e,n){"use strict";var i=n("23e7"),a=n("c65b");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},d49e:function(t,e){},dcb1:function(t,e,n){"use strict";n.r(e);var i=n("5f6a"),a=n("0b71");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("86bf");var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"bba67e20",null,!1,i["a"],void 0);e["default"]=s.exports},e137:function(t,e,n){var i=n("8fa3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("565c5503",i,!0,{sourceMap:!1,shadowMode:!1})},e193:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={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 n=setInterval((function(){e-=1,e<0&&clearInterval(n),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=i},e8d8:function(t,e){function n(t){for(var e={},n=t.split(","),i=n.length;i--;)e[n[i]]=!0;return e}t.exports={filter:null,highlight:null,onText:null,blankChar:n(" , ,\t,\r,\n,\f"),blockTags:n("address,article,aside,body,caption,center,cite,footer,header,html,nav,section,pre"),ignoreTags:n("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:n("a,colgroup,fieldset,legend,picture,table"),selfClosingTags:n("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:n("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:n("autoplay,controls,ignore,loop,muted"),trustTags:n("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,n){"use strict";var i=n("23e7"),a=n("d039"),r=n("7b0b"),o=n("c04e"),s=a((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));i({target:"Date",proto:!0,arity:1,forced:s},{toJSON:function(t){var e=r(this),n=o(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},f89e:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionSheet=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(n,i){uni.showActionSheet({itemList:t,itemColor:e,success:function(t){n(t.tapIndex)},fail:function(t){i(t.errMsg)}})}))},e.Authorize=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,n){uni.authorize({scope:t,success:function(t){e(t)},fail:function(t){n(t)}})}))},e.GetUserInfo=function(){return new Promise((function(t,e){uni.getUserInfo({success:function(e){t(e)},fail:function(t){e(t)}})}))},e.Loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,r.default)({title:t,mask:!0},e))},e.Modal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{showCancel:!0,cancelText:"取消",confirmText:"确定"};return new Promise((function(i,a){uni.showModal((0,r.default)((0,r.default)({},n),{},{title:t,content:e,success:function(t){t.confirm&&i(),t.cancel&&a()}}))}))},e.ScrollTo=function(t){uni.pageScrollTo({scrollTop:t,duration:300})},e.Toast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,a=(0,r.default)({title:t,duration:i,position:"center",mask:!0,icon:e||"none"},n);uni.showToast(a)},e.chooseImage=function(t){return new Promise((function(e,n){uni.chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){e(t)},fail:function(t){n(t)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(t){throw new Error("处理失败")}},e.convertObj=o,e.formatDate=s,e.getQuarterStartDate=function(){var t=new Date(l,function(){var t=0;u<3&&(t=0);28&&(t=9);return t}(),1);return s(t,"yyyy-MM-dd")},e.getStorage=function(t){var e=uni.getStorageSync(t);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(n){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(t){throw new Error("处理失败")}},e.navigateBack=function(t){uni.navigateBack({delta:t})},e.navigateTo=function(t,e,n){var i=e,a="navigateTo";switch(i=n?i+"?"+o(n):i,t){case 1:a="navigateTo";break;case 2:a="redirectTo";break;case 3:a="reLaunch";break;case 4:a="switchTab";break;default:a="navigateTo";break}uni[a]({url:i,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(t){return new Promise((function(e,n){if("object"===("undefined"===typeof window?"undefined":(0,a.default)(window))&&"document"in window){if("function"===typeof FileReader){var i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="blob",i.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},i.onerror=n,void i.send()}var r=document.createElement("canvas"),o=r.getContext("2d"),s=new Image;return s.onload=function(){r.width=s.width,r.height=s.height,o.drawImage(s,0,0),e(r.toDataURL()),r.height=r.width=0},s.onerror=n,void(s.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,a.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,a.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(t),(function(t){t.file((function(t){var i=new plus.io.FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t)},i.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))},e.removeStorage=function(t){t&&uni.removeStorageSync(t)},e.serialize=function(t){if(null!=t&&""!=t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t instanceof Array?[]:{}}return t},e.setStorage=function(t,e){if("string"==typeof e)return uni.setStorageSync(t,e),e;uni.setStorageSync(t,JSON.stringify(e))},e.showMonthFirstDay=function(){var t=(new Date).setDate(1);return s(new Date(t).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var t=new Date,e=t.getDay()||7;return t.setDate(t.getDate()-e+1),s(t,"yyyy-MM-dd")},e.throttle=function(t,e){var n,i;e=e||200;return function(){for(var a=this,r=arguments.length,o=new Array(r),s=0;s