更新电商AI平台原型交互

This commit is contained in:
iye
2026-05-25 19:12:56 +08:00
parent 04335f3269
commit 553014cc79
23 changed files with 6661 additions and 860 deletions
+3 -3
View File
@@ -520,7 +520,7 @@
<div class="name">透真玻尿酸补水面膜</div>
<div class="meta">[ 美妆个护 ] · ¥39.9 · 22-32 岁女性</div>
</div>
<button class="edit" onclick="alert('行内编辑商品信息 · demo')">
<button class="edit" onclick="Shell.toast('打开编辑面板','跳转至 product-detail.html · 行内编辑商品信息');setTimeout(()=>location.href='product-detail.html',600);">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>
编辑
</button>
@@ -549,7 +549,7 @@
</div>
<div class="ov-photo" style="background-image: linear-gradient(135deg,#dceafe 0%, #c3e0fe 100%);" title="包装"></div>
<div class="ov-photo" style="background-image: linear-gradient(135deg,#e7e3d5 0%, #d6d1c0 100%);" title="质地"></div>
<div class="ov-photo add" onclick="alert('上传新图 · demo')" title="添加">
<div class="ov-photo add" onclick="document.getElementById('__ov-photo-input').click()" title="添加"><input type="file" id="__ov-photo-input" accept="image/*" multiple hidden onchange="if(this.files.length)Shell.toast('已上传 '+this.files.length+' 张','补充图已加入商品图册')">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M12 5v14M5 12h14"/></svg>
</div>
</div>
@@ -863,7 +863,7 @@ function renderAssets() {
</div>
${a.skeleton ? '' : `
<div class="a-actions">
<button title="预览" onclick="event.stopPropagation();alert('预览 · demo')">
<button title="预览" onclick="event.stopPropagation();(window.Shell&&Shell._openLightbox?Shell._openLightbox('','${a.id} · 预览'):Shell.toast('打开预览','${a.id}'))">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
</button>
<button title="重跑" onclick="event.stopPropagation();regen('${a.id}')">