Files
PC-202306242200\Administrator 85b89ccea7 first commit
2026-03-28 23:27:25 +08:00

1 line
2.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/me/mobile"],{"2d53":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{check:[],title:"修改手机号!",secondOld:60,secondNew:60,showTextOld:!0,showTextNew:!0,form:{new_mobile:"",new_code:"",old_code:"",old_mobile:"",password:""}}},onLoad:function(){},methods:{login:function(){e.navigateBack()},register:function(){var t=this;return this.form.old_mobile?this.form.old_code?this.form.password?this.form.new_mobile?this.form.new_code?void this.$http.post("/shop/v10/user/mobile",this.form).then((function(o){0==o.code&&e.navigateBack({delta:2,complete:function(){setTimeout((function(){t.$store.commit("auth/resetUser"),t.$store.commit("auth/resetToken"),e.navigateTo({url:"/pages/me/login"})}),100)}})})):e.showToast({title:"请输入新手机号验证码",icon:"none"}):e.showToast({title:"请输入新手机号",icon:"none"}):e.showToast({title:"请输入密码",icon:"none"}):e.showToast({title:"请输入原手机号验证码",icon:"none"}):e.showToast({title:"请输入原手机号",icon:"none"})},getCode:function(t,o){var n=this,i="old"==t?"secondOld":"secondNew",c="old"==t?"showTextOld":"showTextNew";if(!o)return e.showToast({title:"请输入手机号",icon:"none"});if(11!=o.length)return e.showToast({title:"请输入正确的手机号",icon:"none"});var s=setInterval((function(){n[c]=!1;var e=n[i]-1;n[i]=e}),1e3);setTimeout((function(){clearInterval(s),n[i]=60,n[c]=!0}),6e4),e.showLoading({title:"正在获取验证码"}),this.$http.get("/com/sms/sendcode",{mobile:o}).then((function(t){t.success&&(e.hideLoading(),e.$u.toast("验证码已发送有效期5分钟"),n[c]=!1)}))}}};t.default=o}).call(this,o("df3c")["default"])},"3bf2":function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return c})),o.d(t,"a",(function(){return n}));var n={uNavbar:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(o.bind(null,"3e43"))}},i=function(){var e=this.$createElement;this._self._c},c=[]},"64b7":function(e,t,o){"use strict";(function(e,t){var n=o("47a9");o("4233");n(o("3240"));var i=n(o("f751"));e.__webpack_require_UNI_MP_PLUGIN__=o,t(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},"8c1c":function(e,t,o){},bf88:function(e,t,o){"use strict";o.r(t);var n=o("2d53"),i=o.n(n);for(var c in n)["default"].indexOf(c)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(c);t["default"]=i.a},ecf3:function(e,t,o){"use strict";var n=o("8c1c"),i=o.n(n);i.a},f751:function(e,t,o){"use strict";o.r(t);var n=o("3bf2"),i=o("bf88");for(var c in i)["default"].indexOf(c)<0&&function(e){o.d(t,e,(function(){return i[e]}))}(c);o("ecf3");var s=o("828b"),a=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=a.exports}},[["64b7","common/runtime","common/vendor"]]]);