爱简收旧衣按件回收前端代码仓库
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.5 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. tui: {
  9. name: "周小艺",
  10. phone: "18899102278",
  11. level1: 67,
  12. level2: 67,
  13. totalAmount: "8273.99",
  14. commission: "278.99"
  15. },
  16. statusBarHeight: 0
  17. };
  18. },
  19. computed: {
  20. navbarStyle() {
  21. return `padding-top: ${this.statusBarHeight}px;`;
  22. }
  23. },
  24. onLoad(options) {
  25. common_vendor.index.getSystemInfo({
  26. success: (res) => {
  27. this.statusBarHeight = res.statusBarHeight || 20;
  28. }
  29. });
  30. const eventChannel = this.getOpenerEventChannel && this.getOpenerEventChannel();
  31. if (eventChannel) {
  32. eventChannel.on("tuiDetail", (tui) => {
  33. this.tui = Object.assign({}, this.tui, tui);
  34. });
  35. }
  36. },
  37. methods: {
  38. goBack() {
  39. common_vendor.index.navigateBack();
  40. },
  41. removeTui() {
  42. common_vendor.index.showToast({ title: "已解除推广官", icon: "none" });
  43. },
  44. refreshData() {
  45. },
  46. async onRefresh() {
  47. await this.refreshData && this.refreshData();
  48. }
  49. },
  50. onPullDownRefresh() {
  51. this.refreshData && this.refreshData();
  52. common_vendor.index.stopPullDownRefresh();
  53. }
  54. };
  55. if (!Array) {
  56. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  57. _easycom_uni_icons2();
  58. }
  59. const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  60. if (!Math) {
  61. _easycom_uni_icons();
  62. }
  63. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  64. return {
  65. a: common_vendor.p({
  66. type: "back",
  67. size: "24",
  68. color: "#222"
  69. }),
  70. b: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
  71. c: common_vendor.s($options.navbarStyle),
  72. d: common_vendor.t($data.tui.name),
  73. e: common_vendor.t($data.tui.phone),
  74. f: common_vendor.t($data.tui.level1),
  75. g: common_vendor.t($data.tui.level2),
  76. h: common_vendor.t($data.tui.totalAmount),
  77. i: common_vendor.t($data.tui.commission),
  78. j: common_vendor.o((...args) => $options.removeTui && $options.removeTui(...args))
  79. };
  80. }
  81. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4922c184"]]);
  82. wx.createPage(MiniProgramPage);
  83. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/manager/tui-detail.js.map