acdr-ui/dist/dev/mp-weixin/modules/mall/sheep/components/s-notice-block/s-notice-block.js

40 lines
1.2 KiB
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"use strict";
2024-10-01 09:15:35 +08:00
const common_vendor = require("../../../../../common/vendor.js");
const modules_mall_sheep_index = require("../../index.js");
2024-09-19 07:20:14 +08:00
if (!Array) {
const _easycom_su_notice_bar2 = common_vendor.resolveComponent("su-notice-bar");
_easycom_su_notice_bar2();
}
const _easycom_su_notice_bar = () => "../../ui/su-notice-bar/su-notice-bar.js";
if (!Math) {
_easycom_su_notice_bar();
}
const _sfc_main = {
__name: "s-notice-block",
props: {
data: {
type: Object,
default() {
}
}
},
setup(__props) {
return (_ctx, _cache) => {
return {
2024-10-01 09:15:35 +08:00
a: common_vendor.unref(modules_mall_sheep_index.sheep).$url.cdn(__props.data.iconUrl),
b: common_vendor.o(($event) => common_vendor.unref(modules_mall_sheep_index.sheep).$router.go(__props.data.contents[0].url)),
2024-09-19 07:20:14 +08:00
c: common_vendor.p({
showIcon: false,
scrollable: true,
single: true,
text: __props.data.contents[0].text,
speed: 50,
color: __props.data.textColor
})
};
};
}
};
2024-10-01 09:15:35 +08:00
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c66fbc67"]]);
2024-09-19 07:20:14 +08:00
wx.createComponent(Component);