1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d323254a"],{9909:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"info"}},[i("div",{staticStyle:{position:"relative"}},[i("c-title",{attrs:{hide:!1,text:"修改支付密码"}}),e.imgcode?i("img",{staticStyle:{width:"20%",height:"34px",position:"absolute",display:"block",left:"74%",top:"6rem","z-index":"999"},attrs:{src:e.imgcode},on:{click:function(t){return e.getimgdata()}}}):e._e()],1),i("van-cell-group",[i("van-cell",[i("span",{attrs:{slot:"title"},slot:"title"},[e._v("验证码发送到:"+e._s(e._f("mobile_dispose")(e.mobile)))])]),e.imgcode?i("van-cell",{attrs:{center:""}},[i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.captcha,expression:"captcha",modifiers:{trim:!0}}],attrs:{slot:"title",type:"text",placeholder:"请输入右侧图形验证码"},domProps:{value:e.captcha},on:{input:function(t){t.target.composing||(e.captcha=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}},slot:"title"})]):e._e(),i("van-cell",{attrs:{center:""}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],attrs:{slot:"title",type:"text",placeholder:"请输入验证码"},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value)}},slot:"title"}),i("van-button",{attrs:{type:"default",disabled:e.btnTag,color:e.btnBg,size:"small"},nativeOn:{click:function(t){return e.verificationCode.apply(null,arguments)}}},[e._v(e._s(e.btnText))])],1)],1),i("van-cell-group",{staticClass:"surepwd"},[i("van-cell",{attrs:{border:!1},nativeOn:{click:function(t){return e.showNewKeyboard("newPwd")}}},[i("van-field",{attrs:{placeholder:"请输入新密码",label:"新密码:",readonly:"",border:!1,type:e.passwordOrText},model:{value:e.newPwd,callback:function(t){e.newPwd=t},expression:"newPwd"}}),i("template",{slot:"right-icon"},[e.visible?e._e():i("i",{staticClass:"iconfont icon-onlineCar_f eyes",staticStyle:{color:"#333"},on:{click:function(t){return t.stopPropagation(),e.passwordClick("visible","passwordOrText")}}}),e.visible?i("i",{staticClass:"iconfont icon-onlineCar_g eyes",on:{click:function(t){return t.stopPropagation(),e.passwordClick("visible","passwordOrText")}}}):e._e()])],2)],1),i("van-cell-group",{staticClass:"surepwd"},[i("van-cell",{attrs:{border:!1},nativeOn:{click:function(t){return e.showNewKeyboard("newPwdConfirm")}}},[i("van-field",{attrs:{placeholder:"再次确认",label:"确认密码:",readonly:"",border:!1,type:e.passwordOrTextConfirm},model:{value:e.newPwdConfirm,callback:function(t){e.newPwdConfirm=t},expression:"newPwdConfirm"}}),i("template",{slot:"right-icon"},[e.visibleConfirm?e._e():i("i",{staticClass:"iconfont icon-onlineCar_f eyes",staticStyle:{color:"#333"},on:{click:function(t){return t.stopPropagation(),e.passwordClick("visibleConfirm","passwordOrTextConfirm")}}}),e.visibleConfirm?i("i",{staticClass:"iconfont icon-onlineCar_g eyes",on:{click:function(t){return t.stopPropagation(),e.passwordClick("visibleConfirm","passwordOrTextConfirm")}}}):e._e()])],2)],1),i("div",{staticClass:"van-button-group"},[i("van-button",{attrs:{size:"large",type:"danger"},nativeOn:{click:function(t){return e.submitInfo.apply(null,arguments)}}},[e._v("确认修改")])],1),i("div",{staticStyle:{height:"0.625rem"}}),i("pay-keyboard",{attrs:{payKeyboardShow:e.isNewShowKeyboard},on:{"update:payKeyboardShow":function(t){e.isNewShowKeyboard=t},"update:pay-keyboard-show":function(t){e.isNewShowKeyboard=t},complete:e.onInput}})],1)},n=[],o=(i("e7e5"),i("d399")),d=i("ebf1"),r=i("6968"),s={data:function(){return{isOldShowKeyboard:!1,isNewShowKeyboard:!1,mobile:"",code:"",newPwd:"",newPwdConfirm:"",captcha:"",startCode:!1,imgcode:"",btnBg:"#ef4f4f",btnText:"获取短信验证码",btnTag:!1,timer:null,count:"",toastSet:null,visible:!0,visibleConfirm:!0,passwordOrText:"password",passwordOrTextConfirm:"password",payarr:"",passIndex:""}},methods:{initData:function(){this.isOldShowKeyboard=!1,this.isNewShowKeyboard=!1,this.startCode=!1,this.mobile="",this.captcha="",this.getimgdata(),this.code="",this.newPwd=""},onInput:function(e){this.payarr=e,this.newKeyboardDone(this.payarr)},onDelete:function(e){this.payarr.length>0&&(this.payarr=this.payarr.substr(0,this.payarr.length-1))},showNewKeyboard:function(e){this.passIndex=e,this.isNewShowKeyboard=!0,this.payarr=""},hideNewKeyboard:function(){this.isNewShowKeyboard=!1},newKeyboardDone:function(e){"newPwd"==this.passIndex?this.newPwd=e:this.newPwdConfirm=e,this[this.passIndex]=e,this.hideNewKeyboard()},verificationCode:function(){var e=this;this.fun.isTextEmpty(this.mobile)||this.fun.isMoblie(this.mobile)?Object(o["a"])("手机号数据错误"):this.fun.isTextEmpty(this.captcha)&&this.imgcode?Object(o["a"])("请填图形验证码"):(o["a"].loading({duration:0,forbidClick:!0,message:"发送中"}),$http.get("member.balance-password.send-code",{mobile:this.mobile,captcha:this.captcha}).then((function(t){o["a"].clear(),1===t.result?e.sendCodeAnimation():(Object(o["a"])(t.msg),e.getimgdata())}),(function(e){o["a"].clear()})))},sendCodeAnimation:function(){var e=this,t=60;this.timer||(this.count=t,o["a"].success("验证码已发送"),this.timer=setInterval((function(){e.count>0&&e.count<=t?(e.count--,e.btnText=e.count+"s后重新获取",e.btnTag=!0,e.btnBg="#999"):(e.btnTag=!1,e.btnBg="#ef4f4f",e.btnText="获取短信验证码",clearInterval(e.timer),e.timer=null)}),1e3))},getimgdata:function(){var e=this;$http.get("home-page.getCaptcha").then((function(t){e.imgcode=t.data.captcha.img})).catch((function(e){}))},submitInfo:function(){if(this.fun.isTextEmpty(this.code))Object(o["a"])("验证码不能为空");else if(this.fun.isTextEmpty(this.newPwd))Object(o["a"])("新密码不能为空");else if(this.fun.isTextEmpty(this.newPwdConfirm))Object(o["a"])("确认密码不能为空");else if(this.newPwdConfirm==this.newPwd){var e=this,t={password:this.newPwd,code:this.code,mobile:this.mobile,confirmed:this.newPwdConfirm};$http.get("member.balance-password.update-password",t,"提交中").then((function(t){1===t.result?(e.$dialog.alert({message:"成功"}),e.$router.go(-1)):e.$dialog.alert({message:t.msg})}),(function(t){e.$dialog.alert({message:t.msg})}))}else Object(o["a"])("密码不一致")},getBalancePwdInfo:function(){var e=this;$http.get("member.balance-password.is-has-password",{},"").then((function(t){1==t.result?t.data.is_has?e.mobile=t.data.mobile:e.$router.go(-1):e.$dialog.alert({message:t.msg})}),(function(t){e.$dialog.alert({message:t.msg})}))},passwordClick:function(e,t){this[e]=!this[e],1==this[e]?this[t]="password":this[t]="text"}},computed:{},mounted:function(){},activated:function(){this.initData(),this.getBalancePwdInfo(),this.fun.setWXTitle("修改支付密码")},components:{cTitle:r["a"],payKeyboard:d["a"]}},l=s,c=l,p=(i("ab16"),i("2877")),b=Object(p["a"])(c,a,n,!1,null,"0dd43b8e",null);t["default"]=b.exports},ab16:function(e,t,i){"use strict";i("e107")},ced0:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".ispaskey .van-number-keyboard[data-v-0dd43b8e]{position:relative}.van-button-group[data-v-0dd43b8e]{padding-top:15px;padding-left:12px;padding-right:12px}#info span[data-v-0dd43b8e]{font-size:14px!important}.tips[data-v-0dd43b8e]{height:2.5rem;background:#fff;line-height:2.5rem;text-align:left}.tips[data-v-0dd43b8e],.tips1[data-v-0dd43b8e]{padding-right:.625rem;padding-left:.625rem}.tips1[data-v-0dd43b8e]{line-height:1.875rem;text-align:right}.code[data-v-0dd43b8e],.tips1[data-v-0dd43b8e]{height:1.875rem}.code[data-v-0dd43b8e]{margin-right:.625rem;background:#ccc;padding:.1875rem .3125rem;border-radius:.3125rem}.code[data-v-0dd43b8e],.list1[data-v-0dd43b8e]{margin-top:.625rem}.list1[data-v-0dd43b8e]{height:2.75rem;width:97%;background:#fff;padding:0 0 0 3%;border-top:.0625rem solid #e6e1e1;font-size:14px;line-height:2.75rem;color:#333;text-align:left}.list1 i.fa.fa-angle-right[data-v-0dd43b8e]{float:right;line-height:2.75rem;display:inline-block;font-size:.875rem;margin-right:.375rem;color:#929292;width:1.25rem;height:1.25rem;text-align:center;background-size:1.25rem}.fa-angle-right[data-v-0dd43b8e]{color:#999;font-size:1.625rem;float:right;line-height:3.125rem;margin-left:.375rem;margin-right:.3125rem}.btmobile[data-v-0dd43b8e]{top:0;line-height:3rem;right:100;width:5rem;font-size:12px;color:#f15353}#info .mint-button[data-v-0dd43b8e]{margin:0 2%}.maleall[data-v-0dd43b8e]{background:#fff;text-align:left}.males[data-v-0dd43b8e]{line-height:3.125rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-top:.0625rem solid #f3f3f3;margin-left:.625rem}.maleall span[data-v-0dd43b8e]{color:#888;font-size:14px;vertical-align:middle;width:28%;-webkit-box-flex:0;-ms-flex:none;-webkit-flex:none;flex:none}#address[data-v-0dd43b8e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:3.125rem}#address .mint-button--default[data-v-0dd43b8e]{line-height:3.125rem;text-align:left;font-size:16px}#myimg[data-v-0dd43b8e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}.popup-con[data-v-0dd43b8e]{width:100%}.el-upload img[data-v-0dd43b8e]{width:30%}.avatar-uploader-icon[data-v-0dd43b8e]{padding-right:1.5625rem}.mint-cell-wrapper[data-v-0dd43b8e]{background:red}.mint-button[data-v-0dd43b8e]{margin:.3125rem 0}#info .mint-cell-wrapper[data-v-0dd43b8e]{padding:0}#info .van-cell__title[data-v-0dd43b8e]{text-align:left;color:#555}#info .van-cell__title input[data-v-0dd43b8e]{border:none}.surepwd[data-v-0dd43b8e] .van-cell__title{width:auto}.surepwd[data-v-0dd43b8e] .van-field{padding:0}.eyes[data-v-0dd43b8e]{position:absolute;right:1rem;margin-top:.09rem;color:#999;font-size:30px}.surepwd .van-field__body[data-v-0dd43b8e] input::-webkit-input-placeholder{color:#555}.surepwd .van-field__body[data-v-0dd43b8e] input::-moz-placeholder{color:#555}.surepwd .van-field__body[data-v-0dd43b8e] input:-ms-input-placeholder{color:#555}.surepwd .van-field__body[data-v-0dd43b8e] input::-ms-input-placeholder{color:#555}.surepwd .van-field__body[data-v-0dd43b8e] input::placeholder{color:#555}[data-v-0dd43b8e] .van-cell--clickable:active{background-color:#fff}",""]),e.exports=t},e107:function(e,t,i){var a=i("ced0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("499e").default;n("3bc01f03",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |