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

1 line
3.2 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/logon"],{"43b7":function(e,o,n){"use strict";n.r(o);var t=n("ddff"),i=n("ad47");for(var c in i)["default"].indexOf(c)<0&&function(e){n.d(o,e,(function(){return i[e]}))}(c);n("c7e8");var u=n("828b"),s=Object(u["a"])(i["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],void 0);o["default"]=s.exports},"5da6":function(e,o,n){"use strict";(function(e,o){var t=n("47a9");n("4233");t(n("3240"));var i=t(n("43b7"));e.__webpack_require_UNI_MP_PLUGIN__=n,o(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},7810:function(e,o,n){},ad47:function(e,o,n){"use strict";n.r(o);var t=n("ce73"),i=n.n(t);for(var c in t)["default"].indexOf(c)<0&&function(e){n.d(o,e,(function(){return t[e]}))}(c);o["default"]=i.a},c7e8:function(e,o,n){"use strict";var t=n("7810"),i=n.n(t);i.a},ce73:function(e,o,n){"use strict";(function(e){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var n={data:function(){return{check:[],title:"欢迎回来!",second:60,showText:!0,form:{username:"",password:"",mobile:"",code:"",invite_code:""}}},onLoad:function(o){o&&o.invite_code&&(this.form.invite_code=o.invite_code);var n=e.getStorageSync("invite_code");console.log(n),this.form.invite_code=n&&"undefined"!=n?n:""},methods:{login:function(){e.navigateBack()},register:function(){return this.check.length<1?e.showToast({title:"请阅读并同意《用户注册服务协议》《隐私政策》",icon:"none"}):this.form.username?this.form.password?this.form.invite_code?this.form.mobile?this.form.code?void this.$http.get("/shop/v10/auth/logon",this.form).then((function(o){o.success&&e.navigateBack()})):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(){console.log(123456);var o=this;if(!this.form.mobile)return e.showToast({title:"请输入手机号",icon:"none"});var n=setInterval((function(){o.showText=!1;var e=o.second-1;o.second=e,console.log(e)}),1e3);setTimeout((function(){clearInterval(n),o.second=60,o.showText=!0}),6e4),e.showLoading({title:"正在获取验证码"}),this.$http.get("/com/sms/sendcode",this.form).then((function(n){n.success&&(e.hideLoading(),e.$u.toast("验证码已发送有效期5分钟"),o.showText=!1)}))}}};o.default=n}).call(this,n("df3c")["default"])},ddff:function(e,o,n){"use strict";n.d(o,"b",(function(){return i})),n.d(o,"c",(function(){return c})),n.d(o,"a",(function(){return t}));var t={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"))},uCheckboxGroup:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(n.bind(null,"dd73"))},uCheckbox:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-checkbox/u-checkbox")]).then(n.bind(null,"af8e"))}},i=function(){var e=this.$createElement;this._self._c},c=[]}},[["5da6","common/runtime","common/vendor"]]]);