Files
t/unpackage/dist/build/web/static/js/pages2-withdraw-withdraw.7a8c598f.js
T
2025-06-13 20:48:15 +08:00

1 line
15 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages2-withdraw-withdraw"],{"2b3b":function(e,t,a){var o=a("6c772");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=a("967d").default;i("a6df0686",o,!0,{sourceMap:!1,shadowMode:!1})},"47c0":function(e,t,a){"use strict";a("6a54");var o=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("e966"),a("c9b5"),a("bf0f"),a("ab80"),a("e838"),a("64aa"),a("5c47"),a("2c10"),a("c223");var i=o(a("2634")),n=o(a("2fdc")),r={data:function(){return{pool:0,extract:"",service_fee:0,showModal:!1,is_out:!1,is_lowest:!1,is_post:!1,lowest:0,fee:0,money:"",real_money:"",keyboradShow:!1,isIphoneX:!1,isRefuse:!1,content:""}},watch:{extract:function(e,t){}},onLoad:function(){uni.showLoading({title:"加载中"}),setTimeout((function(){uni.hideLoading()}),500)},methods:{initData:function(){var e=this;return(0,n.default)((0,i.default)().mark((function t(){return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.lowest=res.least_money,e.fee=res.fee,e.pool=res.pool,e.$nextTick((function(){e.keyboradShow=!0}));case 4:case"end":return t.stop()}}),t)})))()},stopKeyborad:function(){uni.hideKeyboard()},keyboradKey:function(e){this.extract=10*this.extract+e,this.checkMoney()},keyboradDel:function(){if(this.extract&&this.extract>0){var e=parseInt(this.extract/10);0==e&&(e=""),this.extract=e,this.checkMoney()}},getAll:function(){this.extract=parseInt(this.pool),this.checkMoney()},checkMoney:function(){!this.extract||this.extract<this.lowest?(this.is_lowest=!0,this.is_post=!1):this.extract>this.pool?(this.is_out=!0,this.is_lowest=!1,this.is_post=!1):(this.is_out=!1,this.is_lowest=!1,this.is_post=!0),"NaN"==parseFloat(this.extract).toString()&&(this.is_post=!1,this.$api.msg("输入金额不合法"))},handleShowModel:function(){this.isRefuse||(this.checkMoney(),this.is_post&&(this.money=this.extract,this.service_fee=Number((this.extract*(this.fee/100)).toString().match(/^\d+(?:\.\d{0,2})?/)),this.real_money=Number((this.extract-this.service_fee).toString().match(/^\d+(?:\.\d{0,2})?/)),this.content='<p>提现金额:<em style="font-style:normal;color:#ff1e0f">'.concat(this.money,' 元</p>\n\t\t\t <p>实际到账:<em style="font-style:normal;color:#ff1e0f">').concat(this.real_money,' 元</em></p>\n\t\t\t <p>服务费用:<em style="font-style:normal;color:#ff1e0f">').concat(this.service_fee,' 元</em></p>\n\t\t\t <p>服务费率:<em style="font-style:normal;color:#ff1e0f">').concat(this.fee,"%</em></p>\n\t\t\t "),this.showModal=!0))},getMoney:function(){this.showModal=!1,this.isRefuse||(this.isRefuse=!0,setTimeout((function(){uni.showToast({title:"提现申请已提交,等待审核",mask:!1,icon:"none"})}),500),setTimeout((function(){uni.navigateBack()}),1e3))}},onPullDownRefresh:function(){this.extract="",this.is_out=!1,this.is_lowest=!1,this.is_post=!1,setTimeout((function(){uni.stopPullDownRefresh()}),500)}};t.default=r},"6c772":function(e,t,a){var o=a("c86c");t=o(!1),t.push([e.i,"uni-page-body[data-v-3bf1ee9e]{background-color:#ededed}body.?%PAGE?%[data-v-3bf1ee9e]{background-color:#ededed}",""]),e.exports=t},"81af":function(e,t,a){"use strict";var o=a("8875"),i=a.n(o);i.a},8324:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return o}));var o={uModal:a("317f").default},i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"ithui-content"},[a("v-uni-view",{staticClass:"withdraw"},[a("v-uni-view",{staticClass:"withdraw-head"},[a("v-uni-view",{staticClass:"withdraw-head-to"},[e._v("到账渠道")]),a("v-uni-view",{staticClass:"withdraw-head-way"},[a("v-uni-view",{staticClass:"withdraw-head-way-1"},[a("v-uni-image",{staticClass:"way-icon",attrs:{src:"/static/money.png"}}),a("v-uni-text",{staticClass:"way-text"},[e._v("微信零钱")])],1),a("v-uni-view",{staticClass:"withdraw-head-way-2"},[e._v("仅支持整数,72小时内到账")])],1)],1),a("v-uni-view",{staticClass:"withdraw-body"},[a("v-uni-text",[e._v("提现金额")]),a("v-uni-view",{staticClass:"input-money"},[a("v-uni-text",{staticClass:"rmb"},[e._v("¥")]),a("v-uni-input",{staticClass:"t-input",attrs:{type:"text"},on:{focus:function(t){t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.stopKeyborad.apply(void 0,arguments)}},model:{value:e.extract,callback:function(t){e.extract=e._n(t)},expression:"extract"}})],1),a("v-uni-view",{staticClass:"info-money"},[e.is_out?a("v-uni-view",[a("v-uni-text",{staticClass:"info-money-num",staticStyle:{color:"#ff1e0f"}},[e._v("输入金额超过可提现余额,账户余额"+e._s(e.pool)+"元")])],1):e.is_lowest?a("v-uni-view",[a("v-uni-text",{staticClass:"info-money-num",staticStyle:{color:"#ff1e0f"}},[e._v("最低"+e._s(e.lowest)+"元起提现,账户余额"+e._s(e.pool)+"元")])],1):a("v-uni-view",[a("v-uni-text",{staticClass:"info-money-num"},[e._v("当前可提现余额"+e._s(e.pool)+"元,")]),a("v-uni-text",{staticClass:"info-money-all",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getAll.apply(void 0,arguments)}}},[e._v("全部提现")])],1)],1),a("v-uni-view",{class:"tx"+(e.is_post?"-active":"")},[a("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleShowModel.apply(void 0,arguments)}}},[e._v("提现")])],1)],1),a("v-uni-view",{class:["keyboard",e.keyboradShow?"":"active",e.isIphoneX?"isIphone":""]},[e._l(9,(function(t,o){return[a("v-uni-view",{key:o+"_0",staticClass:"keyboard-item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.keyboradKey(o+1)}}},[e._v(e._s(o+1))])]})),a("v-uni-view",{staticClass:"keyboard-item hide"}),a("v-uni-view",{staticClass:"keyboard-item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.keyboradKey(0)}}},[a("v-uni-text",[e._v("0")])],1),a("v-uni-view",{staticClass:"keyboard-item delte",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.keyboradDel()}}},[a("v-uni-image",{staticClass:"img",attrs:{src:"/static/del.png",mode:"aspectFill","lazy-load":!0}})],1)],2),a("u-modal",{attrs:{show:e.showModal,title:"提现确认",showCancelButton:!0,cancelText:"我再想想",confirmColor:"#ff1e0f",confirmText:"确认提现"},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.getMoney.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.showModal=!1}}},[a("v-uni-view",{staticClass:"slot-content"},[a("v-uni-rich-text",{attrs:{nodes:e.content}})],1)],1)],1)],1)},n=[]},8875:function(e,t,a){var o=a("9d27");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var i=a("967d").default;i("0ba206c7",o,!0,{sourceMap:!1,shadowMode:!1})},"9d27":function(e,t,a){var o=a("c86c");t=o(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* uni.scss */.u-line-1[data-v-3bf1ee9e]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2[data-v-3bf1ee9e]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3[data-v-3bf1ee9e]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4[data-v-3bf1ee9e]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5[data-v-3bf1ee9e]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border[data-v-3bf1ee9e]{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top[data-v-3bf1ee9e]{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left[data-v-3bf1ee9e]{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right[data-v-3bf1ee9e]{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom[data-v-3bf1ee9e]{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom[data-v-3bf1ee9e]{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button[data-v-3bf1ee9e]{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button[data-v-3bf1ee9e]::after{border:none}.u-hover-class[data-v-3bf1ee9e]{opacity:.7}.u-primary-light[data-v-3bf1ee9e]{color:#ecf5ff}.u-warning-light[data-v-3bf1ee9e]{color:#fdf6ec}.u-success-light[data-v-3bf1ee9e]{color:#f5fff0}.u-error-light[data-v-3bf1ee9e]{color:#fef0f0}.u-info-light[data-v-3bf1ee9e]{color:#f4f4f5}.u-primary-light-bg[data-v-3bf1ee9e]{background-color:#ecf5ff}.u-warning-light-bg[data-v-3bf1ee9e]{background-color:#fdf6ec}.u-success-light-bg[data-v-3bf1ee9e]{background-color:#f5fff0}.u-error-light-bg[data-v-3bf1ee9e]{background-color:#fef0f0}.u-info-light-bg[data-v-3bf1ee9e]{background-color:#f4f4f5}.u-primary-dark[data-v-3bf1ee9e]{color:#398ade}.u-warning-dark[data-v-3bf1ee9e]{color:#f1a532}.u-success-dark[data-v-3bf1ee9e]{color:#53c21d}.u-error-dark[data-v-3bf1ee9e]{color:#e45656}.u-info-dark[data-v-3bf1ee9e]{color:#767a82}.u-primary-dark-bg[data-v-3bf1ee9e]{background-color:#398ade}.u-warning-dark-bg[data-v-3bf1ee9e]{background-color:#f1a532}.u-success-dark-bg[data-v-3bf1ee9e]{background-color:#53c21d}.u-error-dark-bg[data-v-3bf1ee9e]{background-color:#e45656}.u-info-dark-bg[data-v-3bf1ee9e]{background-color:#767a82}.u-primary-disabled[data-v-3bf1ee9e]{color:#9acafc}.u-warning-disabled[data-v-3bf1ee9e]{color:#f9d39b}.u-success-disabled[data-v-3bf1ee9e]{color:#a9e08f}.u-error-disabled[data-v-3bf1ee9e]{color:#f7b2b2}.u-info-disabled[data-v-3bf1ee9e]{color:#c4c6c9}.u-primary[data-v-3bf1ee9e]{color:#3c9cff}.u-warning[data-v-3bf1ee9e]{color:#f9ae3d}.u-success[data-v-3bf1ee9e]{color:#5ac725}.u-error[data-v-3bf1ee9e]{color:#f56c6c}.u-info[data-v-3bf1ee9e]{color:#909399}.u-primary-bg[data-v-3bf1ee9e]{background-color:#3c9cff}.u-warning-bg[data-v-3bf1ee9e]{background-color:#f9ae3d}.u-success-bg[data-v-3bf1ee9e]{background-color:#5ac725}.u-error-bg[data-v-3bf1ee9e]{background-color:#f56c6c}.u-info-bg[data-v-3bf1ee9e]{background-color:#909399}.u-main-color[data-v-3bf1ee9e]{color:#303133}.u-content-color[data-v-3bf1ee9e]{color:#606266}.u-tips-color[data-v-3bf1ee9e]{color:#909193}.u-light-color[data-v-3bf1ee9e]{color:#c0c4cc}.u-safe-area-inset-top[data-v-3bf1ee9e]{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right[data-v-3bf1ee9e]{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom[data-v-3bf1ee9e]{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left[data-v-3bf1ee9e]{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast[data-v-3bf1ee9e]{z-index:10090}uni-toast .uni-toast[data-v-3bf1ee9e]{z-index:10090}[data-v-3bf1ee9e]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */[data-v-3bf1ee9e] .u-modal__content{justify-content:flex-start}.ithui-content .withdraw[data-v-3bf1ee9e]{padding:%?40?%}.ithui-content .withdraw-head[data-v-3bf1ee9e]{background-color:#f7f7f7;display:flex;align-content:center;padding:%?40?% %?60?%;font-size:%?28?%}.ithui-content .withdraw-head-way[data-v-3bf1ee9e]{display:flex;flex-direction:column;align-content:center;margin-left:%?40?%}.ithui-content .withdraw-head-way-1[data-v-3bf1ee9e]{color:#576b95;margin-bottom:%?20?%}.ithui-content .withdraw-head-way-1 .way-icon[data-v-3bf1ee9e]{width:%?36?%;height:%?36?%;margin-right:%?10?%;top:%?4?%}.ithui-content .withdraw-head-way-2[data-v-3bf1ee9e]{color:#acacac;font-size:%?26?%}.ithui-content .withdraw-body[data-v-3bf1ee9e]{background-color:#fff;padding:%?40?% %?60?%;font-size:%?28?%}.ithui-content .withdraw-body .input-money[data-v-3bf1ee9e]{display:flex;align-content:center;font-weight:600;border-bottom:%?1?% solid #eaeef1}.ithui-content .withdraw-body .input-money .rmb[data-v-3bf1ee9e]{font-size:2em;top:%?20?%;position:relative}.ithui-content .withdraw-body .input-money .t-input[data-v-3bf1ee9e]{height:1.9em;font-size:2.5em;border:none;position:relative;left:3.5%;outline:none}.ithui-content .withdraw-body .info-money[data-v-3bf1ee9e]{margin-top:%?20?%;font-size:%?24?%;margin-bottom:%?40?%}.ithui-content .withdraw-body .info-money-num[data-v-3bf1ee9e]{color:#b2b2b2}.ithui-content .withdraw-body .info-money-all[data-v-3bf1ee9e]{color:#576b95}.ithui-content .withdraw-body .tx uni-button[data-v-3bf1ee9e]{color:#b2b2b2}.ithui-content .withdraw-body .tx-active uni-button[data-v-3bf1ee9e]{color:#fff;background:#07c160}.ithui-content .withdraw .keyboard[data-v-3bf1ee9e]{position:fixed;bottom:0;left:0;width:100%;background:#ebebeb;display:flex;justify-content:center;z-index:2;flex-wrap:wrap;transition:all .2s ease-in .2s}.ithui-content .withdraw .active[data-v-3bf1ee9e]{bottom:%?-400?%}.ithui-content .withdraw .keyboard-item[data-v-3bf1ee9e]{box-sizing:border-box;width:%?250?%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff;font-size:%?40?%;color:#333;height:%?99?%;border:%?1?% solid #ebebeb;border-top:none;border-left:none}.ithui-content .withdraw .hide[data-v-3bf1ee9e]{opacity:0}.ithui-content .withdraw .delte[data-v-3bf1ee9e]{background:none;box-shadow:none}.ithui-content .withdraw .delte uni-image[data-v-3bf1ee9e]{width:%?60?%;height:%?60?%}.ithui-content .withdraw .isIphone[data-v-3bf1ee9e]{padding-bottom:%?68?%!important}.ithui-content .withdraw .fee em[data-v-3bf1ee9e]{font-size:.5rem;font-style:normal}',""]),e.exports=t},b218:function(e,t,a){"use strict";a.r(t);var o=a("47c0"),i=a.n(o);for(var n in o)["default"].indexOf(n)<0&&function(e){a.d(t,e,(function(){return o[e]}))}(n);t["default"]=i.a},ea8f:function(e,t,a){"use strict";var o=a("2b3b"),i=a.n(o);i.a},f8ab:function(e,t,a){"use strict";a.r(t);var o=a("8324"),i=a("b218");for(var n in i)["default"].indexOf(n)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(n);a("ea8f"),a("81af");var r=a("828b"),d=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"3bf1ee9e",null,!1,o["a"],void 0);t["default"]=d.exports}}]);