withdrawal.js 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/award/withdrawal" ], {
  2. 250: function(n, t, e) {
  3. (function(n) {
  4. function t(n) {
  5. return n && n.__esModule ? n : {
  6. default: n
  7. };
  8. }
  9. e(4), t(e(2)), n(t(e(251)).default);
  10. }).call(this, e(1).createPage);
  11. },
  12. 251: function(n, t, e) {
  13. e.r(t);
  14. var a = e(252), o = e(254);
  15. for (var r in o) "default" !== r && function(n) {
  16. e.d(t, n, function() {
  17. return o[n];
  18. });
  19. }(r);
  20. e(256);
  21. var i = e(13), c = Object(i.default)(o.default, a.render, a.staticRenderFns, !1, null, null, null, !1, a.components, void 0);
  22. c.options.__file = "pages/award/withdrawal.vue", t.default = c.exports;
  23. },
  24. 252: function(n, t, e) {
  25. e.r(t);
  26. var a = e(253);
  27. e.d(t, "render", function() {
  28. return a.render;
  29. }), e.d(t, "staticRenderFns", function() {
  30. return a.staticRenderFns;
  31. }), e.d(t, "recyclableRender", function() {
  32. return a.recyclableRender;
  33. }), e.d(t, "components", function() {
  34. return a.components;
  35. });
  36. },
  37. 253: function(n, t, e) {
  38. var a;
  39. e.r(t), e.d(t, "render", function() {
  40. return o;
  41. }), e.d(t, "staticRenderFns", function() {
  42. return i;
  43. }), e.d(t, "recyclableRender", function() {
  44. return r;
  45. }), e.d(t, "components", function() {
  46. return a;
  47. });
  48. try {
  49. a = {
  50. uniNoticeBar: function() {
  51. return e.e("components/uni-notice-bar/uni-notice-bar").then(e.bind(null, 534));
  52. }
  53. };
  54. } catch (n) {
  55. if (-1 === n.message.indexOf("Cannot find module") || -1 === n.message.indexOf(".vue")) throw n;
  56. console.error(n.message), console.error("1. 排查组件名称拼写是否正确"), console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),
  57. console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件");
  58. }
  59. var o = function() {
  60. var n = this, t = (n.$createElement, n._self._c, n._f("getMoneyStyle")(n.money)), e = n._f("getMoneyStyle")(n.freeze);
  61. n._isMounted || (n.e0 = function(t) {
  62. n.withdrawal = n.money;
  63. }), n.$mp.data = Object.assign({}, {
  64. $root: {
  65. f0: t,
  66. f1: e
  67. }
  68. });
  69. }, r = !1, i = [];
  70. o._withStripped = !0;
  71. },
  72. 254: function(n, t, e) {
  73. e.r(t);
  74. var a = e(255), o = e.n(a);
  75. for (var r in a) "default" !== r && function(n) {
  76. e.d(t, n, function() {
  77. return a[n];
  78. });
  79. }(r);
  80. t.default = o.a;
  81. },
  82. 255: function(n, t, e) {
  83. (function(n) {
  84. function a(n, t, e, a, o, r, i) {
  85. try {
  86. var c = n[r](i), u = c.value;
  87. } catch (n) {
  88. return void e(n);
  89. }
  90. c.done ? t(u) : Promise.resolve(u).then(a, o);
  91. }
  92. function o(n) {
  93. return function() {
  94. var t = this, e = arguments;
  95. return new Promise(function(o, r) {
  96. function i(n) {
  97. a(u, o, r, i, c, "next", n);
  98. }
  99. function c(n) {
  100. a(u, o, r, i, c, "throw", n);
  101. }
  102. var u = n.apply(t, e);
  103. i(void 0);
  104. });
  105. };
  106. }
  107. Object.defineProperty(t, "__esModule", {
  108. value: !0
  109. }), t.default = void 0;
  110. var r = function(n) {
  111. return n && n.__esModule ? n : {
  112. default: n
  113. };
  114. }(e(23)), i = e(82), c = e(247), u = {
  115. filters: {
  116. getMoneyStyle: i.getMoneyStyle
  117. },
  118. components: {
  119. uniNoticeBar: function() {
  120. e.e("components/uni-notice-bar/uni-notice-bar").then(function() {
  121. return resolve(e(534));
  122. }.bind(null, e)).catch(e.oe);
  123. }
  124. },
  125. data: function() {
  126. return {
  127. type: "weixin",
  128. money: "0.00",
  129. freeze: "0.0",
  130. withdrawal: "",
  131. minPrice: "",
  132. aliData: {},
  133. bankData: {},
  134. charge: 0,
  135. show:0
  136. };
  137. },
  138. onLoad: function(n) {
  139. this.loadData(), this.loadAli(), this.loadBank();
  140. },
  141. methods: {
  142. dataUp: function() {
  143. this.loadAli(), this.loadBank();
  144. },
  145. loadAli: function(n) {
  146. var t = this;
  147. return o(r.default.mark(function n() {
  148. return r.default.wrap(function(n) {
  149. for (;;) switch (n.prev = n.next) {
  150. case 0:
  151. (0, c.aliInfo)({}).then(function(n) {
  152. t.aliData = n.data;
  153. });
  154. case 1:
  155. case "end":
  156. return n.stop();
  157. }
  158. }, n);
  159. }))();
  160. },
  161. loadBank: function() {
  162. var n = this;
  163. return o(r.default.mark(function t() {
  164. return r.default.wrap(function(t) {
  165. for (;;) switch (t.prev = t.next) {
  166. case 0:
  167. (0, c.bankInfo)({}).then(function(t) {
  168. n.bankData = t.data;
  169. });
  170. case 1:
  171. case "end":
  172. return t.stop();
  173. }
  174. }, t);
  175. }))();
  176. },
  177. loadData: function() {
  178. var n = this;
  179. return o(r.default.mark(function t() {
  180. return r.default.wrap(function(t) {
  181. for (;;) switch (t.prev = t.next) {
  182. case 0:
  183. (0, c.extractBank)({}).then(function(t) {
  184. console.log(t.data.hh)
  185. n.show=t.data.hh
  186. var e = t.data;
  187. console.log(e)
  188. n.money = e.commissionCount, n.minPrice = e.minPrice, n.freeze = e.incommissionCount,
  189. n.charge = e.commission;
  190. });
  191. case 1:
  192. case "end":
  193. return t.stop();
  194. }
  195. }, t);
  196. }))();
  197. },
  198. navTo: function(t) {
  199. n.navigateTo({
  200. url: t
  201. });
  202. },
  203. tabRadio: function(n) {
  204. this.type = n.detail.value;
  205. },
  206. confirm: function() {
  207. var t = this, e = {
  208. extract_type: t.type,
  209. money: t.withdrawal,
  210. money_type: 0
  211. };
  212. +t.withdrawal < +t.minPrice ? n.showToast({
  213. title: "提现金额不可少于" + t.minPrice,
  214. duration: 2e3,
  215. mask: !1,
  216. icon: "none"
  217. }) : ("alipay" == t.type && (e.name = t.aliData.fullname, e.alipay_code = t.aliData.alino),
  218. "bank" == t.type && (e.name = t.bankData.fullname, e.bankname = t.bankData.bank,
  219. e.cardnum = t.bankData.bankno), (0, c.extractCash)(e).then(function(e) {
  220. n.showToast({
  221. title: "提交成功",
  222. duration: 2e3,
  223. position: "top"
  224. }), t.withdrawal = "";
  225. }).catch(function(n) {
  226. console.log();
  227. }));
  228. }
  229. }
  230. };
  231. t.default = u;
  232. }).call(this, e(1).default);
  233. },
  234. 256: function(n, t, e) {
  235. e.r(t);
  236. var a = e(257), o = e.n(a);
  237. for (var r in a) "default" !== r && function(n) {
  238. e.d(t, n, function() {
  239. return a[n];
  240. });
  241. }(r);
  242. t.default = o.a;
  243. },
  244. 257: function(n, t, e) {}
  245. }, [ [ 250, "common/runtime", "common/vendor" ] ] ]);