123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/award/withdrawal" ], {
- 250: function(n, t, e) {
- (function(n) {
- function t(n) {
- return n && n.__esModule ? n : {
- default: n
- };
- }
- e(4), t(e(2)), n(t(e(251)).default);
- }).call(this, e(1).createPage);
- },
- 251: function(n, t, e) {
- e.r(t);
- var a = e(252), o = e(254);
- for (var r in o) "default" !== r && function(n) {
- e.d(t, n, function() {
- return o[n];
- });
- }(r);
- e(256);
- 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/award/withdrawal.vue", t.default = c.exports;
- },
- 252: function(n, t, e) {
- e.r(t);
- var a = e(253);
- 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;
- });
- },
- 253: 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;
- },
- 254: function(n, t, e) {
- e.r(t);
- var a = e(255), 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;
- },
- 255: 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,
- show:0
- };
- },
- onLoad: function(n) {
- this.loadData(), this.loadAli(), this.loadBank();
- },
- 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) {
-
- 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) {
- console.log(t.data.hh)
- n.show=t.data.hh
- var e = t.data;
- console.log(e)
- n.money = e.commissionCount, n.minPrice = e.minPrice, n.freeze = e.incommissionCount,
- 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: 0
- };
- +t.withdrawal < +t.minPrice ? n.showToast({
- title: "提现金额不可少于" + t.minPrice,
- duration: 2e3,
- mask: !1,
- icon: "none"
- }) : ("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), (0, c.extractCash)(e).then(function(e) {
- n.showToast({
- title: "提交成功",
- duration: 2e3,
- position: "top"
- }), t.withdrawal = "";
- }).catch(function(n) {
- console.log();
- }));
- }
- }
- };
- t.default = u;
- }).call(this, e(1).default);
- },
- 256: function(n, t, e) {
- e.r(t);
- var a = e(257), 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;
- },
- 257: function(n, t, e) {}
- }, [ [ 250, "common/runtime", "common/vendor" ] ] ]);
|