Files
houyi-uniapp/unpackage/dist/build/mp-weixin/pages/me/userName.js
PC-202306242200\Administrator 85b89ccea7 first commit
2026-03-28 23:27:25 +08:00

1 line
2.7 KiB
JavaScript
Raw 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/userName"],{"0bbc":function(e,t,n){"use strict";n.r(t);var o=n("869c"),i=n("a7bb");for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n("baeb");var a=n("828b"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},"1e23":function(e,t,n){},"70fe":function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("4233");o(n("3240"));var i=o(n("0bbc"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"869c":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return o}));var o={uNavbar:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(n.bind(null,"3e43"))}},i=function(){var e=this.$createElement;this._self._c},s=[]},a7bb:function(e,t,n){"use strict";n.r(t);var o=n("bd93"),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);t["default"]=i.a},baeb:function(e,t,n){"use strict";var o=n("1e23"),i=n.n(o);i.a},bd93:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{check:[],title:"修改用户名!",second:60,showText:!0,form:{username:"",password:"",mobile:"",code:"",invite_code:""}}},onLoad:function(){},methods:{login:function(){e.navigateBack()},register:function(){var t=this;return this.form.username?this.form.password?this.form.mobile?this.form.code?void this.$http.post("/shop/v10/user/username",this.form).then((function(n){0==n.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"})},getCode:function(){console.log(123456);var t=this,n=setInterval((function(){t.showText=!1;var e=t.second-1;t.second=e,console.log(e)}),1e3);if(setTimeout((function(){clearInterval(n),t.second=60,t.showText=!0}),6e4),!this.form.mobile)return e.showToast({title:"请输入手机号",icon:"none"});e.showLoading({title:"正在获取验证码"}),this.$http.get("/com/sms/sendcode",this.form).then((function(n){n.success&&(e.hideLoading(),e.$u.toast("验证码已发送有效期5分钟"),t.showText=!1)}))}}};t.default=n}).call(this,n("df3c")["default"])}},[["70fe","common/runtime","common/vendor"]]]);