|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login"],{"04a6":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAMAAABmiH5zAAAAAXNSR0IArs4c6QAAAHhQTFRFAAAAAAAAICAgKioqMDAwKioqLi4uNDQ0MzMzMjIyMDAwMzMzMTExNDQ0NDQ0NDQ0MjIyMzMzMzMzMjIyMzMzMjIyMzMzMjIyMjIyMzMzMjIyMjIyMzMzMzMzMjIyMzMzMjIyMzMzMzMzMzMzMjIyMjIyMzMzMzMzaWTzlAAAACd0Uk5TAAQIDBAYHCcoODs8P1NUY2dvc3+Lj5ufp6uzt8PHy9fb4+fr7/P7SlyCtgAAAIxJREFUGNNd0FEbgUAQheFJVikhhIjVUt///4fuZmebu/dmnnOOSLzq2xsVgV/UJsBe5Ty0qvwNZ9VqgE6V9WC+3uCZqToYctUJ/Fp1hI9TNTOhVO1mpigZmWpJWBnWM1NhvJ8J1gfwzrgFnxtfkpAiV3jECsuCkiX1RfKXHWc5nYgboTEuk9lFtuH+ByUHDZC4eEb4AAAAAElFTkSuQmCC"},"0ab6":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.ui-btn[data-v-34e76cba]{display:inline-block;padding:0 %?50?%;border-radius:%?50?%}.ui-btn__normal[data-v-34e76cba]{height:%?70?%;line-height:%?70?%;font-size:%?28?%}.ui-btn__min[data-v-34e76cba]{height:%?50?%;line-height:%?50?%;font-size:%?28?%}.ui-btn__max[data-v-34e76cba]{width:%?690?%;height:%?80?%;line-height:%?80?%;font-size:%?32?%}.ui-btn__gradual[data-v-34e76cba]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff}.ui-btn__solid[data-v-34e76cba]{background:#ff875b;color:#fff}.ui-btn__line[data-v-34e76cba]{background:none;color:#333;border:1px solid #c0b9b9}.ui-btn__primaryLine[data-v-34e76cba]{background:none;color:#ff875b;border:1px solid #ff875b}.ui-btn__disabed[data-v-34e76cba]{opacity:.5}',""]),e.exports=t},"186e":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-15701f34], uni-scroll-view[data-v-15701f34], uni-swiper-item[data-v-15701f34]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}',""]),e.exports=t},"1f9f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiGetCode=t.ApiPostLogin=void 0;var r=n("5767"),i="/uc",a=function(e){return(0,r.ToAsyncAwait)(r.MsbRequest.post("".concat(i,"/user/login"),e))};t.ApiPostLogin=a;var o=function(e){return(0,r.ToAsyncAwait)(r.MsbRequest.get("".concat(i,"/user/login/verificationCode"),e))};t.ApiGetCode=o},2702:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{type:{type:String,default:"line"},size:{type:String,default:"normal"},disable:{type:Boolean,default:!1}},methods:{click:function(){!this.disabed&&this.$emit("click")}}};t.default=r},"294e":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("uvForm",{ref:"uForm",attrs:{model:e.model,rules:e.rules,errorType:e.errorType,borderBottom:e.borderBottom,labelPosition:e.labelPosition,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelStyle:e.labelStyle,customStyle:e.customStyle}},[e._t("default")],2)},a=[]},"359f":function(e,t,n){"use strict";n.r(t);var r=n("b179"),i=n("a5d5");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("e7a4");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"34e76cba",null,!1,r["a"],o);t["default"]=s.exports},"3a6e":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{label:{type:String,default:uni.$u.props.formItem.label},prop:{type:String,default:uni.$u.props.formItem.prop},borderBottom:{type:[String,Boolean],default:uni.$u.props.formItem.borderBottom},labelWidth:{type:[String,Number],default:uni.$u.props.formItem.labelWidth},rightIcon:{type:String,default:uni.$u.props.formItem.rightIcon},leftIcon:{type:String,default:uni.$u.props.formItem.leftIcon},required:{type:Boolean,default:uni.$u.props.formItem.required},leftIconStyle:{type:[String,Object],default:uni.$u.props.formItem.leftIconStyle}}};t.default=r},"3d30":function(e,t,n){var r=n("5158");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("729c7035",r,!0,{sourceMap:!1,shadowMode:!1})},"3d75":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-form"},[e._t("default")],2)},a=[]},"41ba":function(e,t,n){"use strict";n("ac1f"),n("466d"),Object.defineProperty(t,"__esModule",{value:!0}),t.IsDouble=t.IsInteger=t.IsNumber=t.IsPhone=t.Debounce=t.ToAsyncAwait=void 0;var r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?e.then((function(e){return{error:null,result:e}})).catch((function(e){return{error:e,result:null}})):e};t.ToAsyncAwait=r;var i=function(e,t){var n;return function(){var r=this,i=arguments;n&&clearTimeout(n),n=setTimeout((function(){e.apply(r,i)}),t)}};t.Debounce=i;var a=function(e){return/^(1[3-9]\d{9})$/.test(e)};t.IsPhone=a;var o=function(e){return!(!isDouble(e)&&!isInteger(e))};t.IsNumber=o;var u=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+$/);return null!=t};t.IsInteger=u;var s=function(e){if(null==e||""==e)return!1;var t=e.match(/^[-\+]?\d+(\.\d+)?$/);return null!=t};t.IsDouble=s},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"45e7":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={"u-Form":n("ab1b").default,uFormItem:n("d565").default,uCode:n("59f6").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"container"},[r("v-uni-view",{staticClass:"header"},[r("v-uni-image",{staticClass:"arrow",attrs:{src:n("04a6")},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.goBack.apply(void 0,arguments)}}})],1),r("v-uni-view",{staticClass:"logo"},[e._v("马士兵严选")]),r("u--form",{staticClass:"login"},[r("u-form-item",[r("v-uni-input",{staticClass:"login--input",attrs:{placeholder:"请输入手机号",border:"bottom"},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}})],1),r("u-form-item",{staticClass:"login--code"},[r("v-uni-input",{staticClass:"login--input",attrs:{placeholder:"验证码",type:"number",maxlength:"6",border:"bottom"},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}}),r("u-code",{ref:"uCode",attrs:{changeText:"X秒后重新获取",seconds:"60"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.codeChange.apply(void 0,arguments)},start:function(t){arguments[0]=t=e.$handleEvent(t),e.sendStatus=!0},end:function(t){arguments[0]=t=e.$handleEvent(t),e.sendStatus=!1}}}),r("v-uni-text",{staticClass:"login--send-btn",class:e.sendStatus&&"login--send-btn__disabled",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getCode.apply(void 0,arguments)}}},[e._v(e._s(e.tips))])],1)],1),r("UiButton",{staticClass:"login--btn",attrs:{type:"gradual"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.login.apply(void 0,arguments)}}},[e._v("登录")]),r("v-uni-label",{staticClass:"login--agreement"},[r("v-uni-radio",{staticClass:"radio",attrs:{checked:e.checked,color:"#FF875B"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.checked=!e.checked}}}),e._v("同意"),r("v-uni-text",{staticClass:"link"},[e._v("《用户协议》")]),e._v("和"),r("v-uni-text",{staticClass:"link"},[e._v("《隐私协议》")]),e._v(",首次登陆将自动注册")],1)],1)},a=[]},"46c3":function(e,t,n){"use strict";n.r(t);var r=n("3d75"),i=n("981d");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"7ed5db6a",null,!1,r["a"],o);t["default"]=s.exports},5158:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-d50ea8ee], uni-scroll-view[data-v-d50ea8ee], uni-swiper-item[data-v-d50ea8ee]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-form-item[data-v-d50ea8ee]{display:flex;flex-direction:column;font-size:14px;color:#303133}.u-form-item__body[data-v-d50ea8ee]{display:flex;flex-direction:row;padding:10px 0}.u-form-item__body__left[data-v-d50ea8ee]{display:flex;flex-direction:row;align-items:center}.u-form-item__body__left__content[data-v-d50ea8ee]{position:relative;display:flex;flex-direction:row;align-items:center;padding-right:%?10?%;flex:1}.u-form-item__body__left__content__icon[data-v-d50ea8ee]{margin-right:%?8?%}.u-form-item__body__left__content__required[data-v-d50ea8ee]{position:absolute;left:-9px;color:#f56c6c;line-height:20px;font-size:20px;top:3px}.u-form-item__body__left__content__label[data-v-d50ea8ee]{display:flex;flex-direction:row;align-items:center;flex:1;color:#303133;font-size:15px}.u-form-item__body__right[data-v-d50ea8ee]{flex:1}.u-form-item__body__right__content[data-v-d50ea8ee]{display:flex;flex-direction:row;align-items:center;flex:1}.u-form-item__body__right__content__slot[data-v-d50ea8ee]{flex:1;display:flex;flex-direction:row;align-items:center}.u-form-item__body__right__content__icon[data-v-d50ea8ee]{margin-left:%?10?%;color:#c0c4cc;font-size:%?30?%}.u-form-item__body__right__message[data-v-d50ea8ee]{font-size:12px;line-height:12px;color:#f56c6c}',""]),e.exports=t},5767:function(e,t,n){"use strict";var r=n("dbce"),i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0});var a={};t.default=void 0;var o=i(n("5530")),u=r(n("41ba"));Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var s=r(n("d071"));Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var l=(0,o.default)((0,o.default)({},u),{},{requset:s});t.default=l},5875:function(e,t,n){"use strict";n.r(t);var r=n("d84e"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"59f6":function(e,t,n){"use strict";n.r(t);var r=n("cf3b"),i=n("5875");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("f19e");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"15701f34",null,!1,r["a"],o);t["default"]=s.exports},"5f8e":function(e,t,n){"use strict";n.r(t);var r=n("883d"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},6521:function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{model:{type:Object,default:uni.$u.props.form.model},rules:{type:[Object,Function,Array],default:uni.$u.props.form.rules},errorType:{type:String,default:uni.$u.props.form.errorType},borderBottom:{type:Boolean,default:uni.$u.props.form.borderBottom},labelPosition:{type:String,default:uni.$u.props.form.labelPosition},labelWidth:{type:[String,Number],default:uni.$u.props.form.labelWidth},labelAlign:{type:String,default:uni.$u.props.form.labelAlign},labelStyle:{type:Object,default:uni.$u.props.form.labelStyle}}};t.default=r},6853:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("46c3")),a=r(n("6521")),o={name:"u--form",mixins:[uni.$u.mpMixin,a.default,uni.$u.mixin],components:{uvForm:i.default},created:function(){this.children=[]},methods:{setRules:function(e){this.$refs.uForm.setRules(e)},validate:function(){return this.$refs.uForm.validate()},validateField:function(e,t){return this.$refs.uForm.validateField(e,t)},resetFields:function(){return this.$refs.uForm.resetFields()},clearValidate:function(e){return this.$refs.uForm.clearValidate(e)},setMpData:function(){this.$refs.uForm.children=this.children}}};t.default=o},7993:function(e,t,n){var r=n("186e");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("4d53ca70",r,!0,{sourceMap:!1,shadowMode:!1})},"7ccf":function(e,t,n){"use strict";var r=n("4ea4");n("caad"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var i=r(n("1da1")),a=n("5767"),o=n("1f9f"),u=r(n("359f")),s={components:{UiButton:u.default},data:function(){return{tips:"",sendStatus:!1,checked:!1,phone:"",code:""}},mounted:function(){this.$store.state.token&&this.goBack()},methods:{codeChange:function(e){this.tips=e},getCode:function(){var e=this;return(0,i.default)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.$refs.uCode.canGetCode){t.next=2;break}return t.abrupt("return",!1);case 2:if((0,a.IsPhone)(e.phone)){t.next=5;break}return uni.$u.toast("请输入正确手机号"),t.abrupt("return",!1);case 5:return uni.showLoading({title:"正在获取验证码"}),t.next=8,(0,o.ApiGetCode)({phone:e.phone});case 8:if(n=t.sent,r=n.error,n.resutl,uni.hideLoading(),!r){t.next=15;break}return uni.$u.toast(r.message),t.abrupt("return",!1);case 15:uni.$u.toast("验证码已发送"),e.$refs.uCode.start();case 17:case"end":return t.stop()}}),t)})))()},login:function(){var e=this;return(0,i.default)(regeneratorRuntime.mark((function t(){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if((0,a.IsPhone)(e.phone)){t.next=3;break}return uni.$u.toast("请输入正确手机号"),t.abrupt("return",!1);case 3:if(e.code&&4===e.code.length){t.next=6;break}return uni.$u.toast("请输入正确的验证码"),t.abrupt("return",!1);case 6:if(e.checked){t.next=9;break}return uni.$u.toast("请勾选同意《用户协议》和《隐私协议》"),t.abrupt("return",!1);case 9:return t.next=11,(0,o.ApiPostLogin)({phone:e.phone,verificationCode:e.code,source:1});case 11:if(n=t.sent,r=n.error,i=n.result,!r){t.next=17;break}return uni.$u.toast(r.message),t.abrupt("return",!1);case 17:e.$store.commit("SET_TOKEN",i.token),e.goBack();case 19:case"end":return t.stop()}}),t)})))()},goBack:function(){var e=getCurrentPages(),t=e.length,n=e[t-2],r=["pages/index/index","pages/goods/category"];console.log(n),t>1?r.includes(n.route)?this.$Router.replaceAll(n.__page__.path):this.$Router.back():this.$Router.replaceAll("/")}}};t.default=s},"7fd5":function(e,t,n){"use strict";n.r(t);var r=n("7ccf"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"869e":function(e,t,n){"use strict";n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{seconds:{type:[String,Number],default:uni.$u.props.code.seconds},startText:{type:String,default:uni.$u.props.code.startText},changeText:{type:String,default:uni.$u.props.code.changeText},endText:{type:String,default:uni.$u.props.code.endText},keepRunning:{type:Boolean,default:uni.$u.props.code.keepRunning},uniqueKey:{type:String,default:uni.$u.props.code.uniqueKey}}};t.default=r},"883d":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3a6e")),a={name:"u-form-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{message:"",parentData:{labelPosition:"left",labelAlign:"left",labelStyle:{},labelWidth:45,errorType:"message"}}},computed:{propsLine:function(){return uni.$u.props.line}},mounted:function(){this.init()},methods:{init:function(){this.updateParentData(),this.parent||uni.$u.error("u-form-item需要结合u-form组件使用")},updateParentData:function(){this.getParentData("u-form")},clearValidate:function(){this.message=null},resetField:function(){var e=uni.$u.getProperty(this.parent.originalModel,this.prop);uni.$u.setProperty(this.parent.model,this.prop,e),this.message=null},clickHandler:function(){this.$emit("click")}}};t.default=a},"981d":function(e,t,n){"use strict";n.r(t);var r=n("b5cb"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"9e57":function(e,t,n){"use strict";(function(e){var r=n("4ea4");n("99af"),n("a623"),n("4160"),n("c975"),n("d81d"),n("fb6a"),n("a434"),n("a9e3"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("466d"),n("5319"),n("159b"),n("ddb0"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("5530"));var a=/%[sdj%]/g,o=function(){};function u(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var u=String(i).replace(a,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),s=t[r];r<o;s=t[++r])u+=" ".concat(s);return u}return i}function l(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function f(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!l(t)||"string"!==typeof e||e))}function c(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e),i++,i===a&&n(r)}e.forEach((function(e){t(e,o)}))}function d(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length)n(o);else{var u=r;r+=1,u<i?t(e[u],a):n([])}}a([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function h(e,t,n,r){if(t.first){var i=new Promise((function(t,i){var a=function(e){return r(e),e.length?i({errors:e,fields:u(e)}):t()},o=p(e);d(o,n,a)}));return i.catch((function(e){return e})),i}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var o=Object.keys(e),s=o.length,l=0,f=[],h=new Promise((function(t,i){var p=function(e){if(f.push.apply(f,e),l++,l===s)return r(f),f.length?i({errors:f,fields:u(f)}):t()};o.length||(r(f),t()),o.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?d(r,n,p):c(r,n,p)}))}));return h.catch((function(e){return e})),h}function v(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"===typeof t?t():t,field:t.field||e.fullField}}}function m(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===typeof r&&"object"===typeof e[n]?e[n]=(0,i.default)((0,i.default)({},e[n]),r):e[n]=r}return e}function g(e,t,n,r,i,a){!e.required||n.hasOwnProperty(e.field)&&!f(t,a||e.type)||r.push(s(i.messages.required,e.fullField))}function b(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(s(i.messages.whitespace,e.fullField))}"undefined"!==typeof e&&Object({NODE_ENV:"production",VUE_APP_NAME:"马士兵严选",VUE_APP_PLATFORM:"h5",VUE_APP_INDEX_CSS_HASH:"a5c69d49",BASE_URL:"/"});var y={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},_={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===typeof e&&!_.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(y.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(y.url)},hex:function(e){return"string"===typeof e&&!!e.match(y.hex)}};function x(e,t,n,r,i){if(e.required&&void 0===t)g(e,t,n,r,i);else{var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?_[o](t)||r.push(s(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(s(i.messages.types[o],e.fullField,e.type))}}function w(e,t,n,r,i){var a="number"===typeof e.len,o="number"===typeof e.min,u="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=t,c=null,d="number"===typeof t,p="string"===typeof t,h=Array.isArray(t);if(d?c="number":p?c="string":h&&(c="array"),!c)return!1;h&&(f=t.length),p&&(f=t.replace(l,"_").length),a?f!==e.len&&r.push(s(i.messages[c].len,e.fullField,e.len)):o&&!u&&f<e.min?r.push(s(i.messages[c].min,e.fullField,e.min)):u&&!o&&f>e.max?r.push(s(i.messages[c].max,e.fullField,e.max)):o&&u&&(f<e.min||f>e.max)&&r.push(s(i.messages[c].range,e.fullField,e.min,e.max))}var A="enum";function k(e,t,n,r,i){e[A]=Array.isArray(e[A])?e[A]:[],-1===e[A].indexOf(t)&&r.push(s(i.messages[A],e.fullField,e[A].join(", ")))}function q(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var $={required:g,whitespace:b,type:x,range:w,enum:k,pattern:q};function M(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t,"string")&&!e.required)return n();$.required(e,t,r,a,i,"string"),f(t,"string")||($.type(e,t,r,a,i),$.range(e,t,r,a,i),$.pattern(e,t,r,a,i),!0===e.whitespace&&$.whitespace(e,t,r,a,i))}n(a)}function P(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();$.required(e,t,r,a,i),void 0!==t&&$.type(e,t,r,a,i)}n(a)}function C(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),f(t)&&!e.required)return n();$.required(e,t,r,a,i),void 0!==t&&($.type(e,t,r,a,i),$.range(e,t,r,a,i))}n(a)}function O(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();$.required(e,t,r,a,i),void 0!==t&&$.type(e,t,r,a,i)}n(a)}function j(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();$.required(e,t,r,a,i),f(t)||$.type(e,t,r,a,i)}n(a)}function T(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();$.required(e,t,r,a,i),void 0!==t&&($.type(e,t,r,a,i),$.range(e,t,r,a,i))}n(a)}function E(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();$.required(e,t,r,a,i),void 0!==t&&($.type(e,t,r,a,i),$.range(e,t,r,a,i))}n(a)}function S(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t,"array")&&!e.required)return n();$.required(e,t,r,a,i,"array"),f(t,"array")||($.type(e,t,r,a,i),$.range(e,t,r,a,i))}n(a)}function F(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();$.required(e,t,r,a,i),void 0!==t&&$.type(e,t,r,a,i)}n(a)}var z="enum";function I(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();$.required(e,t,r,a,i),void 0!==t&&$[z](e,t,r,a,i)}n(a)}function R(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t,"string")&&!e.required)return n();$.required(e,t,r,a,i),f(t,"string")||$.pattern(e,t,r,a,i)}n(a)}function D(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();var u;if($.required(e,t,r,a,i),!f(t))u="number"===typeof t?new Date(t):t,$.type(e,u,r,a,i),u&&$.range(e,u.getTime(),r,a,i)}n(a)}function N(e,t,n,r,i){var a=[],o=Array.isArray(t)?"array":typeof t;$.required(e,t,r,a,i,o),n(a)}function B(e,t,n,r,i){var a=e.type,o=[],u=e.required||!e.required&&r.hasOwnProperty(e.field);if(u){if(f(t,a)&&!e.required)return n();$.required(e,t,r,o,i,a),f(t,a)||$.type(e,t,r,o,i)}n(o)}function U(e,t,n,r,i){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(f(t)&&!e.required)return n();$.required(e,t,r,a,i)}n(a)}var V={string:M,method:P,number:C,boolean:O,regexp:j,integer:T,float:E,array:S,object:F,enum:I,pattern:R,date:D,url:B,hex:B,email:B,required:N,any:U};function W(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var L=W();function J(e){this.rules=null,this._messages=L,this.define(e)}J.prototype={messages:function(e){return e&&(this._messages=m(W(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var a,o,l=e,f=t,c=n;if("function"===typeof f&&(c=f,f={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(),Promise.resolve();function d(e){var t,n=[],r={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t<e.length;t++)i(e[t]);n.length?r=u(n):(n=null,r=null),c(n,r)}if(f.messages){var p=this.messages();p===L&&(p=W()),m(p,f.messages),f.messages=p}else f.messages=this.messages();var g={},b=f.keys||Object.keys(this.rules);b.forEach((function(t){a=r.rules[t],o=l[t],a.forEach((function(n){var a=n;"function"===typeof a.transform&&(l===e&&(l=(0,i.default)({},l)),o=l[t]=a.transform(o)),a="function"===typeof a?{validator:a}:(0,i.default)({},a),a.validator=r.getValidationMethod(a),a.field=t,a.fullField=a.fullField||t,a.type=r.getType(a),a.validator&&(g[t]=g[t]||[],g[t].push({rule:a,value:o,source:l,field:t}))}))}));var y={};return h(g,f,(function(e,t){var n,r=e.rule,a=("object"===r.type||"array"===r.type)&&("object"===typeof r.fields||"object"===typeof r.defaultField);function o(e,t){return(0,i.default)((0,i.default)({},t),{},{fullField:"".concat(r.fullField,".").concat(e)})}function u(n){void 0===n&&(n=[]);var u=n;if(Array.isArray(u)||(u=[u]),!f.suppressWarning&&u.length&&J.warning("async-validator:",u),u.length&&r.message&&(u=[].concat(r.message)),u=u.map(v(r)),f.first&&u.length)return y[r.field]=1,t(u);if(a){if(r.required&&!e.value)return u=r.message?[].concat(r.message).map(v(r)):f.error?[f.error(r,s(f.messages.required,r.field))]:[],t(u);var l={};if(r.defaultField)for(var c in e.value)e.value.hasOwnProperty(c)&&(l[c]=r.defaultField);for(var d in l=(0,i.default)((0,i.default)({},l),e.rule.fields),l)if(l.hasOwnProperty(d)){var p=Array.isArray(l[d])?l[d]:[l[d]];l[d]=p.map(o.bind(null,d))}var h=new J(l);h.messages(f.messages),e.rule.options&&(e.rule.options.messages=f.messages,e.rule.options.error=f.error),h.validate(e.value,e.rule.options||f,(function(e){var n=[];u&&u.length&&n.push.apply(n,u),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(u)}a=a&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,u,e.source,f):r.validator&&(n=r.validator(r,e.value,u,e.source,f),!0===n?u():!1===n?u(r.message||"".concat(r.field," fails")):n instanceof Array?u(n):n instanceof Error&&u(n.message)),n&&n.then&&n.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){d(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!V.hasOwnProperty(e.type))throw new Error(s("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?V.required:V[this.getType(e)]||!1}},J.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");V[e]=t},J.warning=o,J.messages=L;var K=J;t.default=K}).call(this,n("4362"))},"9ffd":function(e,t,n){"use strict";var r=n("b431"),i=n.n(r);i.a},a5d5:function(e,t,n){"use strict";n.r(t);var r=n("2702"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},a623:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").every,a=n("a640"),o=n("ae40"),u=a("every"),s=o("every");r({target:"Array",proto:!0,forced:!u||!s},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},ab1b:function(e,t,n){"use strict";n.r(t);var r=n("294e"),i=n("d97a");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],o);t["default"]=s.exports},b179:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-button",{class:"ui-btn ui-btn__"+e.type+" ui-btn__"+e.size+" "+(e.disable?" x ui-btn__disabed":" xx"),on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.click.apply(void 0,arguments)}}},[e._t("default")],2)},a=[]},b431:function(e,t,n){var r=n("bd0f");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("bb1bcd58",r,!0,{sourceMap:!1,shadowMode:!1})},b5cb:function(e,t,n){"use strict";var r=n("4ea4");n("99af"),n("caad"),n("d81d"),n("b64b"),n("d3b7"),n("ac1f"),n("2532"),n("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("2909")),a=r(n("ade3"));n("96cf");var o=r(n("1da1")),u=r(n("6521")),s=r(n("9e57"));s.default.warning=function(){};var l={name:"u-form",mixins:[uni.$u.mpMixin,uni.$u.mixin,u.default],provide:function(){return{uForm:this}},data:function(){return{formRules:{},validator:{},originalModel:null}},watch:{rules:{immediate:!0,handler:function(e){this.setRules(e)}},propsChange:function(e){var t;(null===(t=this.children)||void 0===t?void 0:t.length)&&this.children.map((function(e){"function"==typeof e.updateParentData&&e.updateParentData()}))},model:{immediate:!0,handler:function(e){this.originalModel||(this.originalModel=uni.$u.deepClone(e))}}},computed:{propsChange:function(){return[this.errorType,this.borderBottom,this.labelPosition,this.labelWidth,this.labelAlign,this.labelStyle]}},created:function(){this.children=[]},methods:{setRules:function(e){0!==Object.keys(e).length&&(this.formRules=e,this.validator=new s.default(e))},resetFields:function(){this.resetModel()},resetModel:function(e){var t=this;this.children.map((function(e){var n=null===e||void 0===e?void 0:e.prop,r=uni.$u.getProperty(t.originalModel,n);uni.$u.setProperty(t.model,n,r)}))},clearValidate:function(e){e=[].concat(e),this.children.map((function(t){(void 0===e[0]||e.includes(t.prop))&&(t.message=null)}))},validateField:function(e,t){var n=arguments,r=this;return(0,o.default)(regeneratorRuntime.mark((function o(){var u;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:u=n.length>2&&void 0!==n[2]?n[2]:null,r.$nextTick((function(){var n=[];e=[].concat(e),r.children.map((function(t){var o=[];if(e.includes(t.prop)){var l=uni.$u.getProperty(r.model,t.prop),f=t.prop.split("."),c=f[f.length-1],d=r.formRules[t.prop];if(!d)return;for(var p=[].concat(d),h=0;h<p.length;h++){var v=p[h],m=[].concat(null===v||void 0===v?void 0:v.trigger);if(!u||m.includes(u)){var g=new s.default((0,a.default)({},c,v));g.validate((0,a.default)({},c,l),(function(e,r){var a,u;uni.$u.test.array(e)&&(n.push.apply(n,(0,i.default)(e)),o.push.apply(o,(0,i.default)(e))),t.message=null!==(a=null===(u=o[0])||void 0===u?void 0:u.message)&&void 0!==a?a:null}))}}}})),"function"===typeof t&&t(n)}));case 2:case"end":return o.stop()}}),o)})))()},validate:function(e){var t=this;return new Promise((function(e,n){t.$nextTick((function(){var r=t.children.map((function(e){return e.prop}));t.validateField(r,(function(r){r.length?("toast"===t.errorType&&uni.$u.toast(r[0].message),n(r)):e(!0)}))}))}))}}};t.default=l},bd0f:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.header[data-v-2fce79f5]{height:%?88?%;padding-left:%?40?%;display:flex;align-items:center}.header .arrow[data-v-2fce79f5]{width:%?14?%;height:%?28?%}.logo[data-v-2fce79f5]{font-size:%?46?%;text-align:center;margin:%?25?% 0 %?84?% 0}.login[data-v-2fce79f5]{width:%?650?%;margin:0 auto}.login--input[data-v-2fce79f5]{border-bottom:%?2?% solid #eee;width:%?650?%;height:%?100?%;font-size:%?32?%}.login--code[data-v-2fce79f5]{position:relative}.login--send-btn[data-v-2fce79f5]{position:absolute;right:0;color:#ff875b}.login--send-btn__disabled[data-v-2fce79f5]{opacity:.8}.login--btn[data-v-2fce79f5]{width:%?650?%;height:%?88?%;line-height:%?88?%;font-size:%?32?%;margin:%?60?% %?50?% %?40?%}.login--agreement[data-v-2fce79f5]{width:%?650?%;padding:0 %?50?%;color:#999;font-size:%?24?%}.login--agreement .radio[data-v-2fce79f5]{-webkit-transform:scale(60%);transform:scale(60%)}.login--agreement .link[data-v-2fce79f5]{color:#333}',""]),e.exports=t},cf3b:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-code"})},a=[]},d071:function(e,t,n){"use strict";var r=n("4ea4");n("4de4"),n("caad"),n("d3b7"),n("ac1f"),n("2532"),n("38cf"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.MsbRequestTk=t.MsbRequest=void 0;var i=r(n("5530")),a=r(n("fda4")),o=r(n("4308")),u="test",s={test:"http://k8s-horse-gateway.mashibing.cn",release:"",prod:""},l=function(e,t){if(p(t),200===e.statusCode){var n=e.data;return"SUCCESS"===n.code?n.data:"TOKEN_EXPIRE"===n.code?(uni.navigateTo({url:"/login"}),n):Promise.reject(n)}return e},f=function(e,t){return p(t),{message:e.errMsg,code:e.statusCode}},c=[],d=function(e){return c.includes(JSON.stringify(e))?Promise.reject({message:"请勿频繁操作"}):(c.push(JSON.stringify(e)),!1)},p=function(e){c=c.filter((function(t){return t!==JSON.stringify(e)}))},h=new a.default;t.MsbRequest=h,h.baseUrl=s[u],h.use("request",(function(e){if(console.log("option",e),e.header.repeat){var t=d(e);if(t)return t}return e})),h.use("success",l),h.use("error",f);var v=new a.default;t.MsbRequestTk=v,v.baseUrl=s[u],v.use("request",(function(e){var t=o.default.state.token;if(t){if(e.header=(0,i.default)((0,i.default)({},e.header),{},{Authorization:t}),e.header.repeat){var n=d(e);if(n)return n}return console.log(e),e}var r=getCurrentPages(),a=r[r.length-1];return a.$Router.replace("/login"),Promise.reject({message:"要先登录才能操作哦~"})})),v.use("success",l),v.use("error",f)},d340:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uIcon:n("a653").default,uLine:n("3e06").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-form-item"},[n("v-uni-view",{staticClass:"u-form-item__body",style:[e.$u.addStyle(e.customStyle),{flexDirection:"left"===e.parentData.labelPosition?"row":"column"}],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clickHandler.apply(void 0,arguments)}}},[e._t("label",[e.required||e.leftIcon||e.label?n("v-uni-view",{staticClass:"u-form-item__body__left",style:{width:e.$u.addUnit(e.labelWidth||e.parentData.labelWidth),marginBottom:"left"===e.parentData.labelPosition?0:"5px"}},[n("v-uni-view",{staticClass:"u-form-item__body__left__content"},[e.required?n("v-uni-text",{staticClass:"u-form-item__body__left__content__required"},[e._v("*")]):e._e(),e.leftIcon?n("v-uni-view",{staticClass:"u-form-item__body__left__content__icon"},[n("u-icon",{attrs:{name:e.leftIcon,"custom-style":e.leftIconStyle}})],1):e._e(),n("v-uni-text",{staticClass:"u-form-item__body__left__content__label",style:[e.parentData.labelStyle,{justifyContent:"left"===e.parentData.labelAlign?"flex-start":"center"===e.parentData.labelAlign?"center":"flex-end"}]},[e._v(e._s(e.label))])],1)],1):e._e()]),n("v-uni-view",{staticClass:"u-form-item__body__right"},[n("v-uni-view",{staticClass:"u-form-item__body__right__content"},[n("v-uni-view",{staticClass:"u-form-item__body__right__content__slot"},[e._t("default")],2),e.$slots.right?n("v-uni-view",{staticClass:"item__body__right__content__icon"},[e._t("right")],2):e._e()],1)],1)],2),e._t("error",[e.message&&"message"===e.parentData.errorType?n("v-uni-text",{staticClass:"u-form-item__body__right__message",style:{marginLeft:e.$u.addUnit("top"===e.parentData.labelPosition?0:e.labelWidth||e.parentData.labelWidth)}},[e._v(e._s(e.message))]):e._e()]),e.borderBottom?n("u-line",{attrs:{color:e.message&&"border-bottom"===e.parentData.errorType?e.$u.color.error:e.propsLine.color,customStyle:"margin-top: "+(e.message&&"message"===e.parentData.errorType?"5px":0)}}):e._e()],2)},a=[]},d565:function(e,t,n){"use strict";n.r(t);var r=n("d340"),i=n("5f8e");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("ebe6");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"d50ea8ee",null,!1,r["a"],o);t["default"]=s.exports},d84e:function(e,t,n){"use strict";var r=n("4ea4");n("a9e3"),n("ac1f"),n("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("869e")),a={name:"u-code",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted:function(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler:function(e){this.secNum=e}}},methods:{checkKeepRunning:function(){var e=Number(uni.getStorageSync(this.uniqueKey+"_$uCountDownTimestamp"));if(!e)return this.changeEvent(this.startText);var t=Math.floor(+new Date/1e3);this.keepRunning&&e&&e>t?(this.secNum=e-t,uni.removeStorageSync(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start:function(){var e=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(){--e.secNum?e.changeEvent(e.changeText.replace(/x|X/,e.secNum)):(clearInterval(e.timer),e.timer=null,e.changeEvent(e.endText),e.secNum=e.seconds,e.$emit("end"),e.canGetCode=!0)}),1e3)},reset:function(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent:function(e){this.$emit("change",e)},setTimeToStorage:function(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){var e=Math.floor(+new Date/1e3);uni.setStorage({key:this.uniqueKey+"_$uCountDownTimestamp",data:e+Number(this.secNum)})}}},beforeDestroy:function(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}};t.default=a},d8d2:function(e,t,n){"use strict";n.r(t);var r=n("45e7"),i=n("7fd5");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("9ffd");var o,u=n("f0c5"),s=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,"2fce79f5",null,!1,r["a"],o);t["default"]=s.exports},d97a:function(e,t,n){"use strict";n.r(t);var r=n("6853"),i=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},de3b:function(e,t,n){var r=n("0ab6");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("62ab6330",r,!0,{sourceMap:!1,shadowMode:!1})},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),o="/"===a(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),u=o,s=0;s<o;s++)if(i[s]!==a[s]){u=s;break}var l=[];for(s=u;s<i.length;s++)l.push("..");return l=l.concat(a.slice(u)),l.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),47===t){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(47!==u)-1===r&&(i=!1,r=o+1),46===u?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e7a4:function(e,t,n){"use strict";var r=n("de3b"),i=n.n(r);i.a},ebe6:function(e,t,n){"use strict";var r=n("3d30"),i=n.n(r);i.a},f19e:function(e,t,n){"use strict";var r=n("7993"),i=n.n(r);i.a},fda4:function(e,t,n){"use strict";var r=n("4ea4");n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("5530")),a=r(n("d4ec")),o=r(n("bee2")),u=function(){function e(t){(0,a.default)(this,e),this.baseUrl="",this.header={repeat:!0},this.hook={request:null,success:null,error:null}}return(0,o.default)(e,[{key:"method",value:function(e){var t=this;if(e.header=(0,i.default)((0,i.default)({},this.header),e.header),e.url=this.baseUrl+e.url,this.hook.request&&(e=this.hook.request(e)),!e)throw new Error("没有请求配置,或是request拦截未做return");return e.constructor===Promise?e:new Promise((function(n,r){console.log(e),uni.request((0,i.default)((0,i.default)({},e),{},{success:function(i){var a=i||i[1];if(a.statusCode>=200&&a.statusCode<400){if(t.hook.success){var o=t.hook.success(a,e);o.constructor===Promise?o.then((function(e){n(e)}),(function(e){r(e)})):n(o)}else n(a);return!1}r(t.hook.error?t.hook.error(a,e):a)},fail:function(n){r(t.hook.error?t.hook.error(n,e):n)}}))}))}},{key:"use",value:function(e,t){this.hook[e]=t}},{key:"get",value:function(e,t,n){return this.method({method:"GET",url:e,data:t,header:n})}},{key:"post",value:function(e,t,n){return this.method({method:"POST",url:e,data:t,header:n})}},{key:"put",value:function(e,t,n){return this.method({method:"PUT",url:e,data:t,header:n})}},{key:"delete",value:function(e,t,n){return this.method({method:"DELETE",url:e,data:t,header:n})}}]),e}(),s=u;t.default=s}}]); |