work.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. "use strict";
  2. const common_vendor = require("../common/vendor.js");
  3. const plugins_modal = require("../plugins/modal.js");
  4. if (!Array) {
  5. const _easycom_uni_swiper_dot2 = common_vendor.resolveComponent("uni-swiper-dot");
  6. const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section");
  7. const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
  8. const _easycom_uni_grid_item2 = common_vendor.resolveComponent("uni-grid-item");
  9. const _easycom_uni_grid2 = common_vendor.resolveComponent("uni-grid");
  10. (_easycom_uni_swiper_dot2 + _easycom_uni_section2 + _easycom_uni_icons2 + _easycom_uni_grid_item2 + _easycom_uni_grid2)();
  11. }
  12. const _easycom_uni_swiper_dot = () => "../uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.js";
  13. const _easycom_uni_section = () => "../components/uni-section/uni-section.js";
  14. const _easycom_uni_icons = () => "../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
  15. const _easycom_uni_grid_item = () => "../uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.js";
  16. const _easycom_uni_grid = () => "../uni_modules/uni-grid/components/uni-grid/uni-grid.js";
  17. if (!Math) {
  18. (_easycom_uni_swiper_dot + _easycom_uni_section + _easycom_uni_icons + _easycom_uni_grid_item + _easycom_uni_grid)();
  19. }
  20. const _sfc_main = {
  21. __name: "work",
  22. setup(__props) {
  23. const current = common_vendor.ref(0);
  24. const swiperDotIndex = common_vendor.ref(0);
  25. const data = common_vendor.ref([
  26. {
  27. image: "/static/images/banner/banner01.jpg"
  28. },
  29. {
  30. image: "/static/images/banner/banner02.jpg"
  31. },
  32. {
  33. image: "/static/images/banner/banner03.jpg"
  34. }
  35. ]);
  36. function clickBannerItem(item) {
  37. console.info(item);
  38. }
  39. function changeSwiper(e) {
  40. current.value = e.detail.current;
  41. }
  42. function changeGrid(e) {
  43. plugins_modal.modal.showToast({
  44. title: "模块建设中",
  45. mask: false,
  46. icon: "loading",
  47. duration: 1e3
  48. });
  49. }
  50. return (_ctx, _cache) => {
  51. return {
  52. a: common_vendor.f(data.value, (item, index, i0) => {
  53. return {
  54. a: item.image,
  55. b: common_vendor.o(($event) => clickBannerItem(item), index),
  56. c: index
  57. };
  58. }),
  59. b: swiperDotIndex.value,
  60. c: common_vendor.o(changeSwiper),
  61. d: common_vendor.p({
  62. info: data.value,
  63. current: current.value,
  64. field: "content"
  65. }),
  66. e: common_vendor.p({
  67. title: "系统管理",
  68. type: "line"
  69. }),
  70. f: common_vendor.p({
  71. type: "person-filled",
  72. size: "30"
  73. }),
  74. g: common_vendor.p({
  75. type: "staff-filled",
  76. size: "30"
  77. }),
  78. h: common_vendor.p({
  79. type: "color",
  80. size: "30"
  81. }),
  82. i: common_vendor.p({
  83. type: "settings-filled",
  84. size: "30"
  85. }),
  86. j: common_vendor.p({
  87. type: "heart-filled",
  88. size: "30"
  89. }),
  90. k: common_vendor.p({
  91. type: "bars",
  92. size: "30"
  93. }),
  94. l: common_vendor.p({
  95. type: "gear-filled",
  96. size: "30"
  97. }),
  98. m: common_vendor.p({
  99. type: "chat-filled",
  100. size: "30"
  101. }),
  102. n: common_vendor.p({
  103. type: "wallet-filled",
  104. size: "30"
  105. }),
  106. o: common_vendor.o(changeGrid),
  107. p: common_vendor.p({
  108. column: 4,
  109. showBorder: false
  110. })
  111. };
  112. };
  113. }
  114. };
  115. const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "C:/Users/Administrator/Desktop/srcaaa/pages/work.vue"]]);
  116. wx.createPage(MiniProgramPage);