fix<优化下单逻辑>
parent
ddfc9270aa
commit
9dfe3a62aa
|
@ -10,6 +10,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>购物车</h1>
|
<h1>购物车</h1>
|
||||||
<a href="/">主页</a>
|
<a href="/">主页</a>
|
||||||
|
<c:if test="${not empty computers}">
|
||||||
<table border="1">
|
<table border="1">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -33,12 +34,17 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<hr>
|
<hr>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${not empty computers}">
|
||||||
<a href="/orders?action=add">
|
<a href="/orders?action=add">
|
||||||
<button>一键下单</button>
|
<button>一键下单</button>
|
||||||
</a>
|
</a>
|
||||||
|
</c:if>
|
||||||
|
<c:if test="${empty computers}">
|
||||||
|
<p>购物车为空,暂无商品可下单。</p>
|
||||||
|
</c:if>
|
||||||
<br>
|
<br>
|
||||||
<br/>
|
<br/>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Reference in New Issue