1 line
6.7 KiB
JavaScript
1 line
6.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2eebe22b"],{"30e3":function(e,t,a){var o=a("373c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=a("499e").default;i("e4281aba",o,!0,{sourceMap:!1,shadowMode:!1})},"373c":function(e,t,a){var o=a("24fb");t=o(!1),t.push([e.i,"#alterAddress #code[data-v-6c56606f]{background:#ccc;padding:.1875rem .3125rem;border-radius:.1875rem}.address_addnav[data-v-6c56606f]{width:100%;padding:0 3% 0 6%!important;position:fixed;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);background:#f15353!important;color:#fff!important;text-align:center;height:2.75rem!important;line-height:2.75rem!important}.popup-con[data-v-6c56606f]{width:100%}.mint-field-other span[data-v-6c56606f]{background:#ccc;color:#fff;line-height:3rem;height:3rem;display:block;padding:0 .625rem}#alterAddress .mint-field .mint-cell-title[data-v-6c56606f]{text-align:left}.address_addnav i[data-v-6c56606f]{color:#fff;font-size:22px;position:absolute;top:50%;height:1.125rem;line-height:1.125rem;margin-left:-2.125rem;margin-top:-.5625rem}.maleall[data-v-6c56606f]{background:#fff;text-align:left}#alterAddress .males[data-v-6c56606f]{line-height:3.125rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-top:.0625rem solid #d9d9d9;margin-left:.625rem}.maleall span[data-v-6c56606f]{font-size:16px;vertical-align:middle;width:6.5625rem;-webkit-box-flex:0;-ms-flex:none;-webkit-flex:none;flex:none}#address[data-v-6c56606f]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:3.125rem}#address .mint-button--default[data-v-6c56606f]{line-height:3.125rem;text-align:left;font-size:16px}.normal[data-v-6c56606f]{background-color:#ffb400;color:#fff}.Default[data-v-6c56606f],.normal[data-v-6c56606f]{height:30px;-webkit-box-shadow:none;box-shadow:none;font-size:12px;border-radius:2px;border:none;padding:0 12px}.Default[data-v-6c56606f]{background-color:#ccc;color:#f0f0f0}[data-v-6c56606f] .van-cell{padding:10px}[data-v-6c56606f] .van-cell ::v-deep .van-field__label{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;white-space:nowrap;width:5rem;margin-right:20px;color:#333;text-align:left;font-size:16px}[data-v-6c56606f] .van-cell input::-webkit-input-placeholder{color:#555;font-size:16px}[data-v-6c56606f] .van-cell input::-moz-placeholder{color:#555;font-size:16px}[data-v-6c56606f] .van-cell input:-ms-input-placeholder{color:#555;font-size:16px}[data-v-6c56606f] .van-cell input::-ms-input-placeholder{color:#555;font-size:16px}[data-v-6c56606f] .van-cell input::placeholder{color:#555;font-size:16px}",""]),e.exports=t},"6d5f":function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"alterAddress"}},[a("c-title",{attrs:{hide:!1,text:e.action_name,goback:!1}}),a("div",{staticStyle:{height:"10px"}}),a("van-field",{staticClass:"inp-field",attrs:{label:"手机号码",placeholder:"请输入手机号码",center:"",clearable:""},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}}),e.imgcode?a("van-field",{attrs:{label:"图形验证码",placeholder:"请输入图形验证码",center:"",clearable:""},model:{value:e.form.captcha,callback:function(t){e.$set(e.form,"captcha",t)},expression:"form.captcha"}},[a("div",{attrs:{slot:"button"},slot:"button"},[e.imgcode?a("img",{staticStyle:{width:"100%",height:"2.5rem","z-index":"999"},attrs:{src:e.imgcode},on:{click:function(t){return e.getimgdata()}}}):e._e()])]):e._e(),a("van-field",{attrs:{label:"验证码",center:"",clearable:"",placeholder:"请输入验证码"},scopedSlots:e._u([{key:"button",fn:function(){return[a("van-button",{directives:[{name:"show",rawName:"v-show",value:!e.cationCode,expression:"!cationCode"}],attrs:{size:"small",type:"primary",color:"#ffb400"},nativeOn:{click:function(t){return e.VerificationCode.apply(null,arguments)}}},[e._v("获取短信验证码")]),a("van-button",{directives:[{name:"show",rawName:"v-show",value:e.cationCode,expression:"cationCode"}],attrs:{size:"small",disabled:e.cationCode,type:"primary",color:"#999"}},[e._v(e._s(e.count)+"秒后重新获取")])]},proxy:!0}]),model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}}),a("div",{staticClass:"maleall"},[a("div",{staticClass:"address_addnav",style:{width:3==e.fun.getPhoneEnv()?"375px":""},on:{click:e.alterAction}},[a("i",{staticClass:"fa fa-pencil-square-o"}),a("span",[e._v(e._s(e.action_name))])])])],1)},i=[],n=(a("e7e5"),a("d399")),c=a("6968"),l={data:function(){return{cationCode:!1,start1:!1,count:"",form:{mobile:"",code:"",captcha:""},code:"",action_name:"绑定",CodeStr:"获取验证码",imgcode:""}},methods:{getCode:function(){var e=this,t=60;this.timer||(this.count=t,this.cationCode=!0,this.timer=setInterval((function(){e.count>0&&e.count<=t?e.count--:(e.cationCode=!1,clearInterval(e.timer),e.timer=null)}),1e3))},VerificationCode:function(){var e=this,t=this;this.fun.isTextEmpty(this.form.captcha)&&this.imgcode&&Object(n["a"])("请填图形验证码"),this.fun.isTextEmpty(this.form.mobile)?Object(n["a"])("请填写手机号"):(n["a"].loading({duration:0,forbidClick:!0,message:"发送中"}),$http.get("member.register.sendWithdrawCode",{mobile:this.form.mobile,captcha:this.form.captcha,code:this.form.code}).then((function(a){n["a"].clear(),1==a.result?(t.cationCode=!0,t.getCode(),t.sendCodeAnimation()):(e.cationCode=!1,Object(n["a"])(a.msg),e.form.captcha="",e.getimgdata())}),(function(e){})))},sendCodeAnimation:function(){var e=this;setTimeout((function(){e.start1=!0,n["a"].clear(),Object(n["a"])("已发送")}),1e3)},alterAction:function(){var e=this,t=this;t.fun.isTextEmpty(this.form.mobile)?t.$dialog.alert({message:"手机号码不能为空"}):t.fun.isMoblie(this.form.mobile)?t.$dialog.alert({message:"请输入正确的手机号"}):t.fun.isTextEmpty(this.form.code)?t.$dialog.alert({message:"请填写验证码"}):this.imgcode&&this.fun.isTextEmpty(this.form.captcha)?Object(n["a"])("图形验证码不能为空"):$http.post("member.member.bindWithdrawMobile",this.form,"正在绑定手机..").then((function(t){1==t.result?e.$dialog.alert({message:t.msg}).then((function(){e.$router.go(-1)})).catch((function(){})):e.$dialog.alert({message:t.msg})}),(function(e){}))},getimgdata:function(){var e=this;$http.get("home-page.getCaptcha").then((function(t){e.imgcode=t.data.captcha.img})).catch((function(e){}))}},activated:function(){this.start1=!1,this.form.mobile=this.$route.params.num,this.form.code="",this.form.captcha="",this.imgcode="",this.getimgdata()},components:{cTitle:c["a"]}},r=l,s=r,d=(a("deda"),a("2877")),f=Object(d["a"])(s,o,i,!1,null,"6c56606f",null);t["default"]=f.exports},deda:function(e,t,a){"use strict";a("30e3")}}]); |