1 line
7.8 KiB
JavaScript
1 line
7.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_phone-index"],{"1ab3":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{disabled:!1,text:"获取验证码"}},methods:{sendCode:function(){var t=this;if(!this.disabled){this.disabled=!0;var e=60;this.text="剩余 "+e+"s";var n=setInterval((function(){e-=1,e<0&&clearInterval(n),t.text="剩余 "+e+"s",t.text<"剩余 0s"&&(t.disabled=!1,t.text="重新获取")}),1e3)}}}};e.default=i},"2b5d":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("5c47"),n("0506");var a=i(n("2634")),s=i(n("2fdc")),o=i(n("9b1b")),r=i(n("1ab3")),c=n("02aa"),d=n("672a"),u=n("8f59"),l=n("96e0"),f=i(n("283c")),p=n("e44d"),h={mixins:[r.default],components:{Verify:f.default},data:function(){return{phone:"",captcha:"",key:"",codeVal:""}},computed:(0,o.default)((0,o.default)({},(0,u.mapGetters)(["isLogin","viewColor"])),(0,l.configMap)(["wechat_phone_switch"])),onLoad:function(){this.isLogin||(0,p.toLogin)()},methods:{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(0,c.bindingPhone)({phone:t.phone,sms_code:t.captcha}).then((function(e){if(void 0===e.data||!e.data.is_bind)return t.$util.Tips({title:"绑定成功!",icon:"success"},{tab:5,url:"/pages/users/user_info/index"});uni.showModal({title:"是否绑定账号",content:e.message,confirmText:"绑定",success:function(e){if(e.confirm)(0,c.bindingPhone)({phone:t.phone,captcha:t.captcha,step:1}).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"})}})})).catch((function(e){return t.$util.Tips({title:e})})):t.$util.Tips({title:"请填写验证码"}):t.$util.Tips({title:"请输入正确的手机号码!"}):t.$util.Tips({title:"请填写手机号码!"})},code:function(t){var e=this;return(0,s.default)((0,a.default)().mark((function n(){var i;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e,i.phone){n.next=3;break}return n.abrupt("return",i.$util.Tips({title:"请填写手机号码!"}));case 3:if(/^1(3|4|5|7|8|9|6)\d{9}$/i.test(i.phone)){n.next=5;break}return n.abrupt("return",i.$util.Tips({title:"请输入正确的手机号码!"}));case 5:return e.disabled=!0,n.next=8,(0,d.registerVerify)({phone:i.phone,key:i.key,code:i.captcha,type:"binding",captchaType:"blockPuzzle",captchaVerification:t.captchaVerification}).then((function(t){e.disabled=!1,i.$util.Tips({title:t.message}),i.sendCode()})).catch((function(t){return e.disabled=!1,i.$util.Tips({title:t})}));case 8:case"end":return n.stop()}}),n)})))()},success:function(t){this.$refs.verify.hide(),this.code(t)},handleVerify:function(){this.$refs.verify.show()}}};e.default=h},"2ec5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"51a7":function(t,e,n){"use strict";n.r(e);var i=n("8fc7"),a=n("8fb0");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("a0eb0");var o=n("828b"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"23a0d849",null,!1,i["a"],void 0);e["default"]=r.exports},"574c":function(t,e,n){var i=n("9e2b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("4e472c96",i,!0,{sourceMap:!1,shadowMode:!1})},"8fb0":function(t,e,n){"use strict";n.r(e);var i=n("2b5d"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},"8fc7":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",{style:t.viewColor},[n("v-uni-form",{attrs:{"report-submit":"true"}},[n("v-uni-view",{staticClass:"ChangePassword"},[n("v-uni-view",{staticClass:"list"},[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",class:!0===t.disabled?"on":"",attrs:{disabled:t.disabled},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleVerify.apply(void 0,arguments)}}},[t._v(t._s(t.text))])],1)],1),n("v-uni-button",{staticClass:"confirmBnt",attrs:{"form-type":"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.editPwd.apply(void 0,arguments)}}},[t._v("确认绑定")])],1)],1),n("Verify",{ref:"verify",attrs:{captchaType:"blockPuzzle",imgSize:{width:"330px",height:"155px"}},on:{success:function(e){arguments[0]=e=t.$handleEvent(e),t.success.apply(void 0,arguments)}}})],1)},a=[]},"9e2b":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.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/* 文章场景相关 */uni-page-body[data-v-23a0d849]{background-color:#fff!important}body.?%PAGE?%[data-v-23a0d849]{background-color:#fff!important}.ChangePassword .phone[data-v-23a0d849]{font-size:%?32?%;font-weight:700;text-align:center;margin-top:%?55?%}.ChangePassword .list[data-v-23a0d849]{width:%?580?%;margin:%?53?% auto 0 auto}.ChangePassword .list .item[data-v-23a0d849]{width:100%;height:%?110?%;border-bottom:%?2?% solid #f0f0f0}.ChangePassword .list .item uni-input[data-v-23a0d849]{width:100%;height:100%;font-size:%?32?%}.ChangePassword .list .item .placeholder[data-v-23a0d849]{color:#b9b9bc}.ChangePassword .list .item uni-input.codeIput[data-v-23a0d849]{width:%?340?%}.ChangePassword .list .item .code[data-v-23a0d849]{font-size:%?32?%;background-color:initial;color:var(--view-theme)}.ChangePassword .list .item .code.on[data-v-23a0d849]{color:#b9b9bc}.ChangePassword .confirmBnt[data-v-23a0d849]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;color:#fff;margin:%?92?% auto 0 auto;text-align:center;line-height:%?90?%;background-color:var(--view-theme)}.getPhoneBtn[data-v-23a0d849]{font-size:%?32?%;width:%?580?%;height:%?90?%;border-radius:%?45?%;border:1px solid #3cb625;color:#3cb625;margin:%?40?% auto 0 auto;text-align:center;line-height:%?90?%}.getPhoneBtn .iconfont[data-v-23a0d849]{font-size:%?32?%;margin-right:%?12?%}',""]),t.exports=e},a0eb0:function(t,e,n){"use strict";var i=n("574c"),a=n.n(i);a.a}}]); |