Commit 7cace6b4 authored by shoei.kanno's avatar shoei.kanno

商品一覧画面機能完成(残りは細かなデザインの修正)

parent ce5e5320
......@@ -57,6 +57,7 @@ public class EcsiteRestController {
LinkedHashMap<String, Items> cart = new LinkedHashMap<String, Items>();
String id = data.getShoesId().toString();
cart.put(id , itemsService.findOne(data.getShoesId(),data.getQuantity()));
System.out.println(cart);
session.setAttribute("cart", cart);
}else{
LinkedHashMap<String, Items> cart = new LinkedHashMap<String, Items>();
......
......@@ -98,14 +98,11 @@ $('.cartBtn').on('click', function(event){
contentType: 'application/json',
dataType: "json",
data: JSON.stringify(data)
}).done(function() {
});
//[#modal-content]と[#modal-overlay]をフェードアウトした後に…
$( "#modal-content,#modal-overlay" ).fadeOut( "slow" , function(){
//[#modal-overlay]を削除する
$('#modal-overlay').remove() ;
} ) ;
}).fail(function() {
alert("Failed.");
});
});
\ No newline at end of file
......@@ -40,7 +40,7 @@
</select>
</div>
<a id="modal-close" class="button-link"><button class="cart-close-btn">Close</button></a>
<button type="button" class="cartBtn">Add Cart</button>
<button type="button" class="cartBtn" id="cartBtn">Add Cart</button>
</div>
</div>
<!-- モーダルウィンドウのコンテンツ終了 -->
......@@ -63,7 +63,7 @@
<!-- 履歴ページへ遷移 -->
<li><a th:href="@{/limited/log/{id}(id=${user.id})}">My Purchase Log</a></li>
<!-- カートページへ遷移 -->
<li><a th:href="@{/cart}">Cart</a></li>
<li><a th:href="@{cart}">Cart</a></li>
<!-- ログアウト -->
<li><form th:action="@{/logout}" method="post"><input type="submit" value="logout" style="border:none;background-color:transparent;text-decoration:none;" class="logoutBtn"/></form></li>
</ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment