mysql 查询商品列表 显示tag_让前台页面商品列表显示后台数据库中的商品
品牌:
經(jīng)銷商:
規(guī)格:每
零售價:元
購買日期:
件
¥19.6
¥19.6
刪除
實現(xiàn)單選,全選商品
function?checkAll(obj,?name){
var?el?=?document.getElementsByTagName('input');
var?len?=?el.length;
for?(var?key?in?el)?{
if(el[Key].name?==?name){
if(obj.checked?==?true)?{
el[key].checked?=?true;
}?else?{
el[key].checked?=?false;
}
}
}
}
?全選商品詳情單價數(shù)量小計操作
品牌:
經(jīng)銷商:
規(guī)格:每
零售價:元
購買日期:
件
¥19.6
首頁有個加入購物車圖標,在header里,我們可以加入el表達式,實現(xiàn)可以從界面上看出有幾件商品,
購物車件
為空
有?1件商品
3、cartcontrlloer.java
@RequestMapping(value?=?"Order",?method?=?RequestMethod.GET)
public?String?order(Model?model,?AlipayForm?alipayForm,?HttpSession?session,?Device?device)?{
GoodsForm?goodsForm=new?GoodsForm();
//goodsForm.setType("糧食");
//model.addAttribute("goodsForm",?goodsForm);
List?commodityType?=?goodsService.getType();
goodsForm.setCommodityTypeId(commodityType.get(0).getCommodityTypeId());
model.addAttribute("goodsForm",?goodsForm);
model.addAttribute("commodityType",?commodityType);
log.info("重新支付");
CartForm?cartForm?=?new?CartForm();
model.addAttribute("cartForm",?cartForm);
UVO?uvo?=?(UVO)session.getAttribute("UVO");
if?(uvo?==?null?||?StringUtils.isEmpty(uvo.getGuestId()))?{
return?"redirect:/initGuestLogin";
}
cartForm.setGuestId(uvo.getGuestId());
model.addAttribute("cartList",?cartService.searchCartList(cartForm));
model.addAttribute("orderList",?cartService.searchOrderList(cartForm));
if(device.isNormal())?{
return?"shop/order";
}?else?{
return?"mobile/alipay/replayAlipayConfirm";
}
總結
以上是生活随笔為你收集整理的mysql 查询商品列表 显示tag_让前台页面商品列表显示后台数据库中的商品的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C++ 标准库类型 stack
- 下一篇: keil html转换工具,网页转换工具