1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_pwd_edit/index"],{"0f23":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.$t("当前手机号")),n=this.$t("设置新密码"),i=this.$t("确认新密码"),r=this.$t("填写验证码"),u=this.$t("确认修改");this.$mp.data=Object.assign({},{$root:{m0:e,m1:n,m2:i,m3:r,m4:u}})},r=[]},3651:function(t,e,n){"use strict";var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("2eee")),u=i(n("c973")),a=i(n("dc9d")),s=n("5743"),o=n("d1ea"),c=n("86eb"),f=n("26cb"),d=i(n("19b6")),l={mixins:[a.default,d.default],components:{authorize:function(){n.e("components/Authorize").then(function(){return resolve(n("ad23"))}.bind(null,n)).catch(n.oe)},Verify:function(){n.e("pages/users/components/verify/index").then(function(){return resolve(n("aa1e"))}.bind(null,n)).catch(n.oe)}},data:function(){return{userInfo:{},phone:"",password:"",captcha:"",qr_password:"",isAuto:!1,isShowAuth:!1,key:""}},computed:(0,f.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){t&&this.getUserInfo()},deep:!0}},onLoad:function(){var t=this;this.isLogin?(this.getUserInfo(),(0,s.verifyCode)().then((function(e){t.$set(t,"key",e.data.key)}))):(0,c.toLogin)()},methods:{onLoadFun:function(t){this.getUserInfo()},authColse:function(t){this.isShowAuth=t},getUserInfo:function(){var t=this;(0,o.getUserInfo)().then((function(e){var n=e.data.phone,i=n.substr(0,3)+"****"+n.substr(7);t.$set(t,"userInfo",e.data),t.phone=i}))},code:function(){var t=this;return(0,u.default)(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.userInfo.phone){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:n.$t("手机号码不存在,无法发送验证码!")}));case 3:t.$refs.verify.show();case 4:case"end":return e.stop()}}),e)})))()},success:function(t){var e=this;return(0,u.default)(r.default.mark((function n(){var i;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e,e.$refs.verify.hide(),n.next=4,(0,o.registerVerify)({phone:i.userInfo.phone,type:"reset",key:i.key,captchaType:e.captchaType,captchaVerification:t.captchaVerification}).then((function(t){e.sendCode(),i.$util.Tips({title:t.msg})})).catch((function(t){return i.$util.Tips({title:t})}));case 4:case"end":return n.stop()}}),n)})))()},editPwd:function(t){var e=this,n=t.detail.value.password,i=t.detail.value.qr_password,r=t.detail.value.captcha;return n?i!=n?e.$util.Tips({title:e.$t("两次输入的密码不一致!")}):r?void(0,s.phoneRegisterReset)({account:e.userInfo.phone,captcha:r,password:n}).then((function(t){return e.$util.Tips({title:t.msg},{tab:3,url:1})})).catch((function(t){return e.$util.Tips({title:t})})):e.$util.Tips({title:e.$t("请输入验证码")}):e.$util.Tips({title:e.$t("请输入新密码")})}}};e.default=l},"570c":function(t,e,n){},6012:function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("4789");i(n("66fd"));var r=i(n("8959"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},8959:function(t,e,n){"use strict";n.r(e);var i=n("0f23"),r=n("99b3");for(var u in r)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(u);n("b0c6");var a=n("f0c5"),s=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},"99b3":function(t,e,n){"use strict";n.r(e);var i=n("3651"),r=n.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);e["default"]=r.a},b0c6:function(t,e,n){"use strict";var i=n("570c"),r=n.n(i);r.a}},[["6012","common/runtime","common/vendor"]]]);
|