@optima-chat/optima-agent 0.8.89 → 0.8.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: homepage
|
|
3
|
-
description: 店铺首页配置。管理首页区块(Banner
|
|
3
|
+
description: 店铺首页配置。管理首页区块(Banner、集合列表、集合商品、特色推荐)和页面级设置(背景图、叠加层)。当用户需要配置店铺首页布局、添加轮播图、展示集合、设置背景图片、设置 Banner 不裁切/完整显示时使用。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## 重要:先查后做
|
|
@@ -48,6 +48,16 @@ description: 店铺首页配置。管理首页区块(Banner、集合列表、
|
|
|
48
48
|
| 添加特色推荐 | `commerce homepage create-featured --title <title> --lang <lang> --target-type collection --target-handle <handle> --cta "查看" --image-url "https://..."` |
|
|
49
49
|
| 更新推荐目标 | `commerce homepage update-target --id <id> --type <type> --handle <handle>` |
|
|
50
50
|
|
|
51
|
+
### 背景图
|
|
52
|
+
|
|
53
|
+
| 用户说 | 命令 |
|
|
54
|
+
|-------|------|
|
|
55
|
+
| 设置首页背景图 | `commerce homepage update-page-settings --background-image "https://..." --background-mode repeat-y` |
|
|
56
|
+
| 设置固定背景(照片) | `commerce homepage update-page-settings --background-image "https://..." --background-mode fixed` |
|
|
57
|
+
| 调整背景叠加透明度 | `commerce homepage update-page-settings --overlay-opacity 0.7` |
|
|
58
|
+
| 调整背景叠加颜色 | `commerce homepage update-page-settings --overlay-color "#f5f5f5"` |
|
|
59
|
+
| 移除背景图 | `commerce homepage update-page-settings --remove-background` |
|
|
60
|
+
|
|
51
61
|
### 通用操作
|
|
52
62
|
|
|
53
63
|
| 用户说 | 命令 |
|
|
@@ -100,6 +110,17 @@ description: 店铺首页配置。管理首页区块(Banner、集合列表、
|
|
|
100
110
|
| cta_text | string | CTA 按钮文字 |
|
|
101
111
|
| background_color | string | 背景颜色,如 `#f5f5f5` |
|
|
102
112
|
|
|
113
|
+
### page_settings(页面级设置)
|
|
114
|
+
|
|
115
|
+
通过 `update-page-settings` 命令修改,不是 `patch-settings`。
|
|
116
|
+
|
|
117
|
+
| 字段 | 类型 | 说明 |
|
|
118
|
+
|------|------|------|
|
|
119
|
+
| background_image | string / null | 背景图片 URL(HTTPS),null 表示无背景 |
|
|
120
|
+
| background_mode | string | `repeat-y`(横向填满纵向平铺,默认)/ `fixed`(固定视口) |
|
|
121
|
+
| background_overlay_color | string | 叠加颜色(hex 格式,默认 `#ffffff`) |
|
|
122
|
+
| background_overlay_opacity | number | 叠加透明度 0-1(默认 0.85,越大越不透明) |
|
|
123
|
+
|
|
103
124
|
## 复杂操作说明
|
|
104
125
|
|
|
105
126
|
### update-images 全量替换
|