1 line
8.0 KiB
JavaScript
1 line
8.0 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_phone-index"],{7205:function(t,e,n){"use strict";var i=n("d080"),a=n.n(i);a.a},"77db":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"ChangePassword"},[n("v-uni-view",{staticClass:"list"},[t.isNew?n("v-uni-view",{staticClass:"item"},[n("v-uni-input",{attrs:{type:"number",disabled:"true",placeholder:"填写手机号码1","placeholder-class":"placeholder"},model:{value:t.userInfo.phone,callback:function(e){t.$set(t.userInfo,"phone",e)},expression:"userInfo.phone"}})],1):t._e(),t.isNew?t._e():n("v-uni-view",{staticClass:"item"},[n("v-uni-input",{attrs:{type:"number",placeholder:"填写手机号码","placeholder-class":"placeholder"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"填写验证码","placeholder-class":"placeholder"},model:{value:t.captcha,callback:function(e){t.captcha=e},expression:"captcha"}}),n("v-uni-button",{staticClass:"code font-color",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.code.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1)],1),t.isNew?n("v-uni-button",{staticClass:"confirmBnt bg-color",attrs:{"form-type":"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.next.apply(void 0,arguments)}}},[t._v("下一步")]):t._e(),t.isNew?t._e():n("v-uni-button",{staticClass:"confirmBnt bg-color",attrs:{"form-type":"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.editPwd.apply(void 0,arguments)}}},[t._v("保存")])],1)],1)},a=[]},"82d2":function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("c7eb")),s=i(n("1da1"));n("ac1f"),n("00b4");var r=i(n("adb9")),o=n("ed11"),c=n("c2a3"),u=n("26cb"),d={mixins:[r.default],components:{},data:function(){return{phone:"",captcha:"",isAuto:!1,isShowAuth:!1,key:"",isNew:!0,timer:"",text:"获取验证码",nums:60}},mounted:function(){},computed:(0,u.mapGetters)(["isLogin","userInfo"]),onLoad:function(){this.isLogin||(0,c.toLogin)()},methods:{getTimes:function(){this.nums=this.nums-1,this.text="剩余 "+this.nums+"s",this.nums<0&&clearInterval(this.timer),this.text="剩余 "+this.nums+"s",this.text<"剩余 0s"&&(this.disabled=!1,this.text="重新获取")},onLoadFun:function(){},authColse:function(t){this.isShowAuth=t},next:function(){var t=this;if(uni.hideLoading(),this.isNew=!1,this.captcha="",clearInterval(this.timer),this.disabled=!1,this.text="获取验证码",uni.showLoading({title:"加载中",mask:!0}),!this.captcha)return this.$util.Tips({title:"请填写验证码"});(0,o.bindingVerify)({phone:this.userInfo.phone,captcha:this.captcha}).then((function(e){uni.hideLoading(),t.isNew=!1,t.captcha="",clearInterval(t.timer),t.disabled=!1,t.text="获取验证码"})).catch((function(e){return t.$util.Tips({title:e})}))},editPwd:function(){var t=this;return t.phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(t.phone)?t.captcha?void uni.showModal({title:"是否更换绑定账号",confirmText:"绑定",success:function(e){if(e.confirm)(0,o.bindingPhone)({phone:t.phone,captcha:t.captcha}).then((function(e){return t.$util.Tips({title:e.message,icon:"success"},{tab:5,url:"/pages/users/user_info/index"})})).catch((function(e){return t.$util.Tips({title:e})}));else if(e.cancel)return t.$util.Tips({title:"您已取消更换绑定!"},{tab:5,url:"/pages/users/user_info/index"})}}):t.$util.Tips({title:"请填写验证码"}):t.$util.Tips({title:"请输入正确的手机号码!"}):t.$util.Tips({title:"请填写手机号码!"})},code:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var n;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){c
|