13.500436b9f3c7144a4d7e.js 9.0 KB

1
  1. webpackJsonp([13],{"9Nnc":function(a,t,n){(t=n("yGwj")(!0)).push([a.i,"\n.el-input-group__append[data-v-e3905772]{border-radius:0 !important\n}\n.bank-card[data-v-e3905772]{height:160px;background:#fff;-webkit-box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);margin-bottom:10px\n}\n.bank-card .bank-card-logo[data-v-e3905772]{width:42px;height:42px\n}\n.bank-card .bank-card-detail-wrapper[data-v-e3905772]{padding:10px\n}\n.bank-card .bank-card-detail-wrapper .bank-card-detail[data-v-e3905772]{margin-bottom:5px\n}\n.bank-card .bank-card-detail-wrapper .bank-card-detail .bank-card-detail-title[data-v-e3905772]{font-size:14px\n}\n.bank-card .bank-card-detail-wrapper .bank-card-detail .bank-card-detail-info[data-v-e3905772]{margin-left:43px\n}\n","",{version:3,sources:["BankCard.vue"],names:[],mappings:";AACA,yCAAyC;AACzC;AACA,4BAA4B,YAAY,CAAC,eAAe,CAAC,mDAAmD,CAAC,2CAA2C,CAAC;AACzJ;AACA,4CAA4C,UAAU,CAAC;AACvD;AACA,sDAAsD;AACtD;AACA,wEAAwE;AACxE;AACA,gGAAgG;AAChG;AACA,+FAA+F;AAC/F",file:"BankCard.vue",sourcesContent:["\n.el-input-group__append[data-v-e3905772]{border-radius:0 !important\n}\n.bank-card[data-v-e3905772]{height:160px;background:#fff;-webkit-box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);margin-bottom:10px\n}\n.bank-card .bank-card-logo[data-v-e3905772]{width:42px;height:42px\n}\n.bank-card .bank-card-detail-wrapper[data-v-e3905772]{padding:10px\n}\n.bank-card .bank-card-detail-wrapper .bank-card-detail[data-v-e3905772]{margin-bottom:5px\n}\n.bank-card .bank-card-detail-wrapper .bank-card-detail .bank-card-detail-title[data-v-e3905772]{font-size:14px\n}\n.bank-card .bank-card-detail-wrapper .bank-card-detail .bank-card-detail-info[data-v-e3905772]{margin-left:43px\n}\n"]}]),a.exports=t},VykI:function(a,t,n){var e=n("eOri");"string"==typeof e&&(e=[[a.i,e,""]]),e.locals&&(a.exports=e.locals);n("rjj0")("b8e58d06",e,!1,{})},cUxI:function(a,t,n){var e=n("9Nnc");"string"==typeof e&&(e=[[a.i,e,""]]),e.locals&&(a.exports=e.locals);n("rjj0")("1ee8b4ea",e,!1,{})},dZ7a:function(a,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e=n("vGYV"),r=n("SQ4B"),i=n("qI5z"),d={name:"BankCard",props:["bankCardVOList"],data:function(){return{untieBankCard:!1,nowCard:{},user:{}}},methods:{setUserInfo:function(){this.user=Object(e.M)("user")&&Object(e.M)("user").userVO},requestUntieBankCard:function(a){this.untieBankCard=!0,this.nowCard=a},handleUntieBankCard:function(){var a=this;r.a.delete("/api/personal/deletebankcard/"+this.nowCard.id+"/"+this.user.id,{}).then(function(t){a.$emit("loadData"),a.untieBankCard=!1,Object(i.a)("success","解绑成功")}).catch(function(a){Object(i.a)("error",a.data)})}},mounted:function(){this.setUserInfo()}},o=function(){var a=this,t=a.$createElement,n=a._self._c||t;return n("div",[n("el-row",{attrs:{gutter:15}},a._l(a.bankCardVOList,function(t){return n("el-col",{key:t.id,attrs:{span:8}},[n("div",{staticClass:"bank-card"},[n("div",{staticClass:"bank-card-title",staticStyle:{padding:"10px",height:"43px"}},[n("img",{staticClass:"bank-card-logo",attrs:{src:t.logoUrl}}),a._v(" "),n("span",{staticStyle:{"font-size":"16px","font-weight":"bold","line-height":"43px"}},[a._v(a._s(t.name))]),a._v(" "),n("el-button",{staticClass:"pull-right",attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(n){return a.requestUntieBankCard(t)}}},[a._v("解绑\n ")])],1),a._v(" "),n("div",{staticClass:"bank-card-detail-wrapper"},[n("div",{staticClass:"bank-card-detail"},[n("div",{staticClass:"bank-card-detail-info"},[a._v(a._s(t.user))]),a._v(" "),n("div",{staticClass:"bank-card-detail-info"},[a._v(a._s(t.number))])])])])])}),1),a._v(" "),n("el-dialog",{attrs:{title:"提示",visible:a.untieBankCard,width:"30%"},on:{"update:visible":function(t){a.untieBankCard=t}}},[n("span",[a._v("确定解绑 "),n("span",{staticStyle:{"font-weight":"bold","font-size":"18px"}},[a._v(a._s(a.nowCard.name))]),a._v(",卡号为:"),n("span",{staticStyle:{"font-weight":"bold","font-size":"18px"}},[a._v(a._s(a.nowCard.number))]),a._v(" 的银行卡吗?")]),a._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){a.untieBankCard=!1}}},[a._v("取 消")]),a._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:a.handleUntieBankCard}},[a._v("确 定")])],1)])],1)};o._withStripped=!0;var s={render:o,staticRenderFns:[]},l=s;var p=!1;var c=n("VU/8")(d,l,!1,function(a){p||n("cUxI")},"data-v-e3905772",null);c.options.__file="src/pages/UserCenter/BankCard.vue";var b={name:"MyBankCard",components:{BankCard:c.exports},data:function(){return{addBankCard:!1,UntieBankCard:!1,form:{name:"",number:"",institution:"",date:"",isPublic:""},bankCardForm:{user:"",number:"",name:""},user:{},bankCardVOList:[],bankCardType:[],rules:{user:[{required:!0,message:"持卡人不可为空",trigger:"blur"}],number:[{required:!0,message:"卡号不可为空",trigger:"blur"}],name:[{required:!0,message:"银行类型不可为空",trigger:"blur"}]}}},methods:{loadData:function(){var a=this;r.a.get("/api/personal/displaybankcard/"+this.user.id).then(function(t){a.bankCardVOList=t.bankCardVOList})},setUserInfo:function(){this.user=Object(e.M)("user")&&Object(e.M)("user").userVO},handleAddBankCard:function(){var a=this;this.$refs.bankCardForm.validate(function(t){t&&r.a.post("/api/personal/addbankcard/"+a.user.id,a.bankCardForm).then(function(t){Object(i.a)("success","添加成功"),a.addBankCard=!1,a.bankCardForm.user="",a.bankCardForm.number="",a.bankCardForm.name="",a.loadData()}).catch(function(a){Object(i.a)("error",a.data)})})},getBankType:function(){var a=this;r.a.get("/api/personal/banktype").then(function(t){a.bankCardType=t.bankLogoVOList})}},mounted:function(){this.setUserInfo(),this.loadData(),this.getBankType()}},u=function(){var a=this,t=a.$createElement,n=a._self._c||t;return n("div",[n("div",{staticClass:"right-qualification"},[n("div",{staticClass:"right-qualification-title"},[n("span",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[a._v("我的银行卡")]),a._v(" "),n("el-button",{staticClass:"pull-right",attrs:{type:"primary",size:"mini"},on:{click:function(t){a.addBankCard=!0}}},[a._v("添加")])],1),a._v(" "),n("div",{staticStyle:{"margin-bottom":"15px"}},[n("BankCard",{attrs:{bankCardVOList:a.bankCardVOList},on:{loadData:a.loadData}})],1)]),a._v(" "),n("el-dialog",{attrs:{title:"新增银行卡",visible:a.addBankCard,width:"30%"},on:{"update:visible":function(t){a.addBankCard=t}}},[n("el-form",{ref:"bankCardForm",attrs:{rules:a.rules,model:a.bankCardForm,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"持卡人",prop:"user"}},[n("el-input",{model:{value:a.bankCardForm.user,callback:function(t){a.$set(a.bankCardForm,"user",t)},expression:"bankCardForm.user"}})],1),a._v(" "),n("el-form-item",{attrs:{label:"卡号",prop:"number"}},[n("el-input",{model:{value:a.bankCardForm.number,callback:function(t){a.$set(a.bankCardForm,"number",t)},expression:"bankCardForm.number"}})],1),a._v(" "),n("el-form-item",{attrs:{label:"银行类型",prop:"name"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择银行卡种类"},model:{value:a.bankCardForm.name,callback:function(t){a.$set(a.bankCardForm,"name",t)},expression:"bankCardForm.name"}},a._l(a.bankCardType,function(a){return n("el-option",{key:a.id,attrs:{label:a.name,value:a.name}})}),1)],1)],1),a._v(" "),n("div",[a._v("\n 银行卡绑定成功后,您将享受以下服务:\n ")]),a._v(" "),n("div",[a._v("①可以申请平台的收益")]),a._v(" "),n("div",[a._v("②可以申请平台的收益")]),a._v(" "),n("div",[a._v("③可以申请平台的收益")]),a._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){a.addBankCard=!1}}},[a._v("取 消")]),a._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:a.handleAddBankCard}},[a._v("确认添加")])],1)],1)],1)};u._withStripped=!0;var C={render:u,staticRenderFns:[]},k=C;var A=!1;var v=n("VU/8")(b,k,!1,function(a){A||n("VykI")},"data-v-61d10f53",null);v.options.__file="src/pages/UserCenter/MyBankCard.vue";t.default=v.exports},eOri:function(a,t,n){(t=n("yGwj")(!0)).push([a.i,"\n.el-input-group__append[data-v-61d10f53]{border-radius:0 !important\n}\n.right-qualification[data-v-61d10f53]{padding:20px;background:#fff;-webkit-box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13)\n}\n.right-qualification .right-qualification-title[data-v-61d10f53]{padding:10px;border-bottom:1px solid #ccc;margin-bottom:20px\n}\n","",{version:3,sources:["MyBankCard.vue"],names:[],mappings:";AACA,yCAAyC;AACzC;AACA,sCAAsC,YAAY,CAAC,eAAe,CAAC,mDAAmD,CAAC;AACvH;AACA,iEAAiE,YAAY,CAAC,4BAA4B,CAAC;AAC3G",file:"MyBankCard.vue",sourcesContent:["\n.el-input-group__append[data-v-61d10f53]{border-radius:0 !important\n}\n.right-qualification[data-v-61d10f53]{padding:20px;background:#fff;-webkit-box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13)\n}\n.right-qualification .right-qualification-title[data-v-61d10f53]{padding:10px;border-bottom:1px solid #ccc;margin-bottom:20px\n}\n"]}]),a.exports=t}});