2024-09-19 07:20:14 +08:00
|
|
|
"use strict";
|
|
|
|
const common_vendor = require("../../../../../common/vendor.js");
|
2024-10-01 09:15:35 +08:00
|
|
|
const modules_mall_sheep_index = require("../../../sheep/index.js");
|
2024-09-19 07:20:14 +08:00
|
|
|
if (!Array) {
|
|
|
|
const _easycom_su_fixed2 = common_vendor.resolveComponent("su-fixed");
|
|
|
|
_easycom_su_fixed2();
|
|
|
|
}
|
2024-10-01 09:15:35 +08:00
|
|
|
const _easycom_su_fixed = () => "../../../sheep/ui/su-fixed/su-fixed.js";
|
2024-09-19 07:20:14 +08:00
|
|
|
if (!Math) {
|
|
|
|
_easycom_su_fixed();
|
|
|
|
}
|
|
|
|
const _sfc_main = {
|
|
|
|
__name: "detail-activity-tip",
|
|
|
|
props: {
|
|
|
|
activityList: {
|
|
|
|
type: Array,
|
|
|
|
default() {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
setup(__props) {
|
|
|
|
common_vendor.useCssVars((_ctx) => ({
|
|
|
|
"663ac28a": common_vendor.unref(seckillBg),
|
|
|
|
"45b41c39": common_vendor.unref(grouponBg)
|
|
|
|
}));
|
2024-10-01 09:15:35 +08:00
|
|
|
const seckillBg = modules_mall_sheep_index.sheep.$url.css("/static/img/shop/goods/seckill-tip-bg.png");
|
|
|
|
const grouponBg = modules_mall_sheep_index.sheep.$url.css("/static/img/shop/goods/groupon-tip-bg.png");
|
2024-09-19 07:20:14 +08:00
|
|
|
const props = __props;
|
|
|
|
function onActivity(activity) {
|
|
|
|
const type = activity.type;
|
|
|
|
const typePath = type === 1 ? "seckill" : type === 2 ? "TODO 拼团" : "groupon";
|
2024-10-01 09:15:35 +08:00
|
|
|
modules_mall_sheep_index.sheep.$router.go(`/modules/mall/goods/${typePath}`, {
|
2024-09-19 07:20:14 +08:00
|
|
|
id: activity.id
|
|
|
|
});
|
|
|
|
}
|
|
|
|
return (_ctx, _cache) => {
|
|
|
|
return {
|
|
|
|
a: common_vendor.f(props.activityList, (activity, k0, i0) => {
|
|
|
|
return common_vendor.e({
|
|
|
|
a: activity.type === 1
|
|
|
|
}, activity.type === 1 ? {
|
2024-10-01 09:15:35 +08:00
|
|
|
b: common_vendor.unref(modules_mall_sheep_index.sheep).$url.static("/static/img/shop/goods/seckill-icon.png")
|
2024-09-19 07:20:14 +08:00
|
|
|
} : activity.type === 3 ? {
|
2024-10-01 09:15:35 +08:00
|
|
|
d: common_vendor.unref(modules_mall_sheep_index.sheep).$url.static("/static/img/shop/goods/groupon-icon.png")
|
2024-09-19 07:20:14 +08:00
|
|
|
} : {}, {
|
|
|
|
c: activity.type === 3,
|
|
|
|
e: common_vendor.t(activity.name),
|
|
|
|
f: common_vendor.o(($event) => onActivity(activity), activity.id),
|
|
|
|
g: common_vendor.n(activity.type === 1 ? "seckill-box" : "groupon-box"),
|
|
|
|
h: activity.id
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
b: common_vendor.s(_ctx.__cssVars()),
|
|
|
|
c: common_vendor.p({
|
|
|
|
bottom: true,
|
|
|
|
placeholder: true,
|
|
|
|
val: 44
|
|
|
|
})
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0bb641f7"]]);
|
|
|
|
wx.createComponent(Component);
|