test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
13 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages-merchant-merchantCash-merchantCash"],{"002e":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".cash[data-v-11bbc11e]{font-size:0;border:%?1?% solid transparent;background:#f6f6f6}uni-page-body[data-v-11bbc11e]{background:#f6f6f6;overflow-x:hidden}.cashInput[data-v-11bbc11e]{margin:%?20?% auto 0 auto;width:%?688?%;background:#fff;border-radius:%?10?%}.cashInputPackage[data-v-11bbc11e]{padding:%?30?%}.cashInputPackage > uni-view:nth-child(1) > span[data-v-11bbc11e]{font-size:%?28?%;color:#333}.cashInputPackage > uni-view[data-v-11bbc11e]:nth-child(2){margin-top:%?48?%;padding-bottom:%?20?%;border-bottom:%?1?% solid #f6f6f6}.cashInputPackage > uni-view:nth-child(2) > span[data-v-11bbc11e]{vertical-align:bottom;font-size:%?24?%;font-weight:700;color:#333}.cashInputPackage > uni-view:nth-child(2) > uni-input[data-v-11bbc11e]{display:inline-block;width:%?500?%;font-size:%?36?%;font-weight:700;color:#333}.cashInputPackage > uni-view[data-v-11bbc11e]:nth-child(3){margin:%?20?% 0 0 0;display:flex;justify-content:space-between}.cashInputPackage > uni-view:nth-child(3) > span[data-v-11bbc11e]{line-height:%?70?%;font-size:%?24?%;color:#999}.cashInputPackage > uni-view:nth-child(3) > uni-view[data-v-11bbc11e]{display:inline-block;width:%?184?%;height:%?70?%;background:#f44f44;border-radius:%?35?%;text-align:center}.cashInputPackage > uni-view:nth-child(3) > uni-view > span[data-v-11bbc11e]{line-height:%?70?%;font-size:%?24?%;color:#fff}.checkPayType[data-v-11bbc11e]{margin:%?20?% auto 0 auto;width:%?688?%;background:#fff;border-radius:%?10?%}.checkPayTypePackage[data-v-11bbc11e]{padding:%?30?%}.checkPayTypePackage > uni-view:nth-child(1) > span[data-v-11bbc11e]{font-size:%?30?%;color:#333}.checkPayTypePackage > uni-view[data-v-11bbc11e]:nth-child(2){margin-top:%?10?%}.typePackage[data-v-11bbc11e]{padding:%?20?% 0;display:flex;justify-content:space-between;border-bottom:%?1?% solid #f6f6f6}.typePackage > uni-view[data-v-11bbc11e]:nth-child(1){vertical-align:middle}.typePackage > uni-view:nth-child(1) > uni-image[data-v-11bbc11e]{vertical-align:middle;width:%?60?%;height:%?60?%}.typePackage > uni-view:nth-child(1) > span[data-v-11bbc11e]{margin-left:%?15?%;vertical-align:middle;font-size:%?28?%;color:#515151}.typePackage > uni-view[data-v-11bbc11e]:nth-child(2){margin-top:%?15?%;vertical-align:middle;width:%?35?%;height:%?35?%;border:%?2?% solid #eee;border-radius:50%}.typePackage > uni-view:nth-child(2) > uni-image[data-v-11bbc11e]{width:%?35?%;height:%?35?%}.yhkInput[data-v-11bbc11e]{padding:%?20?%}.yhkInput > uni-view[data-v-11bbc11e]{border-bottom:%?1?% solid #f6f6f6;padding:%?20?% 0}.yhkInput > uni-view > span[data-v-11bbc11e]{vertical-align:middle;display:inline-block;width:%?100?%;font-size:%?24?%;color:#515151}.yhkInput > uni-view > uni-input[data-v-11bbc11e]{padding-left:%?30?%;vertical-align:middle;width:%?400?%;display:inline-block;font-size:%?24?%;font-weight:400;color:#515151}.inputFoot[data-v-11bbc11e]{margin-top:%?20?%;display:flex;justify-content:space-between}.inputFoot > uni-view[data-v-11bbc11e]{display:inline-block}.inputFoot > uni-view > span[data-v-11bbc11e]:nth-child(1){vertical-align:top;font-size:%?24?%;font-weight:400;color:#999}.inputFoot > uni-view > span[data-v-11bbc11e]:nth-child(2){vertical-align:top;font-size:%?24?%;font-weight:400;color:#ef4949}.cashSubmit[data-v-11bbc11e]{margin:%?20?% auto 0 auto;width:%?688?%;height:%?84?%;background:#f44f44;border-radius:%?42?%;text-align:center}.cashSubmit > span[data-v-11bbc11e]{line-height:%?84?%;font-size:%?28?%;font-weight:400;color:#fff}.checked[data-v-11bbc11e]{width:35px;height:35px;background:#f44f44;border-radius:50%}body.?%PAGE?%[data-v-11bbc11e]{background:#f6f6f6}",""]),e.exports=t},"004b":function(e,t,n){var a=n("002e");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("4f06").default;i("5cfedc14",a,!0,{sourceMap:!1,shadowMode:!1})},2891:function(e,t,n){"use strict";var a=n("004b"),i=n.n(a);i.a},6042:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return a}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"cash"},[n("far-bottom"),n("v-uni-view",{staticClass:"cashInput"},[n("v-uni-view",{staticClass:"cashInputPackage"},[n("v-uni-view",[n("span",[e._v("提现金额")])]),n("v-uni-view",[n("span",[e._v("¥")]),n("v-uni-input",{attrs:{placeholder:"请输入金额"},model:{value:e.settlementmoney.money,callback:function(t){e.$set(e.settlementmoney,"money",t)},expression:"settlementmoney.money"}})],1),n("v-uni-view",[[n("span",{staticStyle:{"line-height":"20upx","font-size":"23upx"}},[e._v("可提现(元):"+e._s(e.creditCashInfo.nowmoney))]),n("span",{staticStyle:{"line-height":"20upx","font-size":"23upx"}},[e._v("预留金额(元):"+e._s(e.creditCashInfo.reservemoney))])],n("v-uni-view",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.allWithdrawal(0)}}},[n("span",[e._v("全部提现")])])],2),n("v-uni-view",{staticStyle:{color:"#FF4444","font-size":"22upx"}},[e._v("提现金额"+e._s(e.creditCashInfo.lowsetmoney)+"元起,"),999999999!==e.creditCashInfo.maxsetmoney?n("v-uni-text",[e._v("本次最高提现金额"+e._s(e.creditCashInfo.maxsetmoney)+"元")]):e._e(),e._v("提现手续费"+e._s(e.creditCashInfo.syssalepercent)+"%")],1)],1)],1),n("v-uni-view",{staticClass:"checkPayType"},[n("v-uni-view",{staticClass:"checkPayTypePackage"},[n("v-uni-view",[n("span",[e._v("提现到")])]),1==e.creditCashInfo.wechatstatus?n("v-uni-view",{staticClass:"type",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cashtype=2}}},[n("v-uni-view",{staticClass:"typePackage"},[n("v-uni-view",[n("v-uni-image",{attrs:{src:e.imgfixUrls+"merchant/wechatPay.svg"}}),n("span",[e._v("微信零钱")])],1),2==e.cashtype?n("v-uni-view",{staticClass:"checked"},[n("v-uni-image",{attrs:{src:e.imgfixUrls+"merchant/payCheck.svg"}})],1):n("v-uni-view")],1)],1):e._e(),1==e.creditCashInfo.alipaystatus?n("v-uni-view",{staticClass:"type",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cashtype=1}}},[n("v-uni-view",{staticClass:"typePackage"},[n("v-uni-view",[n("v-uni-image",{attrs:{src:e.imgfixUrls+"merchant/payPal.svg"}}),n("span",[e._v(e._s(0==e.examineing?"支付宝":"渠道1"))])],1),1==e.cashtype?n("v-uni-view",{staticClass:"checked"},[n("v-uni-image",{attrs:{src:e.imgfixUrls+"merchant/payCheck.svg"}})],1):n("v-uni-view")],1),1==e.cashtype?n("v-uni-view",{staticClass:"yhkInput"},[n("v-uni-view",[n("span",[e._v("真实姓名")]),n("v-uni-input",{attrs:{placeholder:"请填写真实姓名"},model:{value:e.creditCashInfo.realname,callback:function(t){e.$set(e.creditCashInfo,"realname",t)},expression:"creditCashInfo.realname"}})],1),n("v-uni-view",[n("span",[e._v(e._s(0==e.examineing?"支付宝":"渠道1"))]),n("v-uni-input",{attrs:{placeholder:0==e.examineing?"请输入支付宝账号":"请输入渠道1账号"},model:{value:e.creditCashInfo.alipay,callback:function(t){e.$set(e.creditCashInfo,"alipay",t)},expression:"creditCashInfo.alipay"}})],1)],1):e._e()],1):e._e(),1==e.creditCashInfo.bankcardstatus?n("v-uni-view",{staticClass:"type",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cashtype=3}}},[n("v-uni-view",{staticClass:"typePackage"},[n("v-uni-view",[n("v-uni-image",{attrs:{src:e.imgfixUrls+"merchant/yhk.png"}}),n("span",[e._v(e._s(0==e.examineing?"银行":"渠道2")+"账户")])],1),3==e.cashtype?n("v-uni-view",{staticClass:"checked"},[n("v-uni-image",{attrs:{src:e.imgfixUrls+"merchant/payCheck.svg"}})],1):n("v-uni-view")],1),3==e.cashtype?n("v-uni-view",{staticClass:"yhkInput"},[n("v-uni-view",[n("span",[e._v("真实姓名")]),n("v-uni-input",{attrs:{placeholder:"请输入姓名"},model:{value:e.creditCashInfo.bank_username,callback:function(t){e.$set(e.creditCashInfo,"bank_username",t)},expression:"creditCashInfo.bank_username"}})],1),n("v-uni-view",[n("span",[e._v("开户"+e._s(0==e.examineing?"银行":"渠道2"))]),n("v-uni-input",{attrs:{placeholder:"请输入开户行名称/地址"},model:{value:e.creditCashInfo.bank_name,callback:function(t){e.$set(e.creditCashInfo,"bank_name",t)},expression:"creditCashInfo.bank_name"}})],1),n("v-uni-view",[n("span",[e._v(e._s(0==e.examineing?"银行卡":"渠道2")+"号")]),n("v-uni-input",{attrs:{placeholder:0==e.examineing?"请输入银行卡号":"请输入渠道2号",type:"number"},model:{value:e.creditCashInfo.card_number,callback:function(t){e.$set(e.creditCashInfo,"card_number",t)},expression:"creditCashInfo.card_number"}})],1)],1):e._e()],1):e._e(),n("v-uni-view",{staticClass:"inputFoot"},[n("span"),n("v-uni-view",[n("span",[e._v("请务必填写真实信息")]),n("span",[e._v("*")])])],1)],1)],1),n("v-uni-view",{staticClass:"cashSubmit",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.creditCashing.apply(void 0,arguments)}}},[n("span",[e._v("提交审核")])])],1)},s=[]},"73be":function(e,t,n){"use strict";var a=n("4ea4");n("99af"),n("a9e3"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("2c7c")),s=(a(n("ec93")),{data:function(){return{creditCashInfo:{},settlementmoney:{money:""},cashtype:"",setWith:"",storeid:null,examineing:1}},onLoad:function(){this.init();var e=uni.getStorageSync("TextSubstitution");this.examineing=e.examineing||0},methods:{allWithdrawal:function(e){var t=Number(this.creditCashInfo.nowmoney);return console.log(t,Number(this.creditCashInfo.maxsetmoney)),0!==e?1==e?void this.$set(this.settlementmoney,"money",Number(this.creditCashInfo.maxsetmoney)):void this.$set(this.settlementmoney,"money",Number(this.creditCashInfo.nowmoney)):t>Number(this.creditCashInfo.maxsetmoney)?(uni.showToast({title:"单次最大提现金额为".concat(this.creditCashInfo.maxsetmoney,"元"),icon:"none"}),void this.$set(this.settlementmoney,"money",Number(this.creditCashInfo.maxsetmoney))):(t==Number(this.creditCashInfo.maxsetmoney)||t<Number(this.creditCashInfo.maxsetmoney))&&t>0?(uni.showToast({title:"本次最大提现金额为".concat(t,"元"),icon:"none"}),void this.$set(this.settlementmoney,"money",Number(this.creditCashInfo.nowmoney))):void this.$set(this.settlementmoney,"money",0)},init:function(){var e=this;uni.getStorage({key:"checkStoreid",success:function(t){e.storeid=t.data,e.creditCashPage(t.data)}})},creditCashPage:function(e){var t=this,n={storeid:e};i.default._post_form("&p=store&do=cashPage",n,(function(e){t.creditCashInfo=e.data,0==Number(t.creditCashInfo.maxsetmoney)&&(t.creditCashInfo.maxsetmoney=999999999),1==e.data.wechatstatus?t.cashtype=2:1==e.data.alipaystatus?t.cashtype=1:t.cashtype=3}),(function(e){uni.navigateBack({delta:1})}))},withdraw:function(e){i.default._post_form("&p=store&do=cashApply",e,(function(e){i.default.showSuccess("提现申请成功",(function(){uni.navigateBack()}))}))},creditCashing:function(){var e=this,t={storeid:e.storeid,settlementmoney:e.settlementmoney.money,cashtype:e.cashtype,alipay:e.creditCashInfo.alipay,realname:e.creditCashInfo.realname||"",bank_name:e.creditCashInfo.bank_name,card_number:e.creditCashInfo.card_number,bank_username:e.creditCashInfo.bank_username};if(""!==e.settlementmoney.money){if(1==e.cashtype){if(""==e.creditCashInfo.alipay)return void uni.showToast({icon:"none",title:e.examineing?"支付宝账号不能为空":"渠道1账号不能为空",duration:2e3});if(!e.creditCashInfo.realname)return void uni.showToast({icon:"none",title:"真实姓名不能为空",duration:2e3})}if(3==e.cashtype){if(""==e.creditCashInfo.bank_username)return void uni.showToast({icon:"none",title:"真实姓名不能为空",duration:2e3});if(""==e.creditCashInfo.bank_name)return void uni.showToast({icon:"none",title:"开户行不能为空",duration:2e3});if(e.creditCashInfo.card_number.length<13||e.creditCashInfo.card_number.length>25)return void uni.showToast({icon:"none",title:e.examineing?"银行卡号格式不正确":"渠道2格式不正确",duration:2e3})}if(console.log(Number(e.settlementmoney.money),Number(e.creditCashInfo.nowmoney),1111),Number(e.settlementmoney.money)>Number(e.creditCashInfo.maxsetmoney)||Number(e.settlementmoney.money)>Number(e.creditCashInfo.nowmoney))Number(e.settlementmoney.money)>Number(e.creditCashInfo.maxsetmoney)?(uni.showToast({icon:"none",title:"单次余额提现最大为".concat(e.creditCashInfo.maxsetmoney),duration:2e3}),e.allWithdrawal(1)):Number(e.settlementmoney.money)>Number(e.creditCashInfo.nowmoney)&&(uni.showToast({icon:"none",title:"本次余额提现最大为".concat(e.creditCashInfo.nowmoney),duration:2e3}),e.allWithdrawal(2));else{var n=e.settlementmoney.money,a=e.creditCashInfo.syssalepercent,s={money:n,percent:a};i.default._post_form("&p=pay&do=calculationCash",s,(function(a){if(0===a.errno){var s=a.data.realmoney;if(Number(s)<1)return void uni.showToast({title:"最低实得金额不能小于1元,当前实得金额为".concat(s,"元"),icon:"none"});i.default.showError("确认提现".concat(n,"元,实得").concat(s,"元"),(function(n){n.confirm&&n&&e.withdraw(t)}),!0)}}))}}else uni.showToast({icon:"none",title:"提现金额不能为空",duration:2e3})}}});t.default=s},"7ed2":function(e,t,n){"use strict";n.r(t);var a=n("73be"),i=n.n(a);for(var s in a)"default"!==s&&function(e){n.d(t,e,(function(){return a[e]}))}(s);t["default"]=i.a},a632:function(e,t,n){"use strict";n.r(t);var a=n("6042"),i=n("7ed2");for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n("2891");var o,c=n("f0c5"),r=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"11bbc11e",null,!1,a["a"],o);t["default"]=r.exports}}]);