index.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. "use strict";
  2. const common_vendor = require("../../common/vendor.js");
  3. if (!Array) {
  4. const _easycom_wd_swiper2 = common_vendor.resolveComponent("wd-swiper");
  5. _easycom_wd_swiper2();
  6. }
  7. const _easycom_wd_swiper = () => "../../node-modules/wot-design-uni/components/wd-swiper/wd-swiper.js";
  8. if (!Math) {
  9. _easycom_wd_swiper();
  10. }
  11. const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  12. __name: "index",
  13. setup(__props) {
  14. const current = common_vendor.ref(0);
  15. const swiperList = common_vendor.ref([
  16. "https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg",
  17. "https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg",
  18. "https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg",
  19. "https://registry.npmmirror.com/wot-design-uni-assets/*/files/moon.jpg",
  20. "https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg"
  21. ]);
  22. common_vendor.onShow(() => {
  23. });
  24. return (_ctx, _cache) => {
  25. return {
  26. a: common_vendor.p({
  27. customClass: "customSwiper",
  28. list: swiperList.value,
  29. autoplay: true,
  30. value: current.value
  31. }),
  32. b: common_vendor.o(
  33. //@ts-ignore
  34. (...args) => _ctx.payment && _ctx.payment(...args)
  35. )
  36. };
  37. };
  38. }
  39. });
  40. wx.createPage(_sfc_main);