pages-profile-changephone.f5c3dedf.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-profile-changephone"],{"2deb":function(e,t,o){var a=o("24fb");t=a(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */.u-line-1[data-v-e43c6128]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2[data-v-e43c6128]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3[data-v-e43c6128]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4[data-v-e43c6128]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5[data-v-e43c6128]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border[data-v-e43c6128]{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top[data-v-e43c6128]{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left[data-v-e43c6128]{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right[data-v-e43c6128]{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom[data-v-e43c6128]{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom[data-v-e43c6128]{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button[data-v-e43c6128]{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button[data-v-e43c6128]::after{border:none}.u-hover-class[data-v-e43c6128]{opacity:.7}.u-primary-light[data-v-e43c6128]{color:#ecf5ff}.u-warning-light[data-v-e43c6128]{color:#fdf6ec}.u-success-light[data-v-e43c6128]{color:#f5fff0}.u-error-light[data-v-e43c6128]{color:#fef0f0}.u-info-light[data-v-e43c6128]{color:#f4f4f5}.u-primary-light-bg[data-v-e43c6128]{background-color:#ecf5ff}.u-warning-light-bg[data-v-e43c6128]{background-color:#fdf6ec}.u-success-light-bg[data-v-e43c6128]{background-color:#f5fff0}.u-error-light-bg[data-v-e43c6128]{background-color:#fef0f0}.u-info-light-bg[data-v-e43c6128]{background-color:#f4f4f5}.u-primary-dark[data-v-e43c6128]{color:#398ade}.u-warning-dark[data-v-e43c6128]{color:#f1a532}.u-success-dark[data-v-e43c6128]{color:#53c21d}.u-error-dark[data-v-e43c6128]{color:#e45656}.u-info-dark[data-v-e43c6128]{color:#767a82}.u-primary-dark-bg[data-v-e43c6128]{background-color:#398ade}.u-warning-dark-bg[data-v-e43c6128]{background-color:#f1a532}.u-success-dark-bg[data-v-e43c6128]{background-color:#53c21d}.u-error-dark-bg[data-v-e43c6128]{background-color:#e45656}.u-info-dark-bg[data-v-e43c6128]{background-color:#767a82}.u-primary-disabled[data-v-e43c6128]{color:#9acafc}.u-warning-disabled[data-v-e43c6128]{color:#f9d39b}.u-success-disabled[data-v-e43c6128]{color:#a9e08f}.u-error-disabled[data-v-e43c6128]{color:#f7b2b2}.u-info-disabled[data-v-e43c6128]{color:#c4c6c9}.u-primary[data-v-e43c6128]{color:#3c9cff}.u-warning[data-v-e43c6128]{color:#f9ae3d}.u-success[data-v-e43c6128]{color:#5ac725}.u-error[data-v-e43c6128]{color:#f56c6c}.u-info[data-v-e43c6128]{color:#909399}.u-primary-bg[data-v-e43c6128]{background-color:#3c9cff}.u-warning-bg[data-v-e43c6128]{background-color:#f9ae3d}.u-success-bg[data-v-e43c6128]{background-color:#5ac725}.u-error-bg[data-v-e43c6128]{background-color:#f56c6c}.u-info-bg[data-v-e43c6128]{background-color:#909399}.u-main-color[data-v-e43c6128]{color:#303133}.u-content-color[data-v-e43c6128]{color:#606266}.u-tips-color[data-v-e43c6128]{color:#909193}.u-light-color[data-v-e43c6128]{color:#c0c4cc}.u-safe-area-inset-top[data-v-e43c6128]{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right[data-v-e43c6128]{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom[data-v-e43c6128]{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left[data-v-e43c6128]{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast[data-v-e43c6128]{z-index:10090}uni-toast .uni-toast[data-v-e43c6128]{z-index:10090}[data-v-e43c6128]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.publish[data-v-e43c6128]{margin:%?128?% auto;width:%?650?%;height:%?104?%;line-height:%?104?%;text-align:center;background:linear-gradient(270deg,#a890fe,#ffaeae);border-radius:%?52?%;font-size:%?36?%;color:#fff}.index[data-v-e43c6128]{padding:%?70?% %?60?% 0;color:#222}.index .title[data-v-e43c6128]{font-size:%?44?%;font-weight:600;margin-bottom:%?50?%}.index .phone[data-v-e43c6128]{height:%?128?%;line-height:%?128?%;border-bottom:%?2?% solid #f2f2f2}.index .phone uni-input[data-v-e43c6128]{flex:1}.index .phone .code[data-v-e43c6128]{font-size:%?32?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#999;background:linear-gradient(270deg,#a890fe,#ffaeae);-webkit-background-clip:text;-webkit-text-fill-color:transparent}',""]),e.exports=t},3066:function(e,t,o){"use strict";o.r(t);var a=o("6dda"),n=o.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return a[e]}))}(i);t["default"]=n.a},4895:function(e,t,o){var a=o("2deb");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=o("4f06").default;n("25c7988b",a,!0,{sourceMap:!1,shadowMode:!1})},"6dda":function(e,t,o){"use strict";o("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={data:function(){return{tips:"获取验证码",s:60,time:null,isStart:!0,oldPhone:"",oldCode:"",newPhone:"",newCode:""}},methods:{submit:function(){var e=this;this.newPhone?this.newCode?uni.$u.http.post("/api/user/eidt_phone",{phone:this.oldPhone,code:this.oldCode,new_phone:this.newPhone,new_code:this.newCode}).then((function(t){1==t.code&&(e.$u.toast(t.msg),setTimeout((function(){uni.navigateBack({})}),2e3))})):this.$u.toast("请输入新手机号验证码"):this.$u.toast("请输入新手机号")},next:function(){this.oldPhone?this.oldCode?(this.s=60,this.tips="获取验证码",this.isStart=!1):this.$u.toast("请输入旧手机号验证码"):this.$u.toast("请输入旧手机号")},send:function(){var e=this;if(60!=this.s)return uni.showToast({title:"请稍后再试",duration:2e3,icon:"none"}),!1;if(this.isStart){if(!this.oldPhone)return uni.showToast({title:"请输入旧手机号",duration:2e3,icon:"none"}),!1}else if(!this.newPhone)return uni.showToast({title:"请输入新手机号",duration:2e3,icon:"none"}),!1;uni.showLoading({mask:!0,title:"请稍后"});var t={};t.phone=this.tel,t.event="register",this.$u.post("/api/Sms/send",t).then((function(t){uni.hideLoading(),uni.showToast({title:t.msg,duration:2e3,icon:"none"}),1==t.code&&(e.time=setInterval((function(){e.s--,e.tips="".concat(e.s,"s"),0==e.s&&(e.s=60,e.tips="重新发送",clearInterval(e.time))}),1e3))}))}}};t.default=a},8275:function(e,t,o){"use strict";o.r(t);var a=o("951d"),n=o("3066");for(var i in n)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(i);o("91cc");var r=o("f0c5"),d=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"e43c6128",null,!1,a["a"],void 0);t["default"]=d.exports},"91cc":function(e,t,o){"use strict";var a=o("4895"),n=o.n(a);n.a},"951d":function(e,t,o){"use strict";o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("v-uni-view",{staticClass:"index"},[e.isStart?o("v-uni-view",{},[o("v-uni-view",{staticClass:"title"},[e._v("更换手机号")]),o("v-uni-view",{staticClass:"phone u-flex"},[o("v-uni-input",{attrs:{type:"number",placeholder:"请输入手机号"},model:{value:e.oldPhone,callback:function(t){e.oldPhone=t},expression:"oldPhone"}})],1),o("v-uni-view",{staticClass:"phone u-flex"},[o("v-uni-input",{attrs:{type:"number",placeholder:"请输入短信验证码"},model:{value:e.oldCode,callback:function(t){e.oldCode=t},expression:"oldCode"}}),o("v-uni-text",{staticClass:"code",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.send.apply(void 0,arguments)}}},[e._v(e._s(e.tips))])],1),o("v-uni-view",{staticClass:"publish",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.next.apply(void 0,arguments)}}},[e._v("下一步")])],1):o("v-uni-view",{},[o("v-uni-view",{staticClass:"title"},[e._v("新手机号")]),o("v-uni-view",{staticClass:"phone u-flex"},[o("v-uni-input",{attrs:{type:"number",placeholder:"请输入手机号"},model:{value:e.newPhone,callback:function(t){e.newPhone=t},expression:"newPhone"}})],1),o("v-uni-view",{staticClass:"phone u-flex"},[o("v-uni-input",{attrs:{type:"number",placeholder:"请输入短信验证码"},model:{value:e.newCode,callback:function(t){e.newCode=t},expression:"newCode"}}),o("v-uni-text",{staticClass:"code",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.send.apply(void 0,arguments)}}},[e._v(e._s(e.tips))])],1),o("v-uni-view",{staticClass:"publish",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)},n=[]}}]);