This commit is contained in:
2025-03-28 16:27:26 +08:00
parent 587f29f707
commit e285692d9c
1626 changed files with 6943 additions and 62523 deletions
@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages2/withdraw/withdraw"],{1912:function(t,e,o){},"32fe":function(t,e,o){"use strict";(function(t){var n=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(o("7eb4")),s=n(o("ee10")),a={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(t,e){}},onLoad:function(){t.showLoading({title:"加载中"}),setTimeout((function(){t.hideLoading()}),500)},methods:{initData:function(){var t=this;return(0,s.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.lowest=res.least_money,t.fee=res.fee,t.pool=res.pool,t.$nextTick((function(){t.keyboradShow=!0}));case 4:case"end":return e.stop()}}),e)})))()},stopKeyborad:function(){t.hideKeyboard()},keyboradKey:function(t){this.extract=10*this.extract+t,this.checkMoney()},keyboradDel:function(){if(this.extract&&this.extract>0){var t=parseInt(this.extract/10);0==t&&(t=""),this.extract=t,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(){t.showToast({title:"提现申请已提交,等待审核",mask:!1,icon:"none"})}),500),setTimeout((function(){t.navigateBack()}),1e3))}},onPullDownRefresh:function(){this.extract="",this.is_out=!1,this.is_lowest=!1,this.is_post=!1,setTimeout((function(){t.stopPullDownRefresh()}),500)}};e.default=a}).call(this,o("df3c")["default"])},"330c":function(t,e,o){"use strict";var n=o("ff37"),i=o.n(n);i.a},"491f":function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("7bfe"),o("861b");n(o("3240"));var i=n(o("f8ab"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},aaad:function(t,e,o){"use strict";var n=o("1912"),i=o.n(n);i.a},b218:function(t,e,o){"use strict";o.r(e);var n=o("32fe"),i=o.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},c57e:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return n}));var n={uModal:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-modal/u-modal")]).then(o.bind(null,"317f"))}},i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.showModal=!1})},s=[]},f8ab:function(t,e,o){"use strict";o.r(e);var n=o("c57e"),i=o("b218");for(var s in i)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(s);o("aaad"),o("330c");var a=o("828b"),c=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"b9f410a4",null,!1,n["a"],void 0);e["default"]=c.exports},ff37:function(t,e,o){}},[["491f","common/runtime","common/vendor"]]]);
@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "",
"usingComponents": {
"u-modal": "/uni_modules/uview-ui/components/u-modal/u-modal"
}
}
@@ -0,0 +1 @@
<view class="ithui-content data-v-b9f410a4"><view class="withdraw data-v-b9f410a4"><view class="withdraw-head data-v-b9f410a4"><view class="withdraw-head-to data-v-b9f410a4">到账渠道</view><view class="withdraw-head-way data-v-b9f410a4"><view class="withdraw-head-way-1 data-v-b9f410a4"><image class="way-icon data-v-b9f410a4" src="/static/money.png"></image><text class="way-text data-v-b9f410a4">微信零钱</text></view><view class="withdraw-head-way-2 data-v-b9f410a4">仅支持整数,72小时内到账</view></view></view><view class="withdraw-body data-v-b9f410a4"><text class="data-v-b9f410a4">提现金额</text><view class="input-money data-v-b9f410a4"><text class="rmb data-v-b9f410a4">¥</text><input class="t-input data-v-b9f410a4" type="text" data-event-opts="{{[['focus',[['stopKeyborad',['$event']]]],['input',[['__set_model',['','extract','$event',['number']]]]],['blur',[['$forceUpdate']]]]}}" value="{{extract}}" bindfocus="__e" bindinput="__e" bindblur="__e"/></view><view class="info-money data-v-b9f410a4"><block wx:if="{{is_out}}"><view class="data-v-b9f410a4"><text class="info-money-num data-v-b9f410a4" style="color:#ff1e0f;">{{"输入金额超过可提现余额,账户余额"+pool+"元"}}</text></view></block><block wx:else><block wx:if="{{is_lowest}}"><view class="data-v-b9f410a4"><text class="info-money-num data-v-b9f410a4" style="color:#ff1e0f;">{{"最低"+lowest+"元起提现,账户余额"+pool+"元"}}</text></view></block><block wx:else><view class="data-v-b9f410a4"><text class="info-money-num data-v-b9f410a4">{{"当前可提现余额"+pool+"元,"}}</text><text data-event-opts="{{[['tap',[['getAll',['$event']]]]]}}" class="info-money-all data-v-b9f410a4" bindtap="__e">全部提现</text></view></block></block></view><view class="{{['data-v-b9f410a4','tx'+(is_post?'-active':'')]}}"><button data-event-opts="{{[['tap',[['handleShowModel',['$event']]]]]}}" bindtap="__e" class="data-v-b9f410a4">提现</button></view></view><view class="{{['data-v-b9f410a4','keyboard',keyboradShow?'':'active',isIphoneX?'isIphone':'']}}"><block wx:for="{{9}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-b9f410a4"><view data-event-opts="{{[['tap',[['keyboradKey',[index+1]]]]]}}" class="keyboard-item data-v-b9f410a4" bindtap="__e">{{index+1}}</view></block></block><view class="keyboard-item hide data-v-b9f410a4"></view><view data-event-opts="{{[['tap',[['keyboradKey',[0]]]]]}}" class="keyboard-item data-v-b9f410a4" bindtap="__e"><text class="data-v-b9f410a4">0</text></view><view data-event-opts="{{[['tap',[['keyboradDel']]]]}}" class="keyboard-item delte data-v-b9f410a4" bindtap="__e"><image class="img data-v-b9f410a4" src="/static/del.png" mode="aspectFill" lazy-load="{{true}}"></image></view></view><u-modal vue-id="e7a0df2c-1" show="{{showModal}}" title="提现确认" showCancelButton="{{true}}" cancelText="我再想想" confirmColor="#ff1e0f" confirmText="确认提现" data-event-opts="{{[['^confirm',[['getMoney']]],['^cancel',[['e0']]]]}}" bind:confirm="__e" bind:cancel="__e" class="data-v-b9f410a4" bind:__l="__l" vue-slots="{{['default']}}"><view class="slot-content data-v-b9f410a4"><rich-text nodes="{{content}}" class="data-v-b9f410a4"></rich-text></view></u-modal></view></view>
File diff suppressed because one or more lines are too long