37 lines
999 B
JavaScript
37 lines
999 B
JavaScript
"use strict";
|
|
const common_vendor = require("../common/vendor.js");
|
|
const utils_request = require("../utils/request.js");
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
|
__name: "BannerSwiper",
|
|
props: {
|
|
images: {},
|
|
video: {}
|
|
},
|
|
setup(__props) {
|
|
function fullUrl(path) {
|
|
if (!path)
|
|
return "";
|
|
if (path.startsWith("http"))
|
|
return path;
|
|
return utils_request.BASE_URL + path;
|
|
}
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: _ctx.video
|
|
}, _ctx.video ? {
|
|
b: fullUrl(_ctx.video)
|
|
} : {}, {
|
|
c: common_vendor.f(_ctx.images, (img, idx, i0) => {
|
|
return {
|
|
a: fullUrl(img),
|
|
b: idx
|
|
};
|
|
})
|
|
});
|
|
};
|
|
}
|
|
});
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0577c1c5"]]);
|
|
wx.createComponent(Component);
|
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/BannerSwiper.js.map
|