kankyofficial.com Open in urlscan Pro
2606:4700:3030::6815:4116  Public Scan

Submitted URL: http://kankyofficial.com/js/chunk-001b22f9.c26dbb8a.js
Effective URL: https://kankyofficial.com/js/chunk-001b22f9.c26dbb8a.js
Submission: On November 09 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-001b22f9"],{"01c3":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"content-wrap"},[r("van-nav-bar",{staticClass:"header bg-template",attrs:{title:t.$t("Withdraw"),fixed:"","z-index":"999","left-arrow":""},on:{"click-left":function(e){return t.$router.back()}}}),r("div",[r("div",{staticClass:"container"},[r("div",{staticClass:"card bg-template bg-blue shadow mt-4"},[r("div",{staticClass:"card-body"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col text-center"},[r("h3",{staticClass:"u-p-t-20 font-weight-normal"},[t._v(t._s(t.formatMoney(t.userMoney.balance)))]),r("p",{staticClass:"text-mute"},[t._v(t._s(t.$t("Balance")))])])])])])]),r("div",{staticClass:"container u-m-t-15"},[r("div",{staticClass:"card shadow"},[r("div",{staticClass:"card-body bg-none"},[r("div",{staticClass:"row"},[t.washMoneyOpen?[r("div",{staticClass:"col-5 text-secondary small mb-2"},[t._v(t._s(t.$t("wash_money")))]),r("div",{staticClass:"col-7 small"},[t._v(t._s(t.userMoney.washMoney))])]:t._e(),"1"===t.paramMapAll["SITE_SHOW_USERNAME"]?[r("div",{staticClass:"col-12 text-secondary small"},[r("span",{staticClass:"text-secondary small"},[t._v(t._s(t.$t("手机号码")))]),r("span",{staticClass:"small text-333 u-m-l-20"},[t._v(t._s(t.userInfo.phone))])])]:t._e(),r("div",{staticClass:"col-12 text-secondary small"},[r("div",{staticClass:"u-p-t-20 u-p-b-10",staticStyle:{"font-weight":"bold"}},[t._v(t._s(t.$t("select_bank_account")))]),r("van-radio-group",{model:{value:t.formObj.bankCardId,callback:function(e){t.$set(t.formObj,"bankCardId",e)},expression:"formObj.bankCardId"}},t._l(t.cardList,(function(e,n){return r("van-radio",{key:n,attrs:{name:e.id},on:{click:function(r){return t.getCardInfo(e)}}},[t._v("\n                  "+t._s(t.$t("card_type"))+":"+t._s(e.cardType)+" - "+t._s(t.encryptCardNumber(e.bankAccount||e.account1||e.account2||e.ifsc||e.upi||e.pix||e.usdt||e.iban||e.wallet||e.gcash||e.powwi||e.nequi||e.cci))+"\n                ")])})),1)],1)],2)])])]),r("div",{staticClass:"container"},[r("h6",{staticClass:"subtitle"},[t._v(t._s(t.$t("提现金额")))]),r("van-form",{ref:"withdrawForm",on:{submit:t.withdraw}},[r("van-field",{attrs:{type:"number",placeholder:t.$t("withdraw_money"),rules:[{required:!0,message:t.$t("can_not_be_null"),trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]{1,6}?$)/,message:t.$t("money_error"),trigger:"blur"}]},model:{value:t.formObj.amount,callback:function(e){t.$set(t.formObj,"amount",e)},expression:"formObj.amount"}}),"0"!==t.paramMapAll["WITHDRAW_PASSWORD_OPEN"]?r("van-field",{attrs:{type:"password",placeholder:t.$t("withdraw_password"),rules:[{required:!0,message:t.$t("please_input_withdraw_password")},{pattern:/^.{4,16}$/,message:t.$t("withdraw_password_format_error"),trigger:"blur"}]},model:{value:t.formObj.tkPassword,callback:function(e){t.$set(t.formObj,"tkPassword",e)},expression:"formObj.tkPassword"}}):t._e(),r("div",[r("van-button",{attrs:{loading:t.loading,small:"",round:"",block:"",type:"primary","native-type":"submit","loading-text":t.$t("submitting")}},[t._v("\n            "+t._s(t.$t("submit"))+"\n          ")])],1)],1),"1"!==t.paramMapAll["WITHDRAW_FEE_CLOSE"]?[t.userLevel.withdrawFeeMoney>0?r("h6",{staticClass:"subtitle"},[t._v(t._s(t.$t("手续费"))+":"+t._s(t.formatMoney(t.getFee)))]):r("h6",{staticClass:"subtitle"},[t._v(t._s(t.$t("手续费"))+":"+t._s(t.formatMoney(t.getFee))+" ("+t._s(t.getFeeRate)+"%)")])]:t._e(),"1"!==t.paramMapAll["WITHDRAW_ARRIVE_MONEY_CLOSE"]?r("h6",{staticClass:"subtitle mt-1"},[t._v(t._s(t.$t("实际到账"))+":\n          "+t._s(t.formatMoney(t.getMoney,this.cardInfo&&-1!=this.cardInfo.cardType.indexOf("USDT")?"USDT":this.paramMapAll["SYSTEM_COUNTRY_CURRENCY"]))+"\n      ")]):t._e(),r("div",{staticClass:"text-red",staticStyle:{padding:"10px"}},[t._v("\n        "+t._s(t.paramMapAll["WITHDRAW_TIPS"])+"\n      ")])],2),r("van-dialog",{attrs:{title:t.checkPoster.title,"show-cancel-button":!1,"close-on-click-overlay":"","confirm-button-text":t.checkPoster.confirmButtonUrl?t.$tt(t.checkPoster.confirmButtonText):"","before-close":t.close},model:{value:t.showCheckDialog,callback:function(e){t.showCheckDialog=e},expression:"showCheckDialog"}},[r("div",{staticClass:"pa-2 rich-text",domProps:{innerHTML:t._s(t.getFileViewContent(t.checkPoster.content))}})])],1)],1)},a=[],s=r("a34a"),i=r.n(s),o=r("912e"),c=r("b775");function u(t){return Object(c["a"])({url:"/user/withdraw/commit",method:"post",data:t})}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(c["a"])({url:"/user/withdraw/getMonthWithdrawNum/".concat(t),method:"post"})}var h=r("f211");function d(t,e,r,n,a,s,i){try{var o=t[s](i),c=o.value}catch(u){return void r(u)}o.done?e(c):Promise.resolve(c).then(n,a)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var s=t.apply(e,r);function i(t){d(s,n,a,i,o,"next",t)}function o(t){d(s,n,a,i,o,"throw",t)}i(void 0)}))}}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){w(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function w(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b={name:"MUserWithdraw",computed:p(p({},Vuex.mapGetters(["currency","userInfo","userMoney","userLevel","paramMapAll"])),{},{getMoney:function(){return this.cardInfo&&-1!=this.cardInfo.cardType.indexOf("USDT")?(this.formObj.amount-this.getFee)/this.paramMapAll["WITHDRAW_USDT_RATE"]:(this.formObj.amount-this.getFee)*parseInt(this.paramMapAll["SYSTEM_AMOUNT_RATE"])},getFee:function(){var t=this.getIsFee;return t?this.userLevel.withdrawFeeMoney>0?this.userLevel.withdrawFeeMoney:this.formObj.amount&&parseFloat((this.formObj.amount*this.getFeeRate/100).toFixed(2))||0:0},getIsFee:function(){var t=!1;return this.userLevel.getWithdrawFreeMonthTimes>0&&this.monthTimes>=this.userLevel.getWithdrawFreeMonthTimes&&(t=!0),!t&&this.userMoney.todayTkTimes>=this.userLevel.withdrawFreeTimes&&(t=!0),t},getFeeRate:function(){return"1"===this.paramMapAll["WITHDRAW_USDT_NO_FEE_OPEN"]&&this.cardInfo&&-1!=this.cardInfo.cardType.indexOf("USDT")?0:this.userMoney.todayTkTimes>=this.userLevel.withdrawFreeTimes?this.userLevel.withdrawFee:0}}),filterCard:function(t){return"************"+t.substring(t.length-4)},data:function(){return{cardList:[],formObj:{amount:null,bankCardId:null},loading:!1,token:null,washMoneyOpen:!1,cardInfo:null,showCheckDialog:!1,checkPoster:{}}},created:function(){this.washMoneyOpen="1"===this.paramMapAll["WITHDRAW_WASH_OPEN"],this.getToken(),this.getList(),"1"===this.paramMapAll["WITHDRAW_CLOSE_TIPS_SHOW_ONOPEN"]&&(this.userInfo.withdrawOpen&&"1"===this.paramMapAll["WITHDRAW_OPEN"]||this.checkWithdrawOpen()),this.getMonthWithdrawNum()},methods:{getMonthWithdrawNum:function(){var t=this;l(this.formObj.type).then((function(e){t.monthTimes=e.data||0}))},checkWithdrawOpen:function(){var t=f(i.a.mark((function t(){var e,r,n;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.paramMapAll["WITHDRAW_CLOSE_TIPS_POSTER_ID"]){t.next=16;break}if(e=this.paramMapAll["WITHDRAW_CLOSE_TIPS_POSTER_ID"],!e){t.next=16;break}if(t.t1=e,!t.t1){t.next=8;break}return t.next=7,Object(h["a"])(e);case 7:t.t1=t.sent.data;case 8:if(t.t0=t.t1,t.t0){t.next=11;break}t.t0={};case 11:r=t.t0,this.checkPoster=p(p({},this.checkPoster),r),n=this.userInfo.withdrawTips,n&&(this.checkPoster.content=n),this.showCheckDialog=!0;case 16:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),close:function(t,e){if("overlay"===t)e();else if("confirm"===t){var r=this.checkPoster.confirmButtonUrl;r&&(0===r.indexOf("http")?window.open(r):this.$router.push({path:r})),e(!0)}else"cancel"===t&&e(!0)},getToken:function(){var t=f(i.a.mark((function t(){return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("common/getToken");case 2:this.token=t.sent.data;case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getCardInfo:function(t){this.cardInfo=t},getList:function(){var t=f(i.a.mark((function t(){var e,r=this;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])();case 2:if(t.t0=t.sent.data,t.t0){t.next=5;break}t.t0=[];case 5:e=t.t0,e&&0!==e.length||this.$dialog.confirm({message:this.$t("请先添加提款信息")}).then((function(){r.$router.push({path:"/m/user/bankCard"})})).catch((function(){r.$router.back()})),this.cardList=e,e&&e.length&&(this.formObj.bankCardId=e[0].id,this.cardInfo=e[0]);case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),withdraw:function(){var t=this;if(this.washMoneyOpen&&0!==this.userMoney.washMoney)this.$toast.fail(this.$t("withdraw_for_wash_money0"));else if(this.formObj.amount<=0||this.formObj.amount>this.userMoney.balance)this.$toast.fail(this.$t("withdraw_money_limit",{balance:this.userMoney.balance}));else if(!this.loading){this.loading=!0;var e=this.userLevel.withdrawFreeTimes;"1"===this.paramMapAll["WITHDRAW_USDT_NO_FEE_OPEN"]&&this.cardInfo&&-1!=this.cardInfo.cardType.indexOf("USDT")?this.commit(this.formObj):this.userMoney.todayTkTimes>=e?this.$dialog.confirm({message:this.$t("withdraw_times_limit",{todayWithdrawNum:this.userMoney.todayTkTimes,limitTimes:e,withdrawFee:this.userLevel.withdrawFee}),messageAlign:"left"}).then((function(){t.commit(t.formObj)})).catch((function(){t.loading=!1})):this.commit(this.formObj)}},commit:function(){var t=f(i.a.mark((function t(e){var r=this;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e["X-IDEMPOTENT-TOKEN"]=this.token,u(e).then(function(){var t=f(i.a.mark((function t(e){var n,a;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log("res",e.showDialogFlag),!e.showDialogFlag){t.next=17;break}if(t.t1=e.showDialogPosterId,!t.t1){t.next=7;break}return t.next=6,Object(h["a"])(e.showDialogPosterId);case 6:t.t1=t.sent.data;case 7:if(t.t0=t.t1,t.t0){t.next=10;break}t.t0={};case 10:n=t.t0,r.checkPoster=p(p({},r.checkPoster),n),a=e.showDialogContent,a&&(r.checkPoster.content=a),r.showCheckDialog=!0,t.next=23;break;case 17:return r.loading=!1,r.todayWithdrawNum+=1,t.next=21,r.$store.dispatch("user/getUserInfo");case 21:r.$toast.success(r.$t("commit_success")),r.$router.back();case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){})).finally(function(){var t=f(i.a.mark((function t(e){return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r.loading=!1,r.getToken();case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}},_=b,v=(r("f05d"),r("2877")),g=Object(v["a"])(_,n,a,!1,null,"60a4deb8",null);e["default"]=g.exports},"5b0b":function(t,e,r){},"912e":function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return s})),r.d(e,"a",(function(){return i}));var n=r("b775");function a(){return Object(n["a"])({url:"/user/bankCard/list",method:"post"})}function s(t){return Object(n["a"])({url:"/user/bankCard/save",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/user/bankCard/".concat(t,"/delete"),method:"post"})}},f05d:function(t,e,r){"use strict";r("5b0b")},f211:function(t,e,r){"use strict";r.d(e,"c",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"a",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"e",(function(){return c}));var n=r("b775");function a(t){return Object(n["a"])({url:"/poster/list",method:"post",data:t})}function s(){return Object(n["a"])({url:"/poster/homeList",method:"post"})}function i(t){return Object(n["a"])({url:"/poster/".concat(t,"/info"),method:"post"})}function o(){return Object(n["a"])({url:"/poster/notice",method:"get"})}function c(t){return Object(n["a"])({url:"/user/poster/".concat(t,"/playVideo"),method:"post"})}}}]);