34 lines
1.3 KiB
JavaScript
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.unref(utils_commUtils.imgUrl)("@/static/home/pb.png"),
|
||
|
c: common_vendor.unref(utils_commUtils.imgUrl)("@/static/home/yl.png"),
|
||
|
d: common_vendor.o(($event) => common_vendor.unref(utils_commUtils.toPath)("/mall/index/index")),
|
||
|
e: common_vendor.unref(utils_commUtils.imgUrl)("@/static/home/mr.png"),
|
||
|
f: common_vendor.o(onSwiperChange),
|
||
|
g: 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);
|
||
|
//# sourceMappingURL=quickServiceCarousel.js.map
|