Skip to content

Commit ac55393

Browse files
committed
add ebay shop buttons. add new e02h24 pictures and manual
1 parent 4bdd911 commit ac55393

File tree

8 files changed

+31
-4
lines changed

8 files changed

+31
-4
lines changed

components/common.js

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ function createProductCard(productModel) {
184184
<h5 class="card-title">${productModel}</h5>
185185
<div class="d-flex gap-2">
186186
<a href="products/${productModel.toLowerCase()}.html" class="btn btn-primary">Learn More</a>
187-
${ productModel != 'S300' ? `<a href="https://amazon.com/dp/${getAmazonASIN(productModel)}" target="_blank" class="btn btn-success">Shop</a>` : ''}
188187
</div>
189188
</div>
190189
</div>
@@ -196,9 +195,15 @@ function createProductCard(productModel) {
196195
function createShopButton(productModel) {
197196
return `
198197
<div class="text-center mb-4">
199-
<a href="https://amazon.com/dp/${getAmazonASIN(productModel)}" target="_blank" class="btn btn-success btn-lg">
198+
${ getAmazonASIN(productModel) ? `<a href="https://www.amazon.com/dp/${getAmazonASIN(productModel)}" target="_blank" class="btn btn-success btn-lg">
200199
Shop ${productModel} on Amazon
201-
</a>
200+
</a>` : ''}
201+
${ geteBayItemNoDe(productModel) ? `<a href="https://www.ebay.de/itm/${geteBayItemNoDe(productModel)}" target="_blank" class="btn btn-success btn-lg">
202+
Shop ${productModel} on eBay DE
203+
</a>` : ''}
204+
${ geteBayItemNoUk(productModel) ? `<a href="https://www.ebay.co.uk/itm/${geteBayItemNoUk(productModel)}" target="_blank" class="btn btn-success btn-lg">
205+
Shop ${productModel} on eBay UK
206+
</a>` : ''}
202207
</div>
203208
`;
204209
}
@@ -213,7 +218,29 @@ function getAmazonASIN(productModel) {
213218
'E02H24': 'B0D69J9HDQ',
214219
'W01': 'B0CT3SFYY9'
215220
};
216-
return asinMap[productModel] || 'B0XXXXXXXXX';
221+
return asinMap[productModel];
222+
}
223+
224+
function geteBayItemNoDe(productModel) {
225+
const itemNoDeMap = {
226+
'S400': '146886599741',
227+
'S300': '146893278428',
228+
'GM100': '146893334645',
229+
'E02': '146864293834',
230+
'W01': '146893311196'
231+
};
232+
return itemNoDeMap[productModel];
233+
}
234+
235+
function geteBayItemNoUk(productModel) {
236+
const itemNoUkMap = {
237+
'S400': '146902116866',
238+
'S300': '146892525605',
239+
'E02H24': '146980837931',
240+
'E02': '146844611409',
241+
'W01': '146886612978'
242+
};
243+
return itemNoUkMap[productModel];
217244
}
218245

219246
// 修改暗黑模式切换按钮

products/pdfs/e02h24.manual.pdf

3.81 MB
Binary file not shown.

products/pics/E02H24/E02H24-1.jpg

-39.6 KB
Loading

products/pics/E02H24/E02H24-2.jpg

-56.3 KB
Loading

products/pics/E02H24/E02H24-4.jpg

-43.6 KB
Loading

products/pics/E02H24/E02H24-5.jpg

-221 KB
Binary file not shown.

products/pics/E02H24/E02H24-6.jpg

-226 KB
Binary file not shown.

products/pics/E02H24/E02H24-7.jpg

-212 KB
Binary file not shown.

0 commit comments

Comments
 (0)