1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_phone/index"],{"0ae6":function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("4789");i(n("66fd"));var u=i(n("b145"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(u.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"3ea2":function(t,e,n){"use strict";n.r(e);var i=n("54c5"),u=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=u.a},"54c5":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=i(n("2eee")),a=i(n("c973")),r=i(n("dc9d")),s=n("5743"),c=n("86eb"),o=n("26cb"),f=i(n("19b6")),l={mixins:[r.default,f.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{phone:"",captcha:"",isAuto:!1,isShowAuth:!1,key:"",authKey:"",type:0}},computed:(0,o.mapGetters)(["isLogin"]),onLoad:function(t){var e=this;this.isLogin?((0,s.verifyCode)().then((function(t){e.$set(e,"key",t.data.key)})),this.authKey=t.key||"",this.url=t.url||""):(0,c.toLogin)(),this.type=t.type||0},methods:{onLoadFun:function(){},authColse:function(t){this.isShowAuth=t},editPwd:function(){var e=this;return e.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(e.phone)?e.captcha?void(0==this.type?(0,s.bindingUserPhone)({phone:e.phone,captcha:e.captcha}).then((function(n){if(void 0===n.data||!n.data.is_bind)return e.$util.Tips({title:e.$t("绑定成功"),icon:"success"},{tab:5,url:"/pages/users/user_info/index"});t.showModal({title:e.$t("是否绑定账号"),content:n.msg,confirmText:e.$t("绑定"),success:function(t){if(t.confirm)(0,s.bindingUserPhone)({phone:e.phone,captcha:e.captcha,step:1}).then((function(t){return e.$util.Tips({title:t.msg,icon:"success"},{tab:5,url:"/pages/users/user_info/index"})})).catch((function(t){return e.$util.Tips({title:t})}));else if(t.cancel)return e.$util.Tips({title:e.$t("您已取消绑定!")},{tab:5,url:"/pages/users/user_info/index"})}})})).catch((function(t){return e.$util.Tips({title:t})})):(0,s.updatePhone)({phone:e.phone,captcha:e.captcha}).then((function(t){return e.$util.Tips({title:t.msg,icon:"success"},{tab:5,url:"/pages/users/user_info/index"})})).catch((function(t){return e.$util.Tips({title:t})}))):e.$util.Tips({title:e.$t("请填写验证码")}):e.$util.Tips({title:e.$t("请输入正确的手机号码")}):e.$util.Tips({title:e.$t("请填写手机号码")})},success:function(t){var e=this;this.$refs.verify.hide();var n=this;(0,s.verifyCode)().then((function(i){(0,s.registerVerify)(n.phone,"reset",i.data.key,e.captchaType,t.captchaVerification).then((function(t){n.$util.Tips({title:t.msg}),n.sendCode()})).catch((function(t){return n.$util.Tips({title:t})}))}))},code:function(){var t=this;return(0,a.default)(u.default.mark((function e(){var n;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,n.phone){e.next=3;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请填写手机号码")}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.phone)){e.next=5;break}return e.abrupt("return",n.$util.Tips({title:n.$t("请输入正确的手机号码")}));case 5:return t.$refs.verify.show(),e.abrupt("return");case 7:case"end":return e.stop()}}),e)})))()}}};e.default=l}).call(this,n("543d")["default"])},"8a38":function(t,e,n){"use strict";var i=n("8a83"),u=n.n(i);u.a},"8a83":function(t,e,n){},b145:function(t,e,n){"use strict";n.r(e);var i=n("f8fa"),u=n("3ea2");for(var a in u)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(a);n("8a38");var r=n("f0c5"),s=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},f8fa:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.$t("填写手机号码")),n=this.$t("填写验证码"),i=this.$t("确认绑定");this.$mp.data=Object.assign({},{$root:{m0:e,m1:n,m2:i}})},u=[]}},[["0ae6","common/runtime","common/vendor"]]]);
|