公司小程序
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.

2 lines
4.1 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/TiXian/TiXian"],{19:function(n,e,t){"use strict";t.r(e);var o=t(20),a=t.n(o);for(var u in o)"default"!==u&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=a.a},20:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(t(5)),a=t(4);function u(n){return n&&n.__esModule?n:{default:n}}function r(n,e,t,o,a,u,r){try{var i=n[u](r),s=i.value}catch(c){return void t(c)}i.done?e(s):Promise.resolve(s).then(o,a)}function i(n){return function(){var e=this,t=arguments;return new Promise((function(o,a){var u=n.apply(e,t);function i(n){r(u,o,a,i,s,"next",n)}function s(n){r(u,o,a,i,s,"throw",n)}i(void 0)}))}}var s={banklogo:"",bankname:"",bankno:"",maxmoneny:0},c=getApp().globalData.Define,l={onLoad:function(){var n=this;(0,a.post)("users/getwithdrawalinfo",{}).then((function(e){var t=c.onNetMessage(e);t&&(n.pageData=t,console.log("获取到提现信息:",t))}))},data:function(){return{pageData:s,txNumber:0,isShowPopup:!1,content:""}},methods:{onBackTouched:function(){n.navigateBack({})},onInputEnd:function(e){var t=Number(e.detail.value);t?this.txNumber=t:n.$u.toast("请输入数字")},onPopConfirm:function(){var e=this;return i(o.default.mark((function t(){var u,r,i,s;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isShowPopup=!1,u=100*e.txNumber,r={score:u},n.showLoading({}),t.next=6,(0,a.post)("users/applywithdrawal",r);case 6:i=t.sent,n.hideLoading(),s=c.onNetMessage(i),console.log("提现请求返回:",s),n.$u.toast("提现成功,请等待工作人员审核"),e.txNumber=0,e.pageData.maxmoneny-=u,getApp().globalData.isNeedRefreshWallet=!0;case 14:case"end":return t.stop()}}),t)})))()},onPopCancel:function(){this.isShowPopup=!1,this.txNumber=0},onPlusXingOfBankInfo:function(){var n=this.pageData.bankname,e=this.pageData.bankno;if(""==n||""==e)return"没有银行卡信息";var t=e.length;return e=e.substr(t-8,8),e=this.$utils.plusXing(e,0,4)," ("+e+")"},getMaxmonenyInfoText:function(){return"可提现金额 ¥"+this.$utils.formatMoney(this.pageData.maxmoneny/100)},onConfirmTiXian:function(){var e=this.txNumber;if(e*=100,e>this.pageData.maxmoneny)return n.$u.toast("可用金额不足"),void(this.txNumber=0);this.content="确认提现[¥"+this.txNumber+"]吗?",this.isShowPopup=!0}}};e.default=l}).call(this,t(0)["default"])},21:function(n,e,t){},218:function(n,e,t){"use strict";(function(n){t(3);o(t(2));var e=o(t(219));function o(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t(0)["createPage"])},219:function(n,e,t){"use strict";t.r(e);var o=t(57),a=t(19);for(var u in a)"default"!==u&&function(n){t.d(e,n,(function(){return a[n]}))}(u);t(220);var r,i=t(1),s=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"7c599266",null,!1,o["a"],r);s.options.__file="pages/TiXian/TiXian.vue",e["default"]=s.exports},220:function(n,e,t){"use strict";var o=t(21),a=t.n(o);a.a},57:function(n,e,t){"use strict";var o;t.d(e,"b",(function(){return a})),t.d(e,"c",(function(){return u})),t.d(e,"a",(function(){return o}));try{o={uNavbar:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-navbar/u-navbar")]).then(t.bind(null,505))},uModal:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-modal/u-modal")]).then(t.bind(null,511))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var a=function(){var n=this,e=n.$createElement,t=(n._self._c,n.onPlusXingOfBankInfo()),o=n.getMaxmonenyInfoText();n.$mp.data=Object.assign({},{$root:{m0:t,m1:o}})},u=[];a._withStripped=!0}},[[218,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/TiXian/TiXian.js.map