1
This commit is contained in:
32
index.html
32
index.html
@ -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)
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user