acdr-ui/dist/dev/mp-weixin/modules/mall/sheep/components/s-image-block/s-image-block.js
2024-10-01 09:15:35 +08:00

40 lines
1.0 KiB
JavaScript

"use strict";
const common_vendor = require("../../../../../common/vendor.js");
const modules_mall_sheep_index = require("../../index.js");
if (!Array) {
const _easycom_su_image2 = common_vendor.resolveComponent("su-image");
_easycom_su_image2();
}
const _easycom_su_image = () => "../../ui/su-image/su-image.js";
if (!Math) {
_easycom_su_image();
}
const _sfc_main = {
__name: "s-image-block",
props: {
data: {
type: Object,
default: () => ({})
},
styles: {
type: Object,
default: () => ({})
}
},
setup(__props) {
return (_ctx, _cache) => {
return {
a: common_vendor.p({
src: common_vendor.unref(modules_mall_sheep_index.sheep).$url.cdn(__props.data.imgUrl),
mode: "widthFix"
}),
b: common_vendor.o(($event) => {
var _a;
return common_vendor.unref(modules_mall_sheep_index.sheep).$router.go((_a = __props.data) == null ? void 0 : _a.url);
})
};
};
}
};
wx.createComponent(_sfc_main);