├── src └── main │ ├── webapp │ ├── WEB-INF │ │ ├── views │ │ │ └── jsp │ │ │ │ ├── index │ │ │ │ ├── admin │ │ │ │ ├── header.jsp │ │ │ │ ├── left.jsp │ │ │ │ ├── comment_view.jsp │ │ │ │ ├── category_add.jsp │ │ │ │ ├── login.jsp │ │ │ │ ├── index.jsp │ │ │ │ └── member_update.jsp │ │ │ │ ├── base.jsp │ │ │ │ ├── footer.jsp │ │ │ │ ├── usercenter │ │ │ │ ├── account_log.jsp │ │ │ │ ├── user_avatar.jsp │ │ │ │ ├── left.jsp │ │ │ │ ├── online_recharge.jsp │ │ │ │ ├── update_failed.jsp │ │ │ │ ├── order_list.jsp │ │ │ │ ├── comment_list.jsp │ │ │ │ └── user_info.jsp │ │ │ │ ├── search_backup.jsp │ │ │ │ ├── pay_suc.jsp │ │ │ │ ├── search.jsp │ │ │ │ ├── header.jsp │ │ │ │ ├── help.jsp │ │ │ │ ├── login.jsp │ │ │ │ ├── search_result.jsp │ │ │ │ ├── recomment_list.jsp │ │ │ │ └── navbar.jsp │ │ └── springmvc-servlet.xml │ ├── META-INF │ │ └── MANIFEST.MF │ ├── images │ │ ├── logo.png │ │ ├── front │ │ │ ├── xx.png │ │ │ ├── ask.gif │ │ │ ├── card.gif │ │ │ ├── cart.gif │ │ │ ├── comm.gif │ │ │ ├── cry.gif │ │ │ ├── face.gif │ │ │ ├── logo.gif │ │ │ ├── tel.gif │ │ │ ├── tips.gif │ │ │ ├── answer.gif │ │ │ ├── brand.gif │ │ │ ├── buying.gif │ │ │ ├── buying.png │ │ │ ├── circle.gif │ │ │ ├── comment.gif │ │ │ ├── consult.gif │ │ │ ├── discuss.gif │ │ │ ├── dot_bg.gif │ │ │ ├── error.gif │ │ │ ├── error_s.gif │ │ │ ├── help_bg.gif │ │ │ ├── inputbg.gif │ │ │ ├── item_bg.gif │ │ │ ├── linebg.gif │ │ │ ├── right.gif │ │ │ ├── right_s.gif │ │ │ ├── serv_bg.gif │ │ │ ├── service.gif │ │ │ ├── share.gif │ │ │ ├── sprites.gif │ │ │ ├── tips_bg.gif │ │ │ ├── welcome.gif │ │ │ ├── category.gif │ │ │ ├── comments.gif │ │ │ ├── dlsel_bg.jpg │ │ │ ├── dlsort_bg.gif │ │ │ ├── grade_bg.gif │ │ │ ├── shadow_b.gif │ │ │ ├── shadow_r.gif │ │ │ ├── sprites_2.gif │ │ │ ├── submit_bg.gif │ │ │ ├── title_bg.gif │ │ │ ├── user_ico.gif │ │ │ ├── grab_expir.png │ │ │ ├── group_expir.png │ │ │ ├── groupon_bg.gif │ │ │ ├── help_cont_bg.gif │ │ │ ├── help_title.gif │ │ │ ├── new_product.gif │ │ │ ├── sublist_bg.gif │ │ │ ├── ucenter │ │ │ │ ├── sel.gif │ │ │ │ ├── btn_bg.gif │ │ │ │ ├── close.gif │ │ │ │ ├── h2_bg.gif │ │ │ │ ├── dot_bg2.gif │ │ │ │ ├── favorites.gif │ │ │ │ ├── sbtn_bg.gif │ │ │ │ ├── search_bg.gif │ │ │ │ ├── shopping.gif │ │ │ │ ├── ucenter.gif │ │ │ │ ├── caption_bg.gif │ │ │ │ ├── tr_show_bg.gif │ │ │ │ ├── uc_title_bg.gif │ │ │ │ ├── uc_titlebg.gif │ │ │ │ ├── black_dot_bg.gif │ │ │ │ ├── licurrent_bg.gif │ │ │ │ ├── orange_dot_bg.gif │ │ │ │ ├── tr_show_tdbg.gif │ │ │ │ ├── uc_titleh2bg.gif │ │ │ │ └── list_table_thbg.gif │ │ │ ├── wrap_box_bg.gif │ │ │ ├── nopic_100_100.gif │ │ │ └── nopic_435_435.gif │ │ ├── goods │ │ │ ├── ss.jpg │ │ │ └── apple.jpg │ │ ├── qrCode.jpg │ │ ├── admin │ │ │ ├── icon.gif │ │ │ ├── logo.png │ │ │ ├── open.gif │ │ │ ├── prt.gif │ │ │ ├── sel.gif │ │ │ ├── close.gif │ │ │ ├── error.gif │ │ │ ├── form_bg.gif │ │ │ ├── loading.gif │ │ │ ├── right.gif │ │ │ ├── right_b.gif │ │ │ ├── right_g.gif │ │ │ ├── wrong.gif │ │ │ ├── wrong_b.gif │ │ │ ├── admin_bg.gif │ │ │ ├── header_bg.gif │ │ │ ├── icon_add.gif │ │ │ ├── icon_asc.gif │ │ │ ├── icon_del.gif │ │ │ ├── icon_desc.gif │ │ │ ├── icon_down.gif │ │ │ ├── icon_edit.gif │ │ │ ├── icon_send.gif │ │ │ ├── icon_stop.gif │ │ │ ├── icon_yes.gif │ │ │ ├── login_bg.gif │ │ │ ├── icon_check.gif │ │ │ ├── icon_export.gif │ │ │ ├── icon_recover.gif │ │ │ ├── icon_refresh.gif │ │ │ ├── loginbox_bg.gif │ │ │ └── org_shadow_btn.gif │ │ └── verifyCodeImg │ │ │ └── verifyCodeImg_001.png │ ├── css │ │ └── images │ │ │ ├── ask.gif │ │ │ ├── card.gif │ │ │ ├── cart.gif │ │ │ ├── comm.gif │ │ │ ├── cry.gif │ │ │ ├── face.gif │ │ │ ├── logo.gif │ │ │ ├── tel.gif │ │ │ ├── tips.gif │ │ │ ├── xx.png │ │ │ ├── answer.gif │ │ │ ├── brand.gif │ │ │ ├── buying.gif │ │ │ ├── buying.png │ │ │ ├── circle.gif │ │ │ ├── dot_bg.gif │ │ │ ├── error.gif │ │ │ ├── linebg.gif │ │ │ ├── right.gif │ │ │ ├── share.gif │ │ │ ├── bx_loader.gif │ │ │ ├── category.gif │ │ │ ├── comment.gif │ │ │ ├── comments.gif │ │ │ ├── consult.gif │ │ │ ├── controls.png │ │ │ ├── discuss.gif │ │ │ ├── dlsel_bg.jpg │ │ │ ├── dlsort_bg.gif │ │ │ ├── error_s.gif │ │ │ ├── grade_bg.gif │ │ │ ├── help_bg.gif │ │ │ ├── inputbg.gif │ │ │ ├── item_bg.gif │ │ │ ├── right_s.gif │ │ │ ├── serv_bg.gif │ │ │ ├── service.gif │ │ │ ├── shadow_b.gif │ │ │ ├── shadow_r.gif │ │ │ ├── sprites.gif │ │ │ ├── sprites_2.gif │ │ │ ├── submit_bg.gif │ │ │ ├── tips_bg.gif │ │ │ ├── title_bg.gif │ │ │ ├── user_ico.gif │ │ │ ├── welcome.gif │ │ │ ├── grab_expir.png │ │ │ ├── group_expir.png │ │ │ ├── groupon_bg.gif │ │ │ ├── help_title.gif │ │ │ ├── new_product.gif │ │ │ ├── sublist_bg.gif │ │ │ ├── ucenter │ │ │ ├── sel.gif │ │ │ ├── btn_bg.gif │ │ │ ├── close.gif │ │ │ ├── h2_bg.gif │ │ │ ├── dot_bg2.gif │ │ │ ├── sbtn_bg.gif │ │ │ ├── shopping.gif │ │ │ ├── ucenter.gif │ │ │ ├── caption_bg.gif │ │ │ ├── favorites.gif │ │ │ ├── search_bg.gif │ │ │ ├── tr_show_bg.gif │ │ │ ├── uc_title_bg.gif │ │ │ ├── uc_titlebg.gif │ │ │ ├── black_dot_bg.gif │ │ │ ├── licurrent_bg.gif │ │ │ ├── orange_dot_bg.gif │ │ │ ├── tr_show_tdbg.gif │ │ │ ├── uc_titleh2bg.gif │ │ │ └── list_table_thbg.gif │ │ │ ├── wrap_box_bg.gif │ │ │ ├── help_cont_bg.gif │ │ │ ├── nopic_100_100.gif │ │ │ └── nopic_435_435.gif │ ├── goodsimage │ │ ├── not_now.jpg │ │ ├── 0210379971d04bfbb72fffd4c057f5d7.jpg │ │ ├── 11051ca53bcf4bca9f0345c3d2d47e3a.jpg │ │ ├── 118e1fb64ae84b7bb09df1cc2ebd1a5a.jpg │ │ ├── 189398f6d8d240e4aca11151cd2c797f.jpg │ │ ├── 18b22734440e4048afed853c01b7f261.jpg │ │ ├── 1c5bac8037774ccbb773519066e5dfbe.jpg │ │ ├── 1dd453dbc5b744a2924f6b35712d9674.jpg │ │ ├── 1e75a9a69c654af48d4446e0135e92f4.jpg │ │ ├── 2384471a0f364f68854a7e7affa35de2.jpg │ │ ├── 2e535dca9cc34de3a5f62b2c95bf5987.jpg │ │ ├── 30357763a9d54e6b910549d3ff10e148.jpg │ │ ├── 38229862cf384c2dac4a01b9bf2a4c50.jpg │ │ ├── 3925328f1a494a25b07af6df7ef43c9f.jpg │ │ ├── 4b49b65c151040918e1dbeab1a4aa7c5.jpg │ │ ├── 4e8afa99eeb141ef9004cc9038ceab58.jpg │ │ ├── 4f8e4940937b47218f822de529e76005.jpg │ │ ├── 5236001479314e7089015d6dd7d09ab4.jpg │ │ ├── 5275665e56c7423fa997f6810b97979d.jpg │ │ ├── 546504ff793a46a3a3208d10f64000b8.jpg │ │ ├── 59fdc933a7f247ac858cb867261b9ed5.jpg │ │ ├── 5b8992df2aa3481a9e458d3fc1c2871b.jpg │ │ ├── 645aa255d3a549e49844bd90d1294556.jpg │ │ ├── 6b2f511a856d4e40aebb0a58f4f66773.jpg │ │ ├── 6b93465af97a43fd9b870c5f668f8e2b.jpg │ │ ├── 7332b01a45c8401a9949ff8a0ed191d3.jpg │ │ ├── 75cdb85cfab645eda015c3b6870b1e0f.jpg │ │ ├── 76703f091d4249d29501dbe5d77c70fa.jpg │ │ ├── 796a760fdfb44ab68433e2c2c70e5614.jpg │ │ ├── 7acafbfda91948eb89f510ccebb08508.jpg │ │ ├── 7fb25199a7244b7bb1323c3c66f323a2.jpg │ │ ├── 841bcc0a2dfd4b82a77758eefeabf748.jpg │ │ ├── 8768784b052146b39923028cbe8b21a8.jpg │ │ ├── 88b9908e4bf24c68b797a31f9a656a52.jpg │ │ ├── 93f09e04495e4c20adc4b733e9b6ffa3.jpg │ │ ├── 9ecf0b5491ed4aa69c41de609d2ded30.jpg │ │ ├── 9ef94aab96fe4dd2abfc69f0427385be.jpg │ │ ├── abbfcb460a874202988f77a8e49fe281.jpg │ │ ├── b31cc0249ce24ee28c4aec3bed97234a.jpg │ │ ├── bfd2008fcbfb4cfcafc95983cf57dfec.jpg │ │ ├── c0c2de4d766b40a7b7fb02cd2fd9428c.jpg │ │ ├── c1e956131bd94a42bd435b4d0ec34a8b.jpg │ │ ├── c91578b32acf4f4daea0212e5f4e8595.jpg │ │ ├── d0e2bfc0d2d14ede90a4ed1a68d9690f.jpg │ │ ├── d26ec22fd43d4d3cb7144276f907ee36.jpg │ │ ├── d2f2f23e500c40cdb15f24d9f3edeba1.jpg │ │ ├── d5689808c5f542c181e7ba151a147711.jpg │ │ ├── d5e9299a71ab4c0184494bfef495b9b2.jpg │ │ ├── d73c55041aaf4f39abbab79aaf9a0146.jpg │ │ ├── e5adbeeb36534140b50c327f6fd71a6b.jpg │ │ ├── e87efc71db024bda9a7ce5808a580fed.jpg │ │ ├── eef007cb8fde4004a17bd04d6ddef974.jpg │ │ ├── f254d719110b49fe9fa4a37a81bc0e56.jpg │ │ ├── f46bc6caba774791a055aa21d5b66a2d.jpg │ │ └── fdc1486b9c08425a9804aeacc840480a.jpg │ ├── useravatars │ │ └── f23ef84ff50e467b84ce8ed9cc81c83e.png │ └── js │ │ ├── bootstrap-3.3.4-dist │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ │ └── js │ │ │ └── npm.js │ │ └── shopcar.js │ ├── java │ └── com │ │ └── huaxin │ │ └── xxshop │ │ ├── util │ │ ├── OrderStatus.java │ │ ├── XXShopUtil.java │ │ ├── PhotoUtil.java │ │ └── VerifyCodeUtil.java │ │ ├── service │ │ ├── VisitService.java │ │ ├── CartService.java │ │ ├── CommentService.java │ │ ├── AddressService.java │ │ ├── CategoryService.java │ │ ├── impl │ │ │ ├── CartServiceImpl.java │ │ │ ├── VisitServiceImpl.java │ │ │ ├── AddressServiceImpl.java │ │ │ ├── CommentServiceImpl.java │ │ │ ├── CategoryServiceImpl.java │ │ │ └── UserServiceImpl.java │ │ ├── OrderService.java │ │ ├── UserService.java │ │ └── GoodsService.java │ │ ├── dto │ │ ├── CartListDTO.java │ │ └── OrderDetailListDTO.java │ │ ├── controller │ │ ├── InitServlet.java │ │ ├── VerifyCodeAction.java │ │ ├── IndexAction.java │ │ ├── CartAction.java │ │ ├── AddressAction.java │ │ └── AdminAction.java │ │ ├── dao │ │ ├── CartDao.java │ │ ├── VisitDao.java │ │ ├── mapper │ │ │ ├── VisitMapper.xml │ │ │ ├── AddressMapper.xml │ │ │ ├── CategoryMapper.xml │ │ │ ├── CartMapper.xml │ │ │ ├── OrderDetailMapper.xml │ │ │ ├── CommentMapper.xml │ │ │ └── UserMapper.xml │ │ ├── OrderDetailDao.java │ │ ├── CommentDao.java │ │ ├── AddressDao.java │ │ ├── OrderDao.java │ │ ├── CategoryDao.java │ │ ├── GoodsDao.java │ │ └── UserDao.java │ │ ├── entity │ │ ├── Visit.java │ │ ├── Category.java │ │ ├── Cart.java │ │ ├── PageBean.java │ │ ├── OrderDetail.java │ │ ├── Comment.java │ │ └── Address.java │ │ └── test │ │ └── TestUtils.java │ └── resources │ ├── db.properties │ ├── log4j.properties │ └── mybatis-config.xml ├── README.md └── .gitignore /src/main/webapp/WEB-INF/views/jsp/index: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /src/main/webapp/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/logo.png -------------------------------------------------------------------------------- /src/main/webapp/css/images/ask.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ask.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/card.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/card.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/cart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/cart.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/comm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/comm.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/cry.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/cry.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/face.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/face.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/logo.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/tel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/tel.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/tips.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/tips.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/xx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/xx.png -------------------------------------------------------------------------------- /src/main/webapp/images/front/xx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/xx.png -------------------------------------------------------------------------------- /src/main/webapp/images/goods/ss.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/goods/ss.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/qrCode.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/qrCode.jpg -------------------------------------------------------------------------------- /src/main/webapp/css/images/answer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/answer.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/brand.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/brand.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/buying.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/buying.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/buying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/buying.png -------------------------------------------------------------------------------- /src/main/webapp/css/images/circle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/circle.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/dot_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/dot_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/error.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/error.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/linebg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/linebg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/right.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/share.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/share.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/logo.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/open.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/prt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/prt.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/sel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/sel.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ask.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ask.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/card.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/card.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/cart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/cart.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/comm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/comm.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/cry.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/cry.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/face.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/face.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/logo.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/tel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/tel.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/tips.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/tips.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/bx_loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/bx_loader.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/category.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/category.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/comment.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/comment.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/comments.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/comments.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/consult.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/consult.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/controls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/controls.png -------------------------------------------------------------------------------- /src/main/webapp/css/images/discuss.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/discuss.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/dlsel_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/dlsel_bg.jpg -------------------------------------------------------------------------------- /src/main/webapp/css/images/dlsort_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/dlsort_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/error_s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/error_s.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/grade_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/grade_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/help_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/help_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/inputbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/inputbg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/item_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/item_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/right_s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/right_s.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/serv_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/serv_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/service.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/service.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/shadow_b.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/shadow_b.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/shadow_r.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/shadow_r.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/sprites.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/sprites.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/sprites_2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/sprites_2.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/submit_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/submit_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/tips_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/tips_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/title_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/title_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/user_ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/user_ico.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/welcome.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/welcome.gif -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/not_now.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/not_now.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/admin/close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/close.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/error.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/error.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/form_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/form_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/loading.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/right.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/right_b.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/right_b.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/right_g.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/right_g.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/wrong.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/wrong.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/wrong_b.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/wrong_b.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/answer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/answer.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/brand.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/brand.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/buying.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/buying.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/buying.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/buying.png -------------------------------------------------------------------------------- /src/main/webapp/images/front/circle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/circle.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/comment.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/comment.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/consult.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/consult.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/discuss.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/discuss.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/dot_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/dot_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/error.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/error.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/error_s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/error_s.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/help_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/help_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/inputbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/inputbg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/item_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/item_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/linebg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/linebg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/right.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/right_s.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/right_s.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/serv_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/serv_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/service.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/service.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/share.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/share.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/sprites.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/sprites.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/tips_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/tips_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/welcome.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/welcome.gif -------------------------------------------------------------------------------- /src/main/webapp/images/goods/apple.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/goods/apple.jpg -------------------------------------------------------------------------------- /src/main/webapp/css/images/grab_expir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/grab_expir.png -------------------------------------------------------------------------------- /src/main/webapp/css/images/group_expir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/group_expir.png -------------------------------------------------------------------------------- /src/main/webapp/css/images/groupon_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/groupon_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/help_title.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/help_title.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/new_product.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/new_product.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/sublist_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/sublist_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/sel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/sel.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/wrap_box_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/wrap_box_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/admin_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/admin_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/header_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/header_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_add.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_asc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_asc.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_del.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_del.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_desc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_desc.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_down.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_down.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_edit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_edit.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_send.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_send.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_stop.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_stop.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_yes.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_yes.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/login_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/login_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/category.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/category.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/comments.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/comments.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/dlsel_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/dlsel_bg.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/front/dlsort_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/dlsort_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/grade_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/grade_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/shadow_b.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/shadow_b.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/shadow_r.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/shadow_r.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/sprites_2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/sprites_2.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/submit_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/submit_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/title_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/title_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/user_ico.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/user_ico.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/help_cont_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/help_cont_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/nopic_100_100.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/nopic_100_100.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/nopic_435_435.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/nopic_435_435.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/btn_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/btn_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/close.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/h2_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/h2_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_check.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_check.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_export.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_export.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_recover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_recover.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon_refresh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/icon_refresh.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/loginbox_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/loginbox_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/grab_expir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/grab_expir.png -------------------------------------------------------------------------------- /src/main/webapp/images/front/group_expir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/group_expir.png -------------------------------------------------------------------------------- /src/main/webapp/images/front/groupon_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/groupon_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/help_cont_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/help_cont_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/help_title.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/help_title.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/new_product.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/new_product.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/sublist_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/sublist_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/sel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/sel.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/wrap_box_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/wrap_box_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/dot_bg2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/dot_bg2.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/sbtn_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/sbtn_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/shopping.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/shopping.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/ucenter.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/ucenter.gif -------------------------------------------------------------------------------- /src/main/webapp/images/admin/org_shadow_btn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/admin/org_shadow_btn.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/nopic_100_100.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/nopic_100_100.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/nopic_435_435.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/nopic_435_435.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/btn_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/btn_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/close.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/h2_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/h2_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/caption_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/caption_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/favorites.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/favorites.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/search_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/search_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/tr_show_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/tr_show_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/uc_title_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/uc_title_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/uc_titlebg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/uc_titlebg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/dot_bg2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/dot_bg2.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/favorites.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/favorites.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/sbtn_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/sbtn_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/search_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/search_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/shopping.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/shopping.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/ucenter.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/ucenter.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/black_dot_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/black_dot_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/licurrent_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/licurrent_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/orange_dot_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/orange_dot_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/tr_show_tdbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/tr_show_tdbg.gif -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/uc_titleh2bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/uc_titleh2bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/caption_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/caption_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/tr_show_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/tr_show_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/uc_title_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/uc_title_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/uc_titlebg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/uc_titlebg.gif -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/util/OrderStatus.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.util; 2 | 3 | public enum OrderStatus { 4 | 已取消,待支付,待发货,待接收,完成 5 | } 6 | -------------------------------------------------------------------------------- /src/main/webapp/css/images/ucenter/list_table_thbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/css/images/ucenter/list_table_thbg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/black_dot_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/black_dot_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/licurrent_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/licurrent_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/orange_dot_bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/orange_dot_bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/tr_show_tdbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/tr_show_tdbg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/uc_titleh2bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/uc_titleh2bg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/front/ucenter/list_table_thbg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/front/ucenter/list_table_thbg.gif -------------------------------------------------------------------------------- /src/main/webapp/images/verifyCodeImg/verifyCodeImg_001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/images/verifyCodeImg/verifyCodeImg_001.png -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/0210379971d04bfbb72fffd4c057f5d7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/0210379971d04bfbb72fffd4c057f5d7.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/11051ca53bcf4bca9f0345c3d2d47e3a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/11051ca53bcf4bca9f0345c3d2d47e3a.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/118e1fb64ae84b7bb09df1cc2ebd1a5a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/118e1fb64ae84b7bb09df1cc2ebd1a5a.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/189398f6d8d240e4aca11151cd2c797f.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/189398f6d8d240e4aca11151cd2c797f.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/18b22734440e4048afed853c01b7f261.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/18b22734440e4048afed853c01b7f261.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/1c5bac8037774ccbb773519066e5dfbe.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/1c5bac8037774ccbb773519066e5dfbe.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/1dd453dbc5b744a2924f6b35712d9674.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/1dd453dbc5b744a2924f6b35712d9674.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/1e75a9a69c654af48d4446e0135e92f4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/1e75a9a69c654af48d4446e0135e92f4.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/2384471a0f364f68854a7e7affa35de2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/2384471a0f364f68854a7e7affa35de2.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/2e535dca9cc34de3a5f62b2c95bf5987.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/2e535dca9cc34de3a5f62b2c95bf5987.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/30357763a9d54e6b910549d3ff10e148.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/30357763a9d54e6b910549d3ff10e148.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/38229862cf384c2dac4a01b9bf2a4c50.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/38229862cf384c2dac4a01b9bf2a4c50.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/3925328f1a494a25b07af6df7ef43c9f.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/3925328f1a494a25b07af6df7ef43c9f.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/4b49b65c151040918e1dbeab1a4aa7c5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/4b49b65c151040918e1dbeab1a4aa7c5.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/4e8afa99eeb141ef9004cc9038ceab58.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/4e8afa99eeb141ef9004cc9038ceab58.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/4f8e4940937b47218f822de529e76005.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/4f8e4940937b47218f822de529e76005.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/5236001479314e7089015d6dd7d09ab4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/5236001479314e7089015d6dd7d09ab4.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/5275665e56c7423fa997f6810b97979d.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/5275665e56c7423fa997f6810b97979d.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/546504ff793a46a3a3208d10f64000b8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/546504ff793a46a3a3208d10f64000b8.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/59fdc933a7f247ac858cb867261b9ed5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/59fdc933a7f247ac858cb867261b9ed5.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/5b8992df2aa3481a9e458d3fc1c2871b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/5b8992df2aa3481a9e458d3fc1c2871b.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/645aa255d3a549e49844bd90d1294556.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/645aa255d3a549e49844bd90d1294556.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/6b2f511a856d4e40aebb0a58f4f66773.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/6b2f511a856d4e40aebb0a58f4f66773.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/6b93465af97a43fd9b870c5f668f8e2b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/6b93465af97a43fd9b870c5f668f8e2b.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/7332b01a45c8401a9949ff8a0ed191d3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/7332b01a45c8401a9949ff8a0ed191d3.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/75cdb85cfab645eda015c3b6870b1e0f.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/75cdb85cfab645eda015c3b6870b1e0f.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/76703f091d4249d29501dbe5d77c70fa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/76703f091d4249d29501dbe5d77c70fa.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/796a760fdfb44ab68433e2c2c70e5614.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/796a760fdfb44ab68433e2c2c70e5614.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/7acafbfda91948eb89f510ccebb08508.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/7acafbfda91948eb89f510ccebb08508.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/7fb25199a7244b7bb1323c3c66f323a2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/7fb25199a7244b7bb1323c3c66f323a2.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/841bcc0a2dfd4b82a77758eefeabf748.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/841bcc0a2dfd4b82a77758eefeabf748.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/8768784b052146b39923028cbe8b21a8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/8768784b052146b39923028cbe8b21a8.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/88b9908e4bf24c68b797a31f9a656a52.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/88b9908e4bf24c68b797a31f9a656a52.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/93f09e04495e4c20adc4b733e9b6ffa3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/93f09e04495e4c20adc4b733e9b6ffa3.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/9ecf0b5491ed4aa69c41de609d2ded30.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/9ecf0b5491ed4aa69c41de609d2ded30.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/9ef94aab96fe4dd2abfc69f0427385be.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/9ef94aab96fe4dd2abfc69f0427385be.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/abbfcb460a874202988f77a8e49fe281.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/abbfcb460a874202988f77a8e49fe281.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/b31cc0249ce24ee28c4aec3bed97234a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/b31cc0249ce24ee28c4aec3bed97234a.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/bfd2008fcbfb4cfcafc95983cf57dfec.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/bfd2008fcbfb4cfcafc95983cf57dfec.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/c0c2de4d766b40a7b7fb02cd2fd9428c.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/c0c2de4d766b40a7b7fb02cd2fd9428c.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/c1e956131bd94a42bd435b4d0ec34a8b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/c1e956131bd94a42bd435b4d0ec34a8b.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/c91578b32acf4f4daea0212e5f4e8595.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/c91578b32acf4f4daea0212e5f4e8595.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/d0e2bfc0d2d14ede90a4ed1a68d9690f.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/d0e2bfc0d2d14ede90a4ed1a68d9690f.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/d26ec22fd43d4d3cb7144276f907ee36.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/d26ec22fd43d4d3cb7144276f907ee36.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/d2f2f23e500c40cdb15f24d9f3edeba1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/d2f2f23e500c40cdb15f24d9f3edeba1.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/d5689808c5f542c181e7ba151a147711.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/d5689808c5f542c181e7ba151a147711.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/d5e9299a71ab4c0184494bfef495b9b2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/d5e9299a71ab4c0184494bfef495b9b2.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/d73c55041aaf4f39abbab79aaf9a0146.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/d73c55041aaf4f39abbab79aaf9a0146.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/e5adbeeb36534140b50c327f6fd71a6b.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/e5adbeeb36534140b50c327f6fd71a6b.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/e87efc71db024bda9a7ce5808a580fed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/e87efc71db024bda9a7ce5808a580fed.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/eef007cb8fde4004a17bd04d6ddef974.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/eef007cb8fde4004a17bd04d6ddef974.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/f254d719110b49fe9fa4a37a81bc0e56.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/f254d719110b49fe9fa4a37a81bc0e56.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/f46bc6caba774791a055aa21d5b66a2d.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/f46bc6caba774791a055aa21d5b66a2d.jpg -------------------------------------------------------------------------------- /src/main/webapp/goodsimage/fdc1486b9c08425a9804aeacc840480a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/goodsimage/fdc1486b9c08425a9804aeacc840480a.jpg -------------------------------------------------------------------------------- /src/main/webapp/useravatars/f23ef84ff50e467b84ce8ed9cc81c83e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/useravatars/f23ef84ff50e467b84ce8ed9cc81c83e.png -------------------------------------------------------------------------------- /src/main/webapp/js/bootstrap-3.3.4-dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/js/bootstrap-3.3.4-dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/webapp/js/bootstrap-3.3.4-dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/js/bootstrap-3.3.4-dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/webapp/js/bootstrap-3.3.4-dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/js/bootstrap-3.3.4-dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/webapp/js/bootstrap-3.3.4-dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StevenWash/xxshop/HEAD/src/main/webapp/js/bootstrap-3.3.4-dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/resources/db.properties: -------------------------------------------------------------------------------- 1 | user=root 2 | #password=huaxin0624 3 | password=mysql123 4 | driverClass=com.mysql.jdbc.Driver 5 | jdbcUrl=jdbc:mysql://localhost:3306/xxshop 6 | initialPoolSize=5 7 | maxPoolSize=20 8 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/VisitService.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service; 2 | 3 | import com.huaxin.xxshop.entity.PageBean; 4 | import com.huaxin.xxshop.entity.Visit; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * 地址实体类对应的服务接口 10 | * @author 没有蜡笔的小新 2015-12-23 11 | */ 12 | public interface VisitService { 13 | 14 | public List getAllVisit(); 15 | public PageBean getVisitsByPage(Integer page); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=DEBUG,Console 2 | 3 | #Console 4 | log4j.appender.Console = org.apache.log4j.ConsoleAppender 5 | log4j.appender.Console.layout = org.apache.log4j.PatternLayout 6 | log4j.appender.Console.layout.ConversionPattern = %d[%t] %-5p [%c] - %m%n 7 | 8 | log4j.logger.java.sql.ResultSet=INFO 9 | log4j.logger.org.apache=INFO 10 | log4j.logger.java.sql.Connection=DEBUG 11 | log4j.logger.java.sql.Statement=DEBUG 12 | log4j.logger.java.sql.PreparedStatement=DEBUG -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dto/CartListDTO.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dto; 2 | 3 | import com.huaxin.xxshop.entity.Cart; 4 | import java.io.Serializable; 5 | import java.util.List; 6 | 7 | public class CartListDTO implements Serializable { 8 | private List cartList; 9 | 10 | public CartListDTO() { super();} 11 | 12 | 13 | public List getCartList() { 14 | return cartList; 15 | } 16 | public void setCartList(List cartList) { 17 | this.cartList = cartList; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/controller/InitServlet.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.controller; 2 | 3 | import javax.servlet.ServletContext; 4 | import javax.servlet.ServletException; 5 | import javax.servlet.http.HttpServlet; 6 | 7 | @SuppressWarnings("serial") 8 | public class InitServlet extends HttpServlet { 9 | @Override 10 | public void init() throws ServletException { 11 | ServletContext context = getServletContext(); 12 | context.setAttribute("base", context.getContextPath()); 13 | context.setAttribute("site", "灵微网上商城"); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/CartDao.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dao; 2 | 3 | import com.huaxin.xxshop.entity.Cart; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface CartDao { 9 | 10 | /** 11 | * 添加购物车记录 12 | * @param cart 13 | */ 14 | public void addCart(Cart cart); 15 | 16 | /** 17 | * 查询当前用户的所有购物车记录 18 | * @param userId 19 | * @return 20 | */ 21 | public List getCartsByUserId(String userId); 22 | 23 | public void deleteById(String id); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/webapp/js/bootstrap-3.3.4-dist/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/VisitDao.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dao; 2 | 3 | import com.huaxin.xxshop.entity.PageBean; 4 | import com.huaxin.xxshop.entity.Visit; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | import java.util.List; 9 | import java.util.Map; 10 | 11 | 12 | @Repository 13 | public interface VisitDao { 14 | 15 | 16 | 17 | public List getAllVisit(); 18 | 19 | public List getVisitByPage(Map params); 20 | public int getVisitNum(); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/admin/header.jsp: -------------------------------------------------------------------------------- 1 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 2 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 3 | 6 |

7 | 退出管理 后台首页 商城首页 8 | 您好 ,当前身份  12 |

-------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/base.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dto/OrderDetailListDTO.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dto; 2 | 3 | import com.huaxin.xxshop.entity.OrderDetail; 4 | import java.io.Serializable; 5 | import java.util.List; 6 | 7 | public class OrderDetailListDTO implements Serializable { 8 | List orderDetailList; 9 | 10 | public OrderDetailListDTO() { 11 | super(); 12 | } 13 | 14 | public List getOrderDetailList() { 15 | return orderDetailList; 16 | } 17 | 18 | public void setOrderDetailList(List orderDetailList) { 19 | this.orderDetailList = orderDetailList; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/footer.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/CartService.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service; 2 | 3 | import com.huaxin.xxshop.entity.Cart; 4 | 5 | import java.util.List; 6 | 7 | public interface CartService { 8 | 9 | /** 10 | * 查询当前用户的所有购物车记录 11 | * @param userId 12 | * @return 13 | */ 14 | List getCartsByUserId(String userId); 15 | 16 | /** 17 | * 添加购物车记录 18 | * @param userId 19 | * @param goodsId 20 | * @param num 21 | * @param price 22 | */ 23 | public void addCart(String userId, String goodsId, int num, float price); 24 | 25 | /** 26 | * 删除购物车记录 27 | * @param id 28 | */ 29 | public void deleteById(String id); 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/mapper/VisitMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 12 | 13 | 14 | 18 | 19 | 20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/CommentService.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service; 2 | 3 | import com.huaxin.xxshop.entity.Comment; 4 | 5 | import java.util.List; 6 | 7 | public interface CommentService { 8 | 9 | public List getCommentsByGoodsId(String goodsId); 10 | 11 | public List getCommentsByOwnerId(String ownerId); 12 | 13 | public void addComment(Comment comment); 14 | 15 | /** 16 | * 查询数据库中的所有评价 17 | * @return 18 | */ 19 | public List getComments(); 20 | 21 | /** 22 | * 按评论id查找评论 23 | * @param commentId 24 | * @return 25 | */ 26 | public Comment getCommentById(String commentId); 27 | 28 | public void deleteById(String commentId); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/OrderDetailDao.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dao; 2 | 3 | import java.util.List; 4 | import com.huaxin.xxshop.entity.OrderDetail; 5 | import org.springframework.stereotype.Repository; 6 | 7 | /** 8 | * OrderDetail实体类对应的数据库访问接口 9 | * @author 没有蜡笔的小新 2015-12-29 10 | */ 11 | @Repository 12 | public interface OrderDetailDao { 13 | 14 | /** 15 | * 增加一个OrderDetail对象 16 | * @param orderDetail 要增加的订单详细信息实体 17 | */ 18 | public void addOrderDetail(OrderDetail orderDetail); 19 | 20 | /** 21 | * 更新一个订单详细信息 22 | * @param orderDetail 要更新的订单详细信息实体 23 | */ 24 | public void updateOrderDetail(OrderDetail orderDetail); 25 | 26 | /** 27 | * 通过Order的id来得到这个order所包含的所有的orderDetail 28 | * @param orderId 29 | * @return 30 | */ 31 | public List getOrderDetailByOrderId(String orderId); 32 | } 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # XXShop 2 | 3 | ## Introduce 4 | 这是一个基于Spring+Struts+Mybatis的B2C电子商务网站,以销售电子类产品为主要原型。 5 | 可以通过在后台登录之后的界面添加相应的商品类别来扩展为任意的B2C网站。 6 | 7 | ## Resource 8 | 9 | 所有的代码文件都在src目录下,主要包括的就是java、Resource两个目录,在java目录下, 10 | 主要就是以下的结构: 11 | 12 | - dao(所有的数据库操作,基于Mybatis实现) 13 | - entity(所有的实体类信息,POJO) 14 | - service(所有的系统服务都,主要有Spring就行事务的管理) 15 | - util(工具包) 16 | - web(主要是作为前端控制器,由struts实现) 17 | 18 | 在resource目录下的文件结构如下: 19 | 20 | - mysql/xxshop.sql(存放创建数据库的sql文件,并且包含了相关的数据) 21 | - db.properties(存放的是数据库的配置文件) 22 | - log4j.properties(存放的是日志的配置文件) 23 | - mybatis-config.xml(存放的是mybatis关于数据库的配置文件) 24 | 25 | ## Quick Start 26 | 27 | 直接使用git将代码clone到本地: 28 | ``` 29 | git clone https://github.com/StevenWash/xxshop.git 30 | ``` 31 | 然后将项目直接用Maven项目导入到IDEA中,等待依赖包的下载,在resource目录下找到xxshop.sql文件,将其导入到自己 32 | 本地的数据库中。 33 | 34 | 在本地的数据库创建完成之后,在db.properties中将相关的信息修改为自己的数据库的相关 35 | 信息即可。 36 | 37 | ## Thanks 38 | 39 | [CSDN博客](http://blog.csdn.net/hx0624_csdn) 40 | QQ : 862863758 41 | 42 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/admin/left.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/CommentDao.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dao; 2 | 3 | import com.huaxin.xxshop.entity.Comment; 4 | import java.util.List; 5 | 6 | public interface CommentDao { 7 | 8 | /** 9 | * 获得针对目标Id的评论 10 | * @param targetId 11 | * @return 12 | */ 13 | public List getCommentsByTargetId(String targetId); 14 | 15 | /** 16 | * 获得传入用户的评论列表 17 | * @param ownerId 18 | * @return 19 | */ 20 | public List getCommentsByOwnerId(String ownerId); 21 | 22 | /** 23 | * 增加评价 24 | * @param comment 25 | */ 26 | public void addComment(Comment comment); 27 | 28 | /** 29 | * 获得按时间排序的所有评价 30 | * 时间为按照"年月日-时分秒"格式的字符串,字符串排序即时间排序 31 | * @return 32 | */ 33 | public List getCommentsInOrder(); 34 | 35 | /** 36 | * 按id查询评论id 37 | * @param commentId 38 | * @return 39 | */ 40 | public Comment getCommentById(String commentId); 41 | 42 | public void deleteById(String commentId); 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/AddressService.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service; 2 | 3 | import java.util.List; 4 | 5 | import com.huaxin.xxshop.entity.Address; 6 | 7 | /** 8 | * 地址实体类对应的服务接口 9 | * @author 没有蜡笔的小新 2015-12-23 10 | */ 11 | public interface AddressService { 12 | 13 | /** 14 | * 添加地址 15 | * @param address 16 | */ 17 | public void addAddress(Address address); 18 | 19 | /** 20 | * 得到当前用户的所有收货地址 21 | * @param userId 当前用户的id 22 | * @return 返回地址的集合 23 | */ 24 | public List
getAddress(String userId); 25 | 26 | /** 27 | * 得到当前id的地址信息 28 | * @param addressId 地址记录的id 29 | * @return 当前id的地址信息 30 | */ 31 | public Address getAddressById(String addressId); 32 | 33 | /** 34 | * 设置当前的地址是否为默认地址 35 | * @param address 36 | */ 37 | public void setDefault(Address address); 38 | 39 | /** 40 | * 删除地址信息 41 | * @param address 需要删除的地址实体类对象 42 | */ 43 | public void deleteAddress(Address address); 44 | public void deleteAddress(String addressId); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/entity/Visit.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Visit implements Serializable{ 6 | private String id; 7 | private String ip; 8 | private String userName; 9 | private String loginTime; 10 | 11 | public Visit(){super();} 12 | 13 | public String getId() { 14 | return id; 15 | } 16 | 17 | public void setId(String id) { 18 | this.id = id; 19 | } 20 | 21 | public String getIp() { 22 | return ip; 23 | } 24 | 25 | public void setIp(String ip) { 26 | this.ip = ip; 27 | } 28 | 29 | public String getUserName() { 30 | return userName; 31 | } 32 | 33 | public void setUserName(String userName) { 34 | this.userName = userName; 35 | } 36 | 37 | public String getLoginTime() { 38 | return loginTime; 39 | } 40 | 41 | public void setLoginTime(String loginTime) { 42 | this.loginTime = loginTime; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/entity/Category.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | /** 7 | * 商品分类的实体类 8 | * 9 | * @author 没有蜡笔的小新 2015-12-24 10 | */ 11 | public class Category implements Serializable { 12 | private String id; 13 | private String name; 14 | private int goodsNum; 15 | //为了在得到类别的时候得到该类别下面的商品 16 | private List goodses; 17 | 18 | public Category() { 19 | super(); 20 | } 21 | 22 | public String getId() { 23 | return id; 24 | } 25 | 26 | public void setId(String id) { 27 | this.id = id; 28 | } 29 | 30 | public String getName() { 31 | return name; 32 | } 33 | 34 | public void setName(String name) { 35 | this.name = name; 36 | } 37 | 38 | public int getGoodsNum() { 39 | return goodsNum; 40 | } 41 | 42 | public void setGoodsNum(int goodsNum) { 43 | this.goodsNum = goodsNum; 44 | } 45 | 46 | 47 | public List getGoodses() { 48 | return goodses; 49 | } 50 | 51 | public void setGoodses(List goodses) { 52 | this.goodses = goodses; 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/AddressDao.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dao; 2 | 3 | import java.util.List; 4 | import com.huaxin.xxshop.entity.Address; 5 | import org.springframework.stereotype.Repository; 6 | 7 | /** 8 | * 地址实体类的数据访问接口 9 | * @author 没有蜡笔的小新 2015-12-23 10 | */ 11 | @Repository 12 | public interface AddressDao { 13 | 14 | /** 15 | * 添加一个地址 16 | * @param address 地址实体类对应的对象 17 | */ 18 | public void addAddress(Address address); 19 | 20 | /** 21 | * 得到当前登录用户的所有收货地址 22 | * @param userId 当前在线的用户id 23 | * @return 地址的集合 24 | */ 25 | public List
getAddress(String userId); 26 | 27 | /** 28 | * 将地址为id的地址信息设置为一条默认的地址信息 29 | * @param id 需要设置为默认地址的id 30 | */ 31 | public void setDefault(String id); 32 | 33 | /** 34 | * 将当前的用户所有的默认地址信息设置为非默认的地址信息 35 | * @param userId 当前用户的userId 36 | */ 37 | public void setNotDefault(String userId); 38 | 39 | /** 40 | * 删除地址信息 41 | * @param id 当前需要删除的地址id 42 | */ 43 | public void deleteAddress(String id); 44 | 45 | /** 46 | * 47 | * @param addressId 48 | * @return 49 | */ 50 | public Address getAddressById(String addressId); 51 | } 52 | -------------------------------------------------------------------------------- /src/main/resources/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/OrderDao.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dao; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import com.huaxin.xxshop.entity.Order; 7 | import org.springframework.stereotype.Repository; 8 | 9 | /** 10 | * Order实体类对应的数据访问接口 11 | * @author 没有蜡笔的小新 2015-12-29 12 | */ 13 | @Repository 14 | public interface OrderDao { 15 | 16 | /** 17 | * 增加一个Order 18 | * @param order 需要增加的订单实体 19 | */ 20 | public void addOrder(Order order); 21 | 22 | /** 23 | * 查询订单的数量 24 | * @param order 25 | * @return 订单数量 26 | */ 27 | public int getOrderNum(Order order); 28 | 29 | /** 30 | * 查询订单的信息 31 | * @param id 订单号 32 | * @return 查询到的订单实体 33 | */ 34 | public Order getOrder(String id); 35 | 36 | 37 | /** 38 | * 用于分页查询 39 | * @param params 40 | * @return 41 | */ 42 | public List getOrderByPage(Map params); 43 | 44 | /** 45 | * 通过用户的id得到当前用户的所有的订单信息 46 | * @param userId 47 | * @return 48 | */ 49 | public List getOrderByUserId(String userId); 50 | 51 | /** 52 | * 更新订单信息 53 | * @param order 54 | */ 55 | public void updateOrder(Order order); 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/util/XXShopUtil.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.util; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.Date; 5 | import java.util.UUID; 6 | 7 | /** 8 | * 工具类,提供常用的工具方法 9 | * 10 | * @author 没有蜡笔的小新 2015-12-21 11 | */ 12 | public class XXShopUtil { 13 | 14 | /** 15 | * 使用UUID类提供的静态方法randomUUID() 得到一个id 16 | * UUID: A class that represents an immutable universally unique identifier (UUID). 17 | * A UUID represents a 128-bit value. 18 | * length: 32 19 | * @return 随机id,32位字符串 20 | */ 21 | public static String getId() { 22 | UUID uuid = UUID.randomUUID(); 23 | return uuid.toString().replace("-", ""); 24 | } 25 | 26 | /** 27 | * 得到当前的时间 28 | * @return 当前时间,格式为"yyyy-MM-dd HH:mm:ss" 29 | */ 30 | public static String getNow() { 31 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 32 | return sdf.format(new Date()); 33 | } 34 | 35 | /** 36 | * 得到商品的货号,用时间作为产生的方法 37 | * @return 18位商品货号,格式为"yyyyMMddHHmmssms" 38 | */ 39 | public static String getGoodsNo() { 40 | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssms"); 41 | return sdf.format(new Date()); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/usercenter/account_log.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 账户余额_${site} 9 | 10 | 15 | 16 | 17 |
18 | 19 | 20 | 21 |
22 | 23 |
24 |
25 | 26 |
27 | 28 |
29 |

30 | 账户余额:${user.money} 31 |

32 |
33 |
34 |
35 | 36 | 37 |
38 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/usercenter/user_avatar.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 个人中心_${site} 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 |
17 | 18 |
19 |
20 | 您好,${sessionScope.user.name} 21 | 欢迎回来! 22 |
23 |
24 |

用户信息

25 |
26 |
27 | 28 | 29 |
30 |
31 |
32 |
33 |
34 | 35 | 36 |
37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/controller/VerifyCodeAction.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.controller; 2 | 3 | import com.huaxin.xxshop.util.VerifyCodeUtil; 4 | import org.apache.struts2.interceptor.SessionAware; 5 | 6 | import java.awt.image.BufferedImage; 7 | import java.io.BufferedOutputStream; 8 | import java.io.IOException; 9 | import java.util.Map; 10 | 11 | public class VerifyCodeAction implements SessionAware { 12 | 13 | Map session; 14 | BufferedOutputStream outputStream; 15 | 16 | public String execute() { 17 | VerifyCodeUtil vc = new VerifyCodeUtil(); 18 | BufferedImage image = vc.getImage(); 19 | try { 20 | VerifyCodeUtil.output(image, outputStream); 21 | } catch (IOException e) { 22 | // TODO Auto-generated catch block 23 | e.printStackTrace(); 24 | } 25 | 26 | session.put("vCode", vc.getText()); 27 | return "success"; 28 | } 29 | 30 | @Override 31 | public void setSession(Map arg0) { 32 | this.session = arg0; 33 | } 34 | 35 | public BufferedOutputStream getOutputStream() { 36 | return outputStream; 37 | } 38 | 39 | public void setOutputStream(BufferedOutputStream outputStream) { 40 | this.outputStream = outputStream; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/CategoryService.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service; 2 | 3 | import java.util.List; 4 | 5 | import com.huaxin.xxshop.entity.Category; 6 | 7 | /** 8 | * 商品分类的服务接口 9 | * @author 没有蜡笔的小新 10 | * 11 | */ 12 | public interface CategoryService { 13 | 14 | /** 15 | * 添加一个商品分类 16 | * @param category 分类的实体类对象 2015-12-24 17 | */ 18 | public void addCategory(Category category); 19 | 20 | /** 21 | * 得到当前所有的分类 22 | * @return 返回所有分类的集合 23 | */ 24 | public List getCategories(); 25 | 26 | /** 27 | * 通过名字得到当前的分类实体 28 | * @param name 当前的名字 29 | * @return 30 | */ 31 | public boolean getCategoryByName(String name); 32 | 33 | /** 34 | * 通过分类的id删除分类 35 | * @param id 分类的id 36 | */ 37 | public void deleteCategory(String id); 38 | 39 | /** 40 | * 通过id来修改当前的商品分类的属性 41 | * @param id 当前商品的商品ida 42 | */ 43 | public void updateCategory(String id, String name); 44 | 45 | /** 46 | * 主要为首页来得到Categories 47 | * @return 带有Categories 的集合List 48 | */ 49 | public List getCategoriesForIndex(); 50 | 51 | /** 52 | * 通过类别的id来得到当前类别信息 53 | * @param id 某一个类别的id 54 | * @return 返回当前类别的实体类 55 | */ 56 | public Category getCategoryById(String id); 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/mapper/AddressMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | insert into shop_address 8 | values(#{id},#{userId},#{accept},#{zip,jdbcType=VARCHAR},#{phoneNum,jdbcType=VARCHAR},#{mobile,jdbcType=VARCHAR},#{province},#{city},#{area},#{address},#{isDefault}) 9 | 10 | 11 | 15 | 16 | 20 | 21 | 22 | 23 | update shop_address set isDefault='1' 24 | where id=#{id} 25 | 26 | 27 | 28 | 29 | update shop_address set isDefault='2' 30 | where userId=#{userId} and isDefault='1' 31 | 32 | 33 | 34 | 35 | delete from shop_address where id=#{id} 36 | 37 | 38 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/search_backup.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 34 | 35 | -------------------------------------------------------------------------------- /src/main/webapp/js/shopcar.js: -------------------------------------------------------------------------------- 1 | function add(goodsId, goodsNum) { 2 | var goods = { 3 | "goodsId" : goodsId, 4 | "goodsNum" : goodsNum 5 | }; 6 | var data 7 | if ($.cookie("shopcar") == null) {// 表明第一次加入到购物车 8 | data = []; 9 | data.push(goods); 10 | } else { 11 | // data = getCookie(); 12 | addGoods(data, goods); 13 | } 14 | $.cookie("shopcar", JSON.stringify(data)); 15 | } 16 | 17 | /* 从cookie中的到shopcar的值 */ 18 | function getCookie() { 19 | var goodses = $.cookie("shopcar"); 20 | if (goodses == null) { 21 | return []; 22 | } 23 | return JSON.parse(goodses); 24 | } 25 | 26 | /* 将goods添加到goodses中 */ 27 | function addGoods(goodses, goods) { 28 | for (var i = 0; i < goodses.length; i++) { 29 | if (goods.goodsId == goodses[i].goodsId) { 30 | goodses[i].goodsNum = parseInt(goodses[i].goodsNum) 31 | + parseInt(goods.goodsNum); 32 | return; 33 | } 34 | } 35 | goodses.push(goods); 36 | } 37 | /* 38 | * 将src的JSON数据加到target的JSON 中 39 | */ 40 | function addJSON(target, src) { 41 | for ( var p in src) { 42 | target[p] = src[p]; 43 | } 44 | } 45 | 46 | /** 47 | * 通过goodsId得到对应的goodsNum 48 | * @param goodses 49 | * @param goodsId 50 | * @returns 51 | */ 52 | function getGoodsNumById(goodses, goodsId) { 53 | for (var i = 0; i < goodses.length; i++) { 54 | if (goodsId == goodses[i].goodsId) { 55 | return goodses[i].goodsNum; 56 | } 57 | } 58 | 59 | } -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/impl/CartServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service.impl; 2 | 3 | import com.huaxin.xxshop.dao.CartDao; 4 | import com.huaxin.xxshop.entity.Cart; 5 | import com.huaxin.xxshop.service.CartService; 6 | import com.huaxin.xxshop.util.XXShopUtil; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | 12 | 13 | @Service("cartService") 14 | public class CartServiceImpl implements CartService { 15 | 16 | @Autowired 17 | private CartDao cartDao = null; 18 | 19 | /** 20 | * 查询当前用户的所有购物车记录 21 | * @param userId 22 | * @return 23 | */ 24 | @Override 25 | public List getCartsByUserId(String userId) { 26 | return cartDao.getCartsByUserId(userId); 27 | } 28 | 29 | /** 30 | * 31 | * @param userId 32 | * @param goodsId 33 | * @param num 34 | * @param price 35 | */ 36 | @Override 37 | public void addCart(String userId, String goodsId, int num, float price) { 38 | Cart cart = new Cart(); 39 | cart.setId(XXShopUtil.getId()); 40 | cart.setUserId(userId); 41 | cart.setGoodsId(goodsId); 42 | cart.setNum(num); 43 | cart.setPrice(price); 44 | cartDao.addCart(cart); 45 | } 46 | 47 | @Override 48 | public void deleteById(String id) { 49 | cartDao.deleteById(id); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/mapper/CategoryMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | insert into shop_category 8 | values(#{id},#{name},#{goodsNum}) 9 | 10 | 14 | 15 | 19 | 20 | 21 | 22 | delete from 23 | shop_category where id=#{id} 24 | 25 | 26 | 27 | 28 | update shop_category set name=#{name} where id=#{id} 29 | 30 | 31 | 32 | 33 | 34 | update shop_category set goodsNum=#{goodsNum} where id=#{id} 35 | 36 | 37 | 38 | 42 | 43 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/usercenter/left.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 48 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/CategoryDao.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dao; 2 | 3 | import java.util.List; 4 | import com.huaxin.xxshop.entity.Category; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | /** 9 | * 商品的分类实体类的数据访问接口 10 | * @author 没有蜡笔的小新 2015-12-24 11 | */ 12 | @Repository 13 | public interface CategoryDao { 14 | /** 15 | * 添一个Category实体类的对象 16 | * @param category 17 | */ 18 | public void addCategory(Category category); 19 | 20 | /** 21 | * 得到所有的商品分类 22 | * @return 返回所有商品分类对应的集合 23 | */ 24 | public List getCategories(); 25 | 26 | /** 27 | * 通过名字得到当前的分类实体 28 | * @param name 当前的名字 29 | * @return 30 | */ 31 | public int getCategoryByName(String name); 32 | 33 | /** 34 | * 通过分类的id删除分类 35 | * @param id 分类的id 36 | */ 37 | public void deleteCategory(String id); 38 | 39 | /** 40 | * 通过id来修改当前的商品分类的属性 41 | * @param id 42 | * @param name 商品的名称 43 | */ 44 | public void updateCategory(@Param("id") String id, 45 | @Param("name") String name); 46 | 47 | /** 48 | * 通过id来修改当前的商品分类的属性 49 | * @param id 50 | * @param goodsNum 商品的数量 51 | */ 52 | public void updateGoodsNum(@Param("id") String id, 53 | @Param("goodsNum") int goodsNum); 54 | 55 | /** 56 | * 通过类别的id来得到当前类别信息 57 | * @param id 某一个类别的id 58 | * @return 返回当前类别的实体类 59 | */ 60 | public Category getCategoryById(String id); 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/pay_suc.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 购物车_${site} 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 |
19 |
20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 36 | 40 | 41 | 42 |
支付成功
您现在可以去: 继续操作 >> 个人中心 >> 网站首页 38 | >> 39 |
43 |
44 |
45 |
46 | 47 | 48 |
49 | 50 | 51 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/test/TestUtils.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.test; 2 | 3 | import static com.huaxin.xxshop.util.XXShopUtil.*; 4 | import com.huaxin.xxshop.entity.Address; 5 | import com.huaxin.xxshop.service.AddressService; 6 | import com.huaxin.xxshop.service.impl.AddressServiceImpl; 7 | import org.junit.jupiter.api.Test; 8 | 9 | public class TestUtils { 10 | 11 | public static void main(String[] args) { 12 | String str = "/Users/yin/Documents/Git/GitHub/Local/xxshop/target/xxshop/"; 13 | String path = str.substring(0,str.lastIndexOf("target")); 14 | path += "src/main/webapp/goodsimage"; 15 | System.out.println(path); 16 | System.out.println("4fe197efa85d42a18a44fc5574b2db95".length()); 17 | } 18 | 19 | 20 | @Test 21 | public void testGetNow() { 22 | String str = getId(); 23 | System.out.println("length: "+str.length()+"\n"+str); 24 | 25 | } 26 | 27 | @Test 28 | public void testgetNow() { 29 | String now = getNow(); 30 | System.out.println("length: "+now.length()+"\n"+now); 31 | } 32 | 33 | @Test 34 | public void testGetGoodsNo() { 35 | String goodNo = getGoodsNo(); 36 | System.out.println("length: "+goodNo.length()+"\n"+goodNo); 37 | } 38 | 39 | @Test 40 | public void testGetAddressById(){ 41 | String addressId = "14a16cd98f4d4b879272d32937f08409"; 42 | AddressService addressService = new AddressServiceImpl(); 43 | Address address = addressService.getAddressById(addressId); 44 | System.out.println(address); 45 | } 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/mapper/CartMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | insert into shop_cart 24 | values(#{id},#{userId},#{goodsId},#{num},#{price}) 25 | 26 | 27 | 33 | 34 | 35 | delete from shop_cart where id=#{id} 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/OrderService.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import com.huaxin.xxshop.entity.Order; 7 | import com.huaxin.xxshop.entity.OrderDetail; 8 | import com.huaxin.xxshop.entity.PageBean; 9 | 10 | /** 11 | * 订单对应的服务层 12 | * @author 没有蜡笔的小新 2015-12-29 13 | */ 14 | public interface OrderService { 15 | 16 | /** 17 | * 加一个Order 18 | * @param order 需要增加的订单信息 19 | * @param orderDetails 需要进行增加的订单详细的信息 20 | */ 21 | public void addOrder(Order order, List orderDetails); 22 | 23 | /** 24 | * 更新Order和OrderDetail 25 | * @param order 需要更新的的订单信息 26 | * @param orderDetails 需要进行更新的订单详细的信息 27 | */ 28 | public void updateOrder(Order order, List orderDetails); 29 | 30 | /** 31 | * 通过参数得到一个含有Order实体类的PageBean 32 | * @param page 当前的页数 33 | * @param Order PageBean包含的实体类 34 | * @return 35 | */ 36 | public PageBean getOrderByPage(int page, Order order); 37 | 38 | /** 39 | * 查询订单的信息 40 | * @param id 订单号 41 | * @return 42 | */ 43 | public Order getOrder(String id); 44 | 45 | /** 46 | * 通过用户的id得到当前用户的所有的订单信息 47 | * @param userId 48 | * @return 49 | */ 50 | public List getOrderByUserId(String userId); 51 | 52 | /** 53 | * 通过用户的id得到相关的订单信息 54 | * @param userId 55 | * @return 含有订单信息的Map 56 | */ 57 | public Map getOrderInfoByUserId(String userId); 58 | 59 | /** 60 | * 通过Order的id来得到这个order所包含的所有的orderDetail 61 | * @param orderId 62 | * @return 63 | */ 64 | public List getOrderDetailByOrderId(String orderId); 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/search.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 42 | 43 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/controller/IndexAction.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.controller; 2 | 3 | import com.huaxin.xxshop.entity.Category; 4 | import com.huaxin.xxshop.entity.Goods; 5 | import com.huaxin.xxshop.service.CategoryService; 6 | import com.huaxin.xxshop.service.GoodsService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.ui.Model; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | 12 | import javax.servlet.ServletContext; 13 | import javax.servlet.http.HttpServletRequest; 14 | import javax.servlet.http.HttpSession; 15 | import java.util.List; 16 | 17 | import static org.apache.struts2.ServletActionContext.getServletContext; 18 | 19 | @Controller 20 | public class IndexAction { 21 | @Autowired 22 | public CategoryService categoryService; 23 | @Autowired 24 | public GoodsService goodsService; 25 | 26 | /** 27 | * 28 | * @param model 29 | * @param session 30 | * @return 31 | */ 32 | @RequestMapping("/index") 33 | public String execute(Model model, HttpSession session) { 34 | int MAX = 8; 35 | List hotGoodses = goodsService.getGoodsByRole(MAX); 36 | List goodsesLasted = goodsService.getGoodsBySellTime(MAX); 37 | List categories = categoryService.getCategoriesForIndex(); 38 | model.addAttribute("hotGoodses", hotGoodses); 39 | model.addAttribute("goodsesLasted", goodsesLasted); 40 | model.addAttribute("categories", categories); 41 | 42 | session.setAttribute("base", session.getServletContext().getContextPath()); 43 | session.setAttribute("site", "灵微网上商城"); 44 | return "index"; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/header.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 |
4 |

5 | 电子商务平台 6 |

7 | 19 |

20 | 21 | 22 | <%--${user.name}您好,欢迎您来到${site}购物![安全退出]--%> 23 | ${user.name}您好,欢迎来到${site}![安全退出] 24 | 25 | 26 | <%--[登录 --%> 27 | <%--免费注册]--%> 28 | [登录 29 | 免费注册] 30 | 31 | <%--登录--%> 32 | <%--免费注册]--%> 33 | 34 | <%--登录--%> 35 | <%--免费注册--%> 36 | 37 |

38 |
-------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/entity/Cart.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Cart implements Serializable { 6 | 7 | private String id; 8 | private String userId; 9 | private String goodsId; 10 | private int num; 11 | private float price; 12 | 13 | private Goods goods; 14 | 15 | public Cart() { super();} 16 | 17 | @Override 18 | public String toString() { 19 | return "Cart{" + 20 | "id='" + id + '\'' + 21 | ", userId='" + userId + '\'' + 22 | ", goodsId='" + goodsId + '\'' + 23 | ", num=" + num + 24 | ", price=" + price + 25 | ", goods=" + goods + 26 | '}'; 27 | } 28 | 29 | public String getId() { 30 | return id; 31 | } 32 | 33 | public void setId(String id) { 34 | this.id = id; 35 | } 36 | 37 | public String getUserId() { 38 | return userId; 39 | } 40 | 41 | public void setUserId(String userId) { 42 | this.userId = userId; 43 | } 44 | 45 | public String getGoodsId() { 46 | return goodsId; 47 | } 48 | 49 | public void setGoodsId(String goodsId) { 50 | this.goodsId = goodsId; 51 | } 52 | 53 | public int getNum() { 54 | return num; 55 | } 56 | 57 | public void setNum(int num) { 58 | this.num = num; 59 | } 60 | 61 | public float getPrice() { 62 | return price; 63 | } 64 | 65 | public void setPrice(float price) { 66 | this.price = price; 67 | } 68 | 69 | public Goods getGoods() { 70 | return goods; 71 | } 72 | 73 | public void setGoods(Goods goods) { 74 | this.goods = goods; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/mapper/OrderDetailMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | insert into 26 | shop_orderdetail 27 | values(#{id},#{orderId},#{goodsId},#{nums},#{payStatus},#{sendStatus},#{orderStatus},#{dealPrice}) 28 | 29 | 30 | 31 | update 32 | shop_orderdetail set 33 | paystatus=#{payStatus},orderstatus=#{orderStatus} 34 | where id=#{id} 35 | 36 | 37 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/impl/VisitServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service.impl; 2 | 3 | 4 | import com.huaxin.xxshop.dao.VisitDao; 5 | import com.huaxin.xxshop.entity.PageBean; 6 | import com.huaxin.xxshop.entity.Visit; 7 | import com.huaxin.xxshop.service.VisitService; 8 | import com.huaxin.xxshop.util.XXShopUtil; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | import java.util.HashMap; 13 | import java.util.List; 14 | import java.util.Map; 15 | 16 | @Service("visitService") 17 | public class VisitServiceImpl implements VisitService { 18 | 19 | @Autowired 20 | private VisitDao visitDao = null; 21 | 22 | 23 | @Override 24 | public List getAllVisit() { 25 | return visitDao.getAllVisit(); 26 | } 27 | 28 | public PageBean getVisitsByPage(Integer page) { 29 | int pageSize = 6; 30 | PageBean pageBean = new PageBean<>(); 31 | Map params = new HashMap<>(); 32 | params.put("indexPage", (page - 1) * pageSize); 33 | params.put("pageSize", pageSize); 34 | 35 | List data = visitDao.getVisitByPage(params); 36 | System.out.println(params); 37 | System.out.println(data); 38 | 39 | pageBean.setData(data); 40 | pageBean.setPage(page); 41 | pageBean.setPageSize(pageSize); 42 | pageBean.setActualPageSize(data.size()); 43 | int totalNum = visitDao.getVisitNum(); 44 | pageBean.setTotalNum(totalNum); 45 | int totalPage = totalNum % pageSize == 0 ? totalNum / pageSize 46 | : totalNum / pageSize + 1; 47 | pageBean.setTotalPage(totalPage); 48 | return pageBean; 49 | } 50 | } 51 | 52 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/entity/PageBean.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.List; 5 | 6 | /** 7 | * 封装每一页数据的实体类 8 | * @author 没有蜡笔的小新 2015-12-26 9 | */ 10 | public class PageBean implements Serializable { 11 | public List data;// 数据 12 | private int pageSize;// 每一页的数据 13 | private int actualPageSize;// 实际每页多少条记录 14 | private int page;// 当前第几页 15 | private int totalPage;// 总共多少页 16 | private int totalNum;// 总记录数 17 | 18 | 19 | public PageBean() { 20 | super(); 21 | } 22 | 23 | public List getData() { 24 | return data; 25 | } 26 | 27 | public void setData(List data) { 28 | this.data = data; 29 | } 30 | 31 | public int getPageSize() { 32 | return pageSize; 33 | } 34 | 35 | public void setPageSize(int pageSize) { 36 | this.pageSize = pageSize; 37 | } 38 | 39 | public int getActualPageSize() { 40 | return actualPageSize; 41 | } 42 | 43 | public void setActualPageSize(int actualPageSize) { 44 | this.actualPageSize = actualPageSize; 45 | } 46 | 47 | public int getPage() { 48 | return page; 49 | } 50 | 51 | public void setPage(int page) { 52 | this.page = page; 53 | } 54 | 55 | public int getTotalPage() { 56 | return totalPage; 57 | } 58 | 59 | public void setTotalPage(int totalPage) { 60 | this.totalPage = totalPage; 61 | } 62 | 63 | public int getTotalNum() { 64 | return totalNum; 65 | } 66 | 67 | public void setTotalNum(int totalNum) { 68 | this.totalNum = totalNum; 69 | } 70 | 71 | @Override 72 | public String toString() { 73 | return "PageBean{" + 74 | "data=" + data + 75 | ", pageSize=" + pageSize + 76 | ", actualPageSize=" + actualPageSize + 77 | ", page=" + page + 78 | ", totalPage=" + totalPage + 79 | ", totalNum=" + totalNum + 80 | '}'; 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/usercenter/online_recharge.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 在线充值_${site} 9 | 10 | 15 | 16 | 17 |
18 | 19 | 20 | 21 |
22 | 23 | 24 |
25 |
26 | 27 |
28 |
29 |
31 | 33 | 34 | 35 | 36 | 37 | 39 | 40 | 41 | 42 | 43 | 46 | 47 | 48 | 49 | 50 | 52 | 53 | 54 |
充值金额:
选择充值方式: 45 | ,手续费:0.00%
55 |
56 |
57 |
58 |
59 | 60 | 61 |
62 | 63 | 64 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/usercenter/update_failed.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@ page contentType="text/html;charset=utf-8"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 地址管理_${site} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 21 | 27 | 28 | 29 |
30 | 31 | 32 | 33 |
34 | 35 |
36 |
37 |
38 | 39 |
40 |
41 |
42 |
43 | 个人信息 44 |
45 |

原始密码输入错误,修改失败……

46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | 11 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 12 | hs_err_pid* 13 | 14 | # 15 | # Maven .gitignore 16 | # https://github.com/github/gitignore/blob/master/Maven.gitignore 17 | # 18 | target/ 19 | pom.xml.tag 20 | pom.xml.releaseBackup 21 | pom.xml.versionsBackup 22 | pom.xml.next 23 | release.properties 24 | dependency-reduced-pom.xml 25 | buildNumber.properties 26 | .mvn/timing.properties 27 | 28 | # 29 | # Eclipse .gitignore 30 | # https://github.com/github/gitignore/blob/master/Global/Eclipse.gitignore 31 | # 32 | .metadata 33 | bin/ 34 | tmp/ 35 | *.tmp 36 | *.bak 37 | *.swp 38 | *~.nib 39 | local.properties 40 | .settings/ 41 | .loadpath 42 | .recommenders 43 | .checkstyle 44 | 45 | # Eclipse Core 46 | .project 47 | 48 | # External tool builders 49 | .externalToolBuilders/ 50 | 51 | # Locally stored "Eclipse launch configurations" 52 | *.launch 53 | 54 | # PyDev specific (Python IDE for Eclipse) 55 | *.pydevproject 56 | 57 | # CDT-specific (C/C++ Development Tooling) 58 | .cproject 59 | 60 | # JDT-specific (Eclipse Java Development Tools) 61 | .classpath 62 | 63 | # Java annotation processor (APT) 64 | .factorypath 65 | 66 | # PDT-specific (PHP Development Tools) 67 | .buildpath 68 | 69 | # sbteclipse plugin 70 | .target 71 | 72 | # Tern plugin 73 | .tern-project 74 | 75 | # TeXlipse plugin 76 | .texlipse 77 | 78 | # STS (Spring Tool Suite) 79 | .springBeans 80 | 81 | # Code Recommenders 82 | .recommenders/ 83 | 84 | # SonarLint folders 85 | .sonarlint/ 86 | 87 | # IDEA 88 | .idea/ 89 | **/*.iml 90 | 91 | # 92 | # Embedded derby DB 93 | # 94 | derby.log 95 | 96 | # 97 | # Velocity 98 | # 99 | velocity.log 100 | 101 | # 102 | # Os X index files 103 | # 104 | .DS_Store 105 | 106 | # 107 | # vagrant runtime environment 108 | # 109 | .vagrant 110 | 111 | # Visual Studio Code project settings 112 | .vscode 113 | 114 | .gitignore 115 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/impl/AddressServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import com.huaxin.xxshop.dao.AddressDao; 6 | import com.huaxin.xxshop.entity.Address; 7 | import com.huaxin.xxshop.service.AddressService; 8 | import com.huaxin.xxshop.util.XXShopUtil; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | @Service("addressService") 13 | public class AddressServiceImpl implements AddressService { 14 | 15 | @Autowired 16 | private AddressDao addressDao = null; 17 | 18 | @Override 19 | public void addAddress(Address address) { 20 | address.setId(XXShopUtil.getId()); 21 | if (address.getIsDefault() == null) { 22 | // 是设置为一个约定的数,表示不是默认值 23 | address.setIsDefault("2"); 24 | } else { 25 | addressDao.setNotDefault(address.getUserId()); 26 | } 27 | addressDao.addAddress(address); 28 | } 29 | 30 | @Override 31 | public List
getAddress(String userId) { 32 | return addressDao.getAddress(userId); 33 | } 34 | 35 | @Override 36 | public Address getAddressById(String addressId) { 37 | return addressDao.getAddressById(addressId); 38 | } 39 | 40 | @Override 41 | public void setDefault(Address address) { 42 | // TODO Auto-generated method stub 43 | // 此处 44 | // 首先将该用户的所有默认地址都设置为非默认 45 | // 最终该用户所有地址均为非默认 46 | addressDao.setNotDefault(address.getUserId()); 47 | // 再判断如果操作是设置默认,则将对应的地址信息设置为默认即可,若操作是取消默认,则已经取消所有的默认 48 | 49 | if (address.getIsDefault().equals("1")) { 50 | // 设为默认 51 | addressDao.setDefault(address.getId()); 52 | } 53 | } 54 | 55 | 56 | @Override 57 | public void deleteAddress(Address address) { 58 | addressDao.deleteAddress(address.getId()); 59 | } 60 | @Override 61 | public void deleteAddress(String addressId) { 62 | addressDao.deleteAddress(addressId); 63 | } 64 | 65 | // getter 和setter 66 | public AddressDao getAddressDao() { 67 | return addressDao; 68 | } 69 | public void setAddressDao(AddressDao addressDao) { 70 | this.addressDao = addressDao; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/impl/CommentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service.impl; 2 | 3 | import com.huaxin.xxshop.dao.CommentDao; 4 | import com.huaxin.xxshop.entity.Comment; 5 | import com.huaxin.xxshop.service.CommentService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import javax.annotation.Resource; 10 | import java.util.List; 11 | @Service("commentService") 12 | public class CommentServiceImpl implements CommentService { 13 | 14 | /** 15 | * 添加评论 16 | * @param comment 17 | */ 18 | @Override 19 | public void addComment(Comment comment) { 20 | commentDao.addComment(comment); 21 | } 22 | 23 | /** 24 | * 查询所有评论 25 | * @return 26 | */ 27 | @Override 28 | public List getComments() { 29 | return commentDao.getCommentsInOrder(); 30 | } 31 | 32 | /** 33 | * 按id查找评论 34 | * @param commentId 35 | * @return 36 | */ 37 | @Override 38 | public Comment getCommentById(String commentId) { 39 | return commentDao.getCommentById(commentId); 40 | } 41 | 42 | /** 43 | * 删除某条评价 44 | * @param commentId 评价在数据库里的id 45 | */ 46 | @Override 47 | public void deleteById(String commentId) { 48 | Comment comment = commentDao.getCommentById(commentId); 49 | // 删除针对商品的评价(statusNum=0) 50 | // 需要删除对该回复的回复 51 | if(comment.getStatusnum() == 0) { 52 | List reCommentList = commentDao.getCommentsByTargetId(commentId); 53 | for(Comment c : reCommentList) { 54 | commentDao.deleteById(c.getId()); 55 | } 56 | } 57 | commentDao.deleteById(commentId); 58 | } 59 | 60 | 61 | @Autowired 62 | private CommentDao commentDao = null; 63 | 64 | @Override 65 | public List getCommentsByGoodsId(String goodsId) { 66 | return commentDao.getCommentsByTargetId(goodsId); 67 | } 68 | 69 | @Override 70 | public List getCommentsByOwnerId(String ownerId) { 71 | return commentDao.getCommentsByOwnerId(ownerId); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service; 2 | 3 | import java.util.List; 4 | import com.huaxin.xxshop.entity.User; 5 | import org.springframework.stereotype.Service; 6 | 7 | /** 8 | * 用户的服务接口 9 | * @author 没有蜡笔的小新 2015-12-21 10 | */ 11 | public interface UserService { 12 | 13 | public void addLogin(User user); 14 | public void updateEmail(String id, String email); 15 | public void updatePhoneNum(String id, String phoneNum); 16 | public void updatePassword(String id, String password); 17 | 18 | /** 19 | * 用于进行用户注册的操作 20 | * @param user 一个用户的实体类 21 | */ 22 | public void register(User user); 23 | 24 | /** 25 | * 用于进行用户的登陆操作 26 | * @param name 用户的登录名 27 | * @param password 用户密码 28 | * @return 登陆成功后返回用户的实体类对象 29 | */ 30 | // public User login(String name, String password); 31 | public User findUser(String name, String password); 32 | 33 | /** 34 | * 检验用户是否存在 35 | * @param name 通过名字 36 | * @return 返回true or false 37 | */ 38 | public boolean isexist(String name); 39 | 40 | /** 41 | * 通过id修改用户的头像 42 | * @param id 用户的id 43 | * @param avar 用户的头像链接 44 | */ 45 | public void updateAvatar(String id, String avar); 46 | 47 | /** 48 | * 通过id修改用户的money 49 | * @param id 用户的id 50 | * @param money 需要更新的钱 51 | */ 52 | public void updateMoney(String id, float money); 53 | 54 | /** 55 | * 得到所有的用户 56 | * @return 含有所有用户的集合 57 | */ 58 | public List getAllUser(); 59 | 60 | /** 61 | * 通过user的id来删除用户 62 | * @param id 63 | */ 64 | public void deleteUser(String id); 65 | 66 | /** 67 | * 通过user的id来获取用户 68 | * @param id 69 | */ 70 | public User getUser(String id); 71 | 72 | /** 73 | * 实现更新某一位用户的status 74 | * @param id 当前需要更新的用户id 75 | * @param status 更新之后的status 76 | */ 77 | public void updateStatus(String id, int status); 78 | 79 | /** 80 | * 更新会员信息 81 | * 可能包括:1.身份role;2.状态status;3.密码password 82 | * @param memberId 83 | * @param status 84 | * @param memberId1 85 | * @param password 86 | * @param role 87 | */ 88 | public void updateMember(String memberId, Integer status, String memberId1, String password, String role); 89 | } 90 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/admin/comment_view.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 后台管理 8 | 9 | 10 | 11 | 12 |
13 | 16 |
17 | 20 | 21 |
22 | 23 |
24 |
25 |
26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 42 | <%----%> 43 | 44 | 45 | 46 | 47 | 48 | <%--考虑贴图???--%> 49 |
评论人:${comment.user.name}
评价时间:${comment.createtime}
评价商品:${comment.goods.name}${comment.goods.name}
评价内容:${comment.remark}
50 |
51 |
52 |
53 |
54 |
55 |
56 | 57 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/admin/category_add.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 后台管理 7 | 8 | 9 | 10 | 11 | 12 |
13 | 16 | 17 |
18 | 21 | 22 |
23 | 24 |
25 |
26 |
27 |
28 | 29 | 30 | 31 | 32 | 33 | 36 | 37 | 38 | 39 | 42 | 43 |
分类名称:
44 |
45 |
46 |
47 |
48 |
49 |
50 | 51 | 52 | 53 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/help.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 |
3 |
4 |
5 |
6 | 购物指南 7 |
8 |
9 | 订单状态 10 |
11 |
12 | 交易条款 13 |
14 |
15 | 积分说明 16 |
17 |
18 | 会员制度 19 |
20 |
21 | 购物流程 22 |
23 |
24 |
25 |
26 | 支付帮助 27 |
28 |
29 | 支付帮助 30 |
31 |
32 | 余额支付 33 |
34 |
35 | 银行电汇 36 |
37 |
38 | 在线支付 39 |
40 |
41 | 货到付款 42 |
43 |
44 |
45 |
46 | 配送帮助 47 |
48 |
49 | EMS/邮政普包 50 |
51 |
52 | 商品验货与签收 53 |
54 |
55 | 加急快递 56 |
57 |
58 | 上门自提 59 |
60 |
61 | 配送范围及运费 62 |
63 |
64 |
65 |
66 | 售后服务 67 |
68 |
69 | 售后服务 70 |
71 |
72 | 发票制度 73 |
74 |
75 | 余额的使用与提现 76 |
77 |
78 | 退/换货注意事项 79 |
80 |
81 | 退货说明 82 |
83 |
84 | 换货说明 85 |
86 |
87 |
88 |
89 | 帮助信息 90 |
91 |
92 | 友情链接 93 |
94 |
95 | 诚聘英才 96 |
97 |
98 | 联系客服 99 |
100 |
101 | 退订邮件/短信 102 |
103 |
104 | 找回密码 105 |
106 |
107 | 常见问题 108 |
109 |
110 | 关于我们 111 |
112 |
113 |
114 |
-------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 用户登录_${site} 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 |
17 |
18 |

已注册用户,请登录

19 |

欢迎来到我们的网站,如果您已是本站会员请登录

20 | 67 |
68 |
69 | 70 |
71 | 72 | 73 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/impl/CategoryServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import com.huaxin.xxshop.dao.CategoryDao; 6 | import com.huaxin.xxshop.dao.GoodsDao; 7 | import com.huaxin.xxshop.entity.Category; 8 | import com.huaxin.xxshop.service.CategoryService; 9 | import com.huaxin.xxshop.util.XXShopUtil; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.stereotype.Service; 12 | 13 | /** 14 | * 商品分类服务接口的实现 15 | * 16 | * @author 没有蜡笔的小新 2015-12-24 17 | */ 18 | @Service("categoryService") 19 | public class CategoryServiceImpl implements CategoryService { 20 | @Autowired 21 | private CategoryDao categoryDao = null; 22 | @Autowired 23 | private GoodsDao goodsDao = null; 24 | 25 | @Override 26 | public void addCategory(Category category) { 27 | category.setId(XXShopUtil.getId()); 28 | categoryDao.addCategory(category); 29 | } 30 | 31 | @Override 32 | public List getCategories() { 33 | return categoryDao.getCategories(); 34 | } 35 | 36 | @Override 37 | public boolean getCategoryByName(String name) { 38 | int num = categoryDao.getCategoryByName(name); 39 | return num != 0; 40 | } 41 | 42 | @Override 43 | public void deleteCategory(String id) { 44 | categoryDao.deleteCategory(id); 45 | } 46 | 47 | @Override 48 | public void updateCategory(String id, String name) { 49 | categoryDao.updateCategory(id, name); 50 | } 51 | 52 | @Override 53 | public List getCategoriesForIndex() { 54 | List categories = categoryDao.getCategories(); 55 | for (Category category : categories) { 56 | System.out.println("category:" + category.getId()); 57 | category.setGoodses(goodsDao.getGoodsByCateId(category.getId(), 4)); 58 | } 59 | return categories; 60 | } 61 | 62 | @Override 63 | public Category getCategoryById(String id) { 64 | return categoryDao.getCategoryById(id); 65 | } 66 | 67 | // setter 和getter 68 | public CategoryDao getCategoryDao() { 69 | return categoryDao; 70 | } 71 | 72 | public void setCategoryDao(CategoryDao categoryDao) { 73 | this.categoryDao = categoryDao; 74 | } 75 | 76 | public GoodsDao getGoodsDao() { 77 | return goodsDao; 78 | } 79 | 80 | public void setGoodsDao(GoodsDao goodsDao) { 81 | this.goodsDao = goodsDao; 82 | } 83 | 84 | } 85 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/entity/OrderDetail.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * 商品明细表对应的实体类 7 | * @author 没有蜡笔的小新 2015-12-29 8 | */ 9 | public class OrderDetail implements Serializable { 10 | private String id; 11 | private String orderId; 12 | private String goodsId; 13 | private int nums; 14 | private int payStatus; 15 | private int sendStatus; 16 | private int orderStatus; 17 | private float dealPrice; 18 | 19 | private Goods goods; 20 | 21 | 22 | public OrderDetail() { 23 | super(); 24 | } 25 | 26 | public String getId() { 27 | return id; 28 | } 29 | 30 | public void setId(String id) { 31 | this.id = id; 32 | } 33 | 34 | public String getOrderId() { 35 | return orderId; 36 | } 37 | 38 | public void setOrderId(String orderId) { 39 | this.orderId = orderId; 40 | } 41 | 42 | public String getGoodsId() { 43 | return goodsId; 44 | } 45 | 46 | public void setGoodsId(String goodsId) { 47 | this.goodsId = goodsId; 48 | } 49 | 50 | public int getNums() { 51 | return nums; 52 | } 53 | 54 | public void setNums(int nums) { 55 | this.nums = nums; 56 | } 57 | 58 | public Goods getGoods() { 59 | return goods; 60 | } 61 | 62 | public void setGoods(Goods goods) { 63 | this.goods = goods; 64 | } 65 | 66 | public int getPayStatus() { 67 | return payStatus; 68 | } 69 | 70 | public void setPayStatus(int payStatus) { 71 | this.payStatus = payStatus; 72 | } 73 | 74 | public int getSendStatus() { 75 | return sendStatus; 76 | } 77 | 78 | public void setSendStatus(int sendStatus) { 79 | this.sendStatus = sendStatus; 80 | } 81 | 82 | public int getOrderStatus() { 83 | return orderStatus; 84 | } 85 | 86 | public void setOrderStatus(int orderStatus) { 87 | this.orderStatus = orderStatus; 88 | } 89 | 90 | public float getDealPrice() { 91 | return dealPrice; 92 | } 93 | public void setDealPrice(float dealprice) { 94 | this.dealPrice = dealprice; 95 | } 96 | 97 | @Override 98 | public String toString() { 99 | return "OrderDetail [id=" + id + ", orderId=" + orderId + ", goodsId=" 100 | + goodsId + ", nums=" + nums + ", goods=" + goods 101 | + ", payStatus=" + payStatus + ", sendStatus=" + sendStatus 102 | + ", orderStatus=" + orderStatus + ", dealPrice=" + dealPrice + "]"; 103 | } 104 | 105 | } 106 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/admin/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 3 | 4 | 5 | 6 | 7 | 8 | 管理后台登录 9 | 10 | 11 | 18 | 19 | 20 |
21 | 26 |
27 | 56 |
57 | <%----%> 58 | 59 |
60 | 61 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/controller/CartAction.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.controller; 2 | 3 | 4 | import com.huaxin.xxshop.entity.Cart; 5 | import com.huaxin.xxshop.entity.User; 6 | import com.huaxin.xxshop.service.CartService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.servlet.ModelAndView; 11 | 12 | import javax.servlet.http.HttpSession; 13 | import java.util.List; 14 | 15 | 16 | @Controller 17 | @RequestMapping("/cart") 18 | public class CartAction { 19 | @Autowired 20 | CartService cartService = null; 21 | 22 | 23 | /** 24 | * 删除购物车记录 25 | * @param cartId 26 | * @param mv 27 | * @param session 28 | * @return 29 | */ 30 | @RequestMapping("/deleteById") 31 | public ModelAndView deleteById(String cartId, ModelAndView mv, HttpSession session) { 32 | cartService.deleteById(cartId); 33 | mv.setViewName("redirect:/cart/listByUser"); 34 | return mv; 35 | } 36 | 37 | /** 38 | * 以用户为单位查询购物车记录 39 | * @param session 40 | * @param mv 41 | * @return 42 | */ 43 | @RequestMapping("/listByUser") 44 | public ModelAndView list(HttpSession session, ModelAndView mv) { 45 | String userId = ((User) session.getAttribute("user")).getId(); 46 | List cartList = cartService.getCartsByUserId(userId); 47 | // System.out.println(cartList.size()); 48 | // if(cartList.size() > 0) { 49 | // System.out.println(cartList.get(0)); 50 | // } 51 | mv.addObject("cartList", cartList); 52 | mv.setViewName("cart"); 53 | return mv; 54 | } 55 | 56 | /** 57 | * 增加购物车记录 58 | * @param session 59 | * @param goodsId 60 | * @param num 61 | * @param price 62 | * @param mv 63 | * @return 返回到购物车列表展示界面 64 | */ 65 | @RequestMapping("/add") 66 | public ModelAndView addCart(HttpSession session, String goodsId, 67 | Integer num, Float price, ModelAndView mv) { 68 | // System.out.println(goodsId + " " + num + " " + price); 69 | cartService.addCart(((User)session.getAttribute("user")).getId(), 70 | goodsId, num, price); 71 | // 进入之后的下单页面order/add需要goodsId和num 72 | mv.addObject("goodsId", goodsId); 73 | mv.addObject("num", num); 74 | mv.setViewName("redirect:/cart/listByUser"); 75 | return mv; 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/entity/Comment.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | 6 | /** 7 | * 评论实体类 8 | * @author 没有蜡笔的小新 2015-12-23 9 | */ 10 | public class Comment implements Serializable { 11 | private String id; 12 | private String ownerid; 13 | private String targetid; 14 | private int statusnum; 15 | private String remark; 16 | private String createtime; 17 | private int score; 18 | 19 | private User user; 20 | private Goods goods; 21 | 22 | public Comment() { 23 | super(); 24 | } 25 | 26 | @Override 27 | public String toString() { 28 | return "Comment{" + 29 | "id='" + id + '\'' + 30 | ", ownerid='" + ownerid + '\'' + 31 | ", targetid='" + targetid + '\'' + 32 | ", statusnum=" + statusnum + 33 | ", remark='" + remark + '\'' + 34 | ", createtime='" + createtime + '\'' + 35 | ", score=" + score + 36 | ", user=" + user + 37 | ", goods=" + goods + 38 | '}'; 39 | } 40 | 41 | public String getId() { 42 | return id; 43 | } 44 | 45 | public void setId(String id) { 46 | this.id = id; 47 | } 48 | 49 | public String getOwnerid() { 50 | return ownerid; 51 | } 52 | 53 | public void setOwnerid(String ownerid) { 54 | this.ownerid = ownerid; 55 | } 56 | 57 | public String getTargetid() { 58 | return targetid; 59 | } 60 | 61 | public void setTargetid(String targetid) { 62 | this.targetid = targetid; 63 | } 64 | 65 | public int getStatusnum() { 66 | return statusnum; 67 | } 68 | 69 | public void setStatusnum(int statusnum) { 70 | this.statusnum = statusnum; 71 | } 72 | 73 | public String getRemark() { 74 | return remark; 75 | } 76 | 77 | public void setRemark(String remark) { 78 | this.remark = remark; 79 | } 80 | 81 | public String getCreatetime() { 82 | return createtime; 83 | } 84 | 85 | public void setCreatetime(String createtime) { 86 | this.createtime = createtime; 87 | } 88 | 89 | public int getScore() { 90 | return score; 91 | } 92 | 93 | public void setScore(int score) { 94 | this.score = score; 95 | } 96 | 97 | public User getUser() { 98 | return user; 99 | } 100 | 101 | public void setUser(User user) { 102 | this.user = user; 103 | } 104 | 105 | public Goods getGoods() { 106 | return goods; 107 | } 108 | 109 | public void setGoods(Goods goods) { 110 | this.goods = goods; 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/entity/Address.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * 一个地址实体类 7 | * @author 没有蜡笔的小新 2015-12-23 8 | */ 9 | public class Address implements Serializable { 10 | private String id; 11 | private String userId; 12 | private String accept; 13 | private String zip; 14 | private String phoneNum; 15 | private String mobile; 16 | private String province; 17 | private String city; 18 | private String area; 19 | private String address; 20 | private String isDefault; 21 | 22 | @Override 23 | public String toString() { 24 | return id + " " + zip + " " + isDefault + " " + address + " " + userId; 25 | } 26 | 27 | public Address() { 28 | super(); 29 | } 30 | 31 | public String getId() { 32 | return id; 33 | } 34 | 35 | public void setId(String id) { 36 | this.id = id; 37 | } 38 | 39 | public String getUserId() { 40 | return userId; 41 | } 42 | 43 | public void setUserId(String userId) { 44 | this.userId = userId; 45 | } 46 | 47 | public String getAccept() { 48 | return accept; 49 | } 50 | 51 | public void setAccept(String accept) { 52 | this.accept = accept; 53 | } 54 | 55 | public String getZip() { 56 | return zip; 57 | } 58 | 59 | public void setZip(String zip) { 60 | this.zip = zip; 61 | } 62 | 63 | public String getPhoneNum() { 64 | return phoneNum; 65 | } 66 | 67 | public void setPhoneNum(String phoneNum) { 68 | this.phoneNum = phoneNum; 69 | } 70 | 71 | public String getMobile() { 72 | return mobile; 73 | } 74 | 75 | public void setMobile(String mobile) { 76 | this.mobile = mobile; 77 | } 78 | 79 | public String getProvince() { 80 | return province; 81 | } 82 | 83 | public void setProvince(String province) { 84 | this.province = province; 85 | } 86 | 87 | public String getCity() { 88 | return city; 89 | } 90 | 91 | public void setCity(String city) { 92 | this.city = city; 93 | } 94 | 95 | public String getArea() { 96 | return area; 97 | } 98 | 99 | public void setArea(String area) { 100 | this.area = area; 101 | } 102 | 103 | public String getAddress() { 104 | return address; 105 | } 106 | 107 | public void setAddress(String address) { 108 | this.address = address; 109 | } 110 | 111 | public String getIsDefault() { 112 | return isDefault; 113 | } 114 | 115 | public void setIsDefault(String isDefault) { 116 | this.isDefault = isDefault; 117 | } 118 | 119 | } 120 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/util/PhotoUtil.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.util; 2 | 3 | import org.springframework.web.multipart.MultipartFile; 4 | 5 | import javax.servlet.http.HttpServletRequest; 6 | import java.io.File; 7 | import java.io.FileOutputStream; 8 | import java.io.IOException; 9 | import java.util.Properties; 10 | 11 | /** 12 | * Created by Administrator on 2017/3/29. 13 | */ 14 | public class PhotoUtil { 15 | 16 | /** 17 | * 功能描述 保存图片 18 | * @param filedata 文件数据 19 | * @return 返回图片位置 20 | */ 21 | public static String saveFile( MultipartFile filedata, HttpServletRequest request) { 22 | // String pathval = request.getSession().getServletContext().getRealPath("/")+"WEB-INF/"; 23 | 24 | 25 | String pathvalCopy = request.getSession().getServletContext().getRealPath("/")+"goodsimage/"; 26 | String pathval = request.getSession().getServletContext().getRealPath("/")+"goodsimage/"; 27 | System.out.println("pathval: " + pathval); 28 | System.out.println("pathvalCopy: " + pathvalCopy); 29 | 30 | // 根据配置文件获取服务器图片存放路径 31 | String newFileName = String.valueOf( System.currentTimeMillis()); 32 | // String saveFilePath = "images/uploadFile"; 33 | String saveFilePath = ""; 34 | /* 构建文件目录 */ 35 | File fileDir = new File(pathval + saveFilePath); 36 | if (!fileDir.exists()) { 37 | fileDir.mkdirs(); 38 | } 39 | //上传的文件名 40 | String filename=filedata.getOriginalFilename(); 41 | //文件的扩张名 42 | // String extensionName = XXShopUtil.getId() + filename.substring(filename.lastIndexOf(".") + 1); 43 | String extensionName = XXShopUtil.getId() + filename.substring(filename.lastIndexOf(".")); 44 | try { 45 | String imgPath = saveFilePath + newFileName + "." +extensionName; 46 | System.out.println(pathval + imgPath); // 打印图片位置 47 | FileOutputStream out = new FileOutputStream(pathval + imgPath); 48 | // 写入文件 49 | out.write(filedata.getBytes()); 50 | out.flush(); 51 | out.close(); 52 | return imgPath; 53 | } catch (Exception e) { 54 | e.printStackTrace(); 55 | } 56 | return null; 57 | } 58 | 59 | 60 | /** 61 | * 功能描述:删除图片 62 | * @param oldPic 63 | */ 64 | private void deleteFile(String oldPic) { 65 | // TODO Auto-generated method stub 66 | 67 | /* 构建文件目录 */ 68 | File fileDir = new File(oldPic); 69 | if (fileDir.exists()) { 70 | //把修改之前的图片删除 以免太多没用的图片占据空间 71 | fileDir.delete(); 72 | } 73 | 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/usercenter/order_list.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 7 | 8 | 我的订单_${site} 9 | 10 | 15 | 16 | 17 |
18 | 19 | 20 | 21 |
22 | 23 |
24 |
25 | 26 |
27 |
28 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 44 | 45 | 46 | 47 | 48 | 55 | 56 | 57 | 58 | 59 | 63 | 64 | 65 |
订单编号下单日期收货人支付方式总金额订单状态
${order.id }${order.orderTime }${order.address.accept}${order.payType }${order.totalMoney } 49 | 已取消 50 | 待付款 51 | 待发货 52 | 待收货 53 | 已完成 54 |
60 | 首页1尾页当前第1页/共1页 62 |
66 |
67 |
68 |
69 | 70 | 71 |
72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/GoodsDao.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dao; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import com.huaxin.xxshop.entity.Goods; 7 | import org.apache.ibatis.annotations.Param; 8 | import org.springframework.stereotype.Repository; 9 | 10 | /** 11 | * 商品实体类的数据访问接口 12 | * @author 没有蜡笔的小新 2015-12-26 13 | */ 14 | @Repository 15 | public interface GoodsDao { 16 | 17 | public List getGoodsByPageAndOrder(Map params); 18 | 19 | /** 20 | * 添加商品 21 | * @param goods 要添加的商品实体 22 | */ 23 | public void addGoods(Goods goods); 24 | 25 | /** 26 | * 得到所有的商品 27 | * @return 所有的商品实体集合 28 | */ 29 | public List getGoods(Goods goods); 30 | 31 | /** 32 | * 用于分页查询 33 | * @param params 34 | * @return 分页后的商品集合 35 | */ 36 | public List getGoodsByPage(Map params); 37 | 38 | /** 39 | * 查询商品的数量 40 | * @param goods 41 | * @return 42 | */ 43 | public int getGoodsNum(Goods goods); 44 | 45 | /** 46 | * 通过商品的id得到商品的信息 47 | * @param id 商品的id 48 | * @return 返回整个商品的信息 49 | */ 50 | public Goods getGoodsById(String id); 51 | 52 | /** 53 | * 更新商品的操作 54 | * @param goods 封装的 Goods参数 55 | */ 56 | public void updateGoods(Goods goods); 57 | 58 | /** 59 | * 通过id来删除一个商品 60 | * @param id 删除商品的id 61 | */ 62 | public void deleteGoods(String id); 63 | 64 | /** 65 | * 通过分类的id来得到商品 66 | * @param cateId 某个分类的id 67 | * @param num 需要得到的商品的条数 68 | * @return 返回一个带有Goods的集合 69 | */ 70 | public List getGoodsByCateId(@Param("cateId") String cateId, 71 | @Param("num") int num); 72 | 73 | /** 74 | * 通过对商品的热度进行排序,得到前若干条 75 | * @param num 得到的条数 76 | * @return 返回一个带有Goods的集合 77 | */ 78 | public List getGoodsByRole(int num); 79 | 80 | /** 81 | * 通过对商品的推出时间进行排序,取前若干项 82 | * @param num 得到的条数 83 | * @return 返回一个带有Goods的集合 84 | */ 85 | public List getGoodsBySellTime(int num); 86 | 87 | /** 88 | * 通过对商品的推出时间进行排序,取前若干项 89 | * @param num 得到的条数 90 | * @return 返回一个带有Goods的集合 91 | */ 92 | public List getGoodsBySellNum(int num); 93 | 94 | /** 95 | * 通过一个goodsId的数组来获取一个goods的集合 96 | * @param ids 一个含有goodsid 的集合 97 | * @return 返回含有Goods的集合 98 | */ 99 | public List getGoodsByIds(String[] ids); 100 | 101 | /** 102 | * 通过order的排序条件进行排序 103 | * @param order 排序的条件 104 | * @param num 取得条数 105 | * @return 一个带有Goods的集合 106 | */ 107 | public List getGoodsByOrder(Map params); 108 | 109 | } 110 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/GoodsService.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service; 2 | 3 | import java.util.List; 4 | 5 | import com.huaxin.xxshop.entity.Goods; 6 | import com.huaxin.xxshop.entity.PageBean; 7 | 8 | /** 9 | * 商品实体类对应的服务层接口 10 | * @author 没有蜡笔的小新 2015-12-26 11 | */ 12 | public interface GoodsService { 13 | 14 | public PageBean getGoodsByPageAndOrder(int page,Goods goods,String order); 15 | 16 | /** 17 | * 搜索商品 18 | * @param keywords 19 | */ 20 | public List search(String keywords); 21 | 22 | 23 | /** 24 | * 简历商品的搜索索引 25 | * 26 | */ 27 | public void createIndex(); 28 | 29 | 30 | /** 31 | * 添加商品 32 | * @param goods 33 | */ 34 | public void addGoods(Goods goods); 35 | 36 | /** 37 | * 得到所有的商品 38 | * @return 39 | */ 40 | public List getGoods(Goods goods); 41 | 42 | /** 43 | * 通过参数得到一个含有Goods实体类的PageBean 44 | * @param page 当前的页数 45 | * @param goods PageBean包含的实体类 46 | * @return 47 | */ 48 | public PageBean getGoodsByPage(int page, Goods goods); 49 | 50 | /** 51 | * 通过商品的id得到商品的信息 52 | * @param id 商品的id 53 | * @return 返回整个商品的信息 54 | */ 55 | public Goods getGoodsById(String id); 56 | 57 | /** 58 | * 更新商品的操作 59 | * @param goods 封装的 Goods参数 60 | */ 61 | public void updateGoods(Goods goods); 62 | 63 | /** 64 | * 通过id来删除一个商品 65 | * @param goods 66 | */ 67 | public void deleteGoods(Goods goods); 68 | 69 | /** 70 | * 通过order的排序条件进行排序 71 | * @param order 排序的条件 72 | * @param num 取得条数 73 | * @param cateId 商品的id 74 | * @return 一个带有Goods的集合 75 | */ 76 | public List getGoodsByOrder(String order, int num, String cateId); 77 | 78 | /** 79 | * 通过order的排序条件进行排序 80 | * @param order 排序的条件 81 | * @param num 取得条数 82 | * @return 一个带有Goods的集合 83 | */ 84 | public List getGoodsBySellNum(int num); 85 | 86 | /** 87 | * 通过order的排序条件进行排序 88 | * @param order 排序的条件 89 | * @param num 取得条数 90 | * @return 一个带有Goods的集合 91 | */ 92 | public List getGoodsByRole(int num); 93 | 94 | /** 95 | * 通过order的排序条件进行排序 96 | * @param order 排序的条件 97 | * @param num 取得条数 98 | * @return 一个带有Goods的集合 99 | */ 100 | public List getGoodsBySellTime(int num); 101 | 102 | /** 103 | * 通过分类的id来得到商品 104 | * @param cateId 某个分类的id 105 | * @return 返回一个带有Goods的集合 106 | */ 107 | public List getGoodsByCateId(String cateId); 108 | 109 | /** 110 | * 通过一个goodsId的数组来获取一个goods的集合 111 | * @param ids 一个可变长度的参数的类型 112 | * @return 返回含有Goods的集合 113 | */ 114 | public List getGoodsByIds(String... ids); 115 | 116 | } 117 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.dao; 2 | 3 | import java.util.List; 4 | import com.huaxin.xxshop.entity.User; 5 | import org.apache.ibatis.annotations.Param; 6 | import org.springframework.stereotype.Repository; 7 | 8 | /** 9 | * 用户实体类 User 访问接口 10 | * @author 没有蜡笔的小新 2015-12-21 参数一般是基本数据类型或者实体类 11 | */ 12 | @Repository 13 | public interface UserDao { 14 | 15 | public void updateEmail(@Param("id") String id, 16 | @Param("email") String email); 17 | 18 | public void updatePhoneNum(@Param("id") String id, 19 | @Param("phoneNum") String phoneNum); 20 | 21 | public void addLogin(@Param("id") String id, 22 | @Param("ip") String ip, 23 | @Param("userid") String userid, 24 | @Param("loginTime") String loginTime); 25 | 26 | 27 | /** 28 | * 添加用户 29 | * @param user 用户的实体类的对象 30 | */ 31 | public void addUser(User user); 32 | 33 | /** 34 | * 得到所有的用户 35 | * @return 含有所有用户的集合 36 | */ 37 | public List getAllUser(); 38 | 39 | /** 40 | * 通过用户名和密码得到用户 41 | * @param name 用户名 42 | * @param password 密码 43 | * @return 返回用户的实体类对象 44 | */ 45 | // public User getUserByNameAndPwd(String name, String password); 46 | // 当只有一个参数时,Mapper中可以不使用@Param 47 | // 但是有多个参数时必须用 48 | public User getUserByNameAndPwd(@Param("name") String name, 49 | @Param("password") String password); 50 | /** 51 | * 通过id修改用户的头像 52 | * @param id 用户的id 53 | * @param avar 用户的头像链接 54 | */ 55 | public void updateAvatar(@Param("id") String id, 56 | @Param("avar") String avar); 57 | 58 | /** 59 | * 通过名字查询当前在数据库中的数量 60 | * @param name 查询 的名字 61 | * @return 查询到的数量 62 | */ 63 | public int getNumByName(String name); 64 | 65 | /** 66 | * 实现更新某一位用户的money 67 | * 68 | * @param id 当前需要更新的用户id 69 | * @param money 更新之后的money 70 | */ 71 | public void updateMoney(@Param("id") String id, 72 | @Param("money") float money); 73 | 74 | /** 75 | * 通过user的id来删除用户 76 | * @param id 77 | */ 78 | public void deleteUser(String id); 79 | 80 | /** 81 | * 通过user的id来获取用户 82 | * @param id 83 | */ 84 | public User getUser(String id); 85 | 86 | /** 87 | * 实现更新某一位用户的status 88 | * @param id 当前需要更新的用户id 89 | * @param status 更新之后的status 90 | */ 91 | public void updateStatus(@Param("id") String id, 92 | @Param("status") int status); 93 | 94 | public void updatePassword(@Param("id") String id, 95 | @Param("password") String password); 96 | 97 | public void updateRole(@Param("id") String id, 98 | @Param("role") String role); 99 | } 100 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/mapper/CommentMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | delete from shop_comment where id=#{commentId} 35 | 36 | 37 | 42 | 43 | 49 | 50 | 56 | 57 | 58 | insert into shop_comment 59 | values(#{id},#{ownerid},#{targetid},#{statusnum},#{remark},#{createtime},#{score}) 60 | 61 | 62 | 63 | 69 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/usercenter/comment_list.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 我的评价_${site} 10 | 11 | 12 | 13 | 22 | 23 | 24 |
25 | 26 | 27 | 28 |
29 | 30 |
31 |
32 |
33 | 34 |
35 |
36 |
37 |
38 | 作出的评价 39 |
40 | 42 | <%----%> 43 | <%----%> 44 | <%----%> 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 69 | 70 | 71 |
商品名评星评论信息时间操作
${comment.goods.name}${comment.score}${comment.remark}${comment.createtime}<%--跳转评论的商品网页--%> 62 | 查看| 64 | <%--删除--%> 65 | 删除 67 | <%--href="./usercenter/address/delete?addressId=${address.id}">删除--%> 68 |
72 |
73 |
74 |
75 |
76 |
77 | 78 | 79 |
80 | 81 | 82 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/util/VerifyCodeUtil.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.util; 2 | 3 | import java.awt.BasicStroke; 4 | import java.awt.Color; 5 | import java.awt.Font; 6 | import java.awt.Graphics2D; 7 | import java.awt.image.BufferedImage; 8 | import java.io.IOException; 9 | import java.io.OutputStream; 10 | import java.util.Random; 11 | 12 | import javax.imageio.ImageIO; 13 | 14 | public class VerifyCodeUtil { 15 | 16 | private int w = 70; 17 | private int h = 35; 18 | private Random r = new Random(); 19 | private String[] fontNames = {"宋体", "华文楷体", "黑体", "微软雅黑", "楷体_GB2312"}; 20 | private String codes = "23456789abcdefghjkmnopqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ"; 21 | private Color bgColor = new Color(255, 255, 255); 22 | private String text ; 23 | 24 | private Color randomColor () { 25 | int red = r.nextInt(150); 26 | int green = r.nextInt(150); 27 | int blue = r.nextInt(150); 28 | return new Color(red, green, blue); 29 | } 30 | 31 | private Font randomFont () { 32 | int index = r.nextInt(fontNames.length); 33 | String fontName = fontNames[index]; 34 | int style = r.nextInt(4); 35 | int size = r.nextInt(5) + 24; 36 | return new Font(fontName, style, size); 37 | } 38 | 39 | private void drawLine (BufferedImage image) { 40 | int num = 3; 41 | Graphics2D g2 = (Graphics2D)image.getGraphics(); 42 | for(int i = 0; i < num; i++) { 43 | int x1 = r.nextInt(w); 44 | int y1 = r.nextInt(h); 45 | int x2 = r.nextInt(w); 46 | int y2 = r.nextInt(h); 47 | g2.setStroke(new BasicStroke(1.5F)); 48 | g2.setColor(Color.BLUE); 49 | g2.drawLine(x1, y1, x2, y2); 50 | } 51 | } 52 | 53 | private char randomChar () { 54 | int index = r.nextInt(codes.length()); 55 | return codes.charAt(index); 56 | } 57 | 58 | private BufferedImage createImage () { 59 | BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); 60 | Graphics2D g2 = (Graphics2D)image.getGraphics(); 61 | g2.setColor(this.bgColor); 62 | g2.fillRect(0, 0, w, h); 63 | return image; 64 | } 65 | 66 | public BufferedImage getImage () { 67 | BufferedImage image = createImage(); 68 | Graphics2D g2 = (Graphics2D)image.getGraphics(); 69 | StringBuilder sb = new StringBuilder(); 70 | for(int i = 0; i < 4; i++) { 71 | String s = randomChar() + ""; 72 | sb.append(s); 73 | float x = i * 1.0F * w / 4; 74 | g2.setFont(randomFont()); 75 | g2.setColor(randomColor()); 76 | g2.drawString(s, x, h-5); 77 | } 78 | this.text = sb.toString(); 79 | drawLine(image); 80 | return image; 81 | } 82 | 83 | public String getText () { 84 | return text; 85 | } 86 | 87 | public static void output (BufferedImage image, OutputStream out) 88 | throws IOException { 89 | ImageIO.write(image, "JPEG", out); 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/usercenter/user_info.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@ page contentType="text/html;charset=utf-8"%> 3 | <%request.setCharacterEncoding("utf-8");%> 4 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | 地址管理_${site} 12 | 13 | 14 | 15 | 16 | 17 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
31 | 32 |
33 |
34 |
35 | 36 |
37 |
38 |
39 |
40 | 个人信息 41 |
42 | 44 | <%----%> 45 | <%----%> 46 | <%----%> 47 | <%----%> 48 | <%----%> 49 | <%----%> 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
用户编号用户名电话号码注册时间邮箱
${user.id}${user.name}${user.phoneNum}${user.regTime}${user.email}
69 |
70 |
71 |
72 | 73 |
74 | 75 |
> 76 | 77 |
78 | 79 |
80 |
81 |
82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/search_result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 搜索结果_${site} 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 |
21 | 48 | 49 | 50 |

51 |
52 | 53 |
54 |
55 |

56 | 搜索结果 57 |

58 |
59 |
60 |
    61 | 62 |

    search_result = null

    63 |
    64 | 65 | 66 |
  • 69 |

    70 | ${goods.name} 71 |

    72 |

    73 | 惊喜价:¥${goods.price2} 74 |

    75 |

    76 | 市场价:¥${goods.price1} 77 |

  • 78 |
    79 |
80 |
81 |
82 | 83 |
84 |
85 | 86 | 87 |
88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/controller/AddressAction.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.controller; 2 | 3 | import com.huaxin.xxshop.entity.Address; 4 | import com.huaxin.xxshop.entity.User; 5 | import com.huaxin.xxshop.service.AddressService; 6 | import org.apache.struts2.interceptor.SessionAware; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.ui.Model; 10 | import org.springframework.web.bind.annotation.ExceptionHandler; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | 13 | import javax.servlet.http.HttpSession; 14 | import java.util.List; 15 | import java.util.Map; 16 | 17 | @Controller 18 | @RequestMapping("/usercenter/address") 19 | public class AddressAction { 20 | @Autowired 21 | private AddressService addressService; 22 | 23 | 24 | /** 25 | * 增加地址信息 26 | * @param session 27 | * @param address 28 | * @return 29 | */ 30 | @RequestMapping("/add") 31 | public String add(HttpSession session, Address address) { 32 | String userId = ((User) session.getAttribute("user")).getId(); 33 | address.setUserId(userId); 34 | addressService.addAddress(address); 35 | // return "/usercenter/address_list"; 36 | return "redirect:/usercenter/address/list"; 37 | } 38 | 39 | /** 40 | * 显示所有已保存的地址信息 41 | * @param session 42 | * @param model 43 | * @return 44 | */ 45 | @RequestMapping("/list") 46 | public String list(HttpSession session, Model model) { 47 | String userId = ((User) session.getAttribute("user")).getId(); 48 | List
addressList = addressService.getAddress(userId); 49 | model.addAttribute("addressList", addressList); 50 | return "/usercenter/address_list"; 51 | // return "list"; 52 | } 53 | 54 | /** 55 | * 响应设置默认地址的方法 56 | * 默认地址值:"1" 57 | * @param addressId 58 | * @param addressIsDefault 59 | * @return 60 | */ 61 | @RequestMapping("/setDefault") 62 | public String setDefault(String addressId, String addressIsDefault) { 63 | System.out.println(addressIsDefault.getClass()); 64 | Address address = addressService.getAddressById(addressId); 65 | address.setIsDefault(addressIsDefault); 66 | addressService.setDefault(address); 67 | // return "/usercenter/address_list"; 68 | return "redirect:/usercenter/address/list"; 69 | } 70 | 71 | 72 | /** 73 | * 响应删除地址的方法 74 | * @param addressId 75 | * @return 76 | */ 77 | @RequestMapping("/delete") 78 | public String delete(String addressId) { 79 | // public String delete(HttpSession session, Address address) { 80 | // String userId = ((User) session.getAttribute("user")).getId(); 81 | // address.setUserId(userId); 82 | // addressService.deleteAddress(address); 83 | // 此处考虑检验session的userId吗 84 | addressService.deleteAddress(addressId); 85 | return "redirect:/usercenter/address/list"; 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/admin/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 4 | 5 | 6 | 7 | 8 | 后台管理 9 | 10 | 11 | 12 | 13 |
14 | 17 |
18 | 21 | 22 |
23 | 24 |
25 | 26 |
27 | 您好,欢迎回来! 28 |
29 | 30 |
31 |

欢迎你!

32 |
33 | 34 |
35 | --%> 61 | <%----%> 62 | <%--20150501094750252764--%> 63 | <%--谭岚--%> 64 | <%--未付款--%> 65 | <%--¥5688.00--%> 66 | <%--2015-05-01 09:47:50--%> 67 | <%-- 68 | <%--src="images/admin/icon_check.gif" title="查看" /> 69 | <%--href=""> 70 | <%--src="images/admin/icon_edit.gif" title="编辑" /> 71 | <%--href="javascript:void(0)" onclick=""> 72 | <%--class="operator" src="images/admin/icon_del.gif"--%> 73 | <%--title="删除" />--%> 74 | <%----%> 75 | <%----%> 76 | <%----%> 77 | <%----%> 78 | <%----%> 79 | <%----%> 80 | <%----%> 81 | <%----%> 82 | <%--
--%> 83 | <%----%> 84 | <%----%> 85 | --> 86 |
87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/dao/mapper/UserMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | insert into visit 22 | values(#{id},#{ip},#{userid},#{loginTime,jdbcType=CHAR}) 23 | 24 | 25 | 26 | update shop_user set email=#{email} where id=#{id} 27 | 28 | 29 | 30 | update shop_user set phoneNum=#{phoneNum} where id=#{id} 31 | 32 | 33 | 34 | 35 | insert into shop_user 36 | values(#{id},#{name},#{password},#{phoneNum},#{money}, 37 | #{avatar,jdbcType=VARCHAR},#{regTime,jdbcType=CHAR},#{role},#{status},#{email}) 38 | 39 | 40 | 43 | 44 | 48 | 49 | 50 | 51 | update shop_user set role=#{role} where id=#{id} 52 | 53 | 54 | 55 | update shop_user set password=#{password} where id=#{id} 56 | 57 | 58 | 59 | update shop_user set avatar=#{avar} where id=#{id} 60 | 61 | 62 | 63 | 64 | 65 | update shop_user set money=#{money} where id=#{id} 66 | 67 | 68 | 69 | 70 | 73 | 74 | 75 | update shop_user set 76 | status=#{status} where id=#{id} 77 | 78 | 79 | 80 | 81 | 82 | update shop_user set 83 | status=2 where id=#{id} 84 | 85 | 86 | 91 | 92 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/controller/AdminAction.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.controller; 2 | 3 | import com.huaxin.xxshop.entity.User; 4 | import com.huaxin.xxshop.service.UserService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.servlet.ModelAndView; 9 | 10 | import java.util.List; 11 | 12 | @Controller 13 | @RequestMapping("/admin") 14 | public class AdminAction { 15 | @Autowired 16 | private UserService userService = null; 17 | 18 | 19 | /** 20 | * 查询用户权限列表 21 | * @param mv 22 | * @return 23 | */ 24 | @RequestMapping("/authorityList") 25 | public ModelAndView authorityList(ModelAndView mv) { 26 | List userList = userService.getAllUser(); 27 | // 全部都返回还是只返回管理员 28 | mv.addObject("userList", userList); 29 | mv.setViewName("/admin/authority_list"); 30 | return mv; 31 | } 32 | 33 | /** 34 | * 向用户信息更新页面跳转 35 | * @param memberId 36 | * @param mv 37 | * @return 38 | */ 39 | @RequestMapping("/memberUpdate") 40 | public ModelAndView memberUpdate(String memberId, ModelAndView mv) { 41 | User member = userService.getUser(memberId); 42 | mv.addObject("member", member); 43 | mv.setViewName("admin/member_update"); 44 | return mv; 45 | } 46 | 47 | /** 48 | * 用户信息更新 49 | * @param status 50 | * @param memberId 51 | * @param password 52 | * @param role 53 | * @param mv 54 | * @return 55 | */ 56 | @RequestMapping("/memberUpdateOper") 57 | public ModelAndView memberUpdateOper(Integer status, String memberId, String password, 58 | String role, ModelAndView mv) { 59 | System.out.println("password: " + password + ", role:" + role + ", status:" + status); 60 | userService.updateMember(memberId, status, memberId, password, role); 61 | mv.setViewName("admin/index"); 62 | return mv; 63 | } 64 | 65 | /** 66 | * 向评论列表页面跳转 67 | * @return 68 | */ 69 | @RequestMapping("toCommentList") 70 | public String toCommentList() { 71 | return "admin/comment_list"; 72 | } 73 | 74 | /** 75 | * 向评论详细信息页面跳转 76 | * @return 77 | */ 78 | @RequestMapping("toCommentView") 79 | public String toCommentView() { 80 | return "admin/comment_view"; 81 | } 82 | 83 | /** 84 | * 向种类添加页面跳转 85 | * @return 86 | */ 87 | @RequestMapping("/toCategoryAdd") 88 | public String toCategoryAdd() { 89 | return "admin/category_add"; 90 | } 91 | 92 | /** 93 | * 向admin主页跳转 94 | * @return 95 | */ 96 | @RequestMapping("/toIndex") 97 | public String toIndex() { 98 | return "admin/index"; 99 | } 100 | 101 | /** 102 | * 向订单查看页面跳转 103 | * @return 104 | */ 105 | @RequestMapping("/toOrderView") 106 | public String toOrderView() { 107 | return "admin/order_view"; 108 | } 109 | 110 | } 111 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/springmvc-servlet.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 32 | 33 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 5242880 53 | 54 | 55 | 56 | 57 | 58 | 59 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/recomment_list.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> 4 | 5 | 6 | 7 | 8 | 9 | 10 | ${goods.name}_${site} 11 | 12 | 15 | 16 | 17 | 18 |
19 |
20 | 21 | 22 | <%----%> 23 |
24 |
25 | <%--评价商品--%> 26 |
27 | 28 |
29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 |
用户名评价评价时间
${comment.user.name}${comment.remark}${comment.createtime}
44 | <%--对评价的回复--%> 45 |
46 | 47 |
48 |
49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 71 | 72 | 73 |
用户名回复评价时间
${reComment.user.name}${reComment.remark}${reComment.createtime}
68 | 首页1尾页当前第1页/共1页 70 |
74 | <%--不允许自己评论自己--%> 75 | 76 |
77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 |
85 |
86 |
87 |
88 |
89 | 90 |
91 |
92 | 93 | 94 |
95 | 96 | 97 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/navbar.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 3 | 49 | 50 | 66 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/views/jsp/admin/member_update.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | 后台管理 7 | 8 | 9 | 10 | 11 | 12 |
13 | 16 | 17 |
18 | 21 | 22 |
23 | 24 |
25 |
26 |
27 |
28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 57 | 58 | 59 | 60 | 63 | 64 | 65 | 66 | 69 | 70 | 71 | 72 | 75 | 76 |
会员号:${member.id}
用户名:${member.name}
邮箱:${member.email}
注册时间:${member.regTime}
电话:${member.phoneNum}
用户状态: 56 |
用户身份: 62 |
密码:
77 |
78 |
79 |
80 |
81 |
82 |
83 | 84 | 85 | 86 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /src/main/java/com/huaxin/xxshop/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.huaxin.xxshop.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import com.huaxin.xxshop.dao.UserDao; 6 | import com.huaxin.xxshop.entity.User; 7 | import com.huaxin.xxshop.service.UserService; 8 | import com.huaxin.xxshop.util.XXShopUtil; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | import javax.annotation.Resource; 13 | 14 | /** 15 | * UserService 接口ude实现类 16 | * @author 没有蜡笔的小新 2015/12/21 17 | */ 18 | 19 | @Service("userService") 20 | public class UserServiceImpl implements UserService { 21 | //@Resource("userDao") 22 | @Autowired 23 | private UserDao userDao = null; 24 | 25 | // // getter和setter 26 | // public UserDao getUserDao() { 27 | // return userDao; 28 | // } 29 | // 30 | // public void setUserDao(UserDao userDao) { 31 | // this.userDao = userDao; 32 | // } 33 | 34 | 35 | @Override 36 | public void addLogin(User user){ 37 | user.setLoginId(XXShopUtil.getId()); 38 | user.setLoginTime(XXShopUtil.getNow()); 39 | 40 | userDao.addLogin(user.getLoginId(),user.getIp(),user.getName(),user.getLoginTime()); 41 | } 42 | 43 | @Override 44 | public void updateEmail(String id, String email) { 45 | userDao.updateEmail(id, email); 46 | } 47 | @Override 48 | public void updatePassword(String id, String password) { 49 | userDao.updatePassword(id, password); 50 | } 51 | 52 | @Override 53 | public void updatePhoneNum(String id, String phoneNum) { 54 | System.out.println("ServiceLmpl :"+phoneNum); 55 | userDao.updatePhoneNum(id, phoneNum); 56 | } 57 | 58 | @Override 59 | public void register(User user) { 60 | user.setId(XXShopUtil.getId()); 61 | user.setRegTime(XXShopUtil.getNow()); 62 | user.setRole("u"); 63 | user.setMoney(0); 64 | userDao.addUser(user); 65 | } 66 | 67 | // @Override 68 | // public User login(String name, String password) { 69 | // return userDao.getUserByNameAndPwd(name, password); 70 | // } 71 | // 通过账号和密码查询用户 72 | @Override 73 | public User findUser(String name, String password) { 74 | User user = this.userDao.getUserByNameAndPwd(name, password); 75 | return user; 76 | } 77 | 78 | 79 | @Override 80 | public boolean isexist(String name) { 81 | int num = userDao.getNumByName(name); 82 | return num != 0; 83 | } 84 | 85 | @Override 86 | public void updateAvatar(String id, String avar) { 87 | userDao.updateAvatar(id, avar); 88 | } 89 | 90 | @Override 91 | public void updateMoney(String id, float money) { 92 | userDao.updateMoney(id, money); 93 | } 94 | 95 | @Override 96 | public List getAllUser() { 97 | return userDao.getAllUser(); 98 | } 99 | 100 | @Override 101 | public void deleteUser(String id) { 102 | userDao.deleteUser(id); 103 | } 104 | 105 | @Override 106 | public User getUser(String id) { 107 | return userDao.getUser(id); 108 | } 109 | 110 | @Override 111 | public void updateStatus(String id, int status) { 112 | userDao.updateStatus(id, status); 113 | } 114 | 115 | @Override 116 | public void updateMember(String memberId, Integer status, String memberId1, String password, String role) { 117 | userDao.updateStatus(memberId, status); 118 | userDao.updatePassword(memberId, password); 119 | userDao.updateRole(memberId, role); 120 | } 121 | } 122 | --------------------------------------------------------------------------------