(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/wallet/withdrawal" ], { 300: function(n, t, e) { (function(n) { function t(n) { return n && n.__esModule ? n : { default: n }; } e(4), t(e(2)), n(t(e(301)).default); }).call(this, e(1).createPage); }, 301: function(n, t, e) { e.r(t); var a = e(302), o = e(304); for (var r in o) "default" !== r && function(n) { e.d(t, n, function() { return o[n]; }); }(r); e(306); var i = e(13), c = Object(i.default)(o.default, a.render, a.staticRenderFns, !1, null, null, null, !1, a.components, void 0); c.options.__file = "pages/wallet/withdrawal.vue", t.default = c.exports; }, 302: function(n, t, e) { e.r(t); var a = e(303); e.d(t, "render", function() { return a.render; }), e.d(t, "staticRenderFns", function() { return a.staticRenderFns; }), e.d(t, "recyclableRender", function() { return a.recyclableRender; }), e.d(t, "components", function() { return a.components; }); }, 303: function(n, t, e) { var a; e.r(t), e.d(t, "render", function() { return o; }), e.d(t, "staticRenderFns", function() { return i; }), e.d(t, "recyclableRender", function() { return r; }), e.d(t, "components", function() { return a; }); try { a = { uniNoticeBar: function() { return e.e("components/uni-notice-bar/uni-notice-bar").then(e.bind(null, 534)); } }; } catch (n) { if (-1 === n.message.indexOf("Cannot find module") || -1 === n.message.indexOf(".vue")) throw n; console.error(n.message), console.error("1. 排查组件名称拼写是否正确"), console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"), console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"); } var o = function() { var n = this, t = (n.$createElement, n._self._c, n._f("getMoneyStyle")(n.money)), e = n._f("getMoneyStyle")(n.freeze); n._isMounted || (n.e0 = function(t) { n.withdrawal = n.money; }), n.$mp.data = Object.assign({}, { $root: { f0: t, f1: e } }); }, r = !1, i = []; o._withStripped = !0; }, 304: function(n, t, e) { e.r(t); var a = e(305), o = e.n(a); for (var r in a) "default" !== r && function(n) { e.d(t, n, function() { return a[n]; }); }(r); t.default = o.a; }, 305: function(n, t, e) { (function(n) { function a(n, t, e, a, o, r, i) { try { var c = n[r](i), u = c.value; } catch (n) { return void e(n); } c.done ? t(u) : Promise.resolve(u).then(a, o); } function o(n) { return function() { var t = this, e = arguments; return new Promise(function(o, r) { function i(n) { a(u, o, r, i, c, "next", n); } function c(n) { a(u, o, r, i, c, "throw", n); } var u = n.apply(t, e); i(void 0); }); }; } Object.defineProperty(t, "__esModule", { value: !0 }), t.default = void 0; var r = function(n) { return n && n.__esModule ? n : { default: n }; }(e(23)), i = e(82), c = e(247), u = { filters: { getMoneyStyle: i.getMoneyStyle }, components: { uniNoticeBar: function() { e.e("components/uni-notice-bar/uni-notice-bar").then(function() { return resolve(e(534)); }.bind(null, e)).catch(e.oe); } }, data: function() { return { type: "weixin", money: "0.00", freeze: "0.0", withdrawal: "", minPrice: "", aliData: {}, bankData: {}, charge: 0, weichatBsrowser: !1, show:0 }; }, onLoad: function(n) { this.loadData(), this.loadAli(), this.loadBank(); }, onShow: function() { this.loadData(); }, methods: { dataUp: function() { this.loadAli(), this.loadBank(); }, loadAli: function(n) { var t = this; return o(r.default.mark(function n() { return r.default.wrap(function(n) { for (;;) switch (n.prev = n.next) { case 0: (0, c.aliInfo)({}).then(function(n) { console.log(n) t.aliData = n.data; }); case 1: case "end": return n.stop(); } }, n); }))(); }, loadBank: function() { var n = this; return o(r.default.mark(function t() { return r.default.wrap(function(t) { for (;;) switch (t.prev = t.next) { case 0: (0, c.bankInfo)({}).then(function(t) { n.bankData = t.data; }); case 1: case "end": return t.stop(); } }, t); }))(); }, loadData: function() { var n = this; return o(r.default.mark(function t() { return r.default.wrap(function(t) { for (;;) switch (t.prev = t.next) { case 0: (0, c.extractBank)({}).then(function(t) { n.show=t.data.hh console.log(t,"00000000000000000") var e = t.data; n.money = e.nowMoneyCount, n.minPrice = e.minPrice, n.freeze = e.innowMoneyCount, n.charge = e.commission; }); case 1: case "end": return t.stop(); } }, t); }))(); }, navTo: function(t) { n.navigateTo({ url: t }); }, tabRadio: function(n) { this.type = n.detail.value; }, confirm: function() { var t = this, e = { extract_type: t.type, money: t.withdrawal, money_type: 1 }; "alipay" == t.type && (e.name = t.aliData.fullname, e.alipay_code = t.aliData.alino), "bank" == t.type && (e.name = t.bankData.fullname, e.bankname = t.bankData.bank, e.cardnum = t.bankData.bankno), +t.withdrawal < +t.minPrice ? n.showToast({ title: "提现金额不可少于" + t.minPrice, duration: 2e3, mask: !1, icon: "none" }) : (0, c.extractCash)(e).then(function(e) { n.showToast({ title: "提交成功", duration: 2e3, position: "top" }), t.withdrawal = "", t.loadData(); }).catch(function(n) { console.log(n); }); } } }; t.default = u; }).call(this, e(1).default); }, 306: function(n, t, e) { e.r(t); var a = e(307), o = e.n(a); for (var r in a) "default" !== r && function(n) { e.d(t, n, function() { return a[n]; }); }(r); t.default = o.a; }, 307: function(n, t, e) {} }, [ [ 300, "common/runtime", "common/vendor" ] ] ]);