徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
3.8 KiB

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_phone/index"],{"1adf":function(t,e,i){},"762e":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=n(i("6ec3")),u=i("a230"),o=i("7ba4"),s=i("8f59"),a=n(i("cef6")),r={mixins:[c.default,a.default],components:{Verify:function(){i.e("pages/users/components/verify/verify").then(function(){return resolve(i("a4ec"))}.bind(null,i)).catch(i.oe)}},data:function(){return{phone:"",captcha:"",isAuto:!1,isShowAuth:!1,key:"",authKey:"",type:0,show:!1}},computed:(0,s.mapGetters)(["isLogin"]),onLoad:function(t){this.isLogin?this.getVerifyCode():(0,o.toLogin)(),this.authKey=t.key||"",this.url=t.url||"",this.type=t.type||0},onShow:function(){t.removeStorageSync("form_type_cart")},methods:{onLoadFun:function(){this.getVerifyCode(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},getVerifyCode:function(){var t=this;(0,u.verifyCode)().then((function(e){t.$set(t,"key",e.data.key)}))},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,u.bindingUserPhone)({phone:e.phone,captcha:e.captcha}).then((function(i){if(void 0===i.data||!i.data.is_bind)return e.$util.Tips({title:"绑定成功",icon:"success"},{tab:5,url:"/pages/users/user_info/index"});t.showModal({title:"是否绑定账号",content:i.msg,confirmText:"绑定",success:function(t){if(t.confirm)(0,u.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:"您已取消绑定!"},{tab:5,url:"/pages/users/user_info/index"})}})})).catch((function(t){return e.$util.Tips({title:t})})):(0,u.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.$util.Tips({title:"请输入正确的手机号码!"}):e.$util.Tips({title:"请填写手机号码!"})},success:function(t){this.$refs.verify.hide();var e=this;(0,u.verifyCode)().then((function(i){(0,u.registerVerify)({phone:e.phone,type:"reset",key:i.data.key,captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){e.$util.Tips({title:t.msg}),e.sendCode()})).catch((function(t){return e.$util.Tips({title:t})}))}))},code:function(){return this.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.phone)?void this.$refs.verify.show():this.$util.Tips({title:"请输入正确的手机号码!"}):this.$util.Tips({title:"请填写手机号码!"})}}};e.default=r}).call(this,i("df3c")["default"])},"9ab7":function(t,e,i){"use strict";i.r(e);var n=i("762e"),c=i.n(n);for(var u in n)["default"].indexOf(u)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(u);e["default"]=c.a},bd80:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},c=[]},bf78:function(t,e,i){"use strict";i.r(e);var n=i("bd80"),c=i("9ab7");for(var u in c)["default"].indexOf(u)<0&&function(t){i.d(e,t,(function(){return c[t]}))}(u);i("cc2b");var o=i("828b"),s=Object(o["a"])(c["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=s.exports},cc13:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("7561");n(i("3240"));var c=n(i("bf78"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(c.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},cc2b:function(t,e,i){"use strict";var n=i("1adf"),c=i.n(n);c.a}},[["cc13","common/runtime","common/vendor","pages/users/common/vendor"]]]);