中生金域
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.

36 lines
1.0 KiB

2 years ago
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. const _sfc_main = {
  4. data() {
  5. return {
  6. activeTab: 0
  7. };
  8. },
  9. onLoad() {
  10. },
  11. methods: {
  12. changeActiveTab(activeTab) {
  13. this.activeTab = activeTab;
  14. }
  15. }
  16. };
  17. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  18. return common_vendor.e({
  19. a: $data.activeTab == 0
  20. }, $data.activeTab == 0 ? {} : {}, {
  21. b: $data.activeTab == 1
  22. }, $data.activeTab == 1 ? {
  23. c: common_vendor.f(10, (item, k0, i0) => {
  24. return {
  25. a: item
  26. };
  27. })
  28. } : {}, {
  29. d: common_vendor.n($data.activeTab == 0 ? "btn active" : "btn"),
  30. e: common_vendor.o(($event) => $options.changeActiveTab(0)),
  31. f: common_vendor.n($data.activeTab == 1 ? "btn active" : "btn"),
  32. g: common_vendor.o(($event) => $options.changeActiveTab(1))
  33. });
  34. }
  35. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/cool/Desktop/code/gold-field/pages/index/index.vue"]]);
  36. wx.createPage(MiniProgramPage);