爱简收旧衣按件回收前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.9 KiB

  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const pages_mixins_pullRefreshMixin = require("../mixins/pullRefreshMixin.js");
  4. const _sfc_main = {
  5. mixins: [pages_mixins_pullRefreshMixin.pullRefreshMixin],
  6. data() {
  7. return {
  8. statusBarHeight: 0,
  9. realName: "",
  10. amount: "",
  11. showNoticePopup: false,
  12. fromPromotion: false
  13. };
  14. },
  15. onLoad(options) {
  16. this.statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight;
  17. if (options && options.fromPromotion === "true") {
  18. this.fromPromotion = true;
  19. }
  20. },
  21. methods: {
  22. async onRefresh() {
  23. await new Promise((resolve) => setTimeout(resolve, 1e3));
  24. common_vendor.index.stopPullRefresh();
  25. },
  26. goBack() {
  27. common_vendor.index.navigateBack();
  28. },
  29. showNotice() {
  30. this.showNoticePopup = true;
  31. },
  32. closeNotice() {
  33. this.showNoticePopup = false;
  34. },
  35. submitWithdraw() {
  36. if (!this.realName) {
  37. common_vendor.index.showToast({ title: "请输入真实姓名", icon: "none" });
  38. return;
  39. }
  40. if (!this.amount) {
  41. common_vendor.index.showToast({ title: "请输入提现金额", icon: "none" });
  42. return;
  43. }
  44. common_vendor.index.showToast({ title: "提现申请已提交", icon: "success" });
  45. }
  46. }
  47. };
  48. if (!Array) {
  49. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  50. _easycom_uni_icons2();
  51. }
  52. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  53. if (!Math) {
  54. _easycom_uni_icons();
  55. }
  56. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  57. return common_vendor.e({
  58. a: common_vendor.p({
  59. type: "left",
  60. size: "22",
  61. color: "#222"
  62. }),
  63. b: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
  64. c: $data.statusBarHeight + 88 + "rpx",
  65. d: $data.statusBarHeight + "px",
  66. e: $data.realName,
  67. f: common_vendor.o(($event) => $data.realName = $event.detail.value),
  68. g: $data.amount,
  69. h: common_vendor.o(($event) => $data.amount = $event.detail.value),
  70. i: $data.statusBarHeight + 88 + 32 + "rpx",
  71. j: common_vendor.o((...args) => $options.showNotice && $options.showNotice(...args)),
  72. k: $data.showNoticePopup
  73. }, $data.showNoticePopup ? {
  74. l: common_vendor.o((...args) => $options.closeNotice && $options.closeNotice(...args)),
  75. m: common_vendor.o((...args) => $options.closeNotice && $options.closeNotice(...args))
  76. } : {}, {
  77. n: common_vendor.n($data.fromPromotion ? "promotion" : ""),
  78. o: common_vendor.o((...args) => $options.submitWithdraw && $options.submitWithdraw(...args))
  79. });
  80. }
  81. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c6e30f7c"]]);
  82. wx.createPage(MiniProgramPage);
  83. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/withdraw.js.map