123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- "use strict";
- const common_vendor = require("../../common/vendor.js");
- const services_ams = require("../../services/ams.js");
- if (!Array) {
- const _easycom_wd_swiper2 = common_vendor.resolveComponent("wd-swiper");
- _easycom_wd_swiper2();
- }
- const _easycom_wd_swiper = () => "../../node-modules/wot-design-uni/components/wd-swiper/wd-swiper.js";
- if (!Math) {
- _easycom_wd_swiper();
- }
- const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
- __name: "index",
- setup(__props) {
- const current = common_vendor.ref(0);
- const appid = common_vendor.index.getStorageSync("appid");
- common_vendor.onLoad(() => {
- getBanner();
- });
- const getphonenumber = (e) => {
- console.log("-----------------------", e.detail.code);
- };
- const bannerList = common_vendor.ref([]);
- const getBanner = () => {
- services_ams.getCarousel(appid).then((res) => {
- bannerList.value = res.data;
- });
- };
- const toActivity = () => {
- common_vendor.index.navigateTo({
- url: "/pagesOne/winner/index"
- });
- };
- common_vendor.onShow(() => {
- });
- return (_ctx, _cache) => {
- return {
- a: common_vendor.p({
- customClass: "customSwiper",
- list: bannerList.value,
- autoplay: true,
- ["value-key"]: "imageUrl",
- value: current.value
- }),
- b: common_vendor.o(toActivity),
- c: common_vendor.o(getphonenumber)
- };
- };
- }
- });
- wx.createPage(_sfc_main);
|