recharge.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/wallet/recharge" ], {
  2. 308: function(n, e, t) {
  3. (function(n) {
  4. function e(n) {
  5. return n && n.__esModule ? n : {
  6. default: n
  7. };
  8. }
  9. t(4), e(t(2)), n(e(t(309)).default);
  10. }).call(this, t(1).createPage);
  11. },
  12. 309: function(n, e, t) {
  13. t.r(e);
  14. var o = t(310), a = t(312);
  15. for (var i in a) "default" !== i && function(n) {
  16. t.d(e, n, function() {
  17. return a[n];
  18. });
  19. }(i);
  20. t(314);
  21. var r = t(13), c = Object(r.default)(a.default, o.render, o.staticRenderFns, !1, null, null, null, !1, o.components, void 0);
  22. c.options.__file = "pages/wallet/recharge.vue", e.default = c.exports;
  23. },
  24. 310: function(n, e, t) {
  25. t.r(e);
  26. var o = t(311);
  27. t.d(e, "render", function() {
  28. return o.render;
  29. }), t.d(e, "staticRenderFns", function() {
  30. return o.staticRenderFns;
  31. }), t.d(e, "recyclableRender", function() {
  32. return o.recyclableRender;
  33. }), t.d(e, "components", function() {
  34. return o.components;
  35. });
  36. },
  37. 311: function(n, e, t) {
  38. t.r(e), t.d(e, "render", function() {
  39. return o;
  40. }), t.d(e, "staticRenderFns", function() {
  41. return i;
  42. }), t.d(e, "recyclableRender", function() {
  43. return a;
  44. }), t.d(e, "components", function() {});
  45. var o = function() {
  46. var n = this;
  47. n.$createElement;
  48. n._self._c, n._isMounted || (n.e0 = function(e) {
  49. !n.payLoding && n.confirm();
  50. });
  51. }, a = !1, i = [];
  52. o._withStripped = !0;
  53. },
  54. 312: function(n, e, t) {
  55. t.r(e);
  56. var o = t(313), a = t.n(o);
  57. for (var i in o) "default" !== i && function(n) {
  58. t.d(e, n, function() {
  59. return o[n];
  60. });
  61. }(i);
  62. e.default = a.a;
  63. },
  64. 313: function(n, e, t) {
  65. (function(n) {
  66. Object.defineProperty(e, "__esModule", {
  67. value: !0
  68. }), e.default = void 0;
  69. var o = t(82), a = t(247), i = (t(6), {
  70. filters: {
  71. getMoneyStyle: o.getMoneyStyle
  72. },
  73. data: function() {
  74. return {
  75. type: "routine",
  76. money: "",
  77. payLoding: !1,
  78. payName: "weixin"
  79. };
  80. },
  81. onLoad: function(n) {},
  82. computed: {},
  83. methods: {
  84. navTo: function(e) {
  85. n.navigateTo({
  86. url: e
  87. });
  88. },
  89. tabRadio: function(n) {
  90. this.type = n;
  91. },
  92. confirm: function() {
  93. var e = this;
  94. e.payLoding = !0, this.money <= 0 ? n.showToast({
  95. title: "请输入金额",
  96. duration: 2e3,
  97. icon: "none"
  98. }) : (0, a.rechargeRoutine)({
  99. price: this.money,
  100. from: this.type,
  101. paytype: this.payName
  102. }).then(function(n) {
  103. console.log(n);
  104. var t = n.data;
  105. wx.requestPayment({
  106. timeStamp: t.timestamp,
  107. nonceStr: t.nonceStr,
  108. package: t.package,
  109. signType: t.signType,
  110. paySign: t.paySign,
  111. success: function(n) {
  112. e.paySuccessTo();
  113. }
  114. });
  115. }).catch(function(n) {
  116. e.payLoding = !1, console.log(n);
  117. });
  118. },
  119. loadData: function(n) {
  120. var e = this;
  121. console.log(n);
  122. var t = this.tabCurrentIndex, o = this.navList[t];
  123. o.state, "tabChange" === n && !0 === o.loaded || "loading" !== o.loadingType && (o.loadingType = "loading",
  124. setTimeout(function() {
  125. [].forEach(function(n) {
  126. o.orderList.push(n);
  127. }), e.$set(o, "loaded", !0), o.loadingType = "more";
  128. }, 600));
  129. }
  130. }
  131. });
  132. e.default = i;
  133. }).call(this, t(1).default);
  134. },
  135. 314: function(n, e, t) {
  136. t.r(e);
  137. var o = t(315), a = t.n(o);
  138. for (var i in o) "default" !== i && function(n) {
  139. t.d(e, n, function() {
  140. return o[n];
  141. });
  142. }(i);
  143. e.default = a.a;
  144. },
  145. 315: function(n, e, t) {}
  146. }, [ [ 308, "common/runtime", "common/vendor" ] ] ]);