acdr/acdr-ui/dist/dev/mp-weixin/pages/index/components/quickServiceCarousel.js
2024-10-01 09:13:10 +08:00

34 lines
1.3 KiB
JavaScript

"use strict";
const common_vendor = require("../../../common/vendor.js");
const utils_commUtils = require("../../../utils/commUtils.js");
const _sfc_main = {
__name: "quickServiceCarousel",
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/book.png"),
b: common_vendor.o(($event) => common_vendor.unref(utils_commUtils.toPath)("/modules/pet/service/knowledge")),
c: common_vendor.unref(utils_commUtils.imgUrl)("@/static/home/pb.png"),
d: common_vendor.unref(utils_commUtils.imgUrl)("@/static/home/yl.png"),
e: common_vendor.o(($event) => common_vendor.unref(utils_commUtils.toPath)("/modules/mall/index/index")),
f: common_vendor.unref(utils_commUtils.imgUrl)("@/static/home/mr.png"),
g: common_vendor.o(onSwiperChange),
h: 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-46148006"]]);
wx.createComponent(Component);