This commit is contained in:
2026-05-17 13:59:16 +08:00
parent f76b19697c
commit 870477f864
7 changed files with 176 additions and 93 deletions

View File

@ -297,10 +297,14 @@
</div>
<div class="category-content">
<div class="option-group">
<button class="option-btn" data-option="size-1">3x3米</button>
<button class="option-btn" data-option="size-2">4x4米</button>
<button class="option-btn" data-option="size-3">5x5米</button>
<button class="option-btn" data-option="size-4">6x6</button>
<button class="option-btn" data-option="size-1">3*3</button>
<button class="option-btn" data-option="size-2">3x6</button>
<button class="option-btn" data-option="size-3">10x13EM星空篷</button>
<button class="option-btn" data-option="size-4">全铁3x6</button>
<button class="option-btn" data-option="size-1">10x12</button>
<button class="option-btn" data-option="size-2">10x10星空篷</button>
<button class="option-btn" data-option="size-3">10x13星空篷</button>
<button class="option-btn" data-option="size-4">10x20星空篷</button>
</div>
</div>
</div>
@ -346,8 +350,8 @@
</div>
<div class="category-content">
<div class="option-group">
<button class="option-btn" data-option="color-1">222222</button>
<button class="option-btn" data-option="color-2">灰色</button>
<button class="option-btn" data-option="color-1">Charcoal</button>
<button class="option-btn" data-option="color-2">Cherry</button>
<button class="option-btn" data-option="color-3">黑色</button>
<button class="option-btn" data-option="color-4">木色</button>
</div>
@ -450,7 +454,7 @@
<script type="module" src="./index.js"></script>
<script type="module">
import { kernel } from './src/main.ts';
import { init, getAutoLoadModelList,getPlacementZone,executeEvent ,getHotspot} from './index.js';
import { init, getAutoLoadModelList, getPlacementZone, getEvent, getHotspot,executeEvent2 } from './index.js';
await init()
await getAutoLoadModelList()
@ -531,11 +535,19 @@
const result = await response.json();
if (result.code === 200) {
console.log(result.data);
const { enable_placement_zone } = result.data;
sku = currentText;
// await initPlacementZoneConfig();
// await initPlacementZoneConfig();
if (enable_placement_zone) {
getPlacementZone(currentText)
}
else {
executeEvent2(result)
}
}
getPlacementZone(currentText)
});
});
@ -846,7 +858,7 @@
// 监听放置区域点击事件
kernel.on('dropzone:click', async (dropzone_data) => {
executeEvent(dropzone_data,sku)
getEvent(dropzone_data, sku)
});