爱简收旧衣按件回收前端代码仓库
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.

67 lines
2.1 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. navBarHeight: 44,
  10. navBarTotalHeight: 44,
  11. userInfo: {
  12. avatar: "/static/avatar.png",
  13. name: "战斗世界"
  14. },
  15. qrcodeUrl: "/static/qrcode.png",
  16. inviteCode: "888888"
  17. };
  18. },
  19. onLoad() {
  20. const sysInfo = common_vendor.index.getSystemInfoSync();
  21. this.statusBarHeight = sysInfo.statusBarHeight;
  22. this.navBarHeight = 44;
  23. this.navBarTotalHeight = this.statusBarHeight + this.navBarHeight;
  24. },
  25. methods: {
  26. async onRefresh() {
  27. await new Promise((resolve) => setTimeout(resolve, 1e3));
  28. common_vendor.index.stopPullRefresh();
  29. },
  30. navigateBack() {
  31. common_vendor.index.navigateBack();
  32. }
  33. }
  34. };
  35. if (!Array) {
  36. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  37. _easycom_uni_icons2();
  38. }
  39. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  40. if (!Math) {
  41. _easycom_uni_icons();
  42. }
  43. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  44. return {
  45. a: common_vendor.p({
  46. type: "left",
  47. size: "22",
  48. color: "#222"
  49. }),
  50. b: common_vendor.o((...args) => $options.navigateBack && $options.navigateBack(...args)),
  51. c: common_vendor.p({
  52. type: "more-filled",
  53. size: "22",
  54. color: "#222"
  55. }),
  56. d: $data.navBarTotalHeight + "px",
  57. e: $data.statusBarHeight + "px",
  58. f: $data.userInfo.avatar,
  59. g: common_vendor.t($data.userInfo.name),
  60. h: $data.navBarTotalHeight + "px",
  61. i: $data.qrcodeUrl,
  62. j: common_vendor.t($data.inviteCode)
  63. };
  64. }
  65. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-089fb45a"]]);
  66. wx.createPage(MiniProgramPage);
  67. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/subcomponent/promo-qrcode.js.map