31 lines
1012 B
JavaScript
31 lines
1012 B
JavaScript
|
"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
|