1 line
4.6 KiB
JavaScript
1 line
4.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d7bd567a"],{"925b":function(e,t,i){var a=i("f433");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("499e").default;n("7c0b1dea",a,!0,{sourceMap:!1,shadowMode:!1})},f433:function(e,t,i){var a=i("24fb");t=a(!1),t.push([e.i,".van-button-group[data-v-0c75bef5]{padding-top:15px;padding-left:12px;padding-right:12px}#login[data-v-0c75bef5]{width:100%}#login h1[data-v-0c75bef5]{color:#42b983}#login .mint-button--large[data-v-0c75bef5]{margin-top:.625rem}#login #bts[data-v-0c75bef5]{margin:auto .3125rem}#login .forget[data-v-0c75bef5]{line-height:2.5rem;float:right}#login .forget a[data-v-0c75bef5]{color:#999}#login .vip_main[data-v-0c75bef5]{background:#fff;margin-top:3.125rem}#login .vip_main .title[data-v-0c75bef5]{padding:.625rem;font-size:12px;border-bottom:.0625rem solid #ebebeb;text-align:center}#login .vip_main .weixin[data-v-0c75bef5]{padding:.9375rem .625rem;overflow:hidden;font-size:12px;color:#999}#login .vip_main .weixin .ico1[data-v-0c75bef5],#login .vip_main .weixin .ico2[data-v-0c75bef5]{width:15%;float:left}#login .vip_main .weixin .ico1 i[data-v-0c75bef5]{background:#32cd32}#login .vip_main .weixin .ico2 i[data-v-0c75bef5]{background:#fece00}#login .vip_main .weixin .text[data-v-0c75bef5]{float:left;width:85%}#login .vip_main .weixin .text .t1[data-v-0c75bef5]{font-size:14px;color:#333;margin-bottom:.3125rem;text-align:left}#login .vip_main .weixin .text .t2[data-v-0c75bef5]{text-align:justify}#login .vip_main .weixin i[data-v-0c75bef5]{background:#32cd32;height:2.25rem;width:2.25rem;border-radius:1.125rem;color:#fff;text-align:center;line-height:2.375rem;font-size:18px}#login .vip_main .vip1[data-v-0c75bef5]{border-bottom:.0625rem solid #ebebeb}#login .btn[data-v-0c75bef5]{height:2.875rem}",""]),e.exports=t},f47e:function(e,t,i){"use strict";i("925b")},fd84d: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:"login"}},[i("c-title",{attrs:{hide:!1,text:"充值码"}}),i("div",{staticStyle:{"margin-bottom":"0.625rem"}}),i("van-cell-group",[i("van-cell",{attrs:{center:""}},[i("span",{staticStyle:{width:"88px","text-align":"left","font-size":"16px"}},[e._v("充值码:")]),i("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.code,expression:"code",modifiers:{trim:!0}}],staticStyle:{"font-size":"16px",border:"none"},attrs:{type:"text",placeholder:"请输入充值码"},domProps:{value:e.code},on:{input:function(t){t.target.composing||(e.code=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}}),i("van-button",{staticStyle:{height:"26px"},attrs:{slot:"right-icon",size:"small",type:"primary"},nativeOn:{click:function(t){return e.verifyCode.apply(null,arguments)}},slot:"right-icon"},[e._v("验证")])],1)],1),e.isShowType?i("div",[e._v("充值类型:"+e._s(e.type_name)+" "),e.recharge_tag?i("span",[e._v("("+e._s(e.recharge_tag)+")")]):e._e()]):e._e(),e.isShowType?i("div",[e._v("充值面值:"+e._s(e.price))]):e._e(),i("div",{staticClass:"van-button-group"},[i("van-button",{staticStyle:{height:"40px"},attrs:{size:"large",type:"danger",disabled:e.isDisabled},nativeOn:{click:function(t){return e.submit.apply(null,arguments)}}},[e._v("确定充值")])],1)],1)},n=[],o=(i("e7e5"),i("d399")),r=(i("14d9"),i("6968")),c={data:function(){return{code:"",type_name:"",price:"",isShowType:!1,isDisabled:!1,recharge_tag:""}},components:{cTitle:r["a"]},mounted:function(){},methods:{verifyCode:function(){if(this.fun.isTextEmpty(this.code))Object(o["a"])("请填写充值码");else{var e=this;$http.get("plugin.recharge-code.frontend.code.get-recharge-code",{code_key:this.code},"验证中...").then((function(t){1==t.result?(e.isShowType=!0,e.type_name=t.data.recharge_code.type_name,e.price=t.data.recharge_code.price,6==t.data.recharge_code.type&&t.data.recharge_code.recharge_tag&&(e.recharge_tag=t.data.recharge_code.recharge_tag)):e.$dialog.alert({message:t.msg})}),(function(e){}))}},submit:function(){if(this.fun.isTextEmpty(this.code))Object(o["a"])("请填写充值码");else{var e=this;$http.get("plugin.recharge-code.frontend.code.recharge",{code_key:this.code},"充值中...").then((function(t){e.isDisabled=!0,1==t.result?(e.$dialog.alert({message:t.msg}),t.data.jump_url&&t.data.jump_url.length>0?window.location.href=t.data.jump_url:e.$router.push(e.fun.getUrl("home",{}))):e.$dialog.alert({message:t.msg})}),(function(e){}))}}},activated:function(){this.code=this.$route.params.qrCode}},d=c,l=d,s=(i("f47e"),i("2877")),g=Object(s["a"])(l,a,n,!1,null,"0c75bef5",null);t["default"]=g.exports}}]); |