bztang-admin/addons/yun_shop/static/app/js/chunk-5019f310.98932ee3.js

1 line
12 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5019f310"],{"27a9":function(t,e,a){"use strict";a("2df9")},"2df9":function(t,e,a){var s=a("487b");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var o=a("499e").default;o("423c6adb",s,!0,{sourceMap:!1,shadowMode:!1})},"487b":function(t,e,a){var s=a("24fb");e=s(!1),e.push([t.i,"#set_password #password_one .user[data-v-40b6df2c]{margin:1.25rem auto}#set_password #password_one .user .img[data-v-40b6df2c]{margin:0 auto;width:3.75rem;height:3.75rem;border-radius:2.25rem;overflow:hidden;background:#ccc}#set_password #password_one .user .img img[data-v-40b6df2c]{width:100%}#set_password #password_one .user span[data-v-40b6df2c]{display:block;font-size:16px;font-weight:700;line-height:1.875rem}#set_password #password_one .info .info_a[data-v-40b6df2c]{background:#fff;border-top:.0625rem solid #ebebeb;border-bottom:.0625rem solid #ebebeb;padding-left:.875rem}#set_password #password_one .info .info_a li[data-v-40b6df2c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:2.8125rem;padding-right:.875rem;border-bottom:.0625rem solid #ebebeb;font-size:16px;position:relative}#set_password #password_one .info .info_a li span[data-v-40b6df2c]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#set_password #password_one .info .info_a li span[data-v-40b6df2c]:first-child{width:7.5rem;text-align:left}#set_password #password_one .info .info_a li span[data-v-40b6df2c]:last-child{position:absolute;right:.625rem;font-size:12px;padding:.125rem .625rem;color:#f15353;background:#f5f5f5;border-radius:1rem;height:1.625rem;line-height:1.625rem}#set_password #password_one .info .info_a li[data-v-40b6df2c]:last-child,#set_password #password_one .info .info_a li input[data-v-40b6df2c]{border:none}#set_password #password_one .info .info_b[data-v-40b6df2c]{margin-top:.625rem;background:#fff;border-top:.0625rem solid #ebebeb;border-bottom:.0625rem solid #ebebeb;padding-left:.875rem}#set_password #password_one .info .info_b li[data-v-40b6df2c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:2.8125rem;padding-right:.875rem;border-bottom:.0625rem solid #ebebeb;font-size:16px;position:relative}#set_password #password_one .info .info_b li span[data-v-40b6df2c]:first-child{width:7.5rem;text-align:left}#set_password #password_one .info .info_b li span[data-v-40b6df2c]:last-child{position:absolute;right:.625rem;font-size:12px;padding:.125rem .625rem;color:#f15353;background:#f5f5f5;border-radius:1rem;height:1.625rem;line-height:1.625rem}#set_password #password_one .info .info_b li[data-v-40b6df2c]:last-child,#set_password #password_one .info .info_b li input[data-v-40b6df2c]{border:none}#set_password #password_one .btn[data-v-40b6df2c]{margin:1.25rem auto}#set_password #password_one .btn button[data-v-40b6df2c]{padding:0;width:18.75rem;height:2.625rem;border-radius:.25rem;background:#f7a145;font-size:16px;border:none;color:#fff}#set_password #password_two .user[data-v-40b6df2c]{margin:1.25rem auto}#set_password #password_two .user .img[data-v-40b6df2c]{margin:0 auto;width:3.75rem;height:3.75rem;border-radius:2.25rem;overflow:hidden;background:#ccc}#set_password #password_two .user .img img[data-v-40b6df2c]{width:100%}#set_password #password_two .user span[data-v-40b6df2c]{display:block;font-size:16px;font-weight:700;line-height:1.875rem}#set_password #password_two .info .info_a[data-v-40b6df2c]{background:#fff;border-top:.0625rem solid #ebebeb;border-bottom:.0625rem solid #ebebeb;padding-left:.875rem}#set_password #password_two .info .info_a li[data-v-40b6df2c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:2.8125rem;padding-right:.875rem;border-bottom:.0625rem solid #ebebeb;font-size:16px;position:relative}#set_password #password_two .info .info_a li span[data-v-40b6df2c]:first-child{width:7.5rem;text-align:left}#set_password #password_two .info .info_a li span[data-v-40b6df2c]:last-child{position:absolute;right:.625rem;font-size:12px;padding:.125rem .625rem;color:#f15353;background:#f5f5f5;border-radius:1rem;height:1.625rem;line-height:1.625rem}#set_password #password_two .info .info_a li input[data-v-40b6df2c]{border:none;color:#333}#set_password #password_two .info .info_a li[data-v-40b6df2c]:last-child{border:none}#set_password #password_two .explain[data-v-40b6df2c]{margin:1.25rem auto}#set_password #password_two .explain p[data-v-40b6df2c]{color:#8c8c8c}#set_password #password_two .btn[data-v-40b6df2c]{margin:1.25rem auto}#set_password #password_two .btn button[data-v-40b6df2c]{padding:0;width:18.75rem;height:2.625rem;border-radius:.25rem;background:#f7a145;font-size:16px;border:none;color:#fff}#set_password .yd-btn-warning[data-v-40b6df2c]:not(.yd-btn-loading){height:40px}#set_password[data-v-40b6df2c] .van-cell{padding:10px 12px 10px 0;font-size:16px}#set_password[data-v-40b6df2c] .van-cell .van-field__label{margin-right:0;color:#333}#set_password[data-v-40b6df2c] .van-cell ::v-deepinput::-webkit-input-placeholder{color:#757575}#set_password[data-v-40b6df2c] .van-cell ::v-deepinput::-moz-placeholder{color:#757575}#set_password[data-v-40b6df2c] .van-cell ::v-deepinput:-ms-input-placeholder{color:#757575}#set_password[data-v-40b6df2c] .van-cell ::v-deepinput::-ms-input-placeholder{color:#757575}#set_password[data-v-40b6df2c] .van-cell ::v-deepinput::placeholder{color:#757575}",""]),t.exports=e},"6ecee":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"set_password"}},[a("c-title",{attrs:{hide:!1,text:"交易密码"}}),t.has_password?t._e():a("div",{attrs:{id:"password_one"}},[a("div",{staticClass:"user"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.passData.avatar_image}})]),a("span",[t._v(t._s(t.passData.nickname))])]),a("div",{staticClass:"info"},[a("ul",{staticClass:"info_a"},[a("li",[a("span",[t._v("手机号:")]),a("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.form.mobile,expression:"form.mobile",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:"请输入手机号",disabled:""},domProps:{value:t.form.mobile},on:{input:function(e){e.target.composing||t.$set(t.form,"mobile",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})]),t.passData.captcha_status?a("li",[a("span",[t._v("图形验证码:")]),a("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.form.captcha,expression:"form.captcha",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:t.form.captcha},on:{input:function(e){e.target.composing||t.$set(t.form,"captcha",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t.imgcode?a("img",{staticStyle:{width:"20%",height:"40px",position:"absolute",display:"block",left:"74%","z-index":"999"},attrs:{src:t.imgcode},on:{click:function(e){return t.getimgdata()}}}):t._e()]):t._e(),a("van-field",{attrs:{center:"",clearable:"",label:"验证码:",placeholder:"请输入验证码","label-width":"7.5rem"},scopedSlots:t._u([{key:"button",fn:function(){return[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))])]},proxy:!0}],null,!1,3148609380),model:{value:t.form.code,callback:function(e){t.$set(t.form,"code","string"===typeof e?e.trim():e)},expression:"form.code"}})],1),a("ul",{staticClass:"info_b"},[a("li",[a("span",[t._v("支付密码:")]),a("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.form.password,expression:"form.password",modifiers:{trim:!0}}],attrs:{type:"password",placeholder:"请输入6位支付密码",MAXLENGTH:"6"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})]),a("li",[a("span",[t._v("确认密码:")]),a("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.form.confirm_password,expression:"form.confirm_password",modifiers:{trim:!0}}],attrs:{type:"password",placeholder:"请确认密码",MAXLENGTH:"6"},domProps:{value:t.form.confirm_password},on:{input:function(e){e.target.composing||t.$set(t.form,"confirm_password",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])])]),a("div",{staticClass:"btn",on:{click:t.setPassword}},[a("van-button",{attrs:{type:"large"}},[t._v("确定")])],1)]),t.has_password?a("div",{attrs:{id:"password_two"}},[a("div",{staticClass:"user"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.passData.avatar_image}})]),a("span",[t._v(t._s(t.passData.nickname))])]),a("div",{staticClass:"info"},[a("ul",{staticClass:"info_a"},[a("li",[a("span",[t._v("手机号:")]),a("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.form.mobile,expression:"form.mobile",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:"请输入手机号",disabled:""},domProps:{value:t.form.mobile},on:{input:function(e){e.target.composing||t.$set(t.form,"mobile",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])])]),t._m(0),a("div",{staticClass:"btn",on:{click:t.forgetPassword}},[a("van-button",{attrs:{type:"large"}},[t._v("忘记密码")])],1)]):t._e()],1)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"explain"},[a("p",[t._v("您已设置过支付密码,如忘记,请点击忘记密码 "),a("br"),t._v("重置支付密码!")])])}],i=(a("e7e5"),a("d399")),r=a("6968"),n={data:function(){return{form:{mobile:"",captcha:"",code:"",password:"",confirm_password:""},passData:{},has_password:!1,start1:!1,imgcode:"",btnBg:"#ffb400",btnText:"获取短信验证码",btnTag:!1,timer:null,count:""}},activated:function(){this.init(),this.isSetPassword()},methods:{init:function(){this.start1=!1,this.has_password=!1,this.passData={},this.imgcode="",this.form={mobile:"",captcha:"",code:"",password:"",confirm_password:""}},isSetPassword:function(){var t=this;$http.get("plugin.asset.Frontend.Modules.Password.Controllers.has.index",{},"加载中...").then((function(e){1===e.result?(t.has_mobile=e.data.has_mobile,t.has_password=e.data.has_password,t.has_mobile?t.passwordData():t.$router.push(t.fun.getUrl("editmobile"))):Object(i["a"])(e.msg)})).catch((function(t){}))},passwordData:function(){var t=this;$http.get("plugin.asset.Frontend.Modules.Password.Controllers.update.page",{},"加载中...").then((function(e){1===e.result?(t.passData=e.data,t.imgcode=t.passData.captcha_image.img,t.form.mobile=t.passData.mobile):Object(i["a"])(e.msg)})).catch((function(t){}))},setPassword:function(){var t=this;this.form.confirm_password===this.form.password?$http.get("plugin.asset.Frontend.Modules.Password.Controllers.Update.store",this.form,"加载中...").then((function(e){1===e.result?t.$router.go(-1):Object(i["a"])(e.msg)})).catch((function(t){})):Object(i["a"])("确认密码与支付密码不一致")},forgetPassword:function(){this.has_password=!1},verificationCode:function(){var t=this;this.fun.isTextEmpty(this.form.mobile)?Object(i["a"])("请填写手机号"):this.fun.isTextEmpty(this.form.captcha)&&this.imgcode?Object(i["a"])("请填图形验证码"):(i["a"].loading({duration:0,forbidClick:!0,message:"发送中"}),$http.get("plugin.asset.Frontend.Modules.Password.Controllers.code.index",{mobile:this.form.mobile,captcha:this.form.captcha}).then((function(e){i["a"].clear(),1===e.result?t.sendCodeAnimation():(Object(i["a"])(e.msg),t.form.captcha="",t.passData.captcha_status&&t.getimgdata())}),(function(t){})))},getimgdata:function(){var t=this;$http.get("plugin.asset.Frontend.Modules.Password.Controllers.update.captcha").then((function(e){t.imgcode=e.data.captcha_image.img})).catch((function(t){}))},sendCodeAnimation:function(){var t=this,e=60;this.timer||(this.count=e,i["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))}},components:{cTitle:r["a"]}},d=n,l=d,p=(a("27a9"),a("2877")),c=Object(p["a"])(l,s,o,!1,null,"40b6df2c",null);e["default"]=c.exports}}]);