1 line
7.8 KiB
JavaScript
1 line
7.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d8d9b8f"],{"541a":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"hand-withdraw"}},[a("c-title",{attrs:{hide:!1,text:"手动"+this.fun.initWithdrawal()}}),a("div",{staticClass:"content"},[a("div",{staticClass:"address_box",on:{click:function(e){t.show1=!0}}},[a("i",{staticClass:"iconfont icon-info_position"}),a("p",{staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(t._s(t.address))]),a("i",{staticClass:"fa fa-angle-right"})]),a("div",{staticClass:"transfer_box"},[a("ul",{staticClass:"transfer_info"},[a("li",{staticClass:"info_b"},[a("span",[t._v("可"+t._s(this.fun.initWithdrawal())+"的"+t._s(t.integral_name)+":")]),a("span",[t._v(t._s(t.member_integral))])])]),a("div",{staticClass:"transfer_sum"},[a("span",[t._v(t._s(this.fun.initWithdrawal())+"金额")]),a("div",{staticClass:"sum"},[t._v(" "+t._s(t.$i18n.t("money"))),a("input",{directives:[{name:"model",rawName:"v-model",value:t.cash,expression:"cash"}],attrs:{type:"tel",placeholder:"0.0"},domProps:{value:t.cash},on:{input:function(e){e.target.composing||(t.cash=e.target.value)}}})])])]),a("button",{staticClass:"transfer_btn",attrs:{type:"button"},on:{click:t.sureCash}},[t._v("确认"+t._s(this.fun.initWithdrawal()))]),a("van-popup",{attrs:{position:"bottom",height:"60%"},model:{value:t.show1,callback:function(e){t.show1=e},expression:"show1"}},[a("div",{staticClass:"select_address"},[a("ul",{staticClass:"select_box"},[a("van-radio-group",{model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},t._l(t.addressData,(function(e,n){return a("li",{key:n},[a("p",[t._v(t._s(e.address))]),a("van-radio",{attrs:{name:e.id,"checked-color":"#f15353"},on:{click:function(a){return t.selectAddress(e)}}})],1)})),0)],1),a("button",{staticClass:"address_btn",attrs:{type:"button"},on:{click:t.toAdd}},[t._v("新增提出地址")])])])],1)],1)},i=[],s=(a("e7e5"),a("d399")),r=(a("d81d"),a("a9e3"),a("6968")),d={data:function(){return{show1:!1,member_integral:0,addressData:{},radio:"1",address:"",cash:"",address_id:"",integral_name:""}},activated:function(){this.inniData(),this.getData(),this.fun.setWXTitle("手动"+this.fun.initWithdrawal())},methods:{inniData:function(){this.show1=!1,this.member_integral=0,this.addressData={},this.radio="1",this.address="",this.cash="",this.address_id="",this.integral_name=""},getData:function(){var t=this;$http.get("plugin.integral.Frontend.Modules.Integral.Controllers.integral-manual-cash-withdrawal.pageIndex").then((function(e){1==e.result?(t.integral_name=e.data.integral_name,t.member_integral=e.data.member_integral,t.addressData=e.data.addressData,t.addressData.map((function(e,a,n){1==e.is_default&&(t.radio=e.id,t.address=e.address,t.address_id=e.id)}))):Object(s["a"])(e.msg)})).catch((function(t){}))},sureCash:function(){var t=this;this.fun.isTextEmpty(this.address)?Object(s["a"])("请选择".concat(this.fun.initWithdrawal(),"地址")):this.fun.isTextEmpty(this.cash)?Object(s["a"])("请输入".concat(this.fun.initWithdrawal(),"数额")):Number(this.cash)<0?Object(s["a"])("输入的".concat(this.fun.initWithdrawal(),"数额需大于0")):Number(this.cash)>Number(this.member_integral)?Object(s["a"])("输入的".concat(this.fun.initWithdrawal(),"数额超过已有的消费积分")):$http.get("plugin.integral.Frontend.Modules.Integral.Controllers.integral-manual-cash-withdrawal.index",{change_value:this.cash,address_id:this.address_id},"".concat(this.fun.initWithdrawal(),"中")).then((function(e){1===e.result?(Object(s["a"])("".concat(t.fun.initWithdrawal(),"成功")),t.$router.push(t.fun.getUrl("Integral_love"))):Object(s["a"])(e.msg)})).catch((function(t){}))},toAdd:function(){this.$router.push(this.fun.getUrl("addressAdd"))},selectAddress:function(t){this.address=t.address,this.address_id=t.id,this.show1=!1}},components:{cTitle:r["a"]}},o=d,l=o,c=(a("b140"),a("2877")),f=Object(c["a"])(l,n,i,!1,null,"66ee2965",null);e["default"]=f.exports},95782:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"#hand-withdraw .content[data-v-66ee2965]{margin-top:.625rem}#hand-withdraw .content .address_box[data-v-66ee2965]{background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:14px;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#hand-withdraw .content .address_box .iconfont[data-v-66ee2965]{font-size:1.5rem;color:#333}#hand-withdraw .content .address_box p[data-v-66ee2965]{width:18.75rem;display:block;line-height:2.5rem;font-size:14px;text-align:left;word-wrap:break-word}#hand-withdraw .content .address_box .fa[data-v-66ee2965]{font-size:1.5rem;color:#c9c9c9}#hand-withdraw .content .transfer_box[data-v-66ee2965]{margin-top:.625rem;background:#fff;padding-left:.875rem}#hand-withdraw .content .transfer_box .transfer_info[data-v-66ee2965]{background:#fff;font-size:16px}#hand-withdraw .content .transfer_box .transfer_info .info_a[data-v-66ee2965],#hand-withdraw .content .transfer_box .transfer_info .info_b[data-v-66ee2965]{line-height:2.875rem;border-bottom:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}#hand-withdraw .content .transfer_box .transfer_info .info_a span[data-v-66ee2965]:first-child,#hand-withdraw .content .transfer_box .transfer_info .info_b span[data-v-66ee2965]:first-child{display:block;text-align:left}#hand-withdraw .content .transfer_box .transfer_info .info_a input[data-v-66ee2965],#hand-withdraw .content .transfer_box .transfer_info .info_b input[data-v-66ee2965]{border:none;width:15.625rem}#hand-withdraw .content .transfer_box .transfer_sum[data-v-66ee2965]{background:#fff;padding:.625rem .875rem .625rem 0}#hand-withdraw .content .transfer_box .transfer_sum span[data-v-66ee2965]{display:block;font-size:16px;line-height:2.5rem;text-align:left}#hand-withdraw .content .transfer_box .transfer_sum .sum[data-v-66ee2965]{text-align:left;font-size:24px}#hand-withdraw .content .transfer_box .transfer_sum .sum input[data-v-66ee2965]{margin-left:.375rem;line-height:3.75rem;width:90%;font-size:36px;border:none}#hand-withdraw .content .transfer_btn[data-v-66ee2965]{width:21.5625rem;height:2.875rem;margin:1.25rem auto;background:#f15353;border-radius:.25rem;color:#fff;font-size:16px;border:none}#hand-withdraw .content .select_address .select_box[data-v-66ee2965]{padding:.875rem;max-height:22.5rem;overflow-y:scroll}#hand-withdraw .content .select_address .select_box li[data-v-66ee2965]{padding:7px 0;font-size:14px;text-align:left;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #eee;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;word-wrap:break-word}#hand-withdraw .content .select_address .select_box li p[data-v-66ee2965]{width:80%}#hand-withdraw .content .select_address .select_box li .iconfont[data-v-66ee2965]{position:absolute;right:0;color:#f15353;font-size:1.5rem}#hand-withdraw .content .select_address .select_box li[data-v-66ee2965]:last-child{border-bottom:none}#hand-withdraw .content .select_address .address_btn[data-v-66ee2965]{width:100%;height:3.125rem;background:#f15353;border:none;font-size:16px;color:#fff}",""]),t.exports=e},b140:function(t,e,a){"use strict";a("ea03")},ea03:function(t,e,a){var n=a("95782");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("460d1a7f",n,!0,{sourceMap:!1,shadowMode:!1})}}]); |