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

1 line
8.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(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 #f0f0f0}.ChangePassword .list .item uni-input[data-v-e6b5999c]{width:100%;height:100%;font-size:%?32?%}.ChangePassword .list .item .placeholder[data-v-e6b5999c]{color:#b9b9bc}.ChangePassword .list .item uni-input.codeIput[data-v-e6b5999c]{width:%?340?%}.ChangePassword .list .item .code[data-v-e6b5999c]{font-size:%?32?%;position:relative;padding-left:%?26?%;color:var(--view-theme)}.ChangePassword .list .item .code[data-v-e6b5999c]::before{content:"";width:%?1?%;height:%?30?%;position:absolute;top:%?10?%;left:0;background:#ddd;display:inline-block}.ChangePassword .list .item .code[disabled][data-v-e6b5999c]{background:transparent}.ChangePassword .list .item .code.on[data-v-e6b5999c]{color:#b9b9bc!important}.ChangePassword .list .item .code-img[data-v-e6b5999c]{width:%?100?%;height:%?50?%}.confirmBnt[data-v-e6b5999c]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;color:#fff;margin:%?70?% auto 0 auto;text-align:center;line-height:%?90?%;background-color:var(--view-theme)}',""]),e.exports=t},"2ec5":function(e,t,a){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"3bba":function(e,t,a){"use strict";a.r(t);var n=a("09ac"),i=a.n(n);for(var s in n)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},"4faf":function(e,t,a){"use strict";a.r(t);var n=a("56bf"),i=a("3bba");for(var s in i)["default"].indexOf(s)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("a0a3");var o=a("828b"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"e6b5999c",null,!1,n["a"],void 0);t["default"]=c.exports},"56bf":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{style:e.viewColor},[a("v-uni-form",{attrs:{"report-submit":"true"}},[a("v-uni-view",[a("v-uni-view",{staticClass:"ChangePassword"},[a("v-uni-view",{staticClass:"list"},[a("v-uni-view",{staticClass:"item"},[a("v-uni-text",{staticClass:"phone"},[e._v(e._s(e.userInfo.phone))])],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-input",{attrs:{type:"number",placeholder:"新手机号","placeholder-class":"placeholder"},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}})],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-input",{staticClass:"codeIput",attrs:{type:"number",placeholder:"验证码","placeholder-class":"placeholder"},model:{value:e.captcha,callback:function(t){e.captcha=t},expression:"captcha"}}),a("v-uni-button",{staticClass:"code",class:!0===e.disabled?"on":"",attrs:{disabled:e.disabled},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleVerify.apply(void 0,arguments)}}},[e._v(e._s(e.text))])],1),e.isShowCode?a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-input",{staticClass:"codeIput",attrs:{type:"text","placeholder-class":"placeholder",placeholder:"填写验证码"},model:{value:e.codeVal,callback:function(t){e.codeVal=t},expression:"codeVal"}}),a("v-uni-view",{staticClass:"code",on:{click:function(t){arguments[0]=t=e.$handleEvent(t)}}},[a("v-uni-image",{staticClass:"code-img",attrs:{src:e.codeUrl}})],1)],1):e._e()],1)],1),a("v-uni-button",{staticClass:"confirmBnt",attrs:{"form-type":"submit"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirmSubmit.apply(void 0,arguments)}}},[e._v("确认")])],1)],1),a("Verify",{ref:"verify",attrs:{captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"}},on:{success:function(t){arguments[0]=t=e.$handleEvent(t),e.success.apply(void 0,arguments)}}})],1)},i=[]},"577a":function(e,t,a){var n=a("2734");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("967d").default;i("28910806",n,!0,{sourceMap:!1,shadowMode:!1})},a0a3:function(e,t,a){"use strict";var n=a("577a"),i=a.n(n);i.a}}]);