withdrawal.js 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/wallet/withdrawal" ], {
  2. 300: 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(301)).default);
  10. }).call(this, e(1).createPage);
  11. },
  12. 301: function(n, t, e) {
  13. e.r(t);
  14. var a = e(302), o = e(304);
  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(306);
  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/wallet/withdrawal.vue", t.default = c.exports;
  23. },
  24. 302: function(n, t, e) {
  25. e.r(t);
  26. var a = e(303);
  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. 303: 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. 304: function(n, t, e) {
  73. e.r(t);
  74. var a = e(305), 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. 305: 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. weichatBsrowser: !1,
  136. show:0
  137. };
  138. },
  139. onLoad: function(n) {
  140. this.loadData(), this.loadAli(), this.loadBank();
  141. },
  142. onShow: function() {
  143. this.loadData();
  144. },
  145. methods: {
  146. dataUp: function() {
  147. this.loadAli(), this.loadBank();
  148. },
  149. loadAli: function(n) {
  150. var t = this;
  151. return o(r.default.mark(function n() {
  152. return r.default.wrap(function(n) {
  153. for (;;) switch (n.prev = n.next) {
  154. case 0:
  155. (0, c.aliInfo)({}).then(function(n) {
  156. console.log(n)
  157. t.aliData = n.data;
  158. });
  159. case 1:
  160. case "end":
  161. return n.stop();
  162. }
  163. }, n);
  164. }))();
  165. },
  166. loadBank: function() {
  167. var n = this;
  168. return o(r.default.mark(function t() {
  169. return r.default.wrap(function(t) {
  170. for (;;) switch (t.prev = t.next) {
  171. case 0:
  172. (0, c.bankInfo)({}).then(function(t) {
  173. n.bankData = t.data;
  174. });
  175. case 1:
  176. case "end":
  177. return t.stop();
  178. }
  179. }, t);
  180. }))();
  181. },
  182. loadData: function() {
  183. var n = this;
  184. return o(r.default.mark(function t() {
  185. return r.default.wrap(function(t) {
  186. for (;;) switch (t.prev = t.next) {
  187. case 0:
  188. (0, c.extractBank)({}).then(function(t) {
  189. n.show=t.data.hh
  190. console.log(t,"00000000000000000")
  191. var e = t.data;
  192. n.money = e.nowMoneyCount, n.minPrice = e.minPrice, n.freeze = e.innowMoneyCount,
  193. n.charge = e.commission;
  194. });
  195. case 1:
  196. case "end":
  197. return t.stop();
  198. }
  199. }, t);
  200. }))();
  201. },
  202. navTo: function(t) {
  203. n.navigateTo({
  204. url: t
  205. });
  206. },
  207. tabRadio: function(n) {
  208. this.type = n.detail.value;
  209. },
  210. confirm: function() {
  211. var t = this, e = {
  212. extract_type: t.type,
  213. money: t.withdrawal,
  214. money_type: 1
  215. };
  216. "alipay" == t.type && (e.name = t.aliData.fullname, e.alipay_code = t.aliData.alino),
  217. "bank" == t.type && (e.name = t.bankData.fullname, e.bankname = t.bankData.bank,
  218. e.cardnum = t.bankData.bankno), +t.withdrawal < +t.minPrice ? n.showToast({
  219. title: "提现金额不可少于" + t.minPrice,
  220. duration: 2e3,
  221. mask: !1,
  222. icon: "none"
  223. }) : (0, c.extractCash)(e).then(function(e) {
  224. n.showToast({
  225. title: "提交成功",
  226. duration: 2e3,
  227. position: "top"
  228. }), t.withdrawal = "", t.loadData();
  229. }).catch(function(n) {
  230. console.log(n);
  231. });
  232. }
  233. }
  234. };
  235. t.default = u;
  236. }).call(this, e(1).default);
  237. },
  238. 306: function(n, t, e) {
  239. e.r(t);
  240. var a = e(307), o = e.n(a);
  241. for (var r in a) "default" !== r && function(n) {
  242. e.d(t, n, function() {
  243. return a[n];
  244. });
  245. }(r);
  246. t.default = o.a;
  247. },
  248. 307: function(n, t, e) {}
  249. }, [ [ 300, "common/runtime", "common/vendor" ] ] ]);