| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["globalExpress-Index"],{"88f0":function(t,e,a){},a34f:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],attrs:{id:"card-index","element-loading-background":"rgba(43, 48, 67, 0.05)","element-loading-spinner":"el-icon-loading"}},[t.pictViews?t._e():e("div",{staticClass:"promotion-box pb-3 mt-1"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[t.cardList.length?e("div",{staticClass:"promotion-box-white mt-1 mb-2"},[e("div",{staticClass:"account-summary"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"custom-money"},[e("div",{staticClass:"title"},[e("div",[e("i",{staticClass:"icon iconfont iconwallet"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"wallet.item5",expression:"'wallet.item5'"}],staticClass:"tit"})]),e("div",[e("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[e("i",{staticClass:"el-icon-more crm-cursor"}),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{attrs:{command:1}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"card.tab17",expression:"'card.tab17'"}]})]),e("el-dropdown-item",{attrs:{command:12}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"global.title",expression:"'global.title'"}]})]),t.isView?e("el-dropdown-item",{attrs:{command:2}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"card.Btn.Recharge",expression:"'card.Btn.Recharge'"}]})]):t._e(),t.isView?e("el-dropdown-item",{attrs:{command:6}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"WalletApply.title1",expression:"'WalletApply.title1'"}]})]):t._e(),t.isView?e("el-dropdown-item",{attrs:{command:3}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Blockchain1.title",expression:"'Blockchain1.title'"}]})]):t._e(),t.isView?e("el-dropdown-item",{attrs:{command:5}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"WalletApply.title",expression:"'WalletApply.title'"}]})]):t._e()],1)],1)],1)]),e("div",{staticClass:"content"},[e("div",{staticClass:"con"},[e("div",{staticClass:"num"},[t._v(" $ "),e("span",[t._v(t._s(t.userBalance||0))])])])]),e("div",{staticClass:"content"},[e("div",{staticClass:"status-box-btn status-box-btn1"},[e("div",{directives:[{name:"t",rawName:"v-t",value:"global.title1",expression:"'global.title1'"}],staticClass:"btn-apply",on:{click:t.addGlobalOrder}})])])])])])])]):t._e()])])])]),t.dialogInfoTradingAdd?e("CardHandle",{attrs:{dialogInfoTradingAdd:t.dialogInfoTradingAdd,formList:t.formList},on:{closeAdd:function(e){t.dialogInfoTradingAdd=!1}}}):t._e(),t.dialogCardVaultody?e("CardVaultody",{attrs:{dialogCardVaultody:t.dialogCardVaultody,formList:t.formList},on:{closeAdd:function(e){t.dialogCardVaultody=!1}}}):t._e(),t.dialogCardApply?e("CardApply",{attrs:{dialogCardApply:t.dialogCardApply,formList:t.formList},on:{closeAdd:function(e){t.dialogCardApply=!1}}}):t._e()],1)},s=[],n=a("2909"),i=a("b85c"),c=a("15fd"),o=a("3835"),d=a("5530"),l=a("c7eb"),u=a("1da1"),p=(a("99af"),a("4de4"),a("caad"),a("d81d"),a("14d9"),a("e9f5"),a("910d"),a("ab43"),a("b64b"),a("d3b7"),a("07ac"),a("6062"),a("1e70"),a("79a4"),a("c1a1"),a("8b00"),a("a4e7"),a("1e5a"),a("72c3"),a("2532"),a("3ca3"),a("ddb0"),a("c6e4")),m=a("f121"),b=a.n(m),f=a("5377"),g=a("1346"),h=a("b688"),v=["status"],w=["status"],y=b.a.Host80,O=[700101,701483,701443,701440,700112],C="production";console.log(C,1212);var x={name:"Index",components:{CardHandle:f["a"],CardVaultody:g["a"],CardApply:h["a"]},inject:["reload"],data:function(){return{Host80:y,c:C,isFlipping:"",isAuthInfo:!1,dialogInfoTradingAdd:!1,dialogCardApply:!1,dialogCardVaultody:!1,userBalance:0,businessForm:{merchantOrderNo:"",cardTypeId:0,areaCode:"",email:"",firstName:"",lastName:"",birthday:"",nationality:"",country:"",town:"",address:"",postCode:"",gender:"",annualSalary:"",accountPurpose:"",expectedMonthlyVolume:"",idType:"",idNumber:"",ssn:"",issueDate:"",idNoExpiryDate:"",idFrontUrl:"",idBackUrl:"",idHoldUrl:"",mobile:"",occupation:"",ipAddress:"",cId:void 0,customId:void 0},optionsCur:[],optionsLev:[],countryCityList:[],cityList:[],occupationList:[],pictLoading:!1,pictViews:!1,cardList:[],typesList:[],balanceData:{},formList:{}}},computed:{isView:function(){return O.includes(this.getInfoId)},getInfoId:function(){return JSON.parse(this.Session.Get("user",!0)).customInfo.cId},customInfo:function(){return JSON.parse(this.Session.Get("user",!0)).customInfo},AccessToken:function(){return{"Access-Token":this.Session.Get("access_token")}},lang:function(){return this.Session.Get("lang")}},methods:{flatData:function(t){return t.filter((function(t){return t.holderStatus}))},flipCard:function(t){this.$set(t,"_flip",!t._flip)},updateCardTypes:function(t,e){var a=this;return Object(u["a"])(Object(l["a"])().mark((function r(){return Object(l["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:r.t0=e,r.next=1===r.t0?3:2===r.t0?5:7;break;case 3:return a.$router.push({path:"/card/select",query:{cardTypeId:t.cardTypeId,type:t.type}}),r.abrupt("break",7);case 5:return a.$router.push({path:"/card/details",query:{cardId:t.id,type:"unactivate"==t.status?2:1}}),r.abrupt("break",7);case 7:case"end":return r.stop()}}),r)})))()},ucardBalance:function(t,e){var a=this;return Object(u["a"])(Object(l["a"])().mark((function r(){var s,n,i,c;return Object(l["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(s=t.uniqueId,n=t.cardNo,i=t.isOpen,!i){r.next=5;break}return a.toggleCard(e),a.pictLoading=!1,r.abrupt("return");case 5:return r.next=7,p["a"].ucardBalance({uniqueId:s,cardNo:n});case 7:c=r.sent,200==c.code?(a.$pigeon.MessageOK(a.$i18n.t("Msg.SearchSuccess")),a.balanceData=c.data,a.pictLoading=!1,a.toggleCard(e)):(a.pictLoading=!1,a.$pigeon.MessageError(c.msg));case 9:case"end":return r.stop()}}),r)})))()},toggleCard:function(t){this.cardList=this.cardList.map((function(e,a){return Object(d["a"])(Object(d["a"])({},e),{},{isOpen:a===t&&!e.isOpen})}))},toSelect:function(){0!=this.typesList.length?this.$router.push({path:"/card/select"}):this.$pigeon.MessageError(this.$i18n.t("card.Msg.m11"))},applyList:function(){var t=this;return Object(u["a"])(Object(l["a"])().mark((function e(){var a,r,s,n,i,c,u,m,b,f;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.all([p["a"].cardList({page:{current:1,row:10}}),p["a"].applyList({page:{current:1,row:10},cId:t.getInfoId}),p["a"].cardTypesList()]);case 3:return a=e.sent,r=Object(o["a"])(a,3),s=r[0],n=r[1],i=r[2],e.next=10,Promise.all([s.data,n.data,i.data]);case 10:c=e.sent,u=Object(o["a"])(c,3),m=u[0],b=u[1],f=u[2],t.pictLoading=!1,t.pictViews=!1,t.cardList=t.mergeLists(m,b).map((function(t){return Object(d["a"])(Object(d["a"])({},t),{},{_flip:!1})})),t.cardTypesList(f,b),e.next=26;break;case 21:e.prev=21,e.t0=e["catch"](0),t.pictLoading=!1,t.pictViews=!1,t.cardList=[];case 26:case"end":return e.stop()}}),e,null,[[0,21]])})))()},cardTypesList:function(t,e){var a=this;return Object(u["a"])(Object(l["a"])().mark((function r(){var s,n,i,c;return Object(l["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:try{s=new Set(e.map((function(t){if("fail"!=t.status&&"cancel"!=t.status)return t.cardTypeId}))),n=t,i=n.filter((function(t){return!s.has(t.cardTypeId)})),c=i.filter((function(t){return t.supportHolderRegin.includes(a.businessForm.country)})),a.typesList=c}catch(o){console.log(o),a.typesList=[]}case 1:case"end":return r.stop()}}),r)})))()},mergeLists:function(t,e){var a,r=t.map((function(t){var e=t.status,a=Object(c["a"])(t,v);return Object(d["a"])(Object(d["a"])({},a),{},{activateStatus:e||null,status:e})})),s=e.filter((function(t){return"fail"!=t.status})),o=s.map((function(t){var e=t.status,a=Object(c["a"])(t,w);return Object(d["a"])(Object(d["a"])({},a),{},{applyStatus:e||null,status:e})})),l=new Set(r.map((function(t){return t.cardTypeId}))),u=o.filter((function(t){return!l.has(t.cardTypeId)})),p={},m=Object(i["a"])(u);try{for(m.s();!(a=m.n()).done;){var b=a.value,f=p[b.cardTypeId];(!f||new Date(b.addTime).getTime()>new Date(f.addTime).getTime())&&(p[b.cardTypeId]=Object(d["a"])(Object(d["a"])({},b),{},{aId:b.id}))}}catch(y){m.e(y)}finally{m.f()}var g=Object.values(p),h=g.filter((function(t){return"cancel"!=t.status}));return[].concat(Object(n["a"])(h),Object(n["a"])(r))},ucardActivate:function(t,e){var a=this;return Object(u["a"])(Object(l["a"])().mark((function r(){return Object(l["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if("2"!=t.freezeType||"5"==e){r.next=3;break}return a.$pigeon.MessageOK(a.$i18n.t("card.Msg.m10")),r.abrupt("return");case 3:if(!t.blocked){r.next=6;break}return a.$pigeon.MessageOK(a.$i18n.t("card.New2.p6")),r.abrupt("return");case 6:if("success"==t.freezeStatus){r.next=9;break}return"1"==t.freezeType?a.$pigeon.MessageOK(a.$i18n.t("card.Btn.b14")):a.$pigeon.MessageOK(a.$i18n.t("card.Btn.b15")),r.abrupt("return");case 9:a.$router.push({path:"/card/operation",query:{cardId:t.id,type:e}});case 10:case"end":return r.stop()}}),r)})))()},handleCommand:function(t){switch(t){case 1:this.$router.push({path:"/card-g/wallet"});break;case 2:this.formList={uniqueId:this.businessForm.uniqueId},this.dialogCardVaultody=!0;break;case 3:this.$router.push({path:"/blockchain-g/transaction"});break;case 6:this.formList={uniqueId:this.businessForm.uniqueId,country:this.businessForm.country,email:this.businessForm.email,userBalance:this.userBalance},this.dialogCardApply=!0;break;case 5:this.$router.push({path:"/wallet-g/apply"});break;case 12:this.$router.push({path:"/global-express/order/list"});break}},getSingle:function(){var t=this;return Object(u["a"])(Object(l["a"])().mark((function e(){var a;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p["a"].getSingle();case 3:if(a=e.sent,200!==a.code){e.next=12;break}if(a.data&&2==a.data.approveStatus){e.next=7;break}return e.abrupt("return",t.$router.push({path:"/card/info"}));case 7:t.businessForm=a.data,t.applyList(),t.walletBalance(),e.next=13;break;case 12:t.$message.error(a.msg);case 13:e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](0),t.$message.error(e.t0);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})))()},walletBalance:function(){var t=this;return Object(u["a"])(Object(l["a"])().mark((function e(){var a;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p["a"].walletBalance();case 3:a=e.sent,200===a.code?t.userBalance=a.data.balance||0:(t.$message.error(a.msg),t.userBalance=0),e.next=11;break;case 7:e.prev=7,e.t0=e["catch"](0),t.userBalance=0,t.$message.error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))()},copyCvv:function(t){this.dialogInfoTradingAdd=!0,this.formList=t},copyText:function(t){if(t){var e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select();try{document.execCommand("copy"),this.$pigeon.MessageOK(this.$i18n.t("card.Msg.m8"))}catch(a){this.$pigeon.MessageError(this.$i18n.t("card.Msg.m9"))}document.body.removeChild(e)}else this.$pigeon.MessageError(this.$i18n.t("card.Msg.m9"))},addGlobalOrder:function(){this.$router.push({path:"/global-express/order"})}},watch:{dialogCardApply:function(t){t||this.walletBalance()}},mounted:function(){this.pictLoading=!0,this.pictViews=!0,this.getSingle()}},L=x,j=(a("d969"),a("2877")),I=Object(j["a"])(L,r,s,!1,null,"4bf4b5db",null);e["default"]=I.exports},d969:function(t,e,a){"use strict";a("88f0")}}]);
|