1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-repassword-repassword"],{"076e":function(n,t,o){"use strict";var e=o("5c32"),s=o.n(e);s.a},"17bf":function(n,t,o){"use strict";o.r(t);var e=o("806f"),s=o("d910");for(var i in s)"default"!==i&&function(n){o.d(t,n,(function(){return s[n]}))}(i);o("076e");var a,c=o("f0c5"),r=Object(c["a"])(s["default"],e["b"],e["c"],!1,null,"2c1f4684",null,!1,e["a"],a);t["default"]=r.exports},"52f9":function(n,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=/^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_!@#$%^&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\W_!@#$%^&*`~()-+=]+$)(?![0-9\W_!@#$%^&*`~()-+=]+$)[a-zA-Z0-9\W_!@#$%^&*`~()-+=]{8,15}$/,s={data:function(){return{mobile:"",vcode:"",password:"",copypassword:"",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:"请勿重复发送"}))},repassword:function(){var n=this;""!=this.vcode?""!=this.password&&""!=this.copypassword?this.password===this.copypassword?e.test(this.password)?this.$api.user_repassword({mobile:this.mobile,vcode:this.vcode,password:this.password}).then((function(t){console.log(t),4002!=t.data.code?(uni.setStorageSync("login_password",n.password),uni.showToast({icon:"none",title:"密码修改成功"}),n.send_text="发送验证码",setTimeout((function(){uni.switchTab({url:"../../tabbar/my/my"})}),1e3)):uni.showToast({icon:"none",title:"验证码超时或者错误"})})):uni.showToast({icon:"none",title:"密码必须包含大写字母、小写字母、数字和特殊符号且长度在8位至16位之间"}):uni.showToast({icon:"none",title:"两次密码输入不一致"}):uni.showToast({icon:"none",title:"请填写完整信息"}):uni.showToast({icon:"none",title:"请填写验证码"})}}};t.default=s},"5c32":function(n,t,o){var e=o("a9a6");"string"===typeof e&&(e=[[n.i,e,""]]),e.locals&&(n.exports=e.locals);var s=o("4f06").default;s("01c3d96a",e,!0,{sourceMap:!1,shadowMode:!1})},"806f":function(n,t,o){"use strict";var e;o.d(t,"b",(function(){return s})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){return e}));var s=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("v-uni-view",[o("v-uni-view",{staticClass:"content"},[o("v-uni-view",{staticClass:"input_box"},[o("v-uni-input",{attrs:{type:"number",placeholder:"请输入手机号","placeholder-style":"color:#999;"},model:{value:n.mobile,callback:function(t){n.mobile=t},expression:"mobile"}})],1),o("v-uni-view",{staticClass:"send_box"},[o("v-uni-view",{staticClass:"send_code"},[o("v-uni-input",{attrs:{type:"number",placeholder:"验证码","placeholder-style":"color:#999;"},model:{value:n.vcode,callback:function(t){n.vcode=t},expression:"vcode"}})],1),o("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),o("v-uni-view",{staticClass:"input_box"},[o("v-uni-input",{attrs:{type:"password",placeholder:"请输入新密码","placeholder-style":"color:#999;"},model:{value:n.password,callback:function(t){n.password=t},expression:"password"}})],1),o("v-uni-view",{staticClass:"input_box"},[o("v-uni-input",{attrs:{type:"password",placeholder:"请重复新密码","placeholder-style":"color:#999;"},model:{value:n.copypassword,callback:function(t){n.copypassword=t},expression:"copypassword"}})],1),o("v-uni-view",{staticClass:"re_btn",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.repassword()}}},[n._v("确认修改")])],1)],1)},i=[]},a9a6:function(n,t,o){var e=o("24fb");t=e(!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-2c1f4684]{box-sizing:border-box;padding:%?25?%;background-color:#f0f0f0}.content[data-v-2c1f4684]{width:%?700?%}.content .input_box[data-v-2c1f4684]{margin-bottom:10px;padding:0 25px;background-color:#fff}.content .input_box uni-input[data-v-2c1f4684]{height:45px;color:#333}.content .send_box[data-v-2c1f4684]{display:flex;justify-content:space-between;margin-bottom:10px}.content .send_box .send_code[data-v-2c1f4684]{width:%?380?%;padding:0 25px;background-color:#fff}.content .send_box .send_code uni-input[data-v-2c1f4684]{height:45px;color:#333}.content .send_box .send_btn[data-v-2c1f4684]{width:%?200?%;background-color:#009fe8;text-align:center;color:#fff;line-height:45px}.content .re_btn[data-v-2c1f4684]{background-color:#009fe8;text-align:center;color:#fff;line-height:45px}body.?%PAGE?%[data-v-2c1f4684]{background-color:#f0f0f0}',""]),n.exports=t},d910:function(n,t,o){"use strict";o.r(t);var e=o("52f9"),s=o.n(e);for(var i in e)"default"!==i&&function(n){o.d(t,n,(function(){return e[n]}))}(i);t["default"]=s.a}}]);
|