|
@@ -24,7 +24,7 @@
|
|
|
<article class="article">
|
|
|
<section class="section" th:each="item: *{results}">
|
|
|
<!-- commodityType : 1 产品 2 仪器 -->
|
|
|
- <a th:href="${item.commodityType == 1 ? 'product-' + item.productId + '.html' : 'product-' + item.instrument + '.html'}">
|
|
|
+ <a th:href="${item.commodityType eq 1 ? 'product-' + item.productId + '.html' : 'product-' + item.instrument + '.html'}">
|
|
|
<div class="cover">
|
|
|
<img th:src="${item.image}" th:alt="${item.name}"/>
|
|
|
</div>
|