feat(uniapp): 新增首页组合组件 homeComb 并完善页面及楼层装修样式

This commit is contained in:
pikachu1995@126.com
2026-10-20 18:46:28 +08:00
parent 986625c516
commit 755f574e8e
7 changed files with 897 additions and 296 deletions

View File

@@ -26,13 +26,22 @@ const hasHotZone = computed(() => {
return Array.isArray(zoneInfo) ? zoneInfo.length > 0 : !!zoneInfo;
});
const wrapperStyle = computed(() => ({
background: props.res?.bgColor ?? "transparent",
padding: `${props.res?.paddingTop ?? 0}rpx ${props.res?.paddingX ?? 0}rpx ${props.res?.paddingBottom ?? 0}rpx`,
marginBottom: `${props.res?.pageGap ?? 0}rpx`,
borderRadius: `${props.res?.borderRadius ?? 0}rpx`,
overflow: (props.res?.borderRadius ?? 0) > 0 ? "hidden" : "visible",
}));
const wrapperStyle = computed(() => {
const r = props.res || {};
const bg =
r.bgColor1 !== undefined
? !r.bgColor2 || r.bgColor1 === r.bgColor2
? r.bgColor1
: `linear-gradient(180deg, ${r.bgColor1}, ${r.bgColor2})`
: r.bgColor ?? "transparent";
return {
background: bg,
padding: `${r.paddingTop ?? 0}rpx ${r.paddingX ?? 0}rpx ${r.paddingBottom ?? 0}rpx`,
marginBottom: `${r.pageGap ?? 0}rpx`,
borderRadius: `${r.borderRadius ?? 0}rpx`,
overflow: (r.borderRadius ?? 0) > 0 ? "hidden" : "visible",
};
});
const contentStyle = computed(() => ({
borderRadius: `${props.res?.imgRadius ?? 0}rpx`,