pages-change-phone-change-phone.961b4fa0.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-change-phone-change-phone"],{2107:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e._API_checkCode=e._API_UpdataPsw=e._API_Reg=e._API_Logout=e._API_LoginWX=e._API_LoginByPsw=e._API_Login=e._API_GzhWebInit=e._API_GetVerifyCode=e._API_ChangeBindPhone=e._API_ChangeBindCode=void 0;var o=i(n("ef1d"));e._API_Reg=function(t){return o.default.get("/login/register",t)};e._API_Login=function(t){return o.default.get("/login/login",t)};e._API_LoginWX=function(t){return o.default.get("/login/wechat_login",t)};e._API_GetVerifyCode=function(t){return o.default.get("/login/judge_login",t)};e._API_LoginByPsw=function(t){return o.default.post("/user/login",t)};e._API_UpdataPsw=function(t){return o.default.post("/user/update_pass",t)};e._API_Logout=function(t){return o.default.get("/logout",t)};e._API_GzhWebInit=function(t){return o.default.get("/wechat/wechat")};e._API_ChangeBindCode=function(t){return o.default.get("/user/send_code",t)};e._API_ChangeBindPhone=function(t){return o.default.get("/user/change_num",t)};e._API_checkCode=function(t){return o.default.get("/login/get_user_openid",t)}},"799f":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"change-phone"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"form"},[n("v-uni-navigator",{staticClass:"phone-area",attrs:{url:"../phone-area/phone-area"}},[n("v-uni-text",{staticClass:"text"},[t._v("国家/地区")]),n("v-uni-text",{staticClass:"area"},[t._v(t._s(t.areaName)+"("+t._s(t.areaCode)+")")]),n("v-uni-text",{staticClass:"icon cuIcon-right"})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-text",{staticClass:"icon cuIcon-mobilefill"}),n("v-uni-input",{attrs:{maxlength:"11",type:"number",placeholder:"请输入要换绑的手机号"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}}),t.phone?n("v-uni-text",{staticClass:"cuIcon-roundclosefill",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.phone=""}}}):t._e()],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-text",{staticClass:"icon cuIcon-markfill"}),n("v-uni-input",{attrs:{maxlength:"6",type:"number",placeholder:"请输入6位验证码"},model:{value:t.verifycode,callback:function(e){t.verifycode=e},expression:"verifycode"}}),t.verifycode?n("v-uni-text",{staticClass:"cuIcon-roundclosefill",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearVerify.apply(void 0,arguments)}}}):t._e(),n("v-uni-view",{staticClass:"countdown",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getCode.apply(void 0,arguments)}}},[t._v("发送验证码"),t.countDown?n("v-uni-text",[t._v(t._s(" "+t.countDown))]):t._e()],1)],1)],1),n("v-uni-button",{staticClass:"big-btn bg",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submit.apply(void 0,arguments)}}},[t._v("立即换绑")])],1)],1)},o=[]},"7ad4":function(t,e,n){"use strict";n.r(e);var i=n("bc41"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},bc41:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2107"),o={data:function(){return{areaName:"中国大陆",areaCode:"+86",phone:"",verifycode:"",countDown:0}},created:function(){var t=this;uni.$on("CHOOSEPHONECODE",(function(e,n){t.areaName=e,t.areaCode=n}))},methods:{getCode:function(){var t=this;this.phone.length?this.countDown?uni.toast("验证码已发送,请稍后重试"):(uni.showLoading({mask:!0}),(0,i._API_ChangeBindCode)({mobile:this.phone,code:this.areaCode}).then((function(e){200==e.code?(uni.toast("验证码发送成功"),t.countDown=120,t.timer=setInterval((function(){t.countDown--,t.countDown<=0&&(t.countDown=0,clearInterval(t.timer))}),1e3)):uni.toast(e.message)}))):uni.toast("手机号格式不正确,请重新输入")},submit:function(){var t=this;6==this.verifycode.length?(uni.showLoading({mask:!0}),(0,i._API_ChangeBindPhone)({mobile:this.phone,verify_code:this.verifycode,code:this.areaCode}).then((function(e){200==e.code?(t.$store.commit("app/LOGOUT"),uni.reLaunch({url:"../login-reg/login-reg"})):uni.toast(e.message)}))):uni.toast("验证码格式不正确,请重新输入")}}};e.default=o},d238:function(t,e,n){var i=n("f001");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("0dfda60a",i,!0,{sourceMap:!1,shadowMode:!1})},f001:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-5d9193d9]{margin-top:%?10?%}.app-item uni-input[data-v-5d9193d9], .app-item uni-picker[data-v-5d9193d9], .app-item uni-textarea[data-v-5d9193d9]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-5d9193d9]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-5d9193d9]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-5d9193d9]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-5d9193d9]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;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-5d9193d9]{color:#fff;background:#f76454}.small-btn[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;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-5d9193d9]{color:#999;border-color:#999}.login-btn[data-v-5d9193d9]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;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-5d9193d9]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-5d9193d9]{margin-right:%?20?%}.border-right[data-v-5d9193d9]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-5d9193d9]{margin-right:%?6?%}.position-center[data-v-5d9193d9]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-5d9193d9]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-5d9193d9]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-5d9193d9]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-5d9193d9]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-5d9193d9]{color:#f76454}.swiper-nav[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;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-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-5d9193d9]{color:#f76454}.swiper-nav .moveBar[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-5d9193d9]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-5d9193d9]{flex:1;width:100%}.swiper-area uni-swiper[data-v-5d9193d9]{width:100%;height:100%}.article-header[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?120?%;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-5d9193d9]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%;margin-left:%?20?%;justify-content:flex-start}.article-header .name .identity[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;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-5d9193d9]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-5d9193d9]{color:#f76454}.article-footer[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-5d9193d9]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-5d9193d9]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-5d9193d9]{color:#f76454}\n/*主题色及按钮渐变背景*/\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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.change-phone[data-v-5d9193d9]{height:100%;box-sizing:border-box;flex-direction:column;background:#f2f2f2}.change-phone .content[data-v-5d9193d9]{flex:1;height:100%;position:relative;box-sizing:border-box}.change-phone .content .form[data-v-5d9193d9]{padding:%?30?%;margin-top:%?10?%;box-sizing:border-box;background-color:#fff}.change-phone .content .form .phone-area[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;flex-direction:row;justify-content:space-between}.change-phone .content .form .phone-area .text[data-v-5d9193d9]{font-size:%?32?%}.change-phone .content .form .phone-area .area[data-v-5d9193d9]{color:#42b983}.change-phone .content .form .item[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;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-5d9193d9],\n.change-phone .content .form .item .cuIcon-roundclosefill[data-v-5d9193d9]{margin:0 %?20?%;font-size:%?36?%}.change-phone .content .form .item uni-input[data-v-5d9193d9]{flex:1;height:%?84?%;margin-left:%?15?%}.change-phone .content .form .item .countdown[data-v-5d9193d9]{display:flex;align-items:center;justify-content:center;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-5d9193d9]{margin-left:%?8?%}',""]),t.exports=e},fa3e:function(t,e,n){"use strict";n.r(e);var i=n("799f"),o=n("7ad4");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("fa9d");var d=n("f0c5"),r=Object(d["a"])(o["default"],i["b"],i["c"],!1,null,"5d9193d9",null,!1,i["a"],void 0);e["default"]=r.exports},fa9d:function(t,e,n){"use strict";var i=n("d238"),o=n.n(i);o.a}}]);