shop-php/public/static/js/pages-users-login-login_copy.d5071646.js
2024-03-02 14:47:30 +08:00

1 line
55 KiB
JavaScript
Raw 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-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<n;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 n,i="",a=0;n=e[a];a++){if("/"==n&&"/"!=e[a-1]&&"/"!=e[a+1])break;i+=Math.random()>.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)+"</"+a.name+">":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="<style scoped>@keyframes show{0%{opacity:0}100%{opacity:1}}";for(var i in cfg.userAgentStyles)n+="".concat(i,"{").concat(cfg.userAgentStyles[i],"}");for(i in this.tagStyle)n+="".concat(i,"{").concat(this.tagStyle[i],"}");n+="</style>",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,f=0;u=l[d];d++){u.style.maxWidth="100%";var h=u.getAttribute("src");this.domain&&h&&("/"==h[0]?"/"==h[1]?u.src=(this.domain.includes("://")?this.domain.split("://")[0]:"")+":"+h:u.src=this.domain+h:h.includes("://")||(u.src=this.domain+"/"+h)),u.hasAttribute("ignore")||"A"==u.parentElement.nodeName||(u.i=f++,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._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,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,f=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},h={s:f,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+f(i,2,"0")+":"+f(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)},_=h;_.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 f=r.prototype;return f.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()},f.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()},f.$utils=function(){return _},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return w(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<w(t)},f.$g=function(t,e,n){return _.u(t)?this[e]:this.set(n,t)},f.year=function(t){return this.$g(t,"$y",u)},f.month=function(t){return this.$g(t,"$M",s)},f.day=function(t){return this.$g(t,"$W",a)},f.date=function(t){return this.$g(t,"$D","date")},f.hour=function(t){return this.$g(t,"$H",i)},f.minute=function(t){return this.$g(t,"$m",n)},f.second=function(t){return this.$g(t,"$s",e)},f.millisecond=function(e){return this.$g(e,"$ms",t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,r){var c=this,l=!!_.u(r)||r,d=_.p(t),f=function(t,e){var n=_.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return l?n:n.endOf(a)},h=function(t,e){return _.w(c.toDate()[t].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},p=this.$W,g=this.$M,v=this.$D,m="set"+(this.$u?"UTC":"");switch(d){case u:return l?f(1,0):f(31,11);case s:return l?f(1,g):f(0,g+1);case o:var b=this.$locale().weekStart||0,w=(p<b?p+7:p)-b;return f(l?v-w:v+(6-w),g);case a:case"date":return h(m+"Hours",0);case i:return h(m+"Minutes",1);case n:return h(m+"Seconds",2);case e:return h(m+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(r,o){var c,l=_.p(r),d="set"+(this.$u?"UTC":""),f=(c={},c[a]=d+"Date",c.date=d+"Date",c[s]=d+"Month",c[u]=d+"FullYear",c[i]=d+"Hours",c[n]=d+"Minutes",c[e]=d+"Seconds",c[t]=d+"Milliseconds",c)[l],h=l===a?this.$D+(o-this.$W):o;if(l===s||l===u){var p=this.clone().set("date",1);p.$d[f](h),p.init(),this.$d=p.set("date",Math.min(this.$D,p.daysInMonth())).toDate()}else f&&this.$d[f](h);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[_.p(t)]()},f.add=function(t,r){var c,l=this;t=Number(t);var d=_.p(r),f=function(e){var n=w(l);return _.w(n.date(n.date()+Math.round(e*t)),l)};if(d===s)return this.set(s,this.$M+t);if(d===u)return this.set(u,this.$y+t);if(d===a)return f(1);if(d===o)return f(7);var h=(c={},c[n]=6e4,c[i]=36e5,c[e]=1e3,c)[d]||1,p=this.$d.getTime()+t*h;return _.w(p,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),a=this.$locale(),r=this.$H,o=this.$m,s=this.$M,c=a.weekdays,u=a.months,l=function(t,i,a,r){return t&&(t[i]||t(e,n))||a[i].substr(0,r)},f=function(t){return _.s(r%12||12,t,"0")},h=a.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:_.s(s+1,2,"0"),MMM:l(a.monthsShort,s,u,3),MMMM:u[s]||u(this,n),D:this.$D,DD:_.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:_.s(r,2,"0"),h:f(1),hh:f(2),a:h(r,o,!0),A:h(r,o,!1),m:String(o),mm:_.s(o,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:i};return n.replace(d,(function(t,e){return e||p[t]||i.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,r,l){var d,f=_.p(r),h=w(t),p=6e4*(h.utcOffset()-this.utcOffset()),g=this-h,v=_.m(this,h);return v=(d={},d[u]=v/12,d[s]=v,d[c]=v/3,d[o]=(g-p)/6048e5,d[a]=(g-p)/864e5,d[i]=g/36e5,d[n]=g/6e4,d[e]=g/1e3,d)[f]||g,l?v:_.a(v)},f.daysInMonth=function(){return this.endOf(s).$D},f.$locale=function(){return v[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=b(t,e,!0);return i&&(n.$L=i),n},f.clone=function(){return _.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},r}();return w.prototype=y.prototype,w.extend=function(t,e){return t(e,y,w),w},w.locale=b,w.isDayjs=m,w.unix=function(t){return w(1e3*t)},w.en=v[g],w.Ls=v,w}))},"4f6a":function(t,e,n){var i=n("6810");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("d1c3b6a8",i,!0,{sourceMap:!1,shadowMode:!1})},67561:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[t.nodes.length?t._e():t._t("default"),n("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)}}},[n("div",{attrs:{id:"rtf"+t.uid}}),t._l(t.imgs,(function(e,i){return n("v-uni-image",{key:i,attrs:{id:i,src:e,hidden:!0},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t._load.apply(void 0,arguments)}}})}))],2)],2)},a=[]},6810:function(t,e,n){var i=n("24fb");e=i(!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-c0b38fb2]{background-color:#fff!important}body.?%PAGE?%[data-v-c0b38fb2]{background-color:#fff!important}[data-v-c0b38fb2] uni-checkbox .uni-checkbox-input{border-radius:100%}.ChangePassword .phone[data-v-c0b38fb2]{font-size:%?32?%;font-weight:700;text-align:center;margin-top:%?55?%}.ChangePassword .list[data-v-c0b38fb2]{width:%?580?%;margin:%?53?% auto 0 auto}.ChangePassword .list .item[data-v-c0b38fb2]{width:100%;height:%?110?%;border-bottom:%?2?% solid #f0f0f0}.ChangePassword .list .item uni-input[data-v-c0b38fb2]{width:100%;height:100%;font-size:%?32?%}.ChangePassword .list .item .placeholder[data-v-c0b38fb2]{color:#b9b9bc}.ChangePassword .list .item uni-input.codeIput[data-v-c0b38fb2]{width:%?240?%}.ChangePassword .list .item .code[data-v-c0b38fb2]{font-size:%?32?%;background-color:#fff;color:var(--view-theme)}.ChangePassword .list .item .code.on[data-v-c0b38fb2]{color:#b9b9bc}.ChangePassword .confirmBnt[data-v-c0b38fb2]{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-c0b38fb2]{background-color:#fff;border:1px solid var(--view-theme);color:var(--view-theme);margin-top:%?30?%}.getPhoneBtn[data-v-c0b38fb2]{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-c0b38fb2]{font-size:%?32?%;margin-right:%?12?%}.code uni-image[data-v-c0b38fb2]{width:100%;height:100%}.acea-row.row-middle uni-input[data-v-c0b38fb2]{margin-left:%?20?%}.settlementAgreement[data-v-c0b38fb2]{width:100%;height:100%;position:fixed;top:0;left:0;background:rgba(0,0,0,.5);z-index:10}.protocol_text[data-v-c0b38fb2]{color:#999;font-size:%?24?%}.settlementAgreement .setAgCount[data-v-c0b38fb2]{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-c0b38fb2]{height:%?900?%;overflow-y:scroll}.settlementAgreement .setAgCount .content[data-v-c0b38fb2] p{font-size:13px;line-height:22px}.settlementAgreement .setAgCount .content[data-v-c0b38fb2] img{max-width:100%}.settlementAgreement .setAgCount .icon[data-v-c0b38fb2]{font-size:%?42?%;color:#b4b1b4;position:absolute;top:%?15?%;right:%?15?%}.settlementAgreement .setAgCount .title[data-v-c0b38fb2]{color:#333;font-size:%?32?%;text-align:center;font-weight:700}.settlementAgreement .setAgCount .content[data-v-c0b38fb2]{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-c0b38fb2]{display:flex;justify-content:center;text-align:center;margin-top:%?30?%}.protocol_text .font_pro[data-v-c0b38fb2]{color:var(--view-theme)}.appLogin .hds[data-v-c0b38fb2]{display:flex;justify-content:center;align-items:center;font-size:%?24?%;color:#b4b4b4}.appLogin .hds .line[data-v-c0b38fb2]{width:%?68?%;height:%?1?%;background:#ccc}.appLogin .hds p[data-v-c0b38fb2]{margin:0 %?20?%}.appLogin .btn-wrapper[data-v-c0b38fb2]{display:flex;align-items:center;justify-content:center;margin-top:%?30?%}.appLogin .btn-wrapper .btn[data-v-c0b38fb2]{display:flex;align-items:center;justify-content:center;width:%?68?%;height:%?68?%;border-radius:50%}.appLogin .btn-wrapper .btn + .btn[data-v-c0b38fb2]{margin-left:%?30?%}.appLogin .btn-wrapper .apple-btn[data-v-c0b38fb2]{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-c0b38fb2]{color:#333;margin-right:%?10?%;font-size:%?34?%}.appLogin .btn-wrapper .iconfont[data-v-c0b38fb2]{font-size:%?40?%;color:#fff}.appLogin .btn-wrapper .wx[data-v-c0b38fb2]{background-color:#61c64f}.appLogin .btn-wrapper .wx.btn-apple[data-v-c0b38fb2]{margin-right:0;background-color:#333}.appLogin .btn-wrapper .mima[data-v-c0b38fb2]{background-color:#28b3e9}.appLogin .btn-wrapper .yanzheng[data-v-c0b38fb2]{background-color:#f89c23}.code img[data-v-c0b38fb2]{width:100%;height:100%}.acea-row.row-middle uni-input[data-v-c0b38fb2]{margin-left:%?20?%;display:block}.login-wrapper[data-v-c0b38fb2]{padding:%?30?%}.login-wrapper .shading[data-v-c0b38fb2]{display:flex;align-items:center;justify-content:center;width:100%;margin-top:%?200?%}.login-wrapper .shading uni-image[data-v-c0b38fb2]{width:%?180?%;height:%?180?%}.login-wrapper .whiteBg[data-v-c0b38fb2]{margin-top:%?100?%}.login-wrapper .whiteBg .list[data-v-c0b38fb2]{border-radius:%?16?%;overflow:hidden}.login-wrapper .whiteBg .list .item[data-v-c0b38fb2]{border-bottom:1px solid #f0f0f0;background:#fff}.login-wrapper .whiteBg .list .item .row-middle[data-v-c0b38fb2]{position:relative;padding:%?16?% %?45?%}.login-wrapper .whiteBg .list .item .row-middle uni-input[data-v-c0b38fb2]{flex:1;font-size:%?28?%;height:%?80?%}.login-wrapper .whiteBg .list .item .row-middle .code[data-v-c0b38fb2]{color:#e93323;font-size:%?26?%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.login-wrapper .whiteBg .logon[data-v-c0b38fb2]{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-c0b38fb2]{margin:%?30?%;text-align:center;color:#999}.copyright[data-v-c0b38fb2]{position:absolute;bottom:%?30?%;left:0;width:100%;text-align:center;font-size:%?20?%;line-height:%?28?%;color:#ccc}.copyright .cell[data-v-c0b38fb2]{font-size:%?20?%}',""]),t.exports=e},"7bc9":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={jyfParser:n("9b71").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{style:t.viewColor},[t.auth_token?t._e():i("div",{staticClass:"register absolute"},[i("div",{staticClass:"login"},[i("div",{staticClass:"shading"},[i("div",{staticClass:"pictrue acea-row row-center-wrapper",staticStyle:{"background-color":"transparent !important"}},[i("v-uni-image",{attrs:{src:n("2c90")}})],1)]),1===t.formItem?i("div",{staticClass:"whiteBg"},[i("div",{staticClass:"title acea-row row-center-wrapper"},t._l(t.navList,(function(e,n){return i("div",{key:n,staticClass:"item",class:t.current===n?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTap(n)}}},[t._v(t._s(e))])})),0),i("div",{staticClass:"list",attrs:{hidden:1!==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("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:"/static/images/phone_1.png"}}),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("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),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"}})],1)])]),i("div",{staticClass:"tip"},[i("span"),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:0!==t.current}},[i("div",{staticClass:"item"},[i("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:"/static/images/phone_1.png"}}),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("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),i("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"}}),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)]),t.isShowCode?i("div",{staticClass:"item"},[i("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),i("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"}}),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:"logon",attrs:{hidden:0!==t.current},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loginMobile.apply(void 0,arguments)}}},[t._v("登录")]),i("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("登录")]),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)]):i("div",{staticClass:"whiteBg"},[i("div",{staticClass:"title"},[t._v("注册账号")]),i("div",{staticClass:"list"},[i("div",{staticClass:"item"},[i("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:"/static/images/phone_1.png"}}),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("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),i("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"}}),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("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:"/static/images/code_1.png"}}),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("div",{staticClass:"acea-row row-middle"},[i("v-uni-image",{attrs:{src:"/static/images/code_2.png"}}),i("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"}}),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"},[i("div",[t._v("已有账号?"),i("span",{staticClass:"font-color-red",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.formItem=1}}},[t._v("去登录")])])]),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)])]),i("div",{staticClass:"bottom"}),t.showAgreement?i("v-uni-view",{staticClass:"settlementAgreement"},[i("v-uni-view",{staticClass:"setAgCount"},[i("i",{staticClass:"icon iconfont icon-cha",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showAgreement=!1}}}),i("div",{staticClass:"title"},[t._v("用户协议与隐私政策")]),i("v-uni-view",{staticClass:"content"},[i("jyf-parser",{ref:"article",attrs:{html:t.agreement,"tag-style":t.tagStyle}})],1)],1)],1):t._e()],1),t.auth_token?i("v-uni-form",{attrs:{"report-submit":"true"}},[i("v-uni-view",{staticClass:"ChangePassword"},[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 acea-row row-between-wrapper"},[i("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"}}),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 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("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("确认绑定")]),i("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(),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)},r=[]},"8fa3":function(t,e,n){var i=n("24fb");e=i(!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},"9b71":function(t,e,n){"use strict";n.r(e);var i=n("67561"),a=n("b5cd");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("4ba7");var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"6dfbdbd8",null,!1,i["a"],void 0);e["default"]=s.exports},b0e3:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default,a=n("dbce").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("c975"),n("a9e3"),n("caad"),n("ac1f"),n("00b4");var r,o=i(n("c7eb")),s=i(n("1da1")),c=i(n("ade3")),u=(i(n("4bdd")),i(n("e193"))),l=n("33b4"),d=(a(n("366b")),n("d49e"),n("cc48")),f=n("5315"),h=i(n("9b71")),p=n("cc48"),g=n("26cb"),v=i(n("4b41")),m=(n("f89e"),"login_back_url"),b={name:"Login",mixins:[u.default],components:{"jyf-parser":h.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,f.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,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(m)||"/pages/index/index";e.$Cache.clear(m),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(m)||"/pages/index/index";e.$Cache.clear(m),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(m)||"/pages/index/index";if(n.$Cache.clear(m),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)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){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";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(m)||"/pages/index/index";if(n.$Cache.clear(m),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)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){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)}})},cc59:function(t,e,n){"use strict";var i=n("4f6a"),a=n.n(i);a.a},d49e:function(t,e){},dcb1:function(t,e,n){"use strict";n.r(e);var i=n("7bc9"),a=n("0b71");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("cc59");var o=n("f0c5"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"c0b38fb2",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);2<u&&u<6&&(t=3);5<u&&u<9&&(t=6);u>8&&(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<r;s++)o[s]=arguments[s];n=o,i||(i=setTimeout((function(){i=null,t.apply(a,n)}),e))}},e.unique=function(t){t=t||[];for(var e={},n=0;n<t.length;n++){var i=JSON.stringify(t[n]);"undefined"==typeof i&&(e[i]=1)}for(var n in t.length=0,e)t[t.length]=n;return t};var a=i(n("53ca")),r=i(n("5530"));function o(t){var e,n=[];return Object.keys(t).forEach((function(e){n.push("".concat(e,"=").concat(t[e]))})),e=n.join("&"),e}function s(t,e){return t?(e=e||"yyyy-MM-dd hh:mm:ss",new Date(t).format(e)):""}n("e9c4"),n("d9e2"),n("d401"),n("d3b7"),n("159b"),n("b64b"),n("14d9"),n("99af"),n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0"),Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,String(this.getFullYear()).substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr(String(e[n]).length)));return t};var c=new Date,u=c.getMonth(),l=c.getYear();l+=l<2e3?1900:0}}]);