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
3.6 KiB
1 lines
3.6 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/TiXian/TiXian"],{"0a86":function(n,t,e){"use strict";(function(n){e("d6ad");a(e("66fd"));var t=a(e("c2cf"));function a(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=e,n(t.default)}).call(this,e("543d")["createPage"])},"2c8f":function(n,t,e){},"61b8":function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return u})),e.d(t,"a",(function(){return a}));var a={uNavbar:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-navbar/u-navbar")]).then(e.bind(null,"17d2"))},uModal:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-modal/u-modal")]).then(e.bind(null,"1c62"))}},o=function(){var n=this,t=n.$createElement,e=(n._self._c,n.onPlusXingOfBankInfo()),a=n.getMaxmonenyInfoText();n.$mp.data=Object.assign({},{$root:{m0:e,m1:a}})},u=[]},7e3:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=u(e("a34a")),o=e("7f93");function u(n){return n&&n.__esModule?n:{default:n}}function i(n,t,e,a,o,u,i){try{var r=n[u](i),s=r.value}catch(c){return void e(c)}r.done?t(s):Promise.resolve(s).then(a,o)}function r(n){return function(){var t=this,e=arguments;return new Promise((function(a,o){var u=n.apply(t,e);function r(n){i(u,a,o,r,s,"next",n)}function s(n){i(u,a,o,r,s,"throw",n)}r(void 0)}))}}var s={banklogo:"",bankname:"",bankno:"",maxmoneny:0},c=getApp().globalData.Define,f={onLoad:function(){var n=this;(0,o.post)("users/getwithdrawalinfo",{}).then((function(t){var e=c.onNetMessage(t);e&&(n.pageData=e,console.log("获取到提现信息:",e))}))},data:function(){return{pageData:s,txNumber:0,isShowPopup:!1,content:""}},methods:{onBackTouched:function(){n.navigateBack({})},onInputEnd:function(t){var e=Number(t.detail.value);e?this.txNumber=e:n.$u.toast("请输入数字")},onPopConfirm:function(){var t=this;return r(a.default.mark((function e(){var u,i,r,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isShowPopup=!1,u=100*t.txNumber,i={score:u},n.showLoading({}),e.next=6,(0,o.post)("users/applywithdrawal",i);case 6:r=e.sent,n.hideLoading(),s=c.onNetMessage(r),console.log("提现请求返回:",s),n.$u.toast("提现成功,请等待工作人员审核"),t.txNumber=0,t.pageData.maxmoneny-=u,getApp().globalData.isNeedRefreshWallet=!0;case 14:case"end":return e.stop()}}),e)})))()},onPopCancel:function(){this.isShowPopup=!1,this.txNumber=0},onPlusXingOfBankInfo:function(){var n=this.pageData.bankname,t=this.pageData.bankno;if(""==n||""==t)return"没有银行卡信息";var e=t.length;return t=t.substr(e-8,8),t=this.$utils.plusXing(t,0,4)," ("+t+")"},getMaxmonenyInfoText:function(){return"可提现金额 ¥"+this.$utils.formatMoney(this.pageData.maxmoneny/100)},onConfirmTiXian:function(){var t=this.txNumber;if(t*=100,t>this.pageData.maxmoneny)return n.$u.toast("可用金额不足"),void(this.txNumber=0);this.content="确认提现[¥"+this.txNumber+"]吗?",this.isShowPopup=!0}}};t.default=f}).call(this,e("543d")["default"])},"96b0":function(n,t,e){"use strict";e.r(t);var a=e("7000"),o=e.n(a);for(var u in a)"default"!==u&&function(n){e.d(t,n,(function(){return a[n]}))}(u);t["default"]=o.a},bdbb:function(n,t,e){"use strict";var a=e("2c8f"),o=e.n(a);o.a},c2cf:function(n,t,e){"use strict";e.r(t);var a=e("61b8"),o=e("96b0");for(var u in o)"default"!==u&&function(n){e.d(t,n,(function(){return o[n]}))}(u);e("bdbb");var i,r=e("f0c5"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"332597f1",null,!1,a["a"],i);t["default"]=s.exports}},[["0a86","common/runtime","common/vendor"]]]);
|