Files
dianxiaomi-crossborder-play…/shein建品/RECIPE.md
T
admin9webs f5720ad613 店小秘多平台铺货配方:7 平台建品脚本 + 静默拦截诊断法 + 项目状态
- TikTok/Shopee/速卖通/Walmart 各 46-47 条已在待发布
- Ozon 47 条已建、改价 40/47
- SHEIN 配方跑通第一条;Temu 差「预览图」一步
- 核心产出:MYJ.message.error 钩子诊断法(解开了三个平台的保存静默拦截)
- 含下一轮提示词 NEXT-ROUND-PROMPT.md
2026-09-20 17:29:38 +08:00

26 lines
1.6 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.
# SHEIN 建品配方(已跑通第一条)
## 完整流程
1. `https://www.dianxiaomi.com/web/sheinProduct/add`
2. **选店铺**(按品类分店,见 shein_route.json)
3. **选类目**:点「选择分类」→ 弹窗 `input[placeholder="搜索分类名称"]` → 搜索 → 点 `.search-result-item`
4. **标题**:`sheinAddProductStore.formState.productName`
5. **★ 加第二个规格**:点 `.theme-select-box` 里的 `尺寸(Size)`
—— 这是之前一直卡住的关键!类目要求**颜色+尺寸两个规格**,只选颜色不行
6. **选规格值**:两个 `.sku-info-box` 里各点一个 `.sku-option`(要点里面的 `label.d-checkbox`)
7. **填 SKU 行**:`sheinSkuDataStore.formState.skuDataList[]`
`skcSupplierCode / skcRetailPrice / supplyPrice / stockVariety / weight / length / width / height`
⚠️ **加第二个规格会重建 SKU 行,之前的填充会丢** —— 必须在规格选完之后再填
8. **尺码表**:点「编辑尺码表」→ 弹窗内 6 个 `placeholder="请输入"` 的 input → 点「确定」
9. **图片**:`sheinImgStore.formState.mainImgData.multipleSpuImgs` → **数组**
10. **保存** → `POST /api/sheinProduct/add.json`
## 关键教训
- 报错 `有必选规格未选择` 的真实含义是:**类目定义的规格没选全**,不是主规格没值
- 加规格会重置 SKU 行 → **顺序不能错**:先规格、后 SKU、再尺码表
- 所有报错都会被 `MYJ.message.error` 吞掉,必须挂钩子才看得到
## 待批量
- 40 条按品类分到 4 家店(美妆18 / 文具13 / 箱包8 / 内睡袜子1)
- 需要把上述流程写成 `shbatch.mjs`,逐条跑