1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-setPhone-setPhone"],{1628:function(n,e,t){"use strict";var o=t("e51c"),i=t.n(o);i.a},2618:function(n,e,t){"use strict";t.r(e);var o=t("5106"),i=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=i.a},"28e5":function(n,e,t){"use strict";t.r(e);var o=t("f42b"),i=t("2618");for(var c in i)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(c);t("1628");var a=t("f0c5"),s=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"6e7bce25",null,!1,o["a"],void 0);e["default"]=s.exports},5106:function(n,e,t){"use strict";t("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.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(e){console.log(e),console.log(e.data.data.mobile),4002!=e.data.code?(uni.setStorageSync("mobile",e.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:"手机号不能为空"})}}};e.default=o},"97c1":function(n,e,t){var o=t("24fb");e=o(!1),e.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-6e7bce25]{background-color:#f0f0f0}body.?%PAGE?%[data-v-6e7bce25]{background-color:#f0f0f0}.content[data-v-6e7bce25]{padding:%?21?% %?30?% 0}.content .input_box[data-v-6e7bce25]{margin-bottom:%?20?%;padding:%?20?% %?25?%;background-color:#fff}.content .input_box uni-input[data-v-6e7bce25]{height:%?60?%;font-size:%?34?%;color:#333}.content .send_box[data-v-6e7bce25]{display:flex;justify-content:space-between;margin-bottom:%?20?%}.content .send_box .send_code[data-v-6e7bce25]{width:%?400?%;padding:%?20?% %?25?%;background-color:#fff}.content .send_box .send_code uni-input[data-v-6e7bce25]{height:%?60?%;font-size:%?34?%;color:#333}.content .send_box .send_btn[data-v-6e7bce25]{width:%?200?%;background-color:#009fe8;text-align:center;color:#fff;font-size:%?34?%;line-height:%?100?%}.content .re_btn[data-v-6e7bce25]{background-color:#009fe8;text-align:center;color:#fff;font-size:%?34?%;line-height:%?100?%}',""]),n.exports=e},e51c:function(n,e,t){var o=t("97c1");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);var i=t("4f06").default;i("b34e5438",o,!0,{sourceMap:!1,shadowMode:!1})},f42b:function(n,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){}));var o=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-uni-view",[t("v-uni-view",{staticClass:"content"},[t("v-uni-view",{staticClass:"input_box"},[t("v-uni-input",{attrs:{type:"text",placeholder:"请输入手机号","placeholder-style":"color:#999;"},model:{value:n.mobile,callback:function(e){n.mobile=e},expression:"mobile"}})],1),t("v-uni-view",{staticClass:"send_box"},[t("v-uni-view",{staticClass:"send_code"},[t("v-uni-input",{attrs:{type:"text",placeholder:"验证码","placeholder-style":"color:#999;"},model:{value:n.vcode,callback:function(e){n.vcode=e},expression:"vcode"}})],1),t("v-uni-view",{staticClass:"send_btn",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.send_vcode()}}},[n._v(n._s(n.send_text))])],1),t("v-uni-view",{staticClass:"re_btn",on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.bang_phone()}}},[n._v("绑定")])],1)],1)},i=[]}}]);
|