店小秘多平台铺货配方:7 平台建品脚本 + 静默拦截诊断法 + 项目状态
- TikTok/Shopee/速卖通/Walmart 各 46-47 条已在待发布 - Ozon 47 条已建、改价 40/47 - SHEIN 配方跑通第一条;Temu 差「预览图」一步 - 核心产出:MYJ.message.error 钩子诊断法(解开了三个平台的保存静默拦截) - 含下一轮提示词 NEXT-ROUND-PROMPT.md
This commit is contained in:
commit
f5720ad613
94 files changed
+21561
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { attach } from '/tmp/cdp3.mjs';
|
||||
const wait = ms => new Promise(z => setTimeout(z, ms));
|
||||
const c = await attach('/web/temu/add') || await attach('dianxiaomi.com');
|
||||
await c.evalJS(`document.body.click()`); await wait(600);
|
||||
const pos = JSON.parse(String(await c.evalJS(`(()=>{
|
||||
const boxes=[...document.querySelectorAll('*')].filter(e=>e.offsetParent!==null&&/颜色/.test(e.innerText||'')&&e.querySelector('input[type=search]')&&e.querySelectorAll('*').length<300);
|
||||
const box=boxes[boxes.length-1]; if(!box)return'[]';
|
||||
const s=box.closest('.ant-select')||box.querySelector('.ant-select')||box;
|
||||
const sel=s.querySelector('.ant-select-selector')||s;
|
||||
sel.scrollIntoView({block:'center'}); const r=sel.getBoundingClientRect();
|
||||
return JSON.stringify([Math.round(r.x+r.width/2),Math.round(r.y+r.height/2)]);})()`)));
|
||||
console.log('坐标:', JSON.stringify(pos));
|
||||
if(pos.length){ for(const t of ['mousePressed','mouseReleased']) await c.send('Input.dispatchMouseEvent',{type:t,x:pos[0],y:pos[1],button:'left',clickCount:1}); }
|
||||
await wait(3000);
|
||||
const o = await c.evalJS(`(()=>{const dd=[...document.querySelectorAll('.ant-select-dropdown')].filter(e=>e.offsetParent!==null).pop();
|
||||
if(!dd)return'no-dd';
|
||||
const opts=[...dd.querySelectorAll('.ant-select-item-option')].map(e=>(e.innerText||'').trim());
|
||||
return JSON.stringify({n:opts.length, first:opts.slice(0,10), txt:(dd.innerText||'').replace(/\\s+/g,' ').slice(0,180)});})()`);
|
||||
console.log('下拉:', String(o).slice(0,600));
|
||||
process.exit(0);
|
||||
Reference in new issue
Block a user