pages-my-setPhone-setPhone.a88b133a.js 5.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-setPhone-setPhone"],{2618:function(n,t,e){"use strict";e.r(t);var o=e("5106"),i=e.n(o);for(var c in o)"default"!==c&&function(n){e.d(t,n,(function(){return o[n]}))}(c);t["default"]=i.a},"28e5":function(n,t,e){"use strict";e.r(t);var o=e("8a0c"),i=e("2618");for(var c in i)"default"!==c&&function(n){e.d(t,n,(function(){return i[n]}))}(c);e("fc68");var a,s=e("f0c5"),r=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"ef19c476",null,!1,o["a"],a);t["default"]=r.exports},5106:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{mobile:"",vcode:"",send_text:"发送验证码"}},methods:{send_vcode:function(){this.mobile.length<11?uni.showToast({icon:"none",title:"请填写正确的手机号"}):((this.send_text="发送验证码")&&this.$api.sms_vcode({mobile:this.mobile}).then((function(n){console.log(n.data),3001==n.data.code?uni.showToast({icon:"none",title:"电话号码错误"}):3002==n.data.code?uni.showToast({icon:"none",title:"发送失败"}):0==n.data.code&&uni.showToast({icon:"none",title:"验证码发送成功"})})),this.send_text="已发送",(this.send_text="已发送")&&uni.showToast({icon:"none",title:"请勿重复发送"}))},bang_phone:function(){var n=this;""!=this.mobile?""!=this.vcode?this.$api.user_mobile_set({mobile:this.mobile,vcode:this.vcode}).then((function(t){console.log(t),console.log(t.data.data.mobile),4002!=t.data.code?(uni.setStorageSync("mobile",t.data.data.mobile),uni.showToast({icon:"none",title:"手机绑定成功"}),n.send_text="发送验证码",setTimeout((function(){uni.navigateBack()}),1500)):uni.showToast({icon:"none",title:"验证码超时或者错误"})})):uni.showToast({icon:"none",title:"验证码不能为空"}):uni.showToast({icon:"none",title:"手机号不能为空"})}}};t.default=o},"5e76":function(n,t,e){var o=e("b3d0");"string"===typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);var i=e("4f06").default;i("077d2834",o,!0,{sourceMap:!1,shadowMode:!1})},"8a0c":function(n,t,e){"use strict";var o;e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return c})),e.d(t,"a",(function(){return o}));var i=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",[e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"input_box"},[e("v-uni-input",{attrs:{type:"text",placeholder:"请输入手机号","placeholder-style":"color:#999;"},model:{value:n.mobile,callback:function(t){n.mobile=t},expression:"mobile"}})],1),e("v-uni-view",{staticClass:"send_box"},[e("v-uni-view",{staticClass:"send_code"},[e("v-uni-input",{attrs:{type:"text",placeholder:"验证码","placeholder-style":"color:#999;"},model:{value:n.vcode,callback:function(t){n.vcode=t},expression:"vcode"}})],1),e("v-uni-view",{staticClass:"send_btn",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.send_vcode()}}},[n._v(n._s(n.send_text))])],1),e("v-uni-view",{staticClass:"re_btn",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.bang_phone()}}},[n._v("绑定")])],1)],1)},c=[]},b3d0:function(n,t,e){var o=e("24fb");t=o(!1),t.push([n.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 */\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/* 文章场景相关 */uni-page-body[data-v-ef19c476]{background-color:#f0f0f0}.content[data-v-ef19c476]{padding:%?21?% %?30?% 0}.content .input_box[data-v-ef19c476]{margin-bottom:%?20?%;padding:%?20?% %?25?%;background-color:#fff}.content .input_box uni-input[data-v-ef19c476]{height:%?60?%;font-size:%?34?%;color:#333}.content .send_box[data-v-ef19c476]{display:flex;justify-content:space-between;margin-bottom:%?20?%}.content .send_box .send_code[data-v-ef19c476]{width:%?400?%;padding:%?20?% %?25?%;background-color:#fff}.content .send_box .send_code uni-input[data-v-ef19c476]{height:%?60?%;font-size:%?34?%;color:#333}.content .send_box .send_btn[data-v-ef19c476]{width:%?200?%;background-color:#009fe8;text-align:center;color:#fff;font-size:%?34?%;line-height:%?100?%}.content .re_btn[data-v-ef19c476]{background-color:#009fe8;text-align:center;color:#fff;font-size:%?34?%;line-height:%?100?%}body.?%PAGE?%[data-v-ef19c476]{background-color:#f0f0f0}',""]),n.exports=t},fc68:function(n,t,e){"use strict";var o=e("5e76"),i=e.n(o);i.a}}]);