Files
dianxiaomi-crossborder-play…/alichoice建品/RECIPE.md
T

42 lines
2.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# aliChoice(速卖通全托管)侦察 — 未跑通,下一轮从这里接着做
路由:`https://www.dianxiaomi.com/web/smtChoice/add` 列表:`/web/smtChoice/{draft=采集箱, offline=待发布}`
页面标题:`店小秘--添加速卖通全托管产品`
## 已勘明(`alc_probe1.mjs`)
### 店铺
`店铺名称` 是**下拉**,本例只有 **2 家**:`XYZ Store`、`UniStyle Bag Store`。
(上一轮侦察写的「64 家」是平台维度统计,实际可用店铺以后续页面为准。)
### 表单(可见,前 8 项)
`店铺名称 · 备货类型 · 产品标题 · 产品分类(+选择分类/自动识别分类) · 店小秘分类 · 来源URL · 产品属性`
### store 与字段落点(**注意:和 Joom 共用 `smtChoice*`,但字段名不同**)
| store | 关键字段 |
|---|---|
| `smtChoiceAddBasicStore` | `shopId`、`categoryId`、`productType`、**`subject`(产品标题在这里,不是 `name`)** |
| `smtChoiceAddProductStore` | `mainImage[]`(数组)、`whiteBgImg`、`sceneImg`、`productManual`、`installVideo`、`videoData` |
| `smtChoiceSkuDataStore` | `skuDataList[]`(默认已生成 1 行) |
| `smtChoiceSkuAttrStore` | `skuAttrs[]` |
| `smtChoiceAddAttrStore` | `customAttrs[]` + 一大票汽配字段(`motorIds` / `vehicleEuAfids` …) |
| `smtChoiceAddOtherStore` | `packageFormState` / `otherInfoFormState` / `otherBusinessInfoState` |
| `smtChoiceAddStore` | `productInfo` / `attrsInfo` / `describeInfoData`(**没有 formState**) |
⚠️ 和 Joom 的差异:Joom 标题在 `smtChoiceAddBasicStore.name`,这里在 `.subject`。
**别把 Joom 的填法直接抄过来。**
## 下一轮的顺序建议
1. 选店铺(下拉,取第一家 `XYZ Store`)
2. **备货类型**(必填,先探选项)
3. 类目:`选择分类` 弹窗(同 SHEIN/Temu 那套)+ 留意「自动识别分类」
4. 标题 → `smtChoiceAddBasicStore.subject`
5. 图片 → `smtChoiceAddProductStore.mainImage[]`
6. SKU 行 / 属性 / 包装 → 对应 store
7. **挂钩子再保存**(大概率还有层层递进的必填:参考 Temu 的省份→变种→尺寸→净重→预览图)
## 已知可复用的东西
- `shein建品/sh_lib.mjs`(`newPage`/`closePage`/`installHook`/`readHook`)
- `shein建品/sh_build.mjs` 的 `selectCategory` / `fillRequiredSelects`(SHEIN/Temu/Joom 都已验证)
- `joom建品/jmbatch.mjs` 的骨架(换字段名和控件类型即可)