bztang-admin/addons/yun_shop/static/app/js/chunk-53f7f68c.a70a8cf7.js

1 line
9.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53f7f68c"],{"0292":function(t,e,i){"use strict";i("4cd0")},"2fab":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("c-title",{attrs:{hide:!1,text:"账户注销"}}),t.isSubmitted?o("div",{staticClass:"succesed"},[o("img",{staticClass:"img",attrs:{src:i("5cd0"),alt:""}}),o("p",[t._v("账号注销申请已提交,等待审核~")]),o("div",{staticClass:"btns"},[o("div",{staticClass:"btn-cancel",on:{click:t.revoke}},[t._v("取消申请")]),o("div",{staticClass:"btn-back",on:{click:t.back}},[t._v("返回")])])]):[t.showMobileVerification?o("div",{staticClass:"mobile-verification"},[t.cancelInfo.country_code?o("van-field",{attrs:{center:"",clearable:"",placeholder:"+86",label:"国家区号"},model:{value:t.country,callback:function(e){t.country=e},expression:"country"}}):t._e(),o("van-field",{attrs:{center:"",clearable:"",placeholder:"请输入手机号码",label:"手机号码"},model:{value:t.mobile,callback:function(e){t.mobile=e},expression:"mobile"}}),t.imgCaptcha?o("van-field",{attrs:{center:"",clearable:"",placeholder:"请输入图形验证码",label:"图形验证码"},model:{value:t.captcha,callback:function(e){t.captcha="string"===typeof e?e.trim():e},expression:"captcha"}},[o("div",{attrs:{slot:"button"},slot:"button"},[o("img",{staticStyle:{width:"100%",height:"2.5rem","z-index":"999"},attrs:{src:t.imgCaptcha},on:{click:function(e){return t.getCaptcha()}}})])]):t._e(),o("van-field",{attrs:{center:"",clearable:"",placeholder:"请输入手机验证码",label:"手机验证码"},model:{value:t.code,callback:function(e){t.code="string"===typeof e?e.trim():e},expression:"code"}},[o("van-button",{directives:[{name:"show",rawName:"v-show",value:this.count<=0,expression:"this.count <= 0"}],attrs:{slot:"button",size:"small",round:"",plain:"",type:"info"},on:{click:t.sendCode},slot:"button"},[t._v(" 获取验证码 ")]),o("van-button",{directives:[{name:"show",rawName:"v-show",value:this.count>0,expression:"this.count > 0"}],attrs:{slot:"button",size:"small",round:"",plain:"",type:"info",disabled:""},slot:"button"},[t._v(" "+t._s(t.count)+"秒后重新获取 ")])],1),o("div",{staticClass:"btn-submit",on:{click:t.checkCode}},[t._v("申请注销")])],1):o("div",{staticClass:"cancellation"},[o("div",{staticClass:"title"},[t._v(t._s(t.cancelInfo.title))]),o("div",{staticClass:"content",attrs:{id:"a_content"},domProps:{innerHTML:t._s(t.cancelInfo.content)}}),o("div",{staticClass:"bottom-box"},[o("van-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v("我已阅读并同意")]),o("div",{class:["btn-submit",{disabled:!t.checked}],on:{click:t.submit}},[t._v("提交")])],1)])],o("van-popup",{staticStyle:{width:"80%"},attrs:{round:"","bind:close":"closeConfirm"},model:{value:t.showConfirm,callback:function(e){t.showConfirm=e},expression:"showConfirm"}},[o("div",{staticClass:"confirm-popup"},[o("div",{staticClass:"pop-title"},[t._v("账户注销确认")]),o("div",{staticClass:"pop-content"},[t._v("账户一旦注销后,无法找回。您的个人信息,个人财产,优惠券等数据将失效,且不能恢复。确定提交注销申请?")]),o("div",{staticClass:"bottom-btns"},[o("div",{staticClass:"clanel",on:{click:t.closeConfirm}},[t._v("暂不注销")]),o("div",{staticClass:"confirm",on:{click:t.confirmCancel}},[t._v("确认注销")])])])])],2)},n=[],a=(i("e7e5"),i("d399")),c={data:function(){return{cancelInfo:{},isSubmitted:!1,checked:!1,showConfirm:!1,showMobileVerification:!1,bindMobile:!1,imgCaptcha:"",country:"",captcha:"",mobile:"",code:"",count:"",timer:null}},activated:function(){this.initData(),this.getData()},computed:{},methods:{initData:function(){this.isSubmitted=!1,this.checked=!1,this.showConfirm=!1,this.showMobileVerification=!1,this.bindMobile=!1,this.imgCaptcha="",this.captcha="",this.mobile="",this.code="",this.count="",this.timer=null},getData:function(){var t=this;$http.get("member.cancel.getSet",{},"加载中").then((function(e){1===e.result?(t.cancelInfo=e.data.set,t.bindMobile=!!e.data.set&&e.data.set.is_bind_mobile,t.isSubmitted=!!e.data.set&&e.data.set.is_record):Object(a["a"])(e.msg)}))},submit:function(){var t=this;this.checked?1!=this.cancelInfo.tel_status||this.bindMobile?1==this.cancelInfo.tel_status?(this.getCaptcha(),this.showMobileVerification=!0):this.showConfirm=!0:this.$dialog.confirm({message:"暂未绑定手机号, 请先绑定手机号"}).then((function(){t.$router.push(t.fun.getUrl("editmobile"),{num:t.mobile})})):Object(a["a"])("请先阅读申请协议并确认")},getCaptcha:function(){var t=this;$http.get("home-page.getCaptcha",{},"loading").then((function(e){e.data.captcha&&(t.imgCaptcha=e.data.captcha.img)})).catch((function(t){}))},sendCode:function(){var t=this;this.cancelInfo.country_code&&this.fun.isTextEmpty(this.country)?Object(a["a"])("请输入国际区号"):this.fun.isTextEmpty(this.mobile)?this.$dialog.alert({message:"请填写手机号"}):"86"==this.country&&this.fun.isMoblie(this.mobile)?Object(a["a"])("请填写正确的手机号"):this.imgCaptcha&&this.fun.isTextEmpty(this.captcha)?this.$dialog.alert({message:"请填图形验证码"}):$http.post("member.register.sendCodeV2",{reset:1,sms_type:0,mobile:this.mobile,state:this.country,captcha:this.captcha},"loading").then((function(e){if(1===e.result){var i=60;t.timer||(Object(a["a"])("发送成功"),t.count=i,t.timer=setInterval((function(){t.count>0&&t.count<=i?t.count--:(clearInterval(t.timer),t.timer=null)}),1e3))}else t.getCaptcha(),t.$dialog.alert({message:e.msg})})).catch((function(t){}))},checkCode:function(){var t=this;this.fun.isTextEmpty(this.mobile)?this.$dialog.alert({message:"请填写手机号"}):this.fun.isTextEmpty(this.code)?this.$dialog.alert({message:"请填写验证码"}):$http.get("member.register.checkCode",{mobile:this.mobile,code:this.code},"loading").then((function(e){1!==e.result?(t.$dialog.alert({message:e.msg}),t.code=""):t.showConfirm=!0}))},cancelPost:function(){var t=this,e={};1==this.cancelInfo.tel_status&&(e={mobile:this.mobile}),$http.post("member.cancel.index",e,"注销中").then((function(e){1!==e.result?t.$dialog.alert({message:e.msg}):(Object(a["a"])(e.msg),t.isSubmitted=!0)}))},confirmCancel:function(){this.cancelPost(),this.closeConfirm()},closeConfirm:function(){this.showConfirm=!1},back:function(){this.$router.push(this.fun.getUrl("info",{}))},revoke:function(){var t=this;$http.post("member.cancel.cancel",{},"撤销中").then((function(e){1===e.result?(Object(a["a"])("撤销成功"),t.initData(),t.getData()):Object(a["a"])(e.msg)}))}},components:{}},s=c,l=(i("0292"),i("2877")),r=Object(l["a"])(s,o,n,!1,null,null,null);e["default"]=r.exports},"4cd0":function(t,e,i){var o=i("a91d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("499e").default;n("10fd5ebe",o,!0,{sourceMap:!1,shadowMode:!1})},"5cd0":function(t,e,i){t.exports=i.p+"static/app/img/audit_succeed@2x.b9b80f20.png"},a91d:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,".cancellation{padding:1.25rem}.cancellation .title{font-size:1rem;font-weight:700;color:#333}.cancellation .content{min-height:68vh;overflow:hidden;margin-top:1rem;text-align:left}.cancellation .bottom-box{margin-top:1rem;padding-left:.8rem}.cancellation .btn-submit{margin:0 auto;margin-top:1rem;width:19.13rem;height:2.5rem;background-color:#f15353;border-radius:1.25rem;font-size:.94rem;line-height:2.5rem;color:#fff}.cancellation .disabled{color:#6b6666;background-color:transparent;background-image:-webkit-gradient(linear,left bottom,left top,from(#d2d2d2),to(hsla(0,0%,82.4%,.64)))!important;background-image:-webkit-linear-gradient(bottom,#d2d2d2,hsla(0,0%,82.4%,.64))!important;background-image:linear-gradient(0deg,#d2d2d2,hsla(0,0%,82.4%,.64))!important}.succesed{font-size:.94rem}.succesed .img{margin:2.69rem 0 .5rem 0;width:6.44rem;height:6.44rem}.succesed .btns{margin-top:1.7rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.succesed .btns .btn-cancel{width:8.88rem;height:2.5rem;border-radius:1.25rem;border:.03rem solid #f15353;line-height:2.4rem;color:#f15353}.succesed .btns .btn-back{width:8.88rem;height:2.5rem;border-radius:1.25rem;line-height:2.4rem;color:#fff;background-color:#f15353}.confirm-popup{padding:1.3rem 1.5rem .5rem 1.5rem}.confirm-popup .pop-title{font-size:1.13rem;color:#202020}.confirm-popup .pop-content{margin:1.5rem 0;text-align:left}.confirm-popup .bottom-btns{height:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#030303;border-top:1px solid #eee}.confirm-popup .bottom-btns div{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-size:1.06rem;line-height:2.5rem}.confirm-popup .bottom-btns .confirm{color:#f14e4e}.mobile-verification{height:calc(100vh - 40px);background:#fff}.mobile-verification .btn-submit{margin:0 auto;margin-top:4rem;width:19.13rem;height:2.5rem;background-color:#f15353;border-radius:1.25rem;font-size:.94rem;line-height:2.5rem;color:#fff}.mobile-verification .icon-fontclass-yanzhengma,.mobile-verification .icon-verification_phone{font-size:1.5rem;color:#888}.mobile-verification .van-field__left-icon{display:-webkit-inline-box!important;display:-webkit-inline-flex!important;display:-ms-inline-flexbox!important;display:inline-flex!important}",""]),t.exports=e}}]);