GSExamProj/unpackage/dist/build/h5/static/js/pages-fixPwd-fixPwd.a6394cd...

1 line
7.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-fixPwd-fixPwd"],{6781:function(e,t,n){"use strict";n.r(t);var i=n("9dc5"),a=n("dce4");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("fa9a");var s=n("f0c5"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"e2034230",null,!1,i["a"],void 0);t["default"]=r.exports},"9dc5":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uniEasyinput:n("786d").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",[n("v-uni-view",{staticClass:"nav-bar"}),n("v-uni-view",{staticClass:"fix-upper"},[n("h4",{class:[{active:0==e.upperStatus}]},[e._v("1.验证手机号码")]),n("h4",{class:[{active:1==e.upperStatus}]},[e._v("2.设置新密码")])]),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:0==e.upperStatus,expression:"upperStatus == 0"}],staticClass:"veri-log login-area"},[n("uni-easyinput",{staticStyle:{"margin-bottom":"30rpx"},attrs:{"prefix-icon":"phone",type:"number",maxlength:"11",placeholder:"请输入手机号"},model:{value:e.veriPhoneVal,callback:function(t){e.veriPhoneVal=t},expression:"veriPhoneVal"}}),n("v-uni-view",{staticClass:"send-veri"},[n("uni-easyinput",{staticStyle:{width:"60%"},attrs:{"prefix-icon":"locked",maxlength:"4",type:"number",placeholder:"请输入验证码"},model:{value:e.iptVal,callback:function(t){e.iptVal=t},expression:"iptVal"}}),n("v-uni-button",{staticClass:"count-down",staticStyle:{"font-size":"14px"},attrs:{disabled:e.sendDisabled},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sendVeriCode.apply(void 0,arguments)}}},[0==e.countDownStatus?n("span",[e._v("发送验证码")]):e._e(),1==e.countDownStatus?n("span",[e._v(e._s(e.countDown)+"s")]):e._e()])],1),n("v-uni-view",{staticClass:"veri-toggle",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.veriToggle.apply(void 0,arguments)}}},[e._v("下一步")])],1),n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==e.upperStatus,expression:"upperStatus == 1"}],staticClass:"new-pwd"},[n("uni-easyinput",{staticStyle:{"margin-bottom":"30rpx"},attrs:{type:"password","prefix-icon":"locked",placeholder:"请设置6-20位新的登录密码"},model:{value:e.pwd,callback:function(t){e.pwd=t},expression:"pwd"}}),n("uni-easyinput",{staticStyle:{"margin-bottom":"30rpx"},attrs:{type:"password","prefix-icon":"locked",placeholder:"请再次输入新的登录密码"},model:{value:e.rePwd,callback:function(t){e.rePwd=t},expression:"rePwd"}}),n("v-uni-view",{staticClass:"pwd-toggle",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.sendPwd.apply(void 0,arguments)}}},[e._v("提交")])],1)],1)},o=[]},a01b:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("ac1f"),n("00b4");var i=n("a620"),a={data:function(){return{upperStatus:0,veriPhoneVal:"",iptVal:"",veriCode:"",countDown:60,countDownStatus:0,sendDisabled:!1,pwd:"",rePwd:"",givenCode:""}},methods:{veriToggle:function(){console.log(this.iptVal,this.veriCode),""==this.veriPhoneVal||""==this.iptVal?uni.showToast({icon:"none",title:"手机号或验证码未填写!"}):this.iptVal!=this.veriCode?uni.showToast({icon:"none",title:"验证码不正确!"}):this.upperStatus=1},sendVeriCode:function(){var e=this;console.log(e.veriPhoneVal),uni.request({url:i.publicPath+"/backstage/app/captcha",method:"GET",header:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},data:{telphone:e.veriPhoneVal},success:function(t){console.log(t),200==t.data.obj&&(e.veriCode=t.data.resMsg)}}),this.countDownStatus=1,this.sendDisabled=!0;var t=setInterval((function(){e.countDown-=1}),1e3),n=setTimeout((function(){e.countDownStatus=0,e.countDown=60,e.sendDisabled=!1,clearInterval(t),clearTimeout(n)}),6e4)},sendPwd:function(){console.log(this.pwd,this.rePwd);""==this.pwd||""==this.rePwd?uni.showToast({icon:"none",title:"输入框不能为空!"}):/^(?![a-zA-Z]+$)[0-9a-zA-Z]{6,20}$/.test(this.pwd)?this.rePwd!=this.pwd?uni.showToast({icon:"none",title:"两则密码需保持一致!"}):uni.request({url:i.publicPath+"/backstage/user/resetPwd",method:"POST",header:{"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},data:{pwd:this.pwd,id:uni.getStorageSync("id")},success:function(e){console.log(e),1==e.data.res&&uni.showToast({icon:"none",title:"修改成功!",success:function(){uni.reLaunch({url:"/pages/login/login"})}})}}):uni.showToast({icon:"none",title:"密码不符合规则!"})}}};t.default=a},a620:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.publicPath=void 0;t.publicPath="http://192.168.0.14:1996/GsExamWeb"},d20a:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.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/* 文章场景相关 */body[data-v-e2034230]{background-color:#f9f9f9}.nav-bar[data-v-e2034230]{width:100%;height:0;padding-top:0}.fix-upper[data-v-e2034230]{width:100%;display:flex;justify-content:space-around;align-items:center;background-color:#fff;border-bottom:1px solid #f2f2f2}.fix-upper h4[data-v-e2034230]{font-weight:400;display:flex;justify-content:center;align-items:center;box-sizing:border-box;padding:%?20?%}.fix-upper .active[data-v-e2034230]{color:#0079fe}.login-area[data-v-e2034230]{width:80%;margin:%?50?% auto;height:%?300?%;box-sizing:border-box;padding:%?30?%}.veri-log .send-veri[data-v-e2034230]{width:100%;height:%?70?%;display:flex;justify-content:space-between;align-items:center}.veri-log .send-veri .count-down[data-v-e2034230]{width:35%;height:100%;box-sizing:border-box;display:flex;justify-content:center;align-items:center;font-size:14px}.veri-log .veri-toggle[data-v-e2034230]{width:100%;height:%?90?%;margin-top:%?40?%;background-color:#0079fe;color:#fff;display:flex;justify-content:center;align-items:center;border-radius:%?15?%}.new-pwd[data-v-e2034230]{width:80%;margin:%?50?% auto;height:%?300?%;box-sizing:border-box;padding:%?30?%}.new-pwd .pwd-toggle[data-v-e2034230]{width:100%;height:%?90?%;margin-top:%?40?%;background-color:#0079fe;color:#fff;display:flex;justify-content:center;align-items:center;border-radius:%?15?%}',""]),e.exports=t},dce4:function(e,t,n){"use strict";n.r(t);var i=n("a01b"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},e3ed:function(e,t,n){var i=n("d20a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("4f06").default;a("79eb2a34",i,!0,{sourceMap:!1,shadowMode:!1})},fa9a:function(e,t,n){"use strict";var i=n("e3ed"),a=n.n(i);a.a}}]);