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

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

parent ce5e5320
...@@ -57,6 +57,7 @@ public class EcsiteRestController { ...@@ -57,6 +57,7 @@ public class EcsiteRestController {
LinkedHashMap<String, Items> cart = new LinkedHashMap<String, Items>(); LinkedHashMap<String, Items> cart = new LinkedHashMap<String, Items>();
String id = data.getShoesId().toString(); String id = data.getShoesId().toString();
cart.put(id , itemsService.findOne(data.getShoesId(),data.getQuantity())); cart.put(id , itemsService.findOne(data.getShoesId(),data.getQuantity()));
System.out.println(cart);
session.setAttribute("cart", cart); session.setAttribute("cart", cart);
}else{ }else{
LinkedHashMap<String, Items> cart = new LinkedHashMap<String, Items>(); LinkedHashMap<String, Items> cart = new LinkedHashMap<String, Items>();
......
...@@ -98,14 +98,11 @@ $('.cartBtn').on('click', function(event){ ...@@ -98,14 +98,11 @@ $('.cartBtn').on('click', function(event){
contentType: 'application/json', contentType: 'application/json',
dataType: "json", dataType: "json",
data: JSON.stringify(data) data: JSON.stringify(data)
}).done(function() { });
$( "#modal-content,#modal-overlay" ).fadeOut( "slow" , function(){ //[#modal-content]と[#modal-overlay]をフェードアウトした後に…
$( "#modal-content,#modal-overlay" ).fadeOut( "slow" , function(){
//[#modal-overlay]を削除する //[#modal-overlay]を削除する
$('#modal-overlay').remove() ; $('#modal-overlay').remove() ;
} ) ; } ) ;
}).fail(function() {
alert("Failed.");
});
}); });
\ No newline at end of file
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</select> </select>
</div> </div>
<a id="modal-close" class="button-link"><button class="cart-close-btn">Close</button></a> <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>
</div> </div>
<!-- モーダルウィンドウのコンテンツ終了 --> <!-- モーダルウィンドウのコンテンツ終了 -->
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<!-- 履歴ページへ遷移 --> <!-- 履歴ページへ遷移 -->
<li><a th:href="@{/limited/log/{id}(id=${user.id})}">My Purchase Log</a></li> <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> <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> </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