Files
2026-04-14 17:38:46 +08:00

1 line
4.3 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/register/register"],{"01ae":function(e,t,n){"use strict";var i=n("b3bf"),o=n.n(i);o.a},"4a13":function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("7ca3")),r=n("7a03"),s=(n("a381"),n("f4fb")),u=n("8f59");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={name:"register",created:function(){},data:function(){return{isAgreement:!1,mobile:"",smsCode:"",password:"",passwordConfirm:"",canSendSms:!0,codeTips:"",showModel:!1}},onLoad:function(){},methods:a(a({},(0,u.mapMutations)(["login"])),{},{codeChange:function(e){this.codeTips=e},registerFun:function(){var t=this,n=this.isAgreement,i=this.mobile,o=this.password,s=this.smsCode,u=this.passwordConfirm;if(11==i.length)if(o)if(o==u){if(!n)return this.showModel=!0;var c={mobile:i,password:o,code:s,client:2};(0,r.register)(c).then((function(n){1==n.code&&(t.login(c),t.$toast({title:n.msg}),setTimeout((function(){e.navigateBack()}),1e3))}))}else this.$toast({title:"两次密码输入不一致"});else this.$toast({title:"请设置密码"});else this.$toast({title:"请填写正确手机号"})},countDownFinish:function(){this.canSendSms=!0},sendSmsFun:function(){var e=this;this.$refs.uCode.canGetCode&&(this.mobile?(0,r.sendSms)({mobile:this.mobile,key:s.SMSType.REGISTER}).then((function(t){1==t.code&&(e.$toast({title:t.msg}),e.$refs.uCode.start())})):this.$toast({title:"请填写手机号信息~"}))}}),computed:a(a({},(0,u.mapGetters)(["appConfig"])),{},{$getImageUri:function(){var e=this;return function(t){return e.$store.state.app.config.base_domain+t}},disable:function(){return!(11==this.mobile.length&&this.password&&this.passwordConfirm&&this.smsCode&&this.appConfig.register_setting)&&!(11==this.mobile.length&&this.password&&this.passwordConfirm&&!this.appConfig.register_setting)}})};t.default=f}).call(this,n("df3c")["default"])},b3bf:function(e,t,n){},b59f:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var i={uSticky:function(){return n.e("components/uview-ui/components/u-sticky/u-sticky").then(n.bind(null,"fb61"))},uNavbar:function(){return n.e("components/uview-ui/components/u-navbar/u-navbar").then(n.bind(null,"816a"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("components/uview-ui/components/u-input/u-input")]).then(n.bind(null,"2fc6"))},uVerificationCode:function(){return n.e("components/uview-ui/components/u-verification-code/u-verification-code").then(n.bind(null,"983d"))},uCheckbox:function(){return n.e("components/uview-ui/components/u-checkbox/u-checkbox").then(n.bind(null,"7f15"))},uModal:function(){return n.e("components/uview-ui/components/u-modal/u-modal").then(n.bind(null,"37df"))}},o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$getImageUri("/images/login_bg.png")),i=e.appConfig.register_setting?e.mobile.length:null;e._isMounted||(e.e0=function(t){e.isAgreement=!0,e.showModel=!1},e.e1=function(t){e.showModel=!1}),e.$mp.data=Object.assign({},{$root:{m0:n,g0:i}})},r=[]},c479:function(e,t,n){"use strict";n.r(t);var i=n("4a13"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=o.a},c56d:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("3712");i(n("3240"));var o=i(n("d225"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},d225:function(e,t,n){"use strict";n.r(t);var i=n("b59f"),o=n("c479");for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("01ae");var s=n("828b"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=u.exports}},[["c56d","common/runtime","common/vendor"]]]);