pages-change-phone-change-phone.e7822759.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-change-phone-change-phone"],{"0e96":function(e,t,i){"use strict";var n=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t._API_checkCode=t._API_ChangeBindPhone=t._API_ChangeBindCode=t._API_GzhWebInits=t._API_GzhWebInit=t._API_Logout=t._API_UpdataPsw=t._API_LoginByPsw=t._API_GetVerifyCode=t._API_LoginWX=t._API_Login=t._API_Reg=void 0;var o=n(i("cacb")),a=function(e){return o.default.get("/login/register",e)};t._API_Reg=a;var r=function(e){return o.default.get("/login/login",e)};t._API_Login=r;var c=function(e){return o.default.get("/login/wechat_login",e)};t._API_LoginWX=c;var f=function(e){return o.default.get("/login/judge_login",e)};t._API_GetVerifyCode=f;var b=function(e){return o.default.post("/user/login",e)};t._API_LoginByPsw=b;var l=function(e){return o.default.post("/user/update_pass",e)};t._API_UpdataPsw=l;var d=function(e){return o.default.get("/logout",e)};t._API_Logout=d;var s=function(e){return o.default.get("/wechat/wechat")};t._API_GzhWebInit=s;var w=function(e){return o.default.get("/wechat/wechats")};t._API_GzhWebInits=w;var u=function(e){return o.default.get("/user/send_code",e)};t._API_ChangeBindCode=u;var k=function(e){return o.default.get("/user/change_num",e)};t._API_ChangeBindPhone=k;var x=function(e){return o.default.get("/login/get_user_openid",e)};t._API_checkCode=x},3971:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){return n}));var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"change-phone"},[i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"form"},[i("v-uni-navigator",{staticClass:"phone-area",attrs:{url:"../phone-area/phone-area"}},[i("v-uni-text",{staticClass:"text"},[e._v("国家/地区")]),i("v-uni-text",{staticClass:"area"},[e._v(e._s(e.areaName)+"("+e._s("86"==e.areaCode?"+":"")+e._s(e.areaCode)+")")]),i("v-uni-text",{staticClass:"icon cuIcon-right"})],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-text",{staticClass:"icon cuIcon-mobilefill"}),i("v-uni-input",{attrs:{maxlength:"11",type:"number",placeholder:"请输入要换绑的手机号"},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}}),e.phone?i("v-uni-text",{staticClass:"cuIcon-roundclosefill",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clearPhone.apply(void 0,arguments)}}}):e._e()],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-text",{staticClass:"icon cuIcon-markfill"}),i("v-uni-input",{attrs:{maxlength:"6",type:"number",placeholder:"请输入6位验证码"},model:{value:e.verifycode,callback:function(t){e.verifycode=t},expression:"verifycode"}}),e.verifycode?i("v-uni-text",{staticClass:"cuIcon-roundclosefill",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clearVerify.apply(void 0,arguments)}}}):e._e(),i("v-uni-view",{staticClass:"countdown",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getCode.apply(void 0,arguments)}}},[e._v("发送验证码"),e.countDown?i("v-uni-text",[e._v(e._s(" "+e.countDown))]):e._e()],1)],1)],1),i("v-uni-button",{staticClass:"big-btn bg",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[e._v("立即换绑")])],1)],1)},a=[]},"8beb":function(e,t,i){"use strict";var n=i("c887"),o=i.n(n);o.a},"9a3d":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i("0e96"),o={data:function(){return{areaName:"中国大陆",areaCode:"86",phone:"",verifycode:"",countDown:0}},created:function(){var e=this;uni.$on("CHOOSEPHONECODE",(function(t,i){e.areaName=t,e.areaCode=i}))},methods:{getCode:function(){var e=this;this.phone.length?this.countDown?uni.toast("验证码已发送,请稍后重试"):(uni.showLoading({mask:!0}),(0,n._API_ChangeBindCode)({mobile:this.phone,code:this.areaCode}).then((function(t){200==t.code?(uni.toast("验证码发送成功"),e.countDown=120,e.timer=setInterval((function(){e.countDown--,e.countDown<=0&&(e.countDown=0,clearInterval(e.timer))}),1e3)):uni.toast(t.message)}))):uni.toast("手机号格式不正确,请重新输入")},submit:function(){var e=this;6==this.verifycode.length?(uni.showLoading({mask:!0}),(0,n._API_ChangeBindPhone)({mobile:this.phone,verify_code:this.verifycode}).then((function(t){200==t.code?(e.$store.commit("app/LOGOUT"),uni.reLaunch({url:"../login-psw/login-psw"})):uni.toast(t.message)}))):uni.toast("验证码格式不正确,请重新输入")}}};t.default=o},a0a6:function(e,t,i){"use strict";i.r(t);var n=i("9a3d"),o=i.n(n);for(var a in n)"default"!==a&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},c6c6:function(e,t,i){"use strict";i.r(t);var n=i("3971"),o=i("a0a6");for(var a in o)"default"!==a&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("8beb");var r,c=i("f0c5"),f=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"2df883fb",null,!1,n["a"],r);t["default"]=f.exports},c887:function(e,t,i){var n=i("f680");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("4f06").default;o("7f5294f4",n,!0,{sourceMap:!1,shadowMode:!1})},f680:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-2df883fb]{margin-top:%?10?%}.app-item uni-input[data-v-2df883fb], .app-item uni-picker[data-v-2df883fb], .app-item uni-textarea[data-v-2df883fb]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-2df883fb]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-2df883fb]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-2df883fb]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-2df883fb]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-2df883fb]{color:#fff;background:#f76454}.small-btn[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-2df883fb]{color:#999;border-color:#999}.login-btn[data-v-2df883fb]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-2df883fb]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-2df883fb]{margin-right:%?20?%}.border-right[data-v-2df883fb]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-2df883fb]{margin-right:%?6?%}.position-center[data-v-2df883fb]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-2df883fb]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-2df883fb]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-2df883fb]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-2df883fb]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-2df883fb]{color:#f76454}.swiper-nav[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-2df883fb]{color:#f76454}.swiper-nav .moveBar[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-2df883fb]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-2df883fb]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-2df883fb]{width:100%;height:100%}.article-header[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-2df883fb]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-2df883fb]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-2df883fb]{color:#f76454}.article-footer[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-2df883fb]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-2df883fb]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-2df883fb]{color:#f76454}\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 */\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/* 文章场景相关 */.change-phone[data-v-2df883fb]{height:100%;box-sizing:border-box;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#f2f2f2}.change-phone .content[data-v-2df883fb]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;position:relative;box-sizing:border-box}.change-phone .content .form[data-v-2df883fb]{padding:%?30?%;margin-top:%?10?%;box-sizing:border-box;background-color:#fff}.change-phone .content .form .phone-area[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.change-phone .content .form .phone-area .text[data-v-2df883fb]{font-size:%?32?%}.change-phone .content .form .phone-area .area[data-v-2df883fb]{color:#42b983}.change-phone .content .form .item[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?110?%;padding-top:%?20?%;box-sizing:border-box;color:#999;border-bottom:%?1?% solid #b2b2b2}.change-phone .content .form .item .icon[data-v-2df883fb], .change-phone .content .form .item .cuIcon-roundclosefill[data-v-2df883fb]{margin:0 %?20?%;font-size:%?36?%}.change-phone .content .form .item uni-input[data-v-2df883fb]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?84?%;margin-left:%?15?%}.change-phone .content .form .item .countdown[data-v-2df883fb]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?50?%;font-size:%?24?%;padding:0 %?20?%;background:#ffeff0;margin-right:%?20?%;border-radius:%?33?%;color:#f76454}.change-phone .content .form .item .countdown uni-text[data-v-2df883fb]{margin-left:%?8?%}',""]),e.exports=t}}]);