bztang-admin/addons/yun_shop/static/app/js/chunk-db966118.92b690af.js

1 line
10 KiB
JavaScript

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