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 line
6.2 KiB
1 line
6.2 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-config-mobileChangeConfirm"],{"028f":function(e,t,n){"use strict";n.r(t);var i=n("f07a"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a},"1dc4":function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("fe44")),a={data:function(){return{mobilePhone:"",mobilePhoneOld:"",code:"",type:5}},onLoad:function(e){this.mobilePhoneOld=e.hasOwnProperty("mobile")?e.mobile:""},methods:{finish:function(){return this.mobilePhone?this.code?void o.default.bindNewMobilePhone(this.mobilePhone,this.mobilePhoneOld,this.code).then((function(e){0==e.code&&uni.navigateBack({delta:1})})):(this.cn.toast("请输入验证码"),!1):(this.cn.toast("请输入手机号"),!1)}}};t.default=a},2483:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={tyRegisterGetCode:n("7191").default},o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"user-config-mobile-change-confirm-page"},[n("v-uni-view",{staticClass:"page-content"},[n("v-uni-view",[n("v-uni-view",{staticClass:"margin-left-30 padding-right-30 line-height-100 border-bottom-ed"},[n("v-uni-input",{staticClass:"line-height-100",attrs:{type:"number",maxlength:"11",placeholder:"请输入手机号","placeholder-class":"text-28 text-b3"},model:{value:e.mobilePhone,callback:function(t){e.mobilePhone=t},expression:"mobilePhone"}})],1),n("v-uni-view",{staticClass:"padding-lr-30 line-height-100 border-bottom-ed flex align-center"},[n("v-uni-input",{staticClass:"flex-one line-height-100",attrs:{type:"number",maxlength:"4",placeholder:"请输入验证码","placeholder-class":"text-28 text-b3"},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}}),n("ty-register-get-code",{attrs:{"mobile-phone":e.mobilePhone,type:e.type}})],1),n("v-uni-view",{staticClass:"margin-top-100 margin-lr-30 line-height-90 radius-45 bg-main-gradient text-center text-32 text-ff",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.finish()}}},[e._v("完成")])],1)],1),n("v-uni-view",{staticClass:"page-layer"})],1)},a=[]},7191:function(e,t,n){"use strict";n.r(t);var i=n("83bd"),o=n("028f");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);var c=n("f0c5"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"c4f4925c",null,!1,i["a"],void 0);t["default"]=u.exports},"83bd":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"register-get-code-cn"},[n("v-uni-view",{staticClass:"cn-content"},[e.canSendCode?n("v-uni-view",{staticClass:"text-28 text-1a",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getCode.apply(void 0,arguments)}}},[e._v("获取验证码")]):n("v-uni-view",{staticClass:"text-right text-28 text-4d"},[e._v(e._s(e.second)+"s")])],1),n("v-uni-view",{staticClass:"cn-layer"})],1)},o=[]},"9b39":function(e,t,n){"use strict";n.r(t);var i=n("1dc4"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a},abf6:function(e,t,n){"use strict";n.r(t);var i=n("2483"),o=n("9b39");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("ec6e");var c=n("f0c5"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"35b8bf42",null,!1,i["a"],void 0);t["default"]=u.exports},d049:function(e,t,n){var i=n("f61d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=n("4f06").default;o("619e62be",i,!0,{sourceMap:!1,shadowMode:!1})},ec6e:function(e,t,n){"use strict";var i=n("d049"),o=n.n(i);o.a},f07a:function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3");var o=i(n("4e85")),a=i(n("798d")),c={props:{mobilePhone:{type:String,default:""},type:{type:Number,default:1},maxSecond:{type:Number,default:60}},data:function(){return{canClick:!0,canSendCode:!0,second:60,code:"",codeIntervalTimer:""}},created:function(){this.second=this.maxSecond},methods:{getCode:function(){var e=this;return 11!=this.mobilePhone.length?(o.default.alert("请输入正确的手机号"),!1):!!this.canClick&&(this.canClick=!1,void a.default.getData("base/user/api/Login/sendCodeMessage",{mobile_phone:this.mobilePhone,type:this.type}).then((function(t){e.canClick=!0,0==t.code&&(e.canSendCode=!1,o.default.toast("发送成功"),e.codeIntervalTimer=setInterval((function(){e.second--,e.second<=0&&(e.second=e.maxSecond,e.canSendCode=!0,clearInterval(e.codeIntervalTimer))}),1e3))})))}}};t.default=c},f61d:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,"uni-page-body[data-v-35b8bf42]{background:#fff}body.?%PAGE?%[data-v-35b8bf42]{background:#fff}",""]),e.exports=t},fe44:function(e,t,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("d3b7");var o=i(n("798d")),a={getMobilePhone:function(){return new Promise((function(e,t){o.default.getData("base/user/api/User/getMobilePhone").then((function(t){e(t)})).catch((function(e){t(e)}))}))},verifyOldMobilePhone:function(e,t){return new Promise((function(n,i){o.default.getData("base/user/api/Login/verifyOldMobilePhone",{mobile_phone:e,code:t}).then((function(e){n(e)})).catch((function(e){i(e)}))}))},bindNewMobilePhone:function(e,t,n){return new Promise((function(i,a){o.default.getData("base/user/api/Login/bindNewMobilePhone",{mobile_phone:e,mobile_phone_old:t,code:n}).then((function(e){i(e)})).catch((function(e){a(e)}))}))},updatePassword:function(e,t,n,i){return new Promise((function(a,c){o.default.getData("base/user/api/Login/updatePassword",{mobile_phone:e,code:t,password:n,password_confirm:i},{loading:!0}).then((function(e){a(e)})).catch((function(e){c(e)}))}))},isBindAliPay:function(){return new Promise((function(e,t){o.default.getData("base/user/api/Alipay/isBindAliPay").then((function(t){e(t)})).catch((function(e){t(e)}))}))}},c=a;t.default=c}}]); |