| 1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_phone/index"],{"0264":function(t,e,n){"use strict";n.r(e);var i=n("5df9"),u=n("17fb");for(var r in u)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(r);n("f3eb");var s=n("828b"),a=Object(s["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=a.exports},"17fb":function(t,e,n){"use strict";n.r(e);var i=n("a3d3"),u=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=u.a},"51a7":function(t,e,n){},"5df9":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=[]},"774f":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("2ea2");i(n("3240"));var u=i(n("0264"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(u.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},a3d3:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=i(n("7eb4")),r=i(n("ee10")),s=i(n("30ff")),a=n("d369"),c=n("d7f8"),o=n("8f59"),f=i(n("0cf0")),l={mixins:[s.default,f.default],components:{authorize:function(){n.e("components/Authorize").then(function(){return resolve(n("636c"))}.bind(null,n)).catch(n.oe)},Verify:function(){n.e("pages/users/components/verify/index").then(function(){return resolve(n("6d51"))}.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,a.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,a.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,a.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,a.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,a.verifyCode)().then((function(i){(0,a.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,r.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("df3c")["default"])},f3eb:function(t,e,n){"use strict";var i=n("51a7"),u=n.n(i);u.a}},[["774f","common/runtime","common/vendor"]]]);
|