acdr-ui/dist/dev/mp-weixin/pages/index/components/banner.js

31 lines
1012 B
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";
const common_vendor = require("../../../common/vendor.js");
const utils_commUtils = require("../../../utils/commUtils.js");
const _sfc_main = {
__name: "banner",
setup(__props) {
const currentIndex = common_vendor.ref(0);
const onSwiperChange = (event) => {
currentIndex.value = event.detail.current;
};
return (_ctx, _cache) => {
return {
a: common_vendor.unref(utils_commUtils.imgUrl)("@/static/home/banner.png"),
b: common_vendor.unref(utils_commUtils.imgUrl)("@/static/home/banner.png"),
c: common_vendor.o(onSwiperChange),
d: common_vendor.f(2, (item, index, i0) => {
return {
a: index,
b: common_vendor.n({
active: currentIndex.value === index
})
};
})
};
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-99a7ce9b"]]);
wx.createComponent(Component);
//# sourceMappingURL=banner.js.map