list
2015-08-12 00:00
169 查看
在list.html
在goodscontroller.java
给人气、默认、价格写controller
<div class="row"> <div class="btn-group btn-group-sm btn-sort col-sm-6" role="group" > <span th:if="${#strings.isEmpty(goodsForm.commodityName)}"> <a th:href="@{initGoods(commodityTypeId=${goodsForm.commodityTypeId})}" th:class="${orderTypeId}==1?'btn btn-default btn-danger':'btn btn-default'"> 默 认 </a> <a th:href="@{initGoodsByPopularDesc(commodityTypeId=${goodsForm.commodityTypeId})}" th:class="${orderTypeId}==3?'btn btn-default btn-danger':'btn btn-default'" th:if="${orderTypeId}!=2"> 人 气<i></i> </a> <a th:href="@{initGoodsByPopular(commodityTypeId=${goodsForm.commodityTypeId})}" th:class="${orderTypeId}==2?'btn btn-default btn-danger':'btn btn-default'" th:if="${orderTypeId}==2"> 人 气<i class="up"></i> </a> <a th:href="@{initGoodsByPriceDesc(commodityTypeId=${goodsForm.commodityTypeId})}" th:class="${orderTypeId}==5?'btn btn-default btn-danger':'btn btn-default'" th:if="${orderTypeId}!=4"> 价 格<i></i> </a> <a th:href="@{initGoodsByPrice(commodityTypeId=${goodsForm.commodityTypeId})}" th:class="${orderTypeId}==4?'btn btn-default btn-danger':'btn btn-default'" th:if="${orderTypeId}==4"> 价 格<i class="up"></i> </a></span></div> <div class="col-sm-6 flipBox"> <h4 class="h5">共 <span th:text="${list.size()}"> 999 条记录</span> 条记录</h4></div></div> <form action="addCart" th:object="${goodsForm}" method="post"> <ul class="goodsList cf"> <li class="col-md-2 col-sm-4 col-xs-6" th:each="goodsInfo,status:${list}"> <div class="cont"> <a th:href="@{initGoodsDetail(commodityId=${goodsInfo.commodityId})}"><img th:src="@{showImage(pictureId=${goodsInfo.pictureId})}" alt="" style="height:168px;width:168px;"/></a> <h4 class="h5"><a th:href="@{initGoodsDetail(commodityId=${goodsInfo.commodityId})}"><p th:text="${goodsInfo.commodityName}">品美知糖道阿胶姜汤260g</p></a></h4> <p class="num">库存:<span th:text="${goodsInfo.stock}">15</span> 每<span th:text="${#strings.concat(goodsInfo.unit).concat(goodsInfo.specifications)}">袋15kg</span> </p> <p class="cf"> <span class="price yh">¥<span th:text="${goodsInfo.retailPrice}">15</span>元</span> <a th:href="@{initGoodsDetail(commodityId=${goodsInfo.commodityId})}" class="btnBuy" title="加入购物车"></a> </p></div></li></ul></form></div>
在goodscontroller.java
给人气、默认、价格写controller
相关文章推荐
- 2015-8-12
- java调用身份证接口查询
- 9秒学院关于教育类游戏开发现状的研究
- maven构建多模块项目
- struts1_DispatchAction 可以同时处理多个请求的Action
- struts1_MappingDispatchAction
- struts1——指定多个配置文件(struts-config.xml)
- struts1——动态formbean
- struts1——Validator框架的校验过程
- 很棒的一篇文章,值得学习
- 数据库堵了?还是被堵了?
- eclipseRCP深入浅出(学习总结)2015.08.11
- 实现自定义对话框中的属性动画-续
- Django-视图和URl配置
- django-模版
- 容易得的五种病,你躺枪了吗
- 解决session冲突的问题
- 千锋扣丁学堂 如何学习android高级编程
- 千锋扣丁学堂 七夕活动等你来参加
- 公司业绩关键地点