zx/public/static/js/pages-users-user_modify_pho...

1 line
8.0 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_modify_phone-index"],{"09ac":function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("2634")),s=n(a("2fdc"));a("5c47"),a("0506");var o=n(a("1ab3")),c=a("02aa"),r=a("672a"),d=a("8f59"),u=a("e44d"),l=n(a("283c")),p={mixins:[o.default],components:{Verify:l.default},data:function(){return{userInfo:{},phone:"",captcha:"",key:"",codeVal:"",codeUrl:"",disabled:!1,isShowCode:!1}},computed:(0,d.mapGetters)(["isLogin","viewColor"]),onLoad:function(){this.isLogin?this.getUserInfo():(0,u.toLogin)()},methods:{getUserInfo:function(){var e=this;(0,r.getUserInfo)().then((function(t){e.userInfo=t.data}))},confirmSubmit: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,c.modifyPhone)({phone:e.phone,sms_code:e.captcha}).then((function(t){return e.$util.Tips({title:"修改成功!",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:"请填写手机号码!"})},code:function(e){var t=this;return(0,s.default)((0,i.default)().mark((function a(){var n;return(0,i.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=t,n.phone){a.next=3;break}return a.abrupt("return",n.$util.Tips({title:"请填写手机号码!"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(n.phone)){a.next=5;break}return a.abrupt("return",n.$util.Tips({title:"请输入正确的手机号码!"}));case 5:return n.disabled=!0,a.next=8,(0,r.registerVerify)({phone:n.phone,code:n.captcha,type:"change_phone",captchaType:"blockPuzzle",captchaVerification:e.captchaVerification}).then((function(e){n.disabled=!1,n.$util.Tips({title:e.message}),n.sendCode()})).catch((function(e){return n.disabled=!1,n.$util.Tips({title:e})}));case 8:case"end":return a.stop()}}),a)})))()},getcaptcha:function(){var e=this;(0,r.getCaptcha)().then((function(t){e.codeUrl=t.data.captcha})),e.isShowCode=!0},success:function(e){this.$refs.verify.hide(),this.code(e)},handleVerify:function(){this.$refs.verify.show()}}};t.default=p},"1ab3":function(e,t,a){"use strict";a("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var e=this;if(!this.disabled){this.disabled=!0;var t=60;this.text="剩余 "+t+"s";var a=setInterval((function(){t-=1,t<0&&clearInterval(a),e.text="剩余 "+t+"s",e.text<"剩余 0s"&&(e.disabled=!1,e.text="重新获取")}),1e3)}}}};t.default=n},2734:function(e,t,a){var n=a("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.ChangePassword[data-v-e6b5999c]{background:#fff;padding-top:%?53?%}.ChangePassword .phone[data-v-e6b5999c]{font-size:%?32?%}.ChangePassword .list[data-v-e6b5999c]{width:%?580?%;margin:0 auto}.ChangePassword .list .item[data-v-e6b5999c]{width:100%;height:%?110?%;display:flex;align-items:center;border-bottom:%?2?% solid #f0