text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-auth-login"],{"0535":function(t,e,n){"use strict";function i(t,e,n){this.$children.map((function(o){t===o.$options.name?o.$emit.apply(o,[e].concat(n)):i.apply(o,[t,e].concat(n))}))}n("99af"),n("d81d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={methods:{dispatch:function(t,e,n){var i=this.$parent||this.$root,o=i.$options.name;while(i&&(!o||o!==t))i=i.$parent,i&&(o=i.$options.name);i&&i.$emit.apply(i,[e].concat(n))},broadcast:function(t,e,n){i.call(this,t,e,n)}}};e.default=o},"077d":function(t,e,n){"use strict";n.r(e);var i=n("c3810"),o=n("445f");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("3db7");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"c466d966",null,!1,i["a"],r);e["default"]=c.exports},"0956":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uIcon:n("7c02").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-toast",class:[t.isShow?"u-show":"","u-type-"+t.tmpConfig.type,"u-position-"+t.tmpConfig.position],style:{zIndex:t.uZIndex}},[n("v-uni-view",{staticClass:"u-icon-wrap"},[t.tmpConfig.icon?n("u-icon",{staticClass:"u-icon",attrs:{name:t.iconName,size:30,color:t.tmpConfig.type}}):t._e()],1),n("v-uni-text",{staticClass:"u-text"},[t._v(t._s(t.tmpConfig.title))])],1)},a=[]},"0e4e":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.u-btn[data-v-5c660135]::after{border:none}.u-btn[data-v-5c660135]{position:relative;border:0;display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;overflow:visible;line-height:1;\r\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\r\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;cursor:pointer;padding:0 %?40?%;z-index:1;box-sizing:border-box;-webkit-transition:all .15s;transition:all .15s}.u-btn--bold-border[data-v-5c660135]{border:1px solid #fff}.u-btn--default[data-v-5c660135]{color:#606266;border-color:#c0c4cc;background-color:#fff}.u-btn--primary[data-v-5c660135]{color:#fff;border-color:#2979ff;background-color:#2979ff}.u-btn--success[data-v-5c660135]{color:#fff;border-color:#19be6b;background-color:#19be6b}.u-btn--error[data-v-5c660135]{color:#fff;border-color:#fa3534;background-color:#fa3534}.u-btn--warning[data-v-5c660135]{color:#fff;border-color:#f90;background-color:#f90}.u-btn--default--disabled[data-v-5c660135]{color:#fff;border-color:#e4e7ed;background-color:#fff}.u-btn--primary--disabled[data-v-5c660135]{color:#fff!important;border-color:#a0cfff!important;background-color:#a0cfff!important}.u-btn--success--disabled[data-v-5c660135]{color:#fff!important;border-color:#71d5a1!important;background-color:#71d5a1!important}.u-btn--error--disabled[data-v-5c660135]{color:#fff!important;border-color:#fab6b6!important;background-color:#fab6b6!important}.u-btn--warning--disabled[data-v-5c660135]{color:#fff!important;border-color:#fcbd71!important;background-color:#fcbd71!important}.u-btn--primary--plain[data-v-5c660135]{color:#2979ff!important;border-color:#a0cfff!important;background-color:#ecf5ff!important}.u-btn--success--plain[data-v-5c660135]{color:#19be6b!important;border-color:#71d5a1!important;background-color:#dbf1e1!important}.u-btn--error--plain[data-v-5c660135]{color:#fa3534!important;border-color:#fab6b6!important;background-color:#fef0f0!important}.u-btn--warning--plain[data-v-5c660135]{color:#f90!important;border-color:#fcbd71!important;background-color:#fdf6ec!important}.u-hairline-border[data-v-5c660135]:after{content:" ";position:absolute;pointer-events:none;box-sizing:border-box;-webkit-transform-origin:0 0;transform-origin:0 0;left:0;top:0;width:199.8%;height:199.7%;-webkit-transform:scale(.5);transform:scale(.5);border:1px solid currentColor;z-index:1}.u-wave-ripple[data-v-5c660135]{z-index:0;position:absolute;border-radius:100%;background-clip:padding-box;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1;-webkit-transform-origin:center;transform-origin:center}.u-wave-ripple.u-wave-active[data-v-5c660135]{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1s linear,-webkit-transform .4s linear;transition:opacity 1s linear,-webkit-transform .4s linear;transition:opacity 1s linear,transform .4s linear;transition:opacity 1s linear,transform .4s linear,-webkit-transform .4s linear}.u-round-circle[data-v-5c660135]{border-radius:%?100?%}.u-round-circle[data-v-5c660135]::after{border-radius:%?100?%}.u-loading[data-v-5c660135]::after{background-color:hsla(0,0%,100%,.35)}.u-size-default[data-v-5c660135]{font-size:%?30?%;height:%?80?%;line-height:%?80?%}.u-size-medium[data-v-5c660135]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;width:auto;font-size:%?26?%;height:%?70?%;line-height:%?70?%;padding:0 %?80?%}.u-size-mini[data-v-5c660135]{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;width:auto;font-size:%?22?%;padding-top:1px;height:%?50?%;line-height:%?50?%;padding:0 %?20?%}.u-primary-plain-hover[data-v-5c660135]{color:#fff!important;background:#2b85e4!important}.u-default-plain-hover[data-v-5c660135]{color:#2b85e4!important;background:#ecf5ff!important}.u-success-plain-hover[data-v-5c660135]{color:#fff!important;background:#18b566!important}.u-warning-plain-hover[data-v-5c660135]{color:#fff!important;background:#f29100!important}.u-error-plain-hover[data-v-5c660135]{color:#fff!important;background:#dd6161!important}.u-info-plain-hover[data-v-5c660135]{color:#fff!important;background:#82848a!important}.u-default-hover[data-v-5c660135]{color:#2b85e4!important;border-color:#2b85e4!important;background-color:#ecf5ff!important}.u-primary-hover[data-v-5c660135]{background:#2b85e4!important;color:#fff}.u-success-hover[data-v-5c660135]{background:#18b566!important;color:#fff}.u-info-hover[data-v-5c660135]{background:#82848a!important;color:#fff}.u-warning-hover[data-v-5c660135]{background:#f29100!important;color:#fff}.u-error-hover[data-v-5c660135]{background:#dd6161!important;color:#fff}',""]),t.exports=e},"10d9":function(t,e,n){"use strict";var i=n("4ea4");n("a9e3"),n("498a"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("0535")),a={name:"u-input",mixins:[o.default],props:{value:{type:[String,Number],default:""},type:{type:String,default:"text"},inputAlign:{type:String,default:"left"},placeholder:{type:String,default:"请输入内容"},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},placeholderStyle:{type:String,default:"color: #c0c4cc;"},confirmType:{type:String,default:"done"},customStyle:{type:Object,default:function(){return{}}},fixed:{type:Boolean,default:!1},focus:{type:Boolean,default:!1},passwordIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#dcdfe6"},autoHeight:{type:Boolean,default:!0},selectOpen:{type:Boolean,default:!1},height:{type:[Number,String],default:""},clearable:{type:Boolean,default:!0},cursorSpacing:{type:[Number,String],default:0},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},trim:{type:Boolean,default:!0},showConfirmbar:{type:Boolean,default:!0}},data:function(){return{defaultValue:this.value,inputHeight:70,textareaHeight:100,validateState:!1,focused:!1,showPassword:!1,lastValue:""}},watch:{value:function(t,e){this.defaultValue=t,t!=e&&"select"==this.type&&this.handleInput({detail:{value:t}})}},computed:{inputMaxlength:function(){return Number(this.maxlength)},getStyle:function(){var t={};return t.minHeight=this.height?this.height+"rpx":"textarea"==this.type?this.textareaHeight+"rpx":this.inputHeight+"rpx",t=Object.assign(t,this.customStyle),t},getCursorSpacing:function(){return Number(this.cursorSpacing)},uSelectionStart:function(){return String(this.selectionStart)},uSelectionEnd:function(){return String(this.selectionEnd)}},created:function(){this.$on("on-form-item-error",this.onFormItemError)},methods:{handleInput:function(t){var e=this,n=t.detail.value;this.trim&&(n=this.$u.trim(n)),this.$emit("input",n),this.defaultValue=n,setTimeout((function(){e.dispatch("u-form-item","on-form-change",n)}),40)},handleBlur:function(t){var e=this;setTimeout((function(){e.focused=!1}),100),this.$emit("blur",t.detail.value),setTimeout((function(){e.dispatch("u-form-item","on-form-blur",t.detail.value)}),40)},onFormItemError:function(t){this.validateState=t},onFocus:function(t){this.focused=!0,this.$emit("focus")},onConfirm:function(t){this.$emit("confirm",t.detail.value)},onClear:function(t){this.$emit("input","")},inputClick:function(){this.$emit("click")}}};e.default=a},1451:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"musicHead",data:function(){return{}},props:["title","isShow","color","iconblack"],methods:{handleToBack:function(){uni.navigateBack()},handleToHome:function(){uni.switchTab({url:"/pages/index/index"})}}};e.default=i},"17ca":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.login .login-img[data-v-596e4c3e]{width:100%;height:%?450?%}.login .login-img uni-image[data-v-596e4c3e]{width:100%;height:100%}.login .login-active[data-v-596e4c3e]{box-shadow:%?5?% %?5?% %?8?% rgba(0,0,0,.4);height:%?100?%;width:80%;margin:0 auto;border-radius:%?50?%;background:#fff;position:relative;top:%?-40?%;display:-webkit-box;display:-webkit-flex;display:flex;line-height:%?100?%;text-align:center}.login .login-active uni-view[data-v-596e4c3e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?32?%;font-weight:600;color:#9f9f9f;height:100%;border-radius:%?45?%}.login .login-active .active[data-v-596e4c3e]{background:#dc2c1f;color:#fff}.login .login-login[data-v-596e4c3e]{margin:0 %?60?%}.login .login-login .login-login-item[data-v-596e4c3e]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?30?% 0;border-bottom:%?1?% solid #ccc}.login .login-login .login-login-item .login-login-item-input[data-v-596e4c3e]{font-size:%?28?%}.login .login-login .login-login-item uni-text[data-v-596e4c3e]{text-align:center;font-size:%?28?%;line-height:%?60?%;color:#dc2c1f}.login .login-login .login-login-item .view-btn[data-v-596e4c3e]{background:#dc2c1f;color:#fff;border-radius:%?40?%}.login .login-login .code[data-v-596e4c3e]{margin:%?20?% 0;font-size:%?30?%;font-weight:600;color:#9f9f9f}.login .login-login .login-login-btn[data-v-596e4c3e]{background:#dc2c1f;color:#fff;margin-top:%?30?%;border-radius:%?40?%;height:%?100?%;text-align:center;font-size:%?34?%}',""]),t.exports=e},"20ed":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.u-code-wrap[data-v-7412e1a8]{width:0;height:0;position:fixed;z-index:-1}',""]),t.exports=e},2541:function(t,e,n){"use strict";n.r(e);var i=n("fff4"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"2748c":function(t,e,n){"use strict";n.r(e);var i=n("10d9"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},2886:function(t,e,n){var i=n("20ed");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("7f184a3d",i,!0,{sourceMap:!1,shadowMode:!1})},"295d":function(t,e,n){"use strict";var i=n("7e19"),o=n.n(i);o.a},"34cf":function(t,e,n){"use strict";n.r(e);var i=n("4dbf"),o=n("2748c");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("8d2e");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"5c361d36",null,!1,i["a"],r);e["default"]=c.exports},"3db7":function(t,e,n){"use strict";var i=n("48ef"),o=n.n(i);o.a},4335:function(t,e,n){"use strict";var i=n("fb92"),o=n.n(i);o.a},"445f":function(t,e,n){"use strict";n.r(e);var i=n("1451"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"48ef":function(t,e,n){var i=n("9602");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("282eb7c8",i,!0,{sourceMap:!1,shadowMode:!1})},"49be":function(t,e,n){"use strict";n("c975"),n("a9e3"),n("b64b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-toast",props:{zIndex:{type:[Number,String],default:""}},data:function(){return{isShow:!1,timer:null,config:{params:{},title:"",type:"",duration:2e3,isTab:!1,url:"",icon:!0,position:"center",callback:null,back:!1},tmpConfig:{}}},computed:{iconName:function(){if(["error","warning","success","info"].indexOf(this.tmpConfig.type)>=0&&this.tmpConfig.icon){var t=this.$u.type2icon(this.tmpConfig.type);return t}},uZIndex:function(){return this.isShow?this.zIndex?this.zIndex:this.$u.zIndex.toast:"999999"}},methods:{show:function(t){var e=this;this.tmpConfig=this.$u.deepMerge(this.config,t),this.timer&&(clearTimeout(this.timer),this.timer=null),this.isShow=!0,this.timer=setTimeout((function(){e.isShow=!1,clearTimeout(e.timer),e.timer=null,"function"===typeof e.tmpConfig.callback&&e.tmpConfig.callback(),e.timeEnd()}),this.tmpConfig.duration)},hide:function(){this.isShow=!1,this.timer&&(clearTimeout(this.timer),this.timer=null)},timeEnd:function(){if(this.tmpConfig.url){if("/"!=this.tmpConfig.url[0]&&(this.tmpConfig.url="/"+this.tmpConfig.url),Object.keys(this.tmpConfig.params).length){var t="";/.*\/.*\?.*=.*/.test(this.tmpConfig.url)?(t=this.$u.queryParams(this.tmpConfig.params,!1),this.tmpConfig.url=this.tmpConfig.url+"&"+t):(t=this.$u.queryParams(this.tmpConfig.params),this.tmpConfig.url+=t)}this.tmpConfig.isTab?uni.switchTab({url:this.tmpConfig.url}):uni.navigateTo({url:this.tmpConfig.url})}else this.tmpConfig.back&&this.$u.route({type:"back"})}}};e.default=i},"4dbf":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uIcon:n("7c02").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-input",class:{"u-input--border":t.border,"u-input--error":t.validateState},style:{padding:"0 "+(t.border?20:0)+"rpx",borderColor:t.borderColor,textAlign:t.inputAlign},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.inputClick.apply(void 0,arguments)}}},["textarea"==t.type?n("v-uni-textarea",{staticClass:"u-input__input u-input__textarea",style:[t.getStyle],attrs:{value:t.defaultValue,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled,maxlength:t.inputMaxlength,fixed:t.fixed,focus:t.focus,autoHeight:t.autoHeight,"selection-end":t.uSelectionEnd,"selection-start":t.uSelectionStart,"cursor-spacing":t.getCursorSpacing,"show-confirm-bar":t.showConfirmbar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}):n("v-uni-input",{staticClass:"u-input__input",style:[t.getStyle],attrs:{type:"password"==t.type?"text":t.type,value:t.defaultValue,password:"password"==t.type&&!t.showPassword,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.inputMaxlength,focus:t.focus,confirmType:t.confirmType,"cursor-spacing":t.getCursorSpacing,"selection-end":t.uSelectionEnd,"selection-start":t.uSelectionStart,"show-confirm-bar":t.showConfirmbar},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"u-input__right-icon u-flex"},[t.clearable&&""!=t.value&&t.focused?n("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClear.apply(void 0,arguments)}}},[n("u-icon",{attrs:{size:"32",name:"close-circle-fill",color:"#c0c4cc"}})],1):t._e(),t.passwordIcon&&"password"==t.type?n("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item"},[n("u-icon",{attrs:{size:"32",name:t.showPassword?"eye-fill":"eye",color:"#c0c4cc"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPassword=!t.showPassword}}})],1):t._e(),"select"==t.type?n("v-uni-view",{staticClass:"u-input__right-icon--select u-input__right-icon__item",class:{"u-input__right-icon--select--reverse":t.selectOpen}},[n("u-icon",{attrs:{name:"arrow-down-fill",size:"26",color:"#c0c4cc"}})],1):t._e()],1)],1)},a=[]},"4f7e":function(t,e,n){t.exports=n.p+"static/img/1.3a7001e4.png"},"60b1":function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var o=i(n("1da1")),a={data:function(){return{counter:1,phone:"",password:"",Code:"",textShow:!1,passwordShow:!1,phoneLogin:"",passwordLogin:"",names:"",tips:"",seconds:60,phoneShow:!1,passShow:!1,phoneLoginShow:!1,codenum:1,CodePass:1,CodeLogin:""}},onLoad:function(){},methods:{Login:function(){this.counter=1},register:function(){this.counter=2},Totext:function(t){var e=this;return(0,o.default)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.phone){n.next=10;break}if(e.$u.test.mobile(t)){n.next=5;break}e.textShow=!0,n.next=10;break;case 5:if(!e.$u.test.mobile(t)){n.next=10;break}return n.next=8,e.$u.api.CheckPhone(t);case 8:i=n.sent,e.phoneShow=i.data.hasPassword;case 10:case"end":return n.stop()}}),n)})))()},Topass:function(t){if(this.password){var e=/^[a-zA-Z]\w{5,17}$/g;e.test(t)||(this.passShow=!0)}},passFocus:function(){this.passShow=!1},ToFocus:function(){this.textShow=!1,this.phoneShow=!1},codeChange:function(t){this.tips=t},getCode:function(t,e){var n=this;return(0,o.default)(regeneratorRuntime.mark((function i(){var o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!n.$u.test.mobile(t)){i.next=29;break}return i.next=3,n.$u.api.CheckPhone(t);case 3:if(o=i.sent,o.data.hasPassword){i.next=15;break}if(!n.$refs.uCode.canGetCode){i.next=12;break}return uni.showLoading({title:"正在获取验证码"}),i.next=9,n.$u.api.SentPhone(t);case 9:setTimeout((function(){uni.hideLoading(),n.$u.toast("验证码已发送"),n.$refs.uCode.start()}),1e3),i.next=13;break;case 12:n.$u.toast(n.tips+"后再发送");case 13:i.next=27;break;case 15:if(1!=e){i.next=26;break}if(!n.$refs.uCode.canGetCode){i.next=23;break}return uni.showLoading({title:"正在获取验证码"}),i.next=20,n.$u.api.SentPhone(t);case 20:setTimeout((function(){uni.hideLoading(),n.$u.toast("验证码已发送"),n.$refs.uCode.start()}),1e3),i.next=24;break;case 23:n.$u.toast(n.tips+"后再发送");case 24:i.next=27;break;case 26:2==e&&(n.phoneShow=o.data.hasPassword);case 27:i.next=30;break;case 29:n.$u.toast("请检查手机号是否正确");case 30:case"end":return i.stop()}}),i)})))()},RegisterClick:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.names&&t.phone&&t.password&&t.Code)){e.next=7;break}return e.next=3,t.$u.api.CellphonePhone(t.phone,t.password,t.Code,t.names);case 3:n=e.sent,503==n.data.code&&t.$u.toast(n.data.message),e.next=8;break;case 7:t.$u.toast("请检查是否正确");case 8:case"end":return e.stop()}}),e)})))()},Tocode:function(){this.codenum=2,this.CodePass=2},TopassClick:function(){this.codenum=1,this.CodePass=1},loginClick:function(){var t=this;return(0,o.default)(regeneratorRuntime.mark((function e(){var n,i,o,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$u.test.mobile(t.phoneLogin)||!t.passwordLogin){e.next=12;break}return e.next=3,t.$u.api.CellphonePhone(t.phoneLogin,t.passwordLogin);case 3:n=e.sent,t.$u.vuex("vuex_token",n.data.cookie),t.$u.vuex("vuex_userId",n.data.account.id),t.$u.vuex("vuex_user",n.data),t.$u.toast("登入成功！即将跳转"),i=uni.getStorageSync("back_url")||"pages/index/index",setTimeout((function(){t.$u.route({type:"reLaunch",url:i})}),1500),e.next=27;break;case 12:if(!t.$u.test.mobile(t.phoneLogin)||!t.CodeLogin){e.next=26;break}return e.next=15,t.$u.api.CellphonePhoneCaptcha(t.phoneLogin,t.CodeLogin);case 15:if(o=e.sent,200==o.data.code){e.next=19;break}return t.$u.toast(o.data.message),e.abrupt("return");case 19:t.$u.vuex("vuex_token",o.data.cookie),t.$u.vuex("vuex_user",o.data),t.$u.toast("登入成功！即将跳转"),a=uni.getStorageSync("back_url")||"pages/index/index",setTimeout((function(){t.$u.route({type:"reLaunch",url:a})}),1500),e.next=27;break;case 26:t.$u.toast("请检查账号密码是否正确");case 27:case"end":return e.stop()}}),e)})))()}}};e.default=a},"66c2":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-button",{staticClass:"u-btn u-line-1 u-fix-ios-appearance",class:["u-size-"+t.size,t.plain?"u-btn--"+t.type+"--plain":"",t.loading?"u-loading":"","circle"==t.shape?"u-round-circle":"",t.hairLine?t.showHairLineBorder:"u-btn--bold-border","u-btn--"+t.type,t.disabled?"u-btn--"+t.type+"--disabled":""],style:[t.customStyle,{overflow:t.ripple?"hidden":"visible"}],attrs:{id:"u-wave-btn","hover-start-time":Number(t.hoverStartTime),"hover-stay-time":Number(t.hoverStayTime),disabled:t.disabled,"form-type":t.formType,"open-type":t.openType,"app-parameter":t.appParameter,"hover-stop-propagation":t.hoverStopPropagation,"send-message-title":t.sendMessageTitle,"send-message-path":"sendMessagePath",lang:t.lang,"data-name":t.dataName,"session-from":t.sessionFrom,"send-message-img":t.sendMessageImg,"show-message-card":t.showMessageCard,"hover-class":t.getHoverClass,loading:t.loading},on:{getphonenumber:function(e){arguments[0]=e=t.$handleEvent(e),t.getphonenumber.apply(void 0,arguments)},getuserinfo:function(e){arguments[0]=e=t.$handleEvent(e),t.getuserinfo.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.error.apply(void 0,arguments)},opensetting:function(e){arguments[0]=e=t.$handleEvent(e),t.opensetting.apply(void 0,arguments)},launchapp:function(e){arguments[0]=e=t.$handleEvent(e),t.launchapp.apply(void 0,arguments)},click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.click(e)}}},[t._t("default"),t.ripple?n("v-uni-view",{staticClass:"u-wave-ripple",class:[t.waveActive?"u-wave-active":""],style:{top:t.rippleTop+"px",left:t.rippleLeft+"px",width:t.fields.targetWidth+"px",height:t.fields.targetWidth+"px","background-color":t.rippleBgColor||"rgba(0, 0, 0, 0.15)"}}):t._e()],2)},a=[]},"6b51":function(t,e,n){"use strict";var i=n("2886"),o=n.n(i);o.a},"78a3":function(t,e,n){"use strict";var i=n("af76"),o=n.n(i);o.a},7960:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.u-input[data-v-5c361d36]{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;\r\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row\n}.u-input__input[data-v-5c361d36]{font-size:%?28?%;color:#303133;-webkit-box-flex:1;-webkit-flex:1;flex:1}.u-input__textarea[data-v-5c361d36]{width:auto;font-size:%?28?%;color:#303133;padding:%?10?% 0;line-height:normal;-webkit-box-flex:1;-webkit-flex:1;flex:1}.u-input--border[data-v-5c361d36]{border-radius:%?6?%;border-radius:4px;border:1px solid #dcdfe6}.u-input--error[data-v-5c361d36]{border-color:#fa3534!important}.u-input__right-icon__item[data-v-5c361d36]{margin-left:%?10?%}.u-input__right-icon--select[data-v-5c361d36]{-webkit-transition:-webkit-transform .4s;transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.u-input__right-icon--select--reverse[data-v-5c361d36]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),t.exports=e},"7bd6":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={musicHead:n("077d").default,uIcon:n("7c02").default,uInput:n("34cf").default,uToast:n("f4dc").default,uVerificationCode:n("e60d").default,uButton:n("cf48").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"login"},[i("musicHead",{attrs:{title:"登录/注册",isShow:!0,color:"black"}}),i("v-uni-view",{staticClass:"login-img"},[i("v-uni-image",{attrs:{src:n("4f7e"),mode:""}})],1),i("v-uni-view",{staticClass:"login-active"},[i("v-uni-view",{class:{active:1==t.counter},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.Login.apply(void 0,arguments)}}},[t._v("账号登入")]),i("v-uni-view",{class:{active:2==t.counter},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.register.apply(void 0,arguments)}}},[t._v("账号注册")])],1),1==t.counter?[i("v-uni-view",{staticClass:"login-login"},[i("v-uni-view",{staticClass:"login-login-item"},[i("u-icon",{staticClass:"u-m-r-20",attrs:{name:"phone",color:"#9f9f9f",size:"32"}}),i("u-input",{attrs:{type:"text",height:"60",placeholder:"请输入您的手机号"},model:{value:t.phoneLogin,callback:function(e){t.phoneLogin=e},expression:"phoneLogin"}}),t.phoneLoginShow?i("v-uni-text",[t._v("手机号格式错误")]):t._e()],1),1==t.codenum?i("v-uni-view",{staticClass:"login-login-item"},[i("u-icon",{staticClass:"u-m-r-20",attrs:{name:"lock",color:"#9f9f9f",size:"32"}}),i("u-input",{attrs:{type:"password",height:"60","password-icon":!0,placeholder:"请输入您的密码"},model:{value:t.passwordLogin,callback:function(e){t.passwordLogin=e},expression:"passwordLogin"}})],1):t._e(),2==t.codenum?i("v-uni-view",{staticClass:"login-login-item"},[i("u-icon",{staticClass:"u-m-r-20",attrs:{name:"more-circle",color:"#9f9f9f",size:"32"}}),i("u-input",{attrs:{type:"text",height:"60",placeholder:"请输入4位的验证码"},model:{value:t.CodeLogin,callback:function(e){t.CodeLogin=e},expression:"CodeLogin"}}),i("v-uni-view",[i("u-toast",{ref:"uToast"}),i("u-verification-code",{ref:"uCode",attrs:{seconds:t.seconds},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.codeChange.apply(void 0,arguments)}}}),i("u-button",{staticClass:"view-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getCode(t.phoneLogin,1)}}},[t._v(t._s(t.tips))])],1)],1):t._e(),1==t.CodePass?i("v-uni-view",{staticClass:"code",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.Tocode.apply(void 0,arguments)}}},[t._v("验证码登入?")]):t._e(),2==t.CodePass?i("v-uni-view",{staticClass:"code",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.TopassClick.apply(void 0,arguments)}}},[t._v("密码登入?")]):t._e(),i("u-button",{staticClass:"login-login-btn",attrs:{type:"error"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.loginClick.apply(void 0,arguments)}}},[t._v("登入")])],1)]:t._e(),2==t.counter?[i("v-uni-view",{staticClass:"login-login"},[i("v-uni-view",{staticClass:"login-login-item"},[i("u-icon",{staticClass:"u-m-r-20",attrs:{name:"man-add",color:"#9f9f9f",size:"32"}}),i("u-input",{attrs:{type:"text",height:"60",placeholder:"请输入您的昵称"},model:{value:t.names,callback:function(e){t.names=e},expression:"names"}})],1),i("v-uni-view",{staticClass:"login-login-item"},[i("u-icon",{staticClass:"u-m-r-20",attrs:{name:"phone",color:"#9f9f9f",size:"32"}}),i("u-input",{attrs:{type:"text",height:"60",placeholder:"请输入您的手机号"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.Totext.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.ToFocus.apply(void 0,arguments)}},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}}),t.textShow?i("v-uni-text",[t._v("手机号格式错误")]):t._e(),t.phoneShow?i("v-uni-text",[t._v("手机号已被注册")]):t._e()],1),i("v-uni-view",{staticClass:"login-login-item"},[i("u-icon",{staticClass:"u-m-r-20",attrs:{name:"lock",color:"#9f9f9f",size:"32"}}),i("u-input",{attrs:{type:"password",height:"60","password-icon":!0,placeholder:"请输入您的密码"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.Topass.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.passFocus.apply(void 0,arguments)}},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),t.passShow?i("v-uni-text",[t._v("以字母开头，长度在6~18之间")]):t._e()],1),i("v-uni-view",{staticClass:"login-login-item"},[i("u-icon",{staticClass:"u-m-r-20",attrs:{name:"more-circle",color:"#9f9f9f",size:"32"}}),i("u-input",{attrs:{type:"text",height:"60",placeholder:"请输入4位的验证码"},model:{value:t.Code,callback:function(e){t.Code=e},expression:"Code"}}),i("v-uni-view",[i("u-toast",{ref:"uToast"}),i("u-verification-code",{ref:"uCode",attrs:{seconds:t.seconds},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.codeChange.apply(void 0,arguments)}}}),i("u-button",{staticClass:"view-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getCode(t.phone,2)}}},[t._v(t._s(t.tips))])],1)],1),i("u-button",{staticClass:"login-login-btn",attrs:{type:"error"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.RegisterClick.apply(void 0,arguments)}}},[t._v("注册")])],1)]:t._e()],2)},a=[]},"7e19":function(t,e,n){var i=n("17ca");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("5445c07d",i,!0,{sourceMap:!1,shadowMode:!1})},"86dc":function(t,e,n){var i=n("7960");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("09b0b2e4",i,!0,{sourceMap:!1,shadowMode:!1})},"87c5":function(t,e,n){"use strict";n("a9e3"),n("ac1f"),n("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-verification-code",props:{seconds:{type:[String,Number],default:60},startText:{type:String,default:"获取验证码"},changeText:{type:String,default:"X秒重新获取"},endText:{type:String,default:"重新获取"},keepRunning:{type:Boolean,default:!1},uniqueKey:{type:String,default:""}},data:function(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted:function(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler:function(t){this.secNum=t}}},methods:{checkKeepRunning:function(){var t=Number(uni.getStorageSync(this.uniqueKey+"_$uCountDownTimestamp"));if(!t)return this.changeEvent(this.startText);var e=Math.floor(+new Date/1e3);this.keepRunning&&t&&t>e?(this.secNum=t-e,uni.removeStorageSync(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start:function(){var t=this;this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.setTimeToStorage(),this.timer=setInterval((function(){--t.secNum?t.changeEvent(t.changeText.replace(/x|X/,t.secNum)):(clearInterval(t.timer),t.timer=null,t.changeEvent(t.endText),t.secNum=t.seconds,t.$emit("end"),t.canGetCode=!0)}),1e3)},reset:function(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent:function(t){this.$emit("change",t)},setTimeToStorage:function(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){var t=Math.floor(+new Date/1e3);uni.setStorage({key:this.uniqueKey+"_$uCountDownTimestamp",data:t+Number(this.secNum)})}}},beforeDestroy:function(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}};e.default=i},"8d2e":function(t,e,n){"use strict";var i=n("86dc"),o=n.n(i);o.a},9602:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.music-head[data-v-c466d966]{width:100%;height:75px;font-size:16px;line-height:80px;text-align:center;color:block;position:relative}.music-head .music-head-icon[data-v-c466d966]{position:absolute;left:8px;top:26px;width:90px;height:30px;background:rgba(0,0,0,.4);color:#fff;line-height:30px;border-radius:15px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:space-evenly;-webkit-justify-content:space-evenly;justify-content:space-evenly}.music-head .music-head-iconblack[data-v-c466d966]{color:#000;border:1px #eaeaea solid;background:#fff}',""]),t.exports=e},"9bd2":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-code-wrap"})},a=[]},a1ed:function(t,e,n){"use strict";n.r(e);var i=n("60b1"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},af76:function(t,e,n){var i=n("0e4e");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("61b72a90",i,!0,{sourceMap:!1,shadowMode:!1})},c3810:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"music-head",style:{color:t.color}},[t.isShow?n("v-uni-view",{staticClass:"music-head-icon",class:{"music-head-iconblack":t.iconblack}},[n("v-uni-text",{staticClass:"iconfont icon-arrow_left_fat",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleToBack.apply(void 0,arguments)}}}),t._v("|"),n("v-uni-text",{staticClass:"iconfont icon-shouye",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleToHome.apply(void 0,arguments)}}})],1):t._e(),t._v(t._s(t.title))],1)},a=[]},c435:function(t,e,n){"use strict";n.r(e);var i=n("7bd6"),o=n("a1ed");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("295d");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"596e4c3e",null,!1,i["a"],r);e["default"]=c.exports},c98b:function(t,e,n){"use strict";n.r(e);var i=n("87c5"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},cf48:function(t,e,n){"use strict";n.r(e);var i=n("66c2"),o=n("2541");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("78a3");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"5c660135",null,!1,i["a"],r);e["default"]=c.exports},cfe8:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.u-toast[data-v-070c62ba]{position:fixed;z-index:-1;-webkit-transition:opacity .3s;transition:opacity .3s;text-align:center;color:#fff;border-radius:%?8?%;background:#585858;\r\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\r\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:%?28?%;opacity:0;pointer-events:none;padding:%?18?% %?40?%}.u-toast.u-show[data-v-070c62ba]{opacity:1}.u-icon[data-v-070c62ba]{margin-right:%?10?%;\r\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\r\n-webkit-box-align:center;-webkit-align-items:center;align-items:center;line-height:normal}.u-position-center[data-v-070c62ba]{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:70%}.u-position-top[data-v-070c62ba]{left:50%;top:20%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.u-position-bottom[data-v-070c62ba]{left:50%;bottom:20%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.u-type-primary[data-v-070c62ba]{color:#2979ff;background-color:#ecf5ff;border:1px solid #d7eafe}.u-type-success[data-v-070c62ba]{color:#19be6b;background-color:#dbf1e1;border:1px solid #bef5c8}.u-type-error[data-v-070c62ba]{color:#fa3534;background-color:#fef0f0;border:1px solid #fde2e2}.u-type-warning[data-v-070c62ba]{color:#f90;background-color:#fdf6ec;border:1px solid #faecd8}.u-type-info[data-v-070c62ba]{color:#909399;background-color:#f4f4f5;border:1px solid #ebeef5}.u-type-default[data-v-070c62ba]{color:#fff;background-color:#585858}',""]),t.exports=e},e60d:function(t,e,n){"use strict";n.r(e);var i=n("9bd2"),o=n("c98b");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("6b51");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"7412e1a8",null,!1,i["a"],r);e["default"]=c.exports},f4dc:function(t,e,n){"use strict";n.r(e);var i=n("0956"),o=n("f866");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("4335");var r,s=n("f0c5"),c=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"070c62ba",null,!1,i["a"],r);e["default"]=c.exports},f866:function(t,e,n){"use strict";n.r(e);var i=n("49be"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},fb92:function(t,e,n){var i=n("cfe8");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("23d7124e",i,!0,{sourceMap:!1,shadowMode:!1})},fff4:function(t,e,n){"use strict";n("c975"),n("a9e3"),n("d3b7"),n("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-button",props:{hairLine:{type:Boolean,default:!0},type:{type:String,default:"default"},size:{type:String,default:"default"},shape:{type:String,default:"square"},plain:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},openType:{type:String,default:""},formType:{type:String,default:""},appParameter:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},lang:{type:String,default:"en"},sessionFrom:{type:String,default:""},sendMessageTitle:{type:String,default:""},sendMessagePath:{type:String,default:""},sendMessageImg:{type:String,default:""},showMessageCard:{type:Boolean,default:!1},hoverBgColor:{type:String,default:""},rippleBgColor:{type:String,default:""},ripple:{type:Boolean,default:!1},hoverClass:{type:String,default:""},customStyle:{type:Object,default:function(){return{}}},dataName:{type:String,default:""},throttleTime:{type:[String,Number],default:1e3},hoverStartTime:{type:[String,Number],default:20},hoverStayTime:{type:[String,Number],default:150}},computed:{getHoverClass:function(){if(this.loading||this.disabled||this.ripple||this.hoverClass)return"";var t="";return t=this.plain?"u-"+this.type+"-plain-hover":"u-"+this.type+"-hover",t},showHairLineBorder:function(){return["primary","success","error","warning"].indexOf(this.type)>=0&&!this.plain?"":"u-hairline-border"}},data:function(){return{rippleTop:0,rippleLeft:0,fields:{},waveActive:!1}},methods:{click:function(t){var e=this;this.$u.throttle((function(){!0!==e.loading&&!0!==e.disabled&&(e.ripple&&(e.waveActive=!1,e.$nextTick((function(){this.getWaveQuery(t)}))),e.$emit("click",t))}),this.throttleTime)},getWaveQuery:function(t){var e=this;this.getElQuery().then((function(n){var i=n[0];if(i.width&&i.width&&(i.targetWidth=i.height>i.width?i.height:i.width,i.targetWidth)){e.fields=i;var o="",a="";o=t.touches[0].clientX,a=t.touches[0].clientY,e.rippleTop=a-i.top-i.targetWidth/2,e.rippleLeft=o-i.left-i.targetWidth/2,e.$nextTick((function(){e.waveActive=!0}))}}))},getElQuery:function(){var t=this;return new Promise((function(e){var n="";n=uni.createSelectorQuery().in(t),n.select(".u-btn").boundingClientRect(),n.exec((function(t){e(t)}))}))},getphonenumber:function(t){this.$emit("getphonenumber",t)},getuserinfo:function(t){this.$emit("getuserinfo",t)},error:function(t){this.$emit("error",t)},opensetting:function(t){this.$emit("opensetting",t)},launchapp:function(t){this.$emit("launchapp",t)}}};e.default=i}}]);