├── .gitignore ├── README.md ├── pom.xml └── src └── main ├── java └── com │ └── springmvc │ ├── controller │ ├── AddressController.java │ ├── AdminController.java │ ├── CaptcheController.java │ ├── CatelogController.java │ ├── DictController.java │ ├── GoodsController.java │ ├── HomeController.java │ ├── OrderController.java │ ├── PublishController.java │ ├── SearchController.java │ └── UserController.java │ ├── dao │ ├── AddressMapper.java │ ├── CarouselMapper.java │ ├── CatelogMapper.java │ ├── CommentsMapper.java │ ├── DictMapper.java │ ├── GoodsMapper.java │ ├── ImageMapper.java │ ├── NoticeMapper.java │ ├── OrdersMapper.java │ ├── ReplyMapper.java │ ├── ReportMapper.java │ ├── UserMapper.java │ └── WantedMapper.java │ ├── ex │ ├── PageNotFoundException.java │ ├── PhoneNotFoundException.java │ ├── ServiceException.java │ ├── UserPasswordErrorException.java │ └── UsernameTakenException.java │ ├── mapper │ ├── AddressMapper.xml │ ├── CarouselMapper.xml │ ├── CatelogMapper.xml │ ├── CommentsMapper.xml │ ├── DictMapper.xml │ ├── GoodsMapper.xml │ ├── ImageMapper.xml │ ├── NoticeMapper.xml │ ├── OrdersMapper.xml │ ├── ReplyMapper.xml │ ├── ReportMapper.xml │ ├── UserMapper.xml │ └── WantedMapper.xml │ ├── pojo │ ├── Address.java │ ├── Area.java │ ├── Carousel.java │ ├── Catelog.java │ ├── CatelogExtend.java │ ├── City.java │ ├── Comments.java │ ├── CommentsExtend.java │ ├── Goods.java │ ├── GoodsExtend.java │ ├── Image.java │ ├── Notice.java │ ├── Orders.java │ ├── OrdersExtend.java │ ├── Province.java │ ├── Reply.java │ ├── Report.java │ ├── ReportExtend.java │ ├── ResponseResult.java │ ├── User.java │ ├── Wanted.java │ └── WantedExtend.java │ ├── service │ ├── AddressService.java │ ├── CarouselService.java │ ├── CatelogService.java │ ├── CommentsService.java │ ├── DictService.java │ ├── GoodsService.java │ ├── ImageService.java │ ├── OrdersService.java │ ├── ReportService.java │ ├── UserService.java │ ├── WantedService.java │ └── impl │ │ ├── AddressServiceImpl.java │ │ ├── CarouselServiceImpl.java │ │ ├── CatelogServiceImpl.java │ │ ├── CommentsServiceImpl.java │ │ ├── DictServiceImpl.java │ │ ├── GoodsServiceImpl.java │ │ ├── ImageServiceImpl.java │ │ ├── OrdersServiceImpl.java │ │ ├── ReportServiceImpl.java │ │ ├── UserServiceImpl.java │ │ └── WantedServiceImpl.java │ ├── util │ ├── DateUtil.java │ ├── MD5.java │ └── WriteExcel.java │ └── web │ ├── AccessInterceptor.java │ └── AdminAccessInterceptor.java ├── resources ├── Spring-Springmvc-Mybatis.xml ├── generator.properties ├── generatorConfig.xml ├── jdbc.properties ├── log4j.properties ├── market.sql ├── mybatis-config.xml └── mysql-connector-java-5.1.47.jar └── webapp ├── WEB-INF ├── admin │ ├── Home.jsp │ ├── catelog.jsp │ ├── catelog_add.jsp │ ├── catelog_edit.jsp │ ├── comments.jsp │ ├── good.jsp │ ├── home_add.jsp │ ├── home_edit.jsp │ ├── index.jsp │ ├── login.jsp │ ├── main.jsp │ ├── order.jsp │ ├── person_add.jsp │ ├── person_look.jsp │ └── report.jsp ├── category │ └── category_list.jsp ├── city.jsp ├── detail │ └── detail.jsp ├── error │ └── 404.jsp ├── index.jsp ├── order │ ├── orderConfirm.jsp │ ├── pay_fail.jsp │ ├── pay_success.jsp │ └── payment.jsp ├── search │ └── search.jsp ├── user │ ├── address.jsp │ ├── auth.jsp │ ├── forget.jsp │ ├── help.jsp │ ├── index.jsp │ ├── login.jsp │ ├── message.jsp │ ├── order.jsp │ ├── publish.jsp │ ├── register.jsp │ ├── userinfo.jsp │ └── want.jsp └── web.xml ├── css ├── admin │ ├── login.css │ └── x-admin.css ├── category_list.css ├── code.css ├── detail.css ├── index.css ├── laydate.css ├── layer.css ├── layui.css ├── lib │ ├── bootstrap │ │ ├── css │ │ │ ├── bootstrap-theme.css │ │ │ ├── bootstrap-theme.css.map │ │ │ ├── bootstrap-theme.min.css │ │ │ ├── bootstrap.css │ │ │ ├── bootstrap.css.map │ │ │ └── bootstrap.min.css │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ └── js │ │ │ ├── bootstrap.js │ │ │ ├── bootstrap.min.js │ │ │ └── npm.js │ └── layui │ │ ├── css │ │ ├── layui.css │ │ └── modules │ │ │ ├── code.css │ │ │ ├── laydate │ │ │ ├── icon.png │ │ │ └── laydate.css │ │ │ └── layer │ │ │ └── default │ │ │ ├── icon-ext.png │ │ │ ├── icon.png │ │ │ ├── layer.css │ │ │ ├── loading-0.gif │ │ │ ├── loading-1.gif │ │ │ └── loading-2.gif │ │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.svg │ │ ├── iconfont.ttf │ │ └── iconfont.woff │ │ ├── images │ │ └── face │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 10.gif │ │ │ ├── 11.gif │ │ │ ├── 12.gif │ │ │ ├── 13.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 2.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 3.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 4.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 5.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 6.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ ├── 65.gif │ │ │ ├── 66.gif │ │ │ ├── 67.gif │ │ │ ├── 68.gif │ │ │ ├── 69.gif │ │ │ ├── 7.gif │ │ │ ├── 70.gif │ │ │ ├── 71.gif │ │ │ ├── 8.gif │ │ │ └── 9.gif │ │ ├── lay │ │ ├── dest │ │ │ └── layui.all.js │ │ ├── lib │ │ │ └── jquery.js │ │ └── modules │ │ │ ├── code.js │ │ │ ├── element.js │ │ │ ├── flow.js │ │ │ ├── form.js │ │ │ ├── laydate.js │ │ │ ├── layedit.js │ │ │ ├── layer.js │ │ │ ├── laypage.js │ │ │ ├── laytpl.js │ │ │ ├── tree.js │ │ │ ├── upload.js │ │ │ └── util.js │ │ └── layui.js ├── login.css ├── order │ ├── orderConfirm.css │ ├── payment.css │ └── personage.css ├── public.css ├── publish.css ├── search.css ├── template.min.css └── user.css ├── images ├── admin │ ├── 0.jpg │ ├── add.png │ ├── banner1.jpg │ ├── banner1.png │ ├── banner2.jpg │ ├── banner2.png │ ├── banner3.jpg │ ├── banner3.png │ ├── daochu.png │ ├── daochu1.png │ ├── daoru.png │ ├── icon.png │ ├── logo.jpg │ ├── look.png │ ├── look2.png │ ├── look3.png │ └── quanxian.png ├── pay │ ├── pay_fail.png │ ├── pay_img1.jpg │ ├── pay_img2.jpg │ ├── pay_img3.jpg │ ├── pay_img4.jpg │ ├── pay_img5.jpg │ ├── pay_succ.png │ ├── scanSucc.jpg │ └── talk.png └── web │ └── user │ ├── auth_alert_bg.png │ ├── b78c6caa-0175-4610-a591-c6aa2917c3aa.png │ └── tongji.png ├── index.jsp └── js ├── MagnifierF.js ├── admin ├── jquery.ba-resize.min.js ├── jquery.gvChart-1.0.1.min.js ├── jquery.js ├── jquery.min.js ├── jsapi.js ├── x-admin.js └── x-layui.js ├── allcity.js ├── auth.js ├── base.js ├── common.js ├── common.min.js ├── css ├── layui.css └── modules │ ├── code.css │ ├── laydate │ ├── icon.png │ └── laydate.css │ └── layer │ └── default │ ├── icon-ext.png │ ├── icon.png │ ├── layer.css │ ├── loading-0.gif │ ├── loading-1.gif │ └── loading-2.gif ├── detail.js ├── font ├── iconfont.eot ├── iconfont.svg ├── iconfont.ttf └── iconfont.woff ├── forget.js ├── index.js ├── jquery.md5.js ├── jquery.min.js ├── jquery_002.js ├── lay ├── dest │ ├── layui.all.js │ └── layui.mod.js ├── font │ ├── iconfont.eot │ ├── iconfont.svg │ ├── iconfont.ttf │ └── iconfont.woff ├── lib │ └── jquery.js └── modules │ ├── code.js │ ├── element.js │ ├── flow.js │ ├── form.js │ ├── laydate.js │ ├── layedit.js │ ├── layer.js │ ├── laypage.js │ ├── laytpl.js │ ├── tree.js │ ├── upload.js │ └── util.js ├── layui.all.js ├── layui.js ├── login.js ├── message.js ├── order.js ├── order ├── distpicker.data.js ├── distpicker.js ├── index.js ├── jquery.page.js ├── orders.js └── personal.js ├── publish.js ├── push.js ├── register.js ├── search.js ├── user_index.js └── userinfo.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Example user template template 3 | ### Example user template 4 | 5 | # Mac default file 6 | *.DS_Store 7 | 8 | #Eclipse generate files 9 | .project 10 | .classpath 11 | .settings 12 | 13 | #Intellij generate files 14 | .idea 15 | *.iml 16 | 17 | #maven generate files 18 | target 19 | bin 20 | 21 | #.gitignore for java 22 | *.class 23 | sys/ 24 | catalina.home_IS_UNDEFINED 25 | /.idea/ 26 | data/ 27 | .idea/.name 28 | .idea/dataSources.local.xml 29 | .idea/dataSources.xml 30 | .idea/dataSources/ 31 | .idea/libraries/ 32 | .idea/uiDesigner.xml 33 | .idea/workspace.xml 34 | /.idea/ 35 | /out/ 36 | /.gradle/ 37 | /build/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 科大二手工坊 2 | 3 | ## 🎉🎉 SpringBoot快速启动版 [科大二手工坊V3(点我直达→)](https://github.com/lvr1997/kd-shop-fast) 4 | 5 | ## 项目介绍 6 | 7 | 基于SSM的校园二手物品交易平台(项目包括前台和后台) 8 | 9 | **‼️‼️在此说一下,用这个项目做毕设的同学注意了‼️只要有一点SSM基础跑起来是绝对没问题的。0基础的小白最好先补充一点基础知识再来。觉得有用的可以点个star,觉得没有用的就划过。作者在本地项目运行是没问题的。新导入的项目如果跑不起来请移步我的B站,有讲解视频。👉[【科大二手工坊项目配置教程-哔哩哔哩】](https://b23.tv/RPuICwZ)下方原有的QQ群入口已经关闭** 10 | 11 | ## Q&A 12 | 13 | - 项目有没有毕业论文? 答:原先有,这里说明下不再提供了,因为提供的多了,对你们也不好,毕竟论文到最后都是要经过查重的。 14 | - 项目跑不起来?答:新导入的项目使用idea打开,resources目录可能颜色不太对,要右键resources目录将它做成资源目录。(make direction with 选择 resources root) 15 | - 项目跑起来后没有数据?答:sql文件除用户表以外的表数据已经清空,只有表结构。添加闲置物品提示没有分类请登录后台,自行添加。 16 | - 对于关于上传的图片不显示的问题?答:经测试,项目代码是没有问题的,出问题的在于idea的配置问题。项目的输出目录要配置在tomcat的webapp内(不会的看上边的视频链接) 17 | 18 | 19 | ### 首页截图 20 | 21 | ![image.png](https://s2.loli.net/2021/12/18/pT2a8w1PgmKlQUk.png) 22 | 23 | ### 后台截图 24 | 25 | ![image.png](https://s2.loli.net/2021/12/18/aehXmsMySWorbZI.png) 26 | 27 | ## 运行环境 28 | 29 | 开发工具 IDEA 30 | 31 | 安装运行环境: 32 | 33 | 1. `jdk1.8` 34 | 2. `Tomact8`或`Tomcat8.5` 35 | 3. `maven3.5` 36 | 37 | 数据库:MySQL 38 | 39 | 40 | ## 项目说明 41 | 42 | **端口号暂时固定为8088,不要更改其它的tomact端口号** 43 | 44 | **不建议用Tomcat9哦!版本过高会出现不兼容的问题** 45 | 46 | 访问网址:localhost:8088/goods/index 47 | 48 | 学生用户登录 15232103749/123456 49 | 50 | 管理页面登录:localhost:8088/admin/toLogin 51 | 52 | 系统管理员用户登录 17611006666/aaa 53 | 54 | > 实在跑不起来的同学,这里贴一下作者本地的项目,下载即可!! [度盘链接](https://pan.baidu.com/s/1klVY5BwlEeH1t05gvZ5dZA?pwd=myhc),提取码:myhc 55 | 56 | ## 更新日志 57 | 58 | 2020.04.14 59 | 1. 项目部分调整,保证能启动 60 | 2. 添加数据库`sql`文件,在`src/main/java/resources`目录下 61 | 62 | 2020.12.09 63 | 64 | 1. 更新pom依赖 65 | 2. 添加git忽略文件 66 | 67 | 2020.12.10 68 | 69 | 1. 更新至Spring5.x版本 70 | 71 | 2020.12.11 72 | 73 | 1. 修复项目启动访问页面报404问题 74 | 2. 修改项目名 **kd-second-hand-workshop** 75 | 76 | 2021.01.05 77 | 78 | 1. 统一项目根路径 79 | 80 | 2021.12.17 81 | 82 | 1. 修复在Tomcat8.0及8.5运行环境下项目启动报404的问题 83 | 84 | 2. 修复在个人中心查看自己购买的商品时,还可以购买自己的商品的bug 85 | 86 | 2021.12.20 87 | 88 | 1. 修复上传图片会存到target目录以及重新部署后,上传的图片丢失的问题的bug 89 | 90 | 2. 修复用户累计收入收出功能漏洞 91 | 92 | 3. 清空除用户表、地址表以外其他表添加的测试数据 93 | 94 | 4. 解决上传头像后,部分页面不显示的问题、 95 | 96 | 2022.02.21 97 | 98 | 1. 解决上传头像后部分页面不显示的问题 99 | 100 | 2. 解决确认订单后页面404的问题 101 | 102 | ## 功能模块 103 | 104 | 前台部分: 105 | - [x] 首页 106 | - [x] 分类展示 107 | - [x] 闲置检索 108 | - [x] 发布闲置 109 | - [x] 学生用户登录 110 | - [x] 找回密码 111 | - [x] 注册 112 | - [x] 发布/想要 113 | - [x] 管理我发布的闲置 114 | - [x] 管理我想要的闲置 115 | - [x] 用户留言(收到的留言,发布的留言) 116 | - [x] 个人信息管理 117 | - [x] 订单管理 118 | - [x] 意见反馈 119 | - [x] 累计收入,累计支出 120 | - [x] 模拟支付 121 | - [x] 收货地址管理 122 | - [x] 闲置收藏 123 | 124 | 后台管理系统部分: 125 | 126 | - [x] 首页轮播图管理 127 | - [x] 闲置管理 128 | - [x] 分类管理 129 | - [x] 举报管理 130 | - [x] 留言管理 131 | - [x] 订单管理 132 | 133 | **** 134 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/controller/CatelogController.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | @RequestMapping("/category") 8 | public class CatelogController { 9 | @RequestMapping(value = "category_list") 10 | public String category(){ 11 | return "category/category_list"; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/controller/DictController.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.controller; 2 | 3 | import java.util.List; 4 | 5 | import javax.annotation.Resource; 6 | 7 | import com.springmvc.pojo.Area; 8 | import com.springmvc.pojo.City; 9 | import com.springmvc.pojo.Province; 10 | import com.springmvc.pojo.ResponseResult; 11 | import com.springmvc.service.DictService; 12 | import org.springframework.stereotype.Controller; 13 | import org.springframework.web.bind.annotation.RequestMapping; 14 | import org.springframework.web.bind.annotation.RequestParam; 15 | import org.springframework.web.bind.annotation.ResponseBody; 16 | 17 | 18 | @Controller 19 | @RequestMapping("/dict") 20 | public class DictController { 21 | @Resource 22 | private DictService dictService; 23 | 24 | @RequestMapping("/showProvince") 25 | @ResponseBody 26 | public ResponseResult> 27 | showProvince(){ 28 | ResponseResult> rr; 29 | List listp = 30 | dictService.getProvinces(); 31 | rr = new ResponseResult>(); 32 | rr.setState(1); 33 | rr.setMessage("获取数据成功"); 34 | rr.setData(listp); 35 | return rr; 36 | } 37 | 38 | @RequestMapping("/showCity") 39 | @ResponseBody 40 | public ResponseResult> showCity(@RequestParam("provinceCode") String provinceCode){ 41 | ResponseResult> rr; 42 | List listC = dictService.getCities(provinceCode); 43 | rr = new ResponseResult>(); 44 | rr.setState(1); 45 | rr.setMessage("获取数据成功"); 46 | rr.setData(listC); 47 | return rr; 48 | } 49 | @RequestMapping("/showArea") 50 | @ResponseBody 51 | public ResponseResult> showArea(@RequestParam("cityCode") String cityCode){ 52 | ResponseResult> rr; 53 | List listA = dictService.getAreas(cityCode); 54 | 55 | rr = new ResponseResult>(); 56 | rr.setData(listA); 57 | rr.setState(1); 58 | rr.setMessage("获取数据成功"); 59 | return rr; 60 | } 61 | 62 | 63 | } 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/AddressMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Address; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface AddressMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table address 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table address 20 | * 21 | * @mbggenerated 22 | */ 23 | Address selectByPrimaryKey(Integer id); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table address 28 | * 29 | * @mbggenerated 30 | */ 31 | List
selectAll(); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table address 36 | * 37 | * @mbggenerated 38 | */ 39 | int updateByPrimaryKey(Address record); 40 | 41 | 42 | /** 43 | * 通过uid查询收获地址 44 | * @param uid 45 | * @return 46 | */ 47 | List
getAllAddressByUid(@Param("uid") Integer uid); 48 | 49 | /** 50 | * 添加address 51 | * @param address 52 | */ 53 | void insert(Address address); 54 | 55 | 56 | /** 57 | * 修改uid的所有的收件地址的is_default的值为0 58 | * @param uid 59 | */ 60 | void setCancel(Integer uid); 61 | /** 62 | * 修改is_default值为1 63 | * @param id 64 | */ 65 | void setDefault(Integer id); 66 | /** 67 | * 通过Id查询Address信息 68 | * @param id 69 | * @return 70 | */ 71 | Address getAddressById(@Param("id") Integer id); 72 | /** 73 | * 修改address 74 | * @param address 75 | */ 76 | void update(Address address); 77 | 78 | /** 79 | * 根据id删除一个地址信息 80 | * @param id 81 | * @return 82 | */ 83 | Integer delete(Integer id); 84 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/CarouselMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Carousel; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface CarouselMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table carousel 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table carousel 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Carousel record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table carousel 28 | * 29 | * @mbggenerated 30 | */ 31 | Carousel selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table carousel 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table carousel 44 | * 45 | * @mbggenerated 46 | */ 47 | int updateByPrimaryKey(Carousel record); 48 | 49 | int updateStatusByPrimaryKey(@Param("id") Integer id, @Param("status") Byte status); 50 | 51 | List selectCarouselByStatus(@Param("status") Byte status); 52 | 53 | List searchCarouselByTitleOrDescript(@Param("title") String title, @Param("descript") String descript); 54 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/CatelogMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Catelog; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface CatelogMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table catelog 12 | * 13 | * @mbggenerated 14 | */ int deleteByPrimaryKey(Integer id); 15 | 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table catelog 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Catelog record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table catelog 28 | * 29 | * @mbggenerated 30 | */ 31 | Catelog selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table catelog 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table catelog 44 | * 45 | * @mbggenerated 46 | */ 47 | int updateByPrimaryKey(Catelog record); 48 | 49 | 50 | List getAllCatelogByStatus(@Param("status") Byte status); 51 | 52 | 53 | int getCount(Catelog catelog); 54 | 55 | 56 | int updateCatelogNum(@Param("id") Integer id, @Param("number") Integer number); 57 | 58 | List searchCatelogByName(@Param("name") String name); 59 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/CommentsMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Comments; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface CommentsMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table comments 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table comments 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Comments record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table comments 28 | * 29 | * @mbggenerated 30 | */ 31 | Comments selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table comments 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table comments 44 | * 45 | * @mbggenerated 46 | */ 47 | int updateByPrimaryKey(Comments record); 48 | 49 | List selectByUserKeyWithContent(@Param("uid") Integer uid); 50 | 51 | List selectByGoodsId(@Param("gid") Integer goodsId); 52 | 53 | List searchCommentsByContent(@Param("content") String content); 54 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/DictMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import java.util.List; 4 | 5 | import com.springmvc.pojo.Area; 6 | import com.springmvc.pojo.City; 7 | import com.springmvc.pojo.Province; 8 | 9 | public interface DictMapper { 10 | 11 | List getProvinces(); 12 | List getCities(String provinceCode); 13 | List getAreas(String cityCode); 14 | String getProvinceByCode(String code); 15 | String getCityByCode(String code); 16 | String getAreaByCode(String code); 17 | } 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/GoodsMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Goods; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface GoodsMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table goods 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table goods 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Goods record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table goods 28 | * 29 | * @mbggenerated 30 | */ 31 | Goods selectByPrimaryKey(Integer id); 32 | 33 | 34 | /** 35 | * This method was generated by MyBatis Generator. 36 | * This method corresponds to the database table goods 37 | * 38 | * @mbggenerated 39 | */ 40 | int updateByPrimaryKey(Goods record); 41 | 42 | List selectAllGoods(); 43 | 44 | List searchGoods(@Param("name") String name, @Param("describle") String describle, @Param("status") Byte status); 45 | 46 | List selectByCatelogAndStatus(@Param("cid") Integer cid, @Param("status") Byte status); 47 | 48 | List selectByCatelogOrderByPolishDate(Integer catelogId, Integer limit); 49 | 50 | List selectGoodsOrderByDate(Integer limit); 51 | 52 | List selectGoodsByCatelogStatus(@Param("catelogId") Integer catelogId); 53 | 54 | List getGoodsByUserId(Integer user_id); 55 | 56 | List selectPrimaryKey(); 57 | 58 | int updateViewCountByPrimaryKey(@Param("id") Integer id, @Param("viewCount") Integer viewCount); 59 | 60 | List selectGoodsByStatusOrderByViewcountLimit(@Param("status") Byte status, @Param("limit") Integer limit); 61 | 62 | int updatePolishTimeByPrimaryKey(@Param("id") Integer gid, @Param("polishTime") String polishTime); 63 | 64 | List selectGoodsByStatusOrderByPolishTime(@Param("status") Byte status); 65 | 66 | int updateStatusByPrimaryKey(@Param("id") Integer gid, @Param("status") Byte status); 67 | 68 | int updateEndTimeByPrimaryKey(@Param("id") Integer gid, @Param("endTime") String endTime); 69 | 70 | int updateCommentNumByPrimaryKey(@Param("id") Integer gid, @Param("commentNum") Integer commentNum); 71 | 72 | List searchGoodsByKeyWord(@Param("name") String name, @Param("describle") String describle); 73 | 74 | Goods searchGoodsByKeyWordAndPrimary(@Param("id") Integer id, @Param("name") String name, @Param("describle") String describle); 75 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/ImageMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Image; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface ImageMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table image 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table image 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Image record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table image 28 | * 29 | * @mbggenerated 30 | */ 31 | Image selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table image 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table image 44 | * 45 | * @mbggenerated 46 | */ 47 | int updateByPrimaryKey(Image record); 48 | 49 | List selectByGoodsPrimaryKey(@Param("goods_id") Integer goods_id); 50 | 51 | int deleteImagesByGoodsPrimaryKey(Integer goods_id); 52 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/NoticeMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Notice; 4 | import java.util.List; 5 | 6 | public interface NoticeMapper { 7 | /** 8 | * This method was generated by MyBatis Generator. 9 | * This method corresponds to the database table notice 10 | * 11 | * @mbggenerated 12 | */ 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | /** 16 | * This method was generated by MyBatis Generator. 17 | * This method corresponds to the database table notice 18 | * 19 | * @mbggenerated 20 | */ 21 | int insert(Notice record); 22 | 23 | /** 24 | * This method was generated by MyBatis Generator. 25 | * This method corresponds to the database table notice 26 | * 27 | * @mbggenerated 28 | */ 29 | Notice selectByPrimaryKey(Integer id); 30 | 31 | /** 32 | * This method was generated by MyBatis Generator. 33 | * This method corresponds to the database table notice 34 | * 35 | * @mbggenerated 36 | */ 37 | List selectAll(); 38 | 39 | /** 40 | * This method was generated by MyBatis Generator. 41 | * This method corresponds to the database table notice 42 | * 43 | * @mbggenerated 44 | */ 45 | int updateByPrimaryKey(Notice record); 46 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/OrdersMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Orders; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface OrdersMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table order 12 | * 13 | * @mbggenerated 14 | */ 15 | int insert(Orders record); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table order 20 | * 21 | * @mbggenerated 22 | */ 23 | List selectAll(); 24 | 25 | 26 | List selectOrdersByUserId(@Param("userId") Integer userId); 27 | 28 | Orders selectOrdersByGoodId(@Param("goodId") Integer goodId); 29 | 30 | 31 | Double getSpendByUserId(@Param("userId") Integer userId); 32 | 33 | Double getIncomeByUserId(@Param("userId") Integer userId); 34 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/ReplyMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Reply; 4 | import java.util.List; 5 | 6 | public interface ReplyMapper { 7 | /** 8 | * This method was generated by MyBatis Generator. 9 | * This method corresponds to the database table reply 10 | * 11 | * @mbggenerated 12 | */ 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | /** 16 | * This method was generated by MyBatis Generator. 17 | * This method corresponds to the database table reply 18 | * 19 | * @mbggenerated 20 | */ 21 | int insert(Reply record); 22 | 23 | /** 24 | * This method was generated by MyBatis Generator. 25 | * This method corresponds to the database table reply 26 | * 27 | * @mbggenerated 28 | */ 29 | Reply selectByPrimaryKey(Integer id); 30 | 31 | /** 32 | * This method was generated by MyBatis Generator. 33 | * This method corresponds to the database table reply 34 | * 35 | * @mbggenerated 36 | */ 37 | List selectAll(); 38 | 39 | /** 40 | * This method was generated by MyBatis Generator. 41 | * This method corresponds to the database table reply 42 | * 43 | * @mbggenerated 44 | */ 45 | int updateByPrimaryKey(Reply record); 46 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/ReportMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Report; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface ReportMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table reply 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table reply 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Report record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table reply 28 | * 29 | * @mbggenerated 30 | */ 31 | Report selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table reply 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table reply 44 | * 45 | * @mbggenerated 46 | */ 47 | int updateByPrimaryKey(Report record); 48 | 49 | List selectReportByGoodsPrimaryKey(@Param("gid") Integer gid); 50 | 51 | 52 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/UserMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.User; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface UserMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table user 12 | * 13 | * 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table user 20 | * 21 | * 22 | */ 23 | int insert(User record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table user 28 | * 29 | * 30 | */ 31 | User selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table user 36 | * 37 | * 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table user 44 | * 45 | * 46 | */ 47 | int updateByPrimaryKey(User record); 48 | 49 | int updateLastLoginByPrimaryKey(User record); 50 | 51 | int updateByPrimaryKeySelective(User record); 52 | 53 | User getUserByPhone(@Param("phone") String phone); 54 | 55 | List getUserList(); 56 | 57 | int updateGoodsNum(@Param("id") Integer id, @Param("goodsNum") Integer goodsNum); 58 | 59 | int updateImgUrl(@Param("id") Integer id, @Param("url") String url); 60 | 61 | Integer checkUserByPhone(@Param("phone") String phone); 62 | 63 | int updatePasswordByPrimaryKey(@Param("uid") Integer uid, @Param("password") String password); 64 | 65 | int updatePowerByPrimaryKey(@Param("uid") Integer uid, @Param("power") Integer power); 66 | 67 | List searchUserByNameOrPhone(@Param("name") String name, @Param("phone") String phone); 68 | 69 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/dao/WantedMapper.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.dao; 2 | 3 | import com.springmvc.pojo.Wanted; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface WantedMapper { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table wanted 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table wanted 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Wanted record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table wanted 28 | * 29 | * @mbggenerated 30 | */ 31 | Wanted selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table wanted 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table wanted 44 | * 45 | * @mbggenerated 46 | */ 47 | int updateByPrimaryKey(Wanted record); 48 | 49 | Wanted selectWant(@Param("uid") Integer uid, @Param("gid") Integer gid); 50 | 51 | List selectWantByUserId(@Param("uid") Integer uid); 52 | 53 | int deleteWantedByGoodsId(@Param("gid") Integer gid); 54 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/ex/PageNotFoundException.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.ex; 2 | 3 | public class PageNotFoundException extends ServiceException { 4 | public PageNotFoundException() { 5 | super(); 6 | } 7 | 8 | public PageNotFoundException(String message) { 9 | super(message); 10 | } 11 | 12 | public PageNotFoundException(String message, Throwable cause) { 13 | super(message, cause); 14 | } 15 | 16 | public PageNotFoundException(Throwable cause) { 17 | super(cause); 18 | } 19 | 20 | protected PageNotFoundException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { 21 | super(message, cause, enableSuppression, writableStackTrace); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/ex/PhoneNotFoundException.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.ex; 2 | 3 | public class PhoneNotFoundException extends ServiceException{ 4 | public PhoneNotFoundException() { 5 | super(); 6 | } 7 | 8 | public PhoneNotFoundException(String message) { 9 | super(message); 10 | } 11 | 12 | public PhoneNotFoundException(String message, Throwable cause) { 13 | super(message, cause); 14 | } 15 | 16 | public PhoneNotFoundException(Throwable cause) { 17 | super(cause); 18 | } 19 | 20 | protected PhoneNotFoundException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { 21 | super(message, cause, enableSuppression, writableStackTrace); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/ex/ServiceException.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.ex; 2 | 3 | public class ServiceException extends RuntimeException { 4 | public ServiceException() { 5 | super(); 6 | } 7 | 8 | public ServiceException(String message) { 9 | super(message); 10 | } 11 | 12 | public ServiceException(String message, Throwable cause) { 13 | super(message, cause); 14 | } 15 | 16 | public ServiceException(Throwable cause) { 17 | super(cause); 18 | } 19 | 20 | protected ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { 21 | super(message, cause, enableSuppression, writableStackTrace); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/ex/UserPasswordErrorException.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.ex; 2 | 3 | public class UserPasswordErrorException extends ServiceException{ 4 | public UserPasswordErrorException() { 5 | super(); 6 | } 7 | 8 | public UserPasswordErrorException(String message) { 9 | super(message); 10 | } 11 | 12 | public UserPasswordErrorException(String message, Throwable cause) { 13 | super(message, cause); 14 | } 15 | 16 | public UserPasswordErrorException(Throwable cause) { 17 | super(cause); 18 | } 19 | 20 | protected UserPasswordErrorException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { 21 | super(message, cause, enableSuppression, writableStackTrace); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/ex/UsernameTakenException.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.ex; 2 | 3 | public class UsernameTakenException extends ServiceException{ 4 | public UsernameTakenException() { 5 | super(); 6 | } 7 | 8 | public UsernameTakenException(String message) { 9 | super(message); 10 | } 11 | 12 | public UsernameTakenException(String message, Throwable cause) { 13 | super(message, cause); 14 | } 15 | 16 | public UsernameTakenException(Throwable cause) { 17 | super(cause); 18 | } 19 | 20 | protected UsernameTakenException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { 21 | super(message, cause, enableSuppression, writableStackTrace); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/mapper/CatelogMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | delete from catelog 23 | where id = #{id,jdbcType=INTEGER} 24 | 25 | 26 | 27 | 28 | 32 | insert into catelog (name, number, 33 | status) 34 | values ( #{name,jdbcType=VARCHAR}, #{number,jdbcType=INTEGER}, 35 | #{status,jdbcType=TINYINT}) 36 | 37 | 38 | 39 | 40 | 44 | update catelog 45 | set name = #{name,jdbcType=VARCHAR}, 46 | number = #{number,jdbcType=INTEGER}, 47 | status = #{status,jdbcType=TINYINT} 48 | where id = #{id,jdbcType=INTEGER} 49 | 50 | 59 | 69 | 70 | 71 | 80 | 81 | 82 | 83 | update 84 | catelog 85 | set 86 | number = #{number} 87 | where 88 | id = #{id} 89 | 90 | 91 | 92 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/mapper/DictMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 17 | 18 | 19 | 20 | 21 | 32 | 33 | 34 | 45 | 46 | 47 | 55 | 56 | 64 | 65 | 66 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/mapper/ImageMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | delete from image 23 | where id = #{id,jdbcType=INTEGER} 24 | 25 | 26 | 27 | 28 | 32 | insert into image (goods_id, img_url 33 | ) 34 | values (#{goodsId,jdbcType=INTEGER}, #{imgUrl,jdbcType=LONGVARCHAR} 35 | ) 36 | 37 | 38 | 39 | 40 | 44 | update image 45 | set goods_id = #{goodsId,jdbcType=INTEGER}, 46 | img_url = #{imgUrl,jdbcType=LONGVARCHAR} 47 | where id = #{id,jdbcType=INTEGER} 48 | 49 | 58 | 66 | 67 | 75 | 76 | 77 | delete 78 | from 79 | image 80 | where 81 | goods_id = #{goods_id,jdbcType=INTEGER} 82 | 83 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/mapper/NoticeMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | delete from notice 25 | where id = #{id,jdbcType=INTEGER} 26 | 27 | 28 | 29 | 30 | 34 | insert into notice (id, user_id, create_at, 35 | status, context) 36 | values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{createAt,jdbcType=VARCHAR}, 37 | #{status,jdbcType=TINYINT}, #{context,jdbcType=LONGVARCHAR}) 38 | 39 | 40 | 41 | 42 | 46 | update notice 47 | set user_id = #{userId,jdbcType=INTEGER}, 48 | create_at = #{createAt,jdbcType=VARCHAR}, 49 | status = #{status,jdbcType=TINYINT}, 50 | context = #{context,jdbcType=LONGVARCHAR} 51 | where id = #{id,jdbcType=INTEGER} 52 | 53 | 62 | 70 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/mapper/OrdersMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | insert 26 | into 27 | orders 28 | (id, order_id, user_id, good_id, address_id, pay_id, create_at, status) 29 | values 30 | (#{id,jdbcType=INTEGER}, 31 | #{orderId,jdbcType=LONGVARCHAR}, 32 | #{userId,jdbcType=INTEGER}, 33 | #{goodId,jdbcType=INTEGER}, 34 | #{addressId,jdbcType=INTEGER}, 35 | #{payId,jdbcType=LONGVARCHAR}, 36 | #{createAt,jdbcType=VARCHAR}, 37 | #{status,jdbcType=TINYINT}) 38 | 39 | 48 | 49 | 57 | 58 | 67 | 68 | 80 | 81 | 92 | 93 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/mapper/ReplyMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | delete from reply 25 | where id = #{id,jdbcType=INTEGER} 26 | 27 | 28 | 29 | 30 | 34 | insert into reply (id, user_id, atuser_id, 35 | commet_id, create_at, content 36 | ) 37 | values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{atuserId,jdbcType=INTEGER}, 38 | #{commetId,jdbcType=INTEGER}, #{createAt,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR} 39 | ) 40 | 41 | 42 | 43 | 44 | 48 | update reply 49 | set user_id = #{userId,jdbcType=INTEGER}, 50 | atuser_id = #{atuserId,jdbcType=INTEGER}, 51 | commet_id = #{commetId,jdbcType=INTEGER}, 52 | create_at = #{createAt,jdbcType=VARCHAR}, 53 | content = #{content,jdbcType=LONGVARCHAR} 54 | where id = #{id,jdbcType=INTEGER} 55 | 56 | 65 | 73 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/mapper/ReportMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | delete from report 23 | where id = #{id,jdbcType=INTEGER} 24 | 25 | 26 | 27 | 31 | insert into report (good_id, user_id, 32 | content, status 33 | ) 34 | values ( #{goodId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, 35 | #{content,jdbcType=LONGVARCHAR}, #{status,jdbcType=TINYINT} 36 | ) 37 | 38 | 39 | 40 | 44 | update reply 45 | set 46 | #{id,jdbcType=INTEGER}, 47 | #{goodId,jdbcType=INTEGER}, 48 | #{userId,jdbcType=INTEGER}, 49 | #{content,jdbcType=LONGVARCHAR}, 50 | #{status,jdbcType=TINYINT} 51 | where id = #{id,jdbcType=INTEGER} 52 | 53 | 63 | 72 | 73 | 82 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/mapper/WantedMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 22 | delete from wanted 23 | where id = #{id,jdbcType=INTEGER} 24 | 25 | 26 | 27 | 28 | 32 | insert into wanted (user_id, good_id, 33 | create_at) 34 | values (#{userId,jdbcType=INTEGER}, #{goodId,jdbcType=INTEGER}, 35 | #{createAt,jdbcType=VARCHAR}) 36 | 37 | 38 | 39 | 40 | 44 | update wanted 45 | set user_id = #{userId,jdbcType=INTEGER}, 46 | good_id = #{goodId,jdbcType=INTEGER}, 47 | create_at = #{createAt,jdbcType=VARCHAR} 48 | where id = #{id,jdbcType=INTEGER} 49 | 50 | 59 | 67 | 68 | 78 | 79 | 87 | 88 | 89 | DELETE 90 | FROM 91 | wanted 92 | WHERE 93 | good_id=#{gid} 94 | 95 | 96 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/Area.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Area implements Serializable{ 6 | 7 | private static final long serialVersionUID = -909376560285531695L; 8 | private Integer id; 9 | private String cityCode; 10 | private String areaCode; 11 | private String areaName; 12 | public Area(){ 13 | 14 | } 15 | public Area(Integer id, String cityCode, String areaCode, String areaName) { 16 | super(); 17 | this.id = id; 18 | this.cityCode = cityCode; 19 | this.areaCode = areaCode; 20 | this.areaName = areaName; 21 | } 22 | public Integer getId() { 23 | return id; 24 | } 25 | public void setId(Integer id) { 26 | this.id = id; 27 | } 28 | public String getCityCode() { 29 | return cityCode; 30 | } 31 | public void setCityCode(String cityCode) { 32 | this.cityCode = cityCode; 33 | } 34 | public String getAreaCode() { 35 | return areaCode; 36 | } 37 | public void setAreaCode(String areaCode) { 38 | this.areaCode = areaCode; 39 | } 40 | public String getAreaName() { 41 | return areaName; 42 | } 43 | public void setAreaName(String areaName) { 44 | this.areaName = areaName; 45 | } 46 | @Override 47 | public int hashCode() { 48 | final int prime = 31; 49 | int result = 1; 50 | result = prime * result + ((areaCode == null) ? 0 : areaCode.hashCode()); 51 | result = prime * result + ((areaName == null) ? 0 : areaName.hashCode()); 52 | result = prime * result + ((cityCode == null) ? 0 : cityCode.hashCode()); 53 | result = prime * result + ((id == null) ? 0 : id.hashCode()); 54 | return result; 55 | } 56 | @Override 57 | public boolean equals(Object obj) { 58 | if (this == obj) 59 | return true; 60 | if (obj == null) 61 | return false; 62 | if (getClass() != obj.getClass()) 63 | return false; 64 | Area other = (Area) obj; 65 | if (areaCode == null) { 66 | if (other.areaCode != null) 67 | return false; 68 | } else if (!areaCode.equals(other.areaCode)) 69 | return false; 70 | if (areaName == null) { 71 | if (other.areaName != null) 72 | return false; 73 | } else if (!areaName.equals(other.areaName)) 74 | return false; 75 | if (cityCode == null) { 76 | if (other.cityCode != null) 77 | return false; 78 | } else if (!cityCode.equals(other.cityCode)) 79 | return false; 80 | if (id == null) { 81 | if (other.id != null) 82 | return false; 83 | } else if (!id.equals(other.id)) 84 | return false; 85 | return true; 86 | } 87 | @Override 88 | public String toString() { 89 | return "Area [id=" + id + ", cityCode=" + cityCode + ", areaCode=" + areaCode + ", areaName=" + areaName + "]"; 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/CatelogExtend.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | import java.util.List; 4 | 5 | public class CatelogExtend { 6 | private Goods goods; 7 | private Catelog catelog; 8 | private User user; 9 | private List images; 10 | 11 | public CatelogExtend() { 12 | } 13 | 14 | public CatelogExtend(Goods goods, Catelog catelog, User user, List images) { 15 | this.goods = goods; 16 | this.catelog = catelog; 17 | this.user = user; 18 | this.images = images; 19 | } 20 | 21 | public Goods getGoods() { 22 | return goods; 23 | } 24 | 25 | public void setGoods(Goods goods) { 26 | this.goods = goods; 27 | } 28 | 29 | public Catelog getCatelog() { 30 | return catelog; 31 | } 32 | 33 | public void setCatelog(Catelog catelog) { 34 | this.catelog = catelog; 35 | } 36 | 37 | public User getUser() { 38 | return user; 39 | } 40 | 41 | public void setUser(User user) { 42 | this.user = user; 43 | } 44 | 45 | public List getImages() { 46 | return images; 47 | } 48 | 49 | public void setImages(List images) { 50 | this.images = images; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/City.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | import java.io.Serializable; 4 | 5 | public class City implements Serializable{ 6 | 7 | private static final long serialVersionUID = -4445227004750787958L; 8 | private Integer id; 9 | private String provinceCode; 10 | private String cityCode; 11 | private String cityName; 12 | public City(){ 13 | 14 | } 15 | public City(Integer id, String provinceCode, String cityCode, String cityName) { 16 | super(); 17 | this.id = id; 18 | this.provinceCode = provinceCode; 19 | this.cityCode = cityCode; 20 | this.cityName = cityName; 21 | } 22 | public Integer getId() { 23 | return id; 24 | } 25 | public void setId(Integer id) { 26 | this.id = id; 27 | } 28 | public String getProvinceCode() { 29 | return provinceCode; 30 | } 31 | public void setProvinceCode(String provinceCode) { 32 | this.provinceCode = provinceCode; 33 | } 34 | public String getCityCode() { 35 | return cityCode; 36 | } 37 | public void setCityCode(String cityCode) { 38 | this.cityCode = cityCode; 39 | } 40 | public String getCityName() { 41 | return cityName; 42 | } 43 | public void setCityName(String cityName) { 44 | this.cityName = cityName; 45 | } 46 | @Override 47 | public int hashCode() { 48 | final int prime = 31; 49 | int result = 1; 50 | result = prime * result + ((cityCode == null) ? 0 : cityCode.hashCode()); 51 | result = prime * result + ((cityName == null) ? 0 : cityName.hashCode()); 52 | result = prime * result + ((id == null) ? 0 : id.hashCode()); 53 | result = prime * result + ((provinceCode == null) ? 0 : provinceCode.hashCode()); 54 | return result; 55 | } 56 | @Override 57 | public boolean equals(Object obj) { 58 | if (this == obj) 59 | return true; 60 | if (obj == null) 61 | return false; 62 | if (getClass() != obj.getClass()) 63 | return false; 64 | City other = (City) obj; 65 | if (cityCode == null) { 66 | if (other.cityCode != null) 67 | return false; 68 | } else if (!cityCode.equals(other.cityCode)) 69 | return false; 70 | if (cityName == null) { 71 | if (other.cityName != null) 72 | return false; 73 | } else if (!cityName.equals(other.cityName)) 74 | return false; 75 | if (id == null) { 76 | if (other.id != null) 77 | return false; 78 | } else if (!id.equals(other.id)) 79 | return false; 80 | if (provinceCode == null) { 81 | if (other.provinceCode != null) 82 | return false; 83 | } else if (!provinceCode.equals(other.provinceCode)) 84 | return false; 85 | return true; 86 | } 87 | @Override 88 | public String toString() { 89 | return "City [id=" + id + ", provinceCode=" + provinceCode + ", cityCode=" + cityCode + ", cityName=" + cityName 90 | + "]"; 91 | } 92 | 93 | 94 | } 95 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/CommentsExtend.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | public class CommentsExtend { 4 | private Goods goods; 5 | private User user; 6 | private Comments comments; 7 | public Goods getGoods() { 8 | return goods; 9 | } 10 | public void setGoods(Goods goods) { 11 | this.goods = goods; 12 | } 13 | 14 | public User getUser() { 15 | return user; 16 | } 17 | 18 | public void setUser(User user) { 19 | this.user = user; 20 | } 21 | 22 | public Comments getComments() { 23 | return comments; 24 | } 25 | 26 | public void setComments(Comments comments) { 27 | this.comments = comments; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/GoodsExtend.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class GoodsExtend { 7 | private Goods goods; 8 | private List images = new ArrayList(); 9 | public Goods getGoods() { 10 | return goods; 11 | } 12 | public void setGoods(Goods goods) { 13 | this.goods = goods; 14 | } 15 | public List getImages() { 16 | return images; 17 | } 18 | public void setImages(List images) { 19 | this.images = images; 20 | } 21 | } -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/OrdersExtend.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | import java.util.List; 4 | 5 | public class OrdersExtend { 6 | private Goods good; 7 | private Orders orders; 8 | private List images; 9 | private User user; 10 | private Address address; 11 | 12 | public OrdersExtend() { 13 | } 14 | 15 | public OrdersExtend(Goods good, Orders order, List images, User user, Address address) { 16 | this.good = good; 17 | this.orders = order; 18 | this.images = images; 19 | this.user = user; 20 | this.address = address; 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return "OrdersExtend{" + 26 | "good=" + good + 27 | ", order=" + orders + 28 | ", images=" + images + 29 | ", user=" + user + 30 | ", address=" + address + 31 | '}'; 32 | } 33 | 34 | public Goods getGood() { 35 | return good; 36 | } 37 | 38 | public void setGood(Goods good) { 39 | this.good = good; 40 | } 41 | 42 | public Orders getOrders() { 43 | return orders; 44 | } 45 | 46 | public void setOrders(Orders orders) { 47 | this.orders = orders; 48 | } 49 | 50 | public List getImages() { 51 | return images; 52 | } 53 | 54 | public void setImages(List images) { 55 | this.images = images; 56 | } 57 | 58 | public User getUser() { 59 | return user; 60 | } 61 | 62 | public void setUser(User user) { 63 | this.user = user; 64 | } 65 | 66 | public Address getAddress() { 67 | return address; 68 | } 69 | 70 | public void setAddress(Address address) { 71 | this.address = address; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/Province.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Province implements Serializable{ 6 | 7 | private static final long serialVersionUID = 662269040070122298L; 8 | private Integer id; 9 | private String provinceCode; 10 | private String provinceName; 11 | public Province(){ 12 | 13 | } 14 | public Province(Integer id, String provinceCode, String provinceName) { 15 | super(); 16 | this.id = id; 17 | this.provinceCode = provinceCode; 18 | this.provinceName = provinceName; 19 | } 20 | public Integer getId() { 21 | return id; 22 | } 23 | public void setId(Integer id) { 24 | this.id = id; 25 | } 26 | public String getProvinceCode() { 27 | return provinceCode; 28 | } 29 | public void setProvinceCode(String provinceCode) { 30 | this.provinceCode = provinceCode; 31 | } 32 | public String getProvinceName() { 33 | return provinceName; 34 | } 35 | public void setProvinceName(String provinceName) { 36 | this.provinceName = provinceName; 37 | } 38 | @Override 39 | public int hashCode() { 40 | final int prime = 31; 41 | int result = 1; 42 | result = prime * result + ((id == null) ? 0 : id.hashCode()); 43 | result = prime * result + ((provinceCode == null) ? 0 : provinceCode.hashCode()); 44 | result = prime * result + ((provinceName == null) ? 0 : provinceName.hashCode()); 45 | return result; 46 | } 47 | @Override 48 | public boolean equals(Object obj) { 49 | if (this == obj) 50 | return true; 51 | if (obj == null) 52 | return false; 53 | if (getClass() != obj.getClass()) 54 | return false; 55 | Province other = (Province) obj; 56 | if (id == null) { 57 | if (other.id != null) 58 | return false; 59 | } else if (!id.equals(other.id)) 60 | return false; 61 | if (provinceCode == null) { 62 | if (other.provinceCode != null) 63 | return false; 64 | } else if (!provinceCode.equals(other.provinceCode)) 65 | return false; 66 | if (provinceName == null) { 67 | if (other.provinceName != null) 68 | return false; 69 | } else if (!provinceName.equals(other.provinceName)) 70 | return false; 71 | return true; 72 | } 73 | @Override 74 | public String toString() { 75 | return "Province [id=" + id + ", provinceCode=" + provinceCode + ", provinceName=" + provinceName + "]"; 76 | } 77 | 78 | 79 | } 80 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/Report.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | public class Report { 4 | private Integer id; 5 | private Integer goodId; 6 | private Integer userId; 7 | private String content; 8 | private Byte status; 9 | 10 | public Report() { 11 | } 12 | 13 | public Report(Integer id, Integer goodId, Integer userId, String content, Byte status) { 14 | this.id = id; 15 | this.goodId = goodId; 16 | this.userId = userId; 17 | this.content = content; 18 | this.status = status; 19 | } 20 | 21 | public Integer getId() { 22 | return id; 23 | } 24 | 25 | public void setId(Integer id) { 26 | this.id = id; 27 | } 28 | 29 | public Integer getGoodId() { 30 | return goodId; 31 | } 32 | 33 | public void setGoodId(Integer goodId) { 34 | this.goodId = goodId; 35 | } 36 | 37 | public Integer getUserId() { 38 | return userId; 39 | } 40 | 41 | public void setUserId(Integer userId) { 42 | this.userId = userId; 43 | } 44 | 45 | public Byte getStatus() { 46 | return status; 47 | } 48 | 49 | public void setStatus(Byte status) { 50 | this.status = status; 51 | } 52 | 53 | public String getContent() { 54 | return content; 55 | } 56 | 57 | public void setContent(String content) { 58 | this.content = content == null ? null : content.trim();; 59 | } 60 | 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/ReportExtend.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | import java.util.List; 4 | 5 | public class ReportExtend { 6 | private Report report; 7 | private Goods goods; 8 | private List images; 9 | private User user; 10 | 11 | public ReportExtend() { 12 | } 13 | 14 | public ReportExtend(Report report, Goods goods, List images, User user) { 15 | this.report = report; 16 | this.goods = goods; 17 | this.images = images; 18 | this.user = user; 19 | } 20 | 21 | public Report getReport() { 22 | return report; 23 | } 24 | 25 | public void setReport(Report report) { 26 | this.report = report; 27 | } 28 | 29 | public Goods getGoods() { 30 | return goods; 31 | } 32 | 33 | public void setGoods(Goods goods) { 34 | this.goods = goods; 35 | } 36 | 37 | public List getImages() { 38 | return images; 39 | } 40 | 41 | public void setImages(List images) { 42 | this.images = images; 43 | } 44 | 45 | public User getUser() { 46 | return user; 47 | } 48 | 49 | public void setUser(User user) { 50 | this.user = user; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/ResponseResult.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | import java.io.Serializable; 4 | 5 | public class ResponseResult implements Serializable { 6 | /** 7 | * 8 | */ 9 | private static final long serialVersionUID = 2744760061380493062L; 10 | private Integer state; 11 | private String message; 12 | private T data; 13 | public ResponseResult(){ 14 | 15 | } 16 | public ResponseResult(Integer state, String message) { 17 | super(); 18 | this.state = state; 19 | this.message = message; 20 | 21 | } 22 | public ResponseResult(Integer state, String message, T data) { 23 | super(); 24 | this.state = state; 25 | this.message = message; 26 | this.data = data; 27 | } 28 | public Integer getState() { 29 | return state; 30 | } 31 | public void setState(Integer state) { 32 | this.state = state; 33 | } 34 | public String getMessage() { 35 | return message; 36 | } 37 | public void setMessage(String message) { 38 | this.message = message; 39 | } 40 | public T getData() { 41 | return data; 42 | } 43 | public void setData(T data) { 44 | this.data = data; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/pojo/WantedExtend.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.pojo; 2 | 3 | public class WantedExtend { 4 | private Wanted wanted; 5 | private GoodsExtend goodsExtend; 6 | private User user; 7 | 8 | public Wanted getWanted() { 9 | return wanted; 10 | } 11 | 12 | public void setWanted(Wanted wanted) { 13 | this.wanted = wanted; 14 | } 15 | 16 | public GoodsExtend getGoodsExtend() { 17 | return goodsExtend; 18 | } 19 | 20 | public void setGoodsExtend(GoodsExtend goodsExtend) { 21 | this.goodsExtend = goodsExtend; 22 | } 23 | 24 | public User getUser() { 25 | return user; 26 | } 27 | 28 | public void setUser(User user) { 29 | this.user = user; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/AddressService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.Address; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface AddressService { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table address 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table address 20 | * 21 | * @mbggenerated 22 | */ 23 | Address selectByPrimaryKey(Integer id); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table address 28 | * 29 | * @mbggenerated 30 | */ 31 | List
selectAll(); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table address 36 | * 37 | * @mbggenerated 38 | */ 39 | int updateByPrimaryKey(Address record); 40 | 41 | 42 | 43 | List
getAllAddressByUid(Integer Uid); 44 | 45 | /** 46 | * 添加address 47 | * @param address 48 | */ 49 | void addAddress(Address address); 50 | 51 | /** 52 | * 设置is_default 53 | * @param uid 54 | * @param id 55 | */ 56 | void setDefault(Integer uid, Integer id); 57 | 58 | /** 59 | * 通过id查询Address信息,并返回 60 | * @param id 61 | * @return 62 | */ 63 | Address getAddressById(Integer id); 64 | /** 65 | * 修改Address 66 | * @param address 67 | */ 68 | void updateAddress(Address address); 69 | 70 | /** 71 | * 删除address记录 72 | * @param uid 73 | * @param id 74 | */ 75 | void deleteAddress(Integer uid, Integer id); 76 | 77 | 78 | } 79 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/CarouselService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.Carousel; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface CarouselService { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table reply 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table reply 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Carousel record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table reply 28 | * 29 | * @mbggenerated 30 | */ 31 | Carousel selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table reply 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table reply 44 | * 45 | * @mbggenerated 46 | */ 47 | int updateByPrimaryKey(Carousel record); 48 | 49 | int updateStatusByPrimaryKey(Integer id, Byte status); 50 | 51 | List selectCarouselByStatus(Byte status); 52 | 53 | List searchCarouselByTitleOrDescript(String title, String descript); 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/CatelogService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.Catelog; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface CatelogService { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table catelog 12 | * 13 | * @mbggenerated 14 | */ int deleteByPrimaryKey(Integer id); 15 | 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table catelog 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Catelog record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table catelog 28 | * 29 | * @mbggenerated 30 | */ 31 | Catelog selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table catelog 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table catelog 44 | * 45 | * @mbggenerated 46 | */ 47 | int updateByPrimaryKey(Catelog record); 48 | 49 | 50 | List getAllCatelogByStatus(Byte status); 51 | 52 | 53 | int getCount(Catelog catelog); 54 | 55 | int updateCatelogNum(Integer id, Integer number); 56 | 57 | List searchCatelogByName(String name); 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/CommentsService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.Comments; 4 | 5 | import java.util.List; 6 | 7 | public interface CommentsService { 8 | /** 9 | * This method was generated by MyBatis Generator. 10 | * This method corresponds to the database table comments 11 | * 12 | * @mbggenerated 13 | */ 14 | int deleteByPrimaryKey(Integer id); 15 | 16 | /** 17 | * This method was generated by MyBatis Generator. 18 | * This method corresponds to the database table comments 19 | * 20 | * @mbggenerated 21 | */ 22 | int insert(Comments record); 23 | 24 | /** 25 | * This method was generated by MyBatis Generator. 26 | * This method corresponds to the database table comments 27 | * 28 | * @mbggenerated 29 | */ 30 | Comments selectByPrimaryKey(Integer id); 31 | 32 | /** 33 | * This method was generated by MyBatis Generator. 34 | * This method corresponds to the database table comments 35 | * 36 | * @mbggenerated 37 | */ 38 | List selectAll(); 39 | 40 | /** 41 | * This method was generated by MyBatis Generator. 42 | * This method corresponds to the database table comments 43 | * 44 | * @mbggenerated 45 | */ 46 | int updateByPrimaryKey(Comments record); 47 | List selectByUserKeyWithContent(Integer uid); 48 | 49 | List selectByGoodsId(Integer goodsId); 50 | 51 | List searchCommentsByContent(String content); 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/DictService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import java.util.List; 4 | 5 | import com.springmvc.pojo.Area; 6 | import com.springmvc.pojo.City; 7 | import com.springmvc.pojo.Province; 8 | 9 | public interface DictService { 10 | List getProvinces(); 11 | List getCities(String provinceCode); 12 | List getAreas(String cityCode); 13 | 14 | } 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/GoodsService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.Goods; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface GoodsService { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table goods 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table goods 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Goods record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table goods 28 | * 29 | * @mbggenerated 30 | */ 31 | Goods selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table goods 36 | * 37 | * @mbggenerated 38 | */ 39 | int updateByPrimaryKey(Goods record); 40 | 41 | List selectAllGoods(); 42 | 43 | List searchGoods(String name, String describle, Byte status); 44 | 45 | List selectByCatelogAndStatus(Integer catelog_id, Byte status); 46 | 47 | List selectByCatelogOrderByPolishDate(Integer catelogId, Integer limit); 48 | 49 | List selectGoodsOrderByDate(Integer limit); 50 | 51 | List selectGoodsByCatelogStatus(Integer catelogId); 52 | 53 | List getGoodsByUserId(Integer user_id); 54 | 55 | List selectPrimaryKey(); 56 | 57 | int updateViewCountByPrimaryKey(Integer id, Integer viewCount); 58 | 59 | List selectGoodsByStatusOrderByViewcountLimit(Byte status, Integer limit);; 60 | 61 | int updatePolishTimeByPrimaryKey(Integer gid, String polishTime); 62 | 63 | List selectGoodsByStatusOrderByPolishTime(Byte status); 64 | 65 | int updateStatusByPrimaryKey(Integer gid, Byte status); 66 | 67 | int updateEndTimeByPrimaryKey(Integer gid, String endTime); 68 | 69 | int updateCommentNumByPrimaryKey(Integer gid, Integer commentNum); 70 | 71 | List searchGoodsByKeyWord(String name, String describle); 72 | 73 | Goods searchGoodsByKeyWordAndPrimary(Integer id, String name, String describle); 74 | } 75 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/ImageService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.Image; 4 | 5 | import java.util.List; 6 | 7 | public interface ImageService { 8 | 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table image 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table image 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(Image record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table image 28 | * 29 | * @mbggenerated 30 | */ 31 | Image selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table image 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | /** 42 | * This method was generated by MyBatis Generator. 43 | * This method corresponds to the database table image 44 | * 45 | * @mbggenerated 46 | */ 47 | int updateByPrimaryKey(Image record); 48 | 49 | List selectByGoodsPrimaryKey(Integer goods_id); 50 | 51 | int deleteImagesByGoodsPrimaryKey(Integer goods_id); 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/OrdersService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.Orders; 4 | 5 | import java.util.List; 6 | 7 | public interface OrdersService { 8 | /** 9 | * This method was generated by MyBatis Generator. 10 | * This method corresponds to the database table order 11 | * 12 | * @mbggenerated 13 | */ 14 | int insert(Orders record); 15 | 16 | /** 17 | * This method was generated by MyBatis Generator. 18 | * This method corresponds to the database table order 19 | * 20 | * @mbggenerated 21 | */ 22 | List selectAll(); 23 | 24 | 25 | 26 | List selectOrdersByUserId(Integer userId); 27 | 28 | Orders selectOrdersByGoodId(Integer goodId); 29 | 30 | 31 | Double getSpendByUserId(Integer userId); 32 | 33 | Double getIncomeByUserId(Integer userId); 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/ReportService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.Report; 4 | 5 | import java.util.List; 6 | 7 | public interface ReportService { 8 | /** 9 | * This method was generated by MyBatis Generator. 10 | * This method corresponds to the database table reply 11 | * 12 | * @mbggenerated 13 | */ 14 | int deleteByPrimaryKey(Integer id); 15 | 16 | /** 17 | * This method was generated by MyBatis Generator. 18 | * This method corresponds to the database table reply 19 | * 20 | * @mbggenerated 21 | */ 22 | int insert(Report record); 23 | 24 | /** 25 | * This method was generated by MyBatis Generator. 26 | * This method corresponds to the database table reply 27 | * 28 | * @mbggenerated 29 | */ 30 | Report selectByPrimaryKey(Integer id); 31 | 32 | /** 33 | * This method was generated by MyBatis Generator. 34 | * This method corresponds to the database table reply 35 | * 36 | * @mbggenerated 37 | */ 38 | List selectAll(); 39 | 40 | /** 41 | * This method was generated by MyBatis Generator. 42 | * This method corresponds to the database table reply 43 | * 44 | * @mbggenerated 45 | */ 46 | int updateByPrimaryKey(Report record); 47 | 48 | List selectReportByGoodsPrimaryKey(Integer gid); 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.User; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | import java.util.List; 7 | 8 | public interface UserService { 9 | /** 10 | * This method was generated by MyBatis Generator. 11 | * This method corresponds to the database table user 12 | * 13 | * @mbggenerated 14 | */ 15 | int deleteByPrimaryKey(Integer id); 16 | 17 | /** 18 | * This method was generated by MyBatis Generator. 19 | * This method corresponds to the database table user 20 | * 21 | * @mbggenerated 22 | */ 23 | int insert(User record); 24 | 25 | /** 26 | * This method was generated by MyBatis Generator. 27 | * This method corresponds to the database table user 28 | * 29 | * @mbggenerated 30 | */ 31 | User selectByPrimaryKey(Integer id); 32 | 33 | /** 34 | * This method was generated by MyBatis Generator. 35 | * This method corresponds to the database table user 36 | * 37 | * @mbggenerated 38 | */ 39 | List selectAll(); 40 | 41 | int updateByPrimaryKey(User record); 42 | 43 | int updateLastLoginByPrimaryKey(User record); 44 | 45 | int updateByPrimaryKeySelective(User record); 46 | 47 | User getUserByPhone(String phone); 48 | 49 | List getUserList(); 50 | 51 | int updateGoodsNum(Integer id, Integer goodsNum); 52 | 53 | int updateImgUrl(Integer id, String url); 54 | 55 | Integer checkUserByPhone(String phone); 56 | 57 | int updatePasswordByPrimaryKey(Integer uid, String password); 58 | 59 | int updatePowerByPrimaryKey(Integer uid, Integer power); 60 | 61 | List searchUserByNameOrPhone(String name, String phone); 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/WantedService.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service; 2 | 3 | import com.springmvc.pojo.Wanted; 4 | 5 | import java.util.List; 6 | 7 | public interface WantedService { 8 | /** 9 | * This method was generated by MyBatis Generator. 10 | * This method corresponds to the database table wanted 11 | * 12 | * @mbggenerated 13 | */ 14 | int deleteByPrimaryKey(Integer id); 15 | 16 | /** 17 | * This method was generated by MyBatis Generator. 18 | * This method corresponds to the database table wanted 19 | * 20 | * @mbggenerated 21 | */ 22 | int insert(Wanted record); 23 | 24 | /** 25 | * This method was generated by MyBatis Generator. 26 | * This method corresponds to the database table wanted 27 | * 28 | * @mbggenerated 29 | */ 30 | Wanted selectByPrimaryKey(Integer id); 31 | 32 | /** 33 | * This method was generated by MyBatis Generator. 34 | * This method corresponds to the database table wanted 35 | * 36 | * @mbggenerated 37 | */ 38 | List selectAll(); 39 | 40 | /** 41 | * This method was generated by MyBatis Generator. 42 | * This method corresponds to the database table wanted 43 | * 44 | * @mbggenerated 45 | */ 46 | int updateByPrimaryKey(Wanted record); 47 | 48 | Wanted selectWant(Integer uid, Integer gid); 49 | 50 | List selectWantByUserId(Integer uid); 51 | 52 | int deleteWantedByGoodsId(Integer gid); 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/impl/CarouselServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service.impl; 2 | 3 | import com.springmvc.dao.CarouselMapper; 4 | import com.springmvc.pojo.Carousel; 5 | import com.springmvc.service.CarouselService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service("carouselService") 12 | public class CarouselServiceImpl implements CarouselService{ 13 | 14 | @Resource 15 | private CarouselMapper carouselMapper; 16 | 17 | @Override 18 | public int deleteByPrimaryKey(Integer id) { 19 | return carouselMapper.deleteByPrimaryKey(id); 20 | } 21 | 22 | @Override 23 | public int insert(Carousel record) { 24 | return carouselMapper.insert(record); 25 | } 26 | 27 | @Override 28 | public Carousel selectByPrimaryKey(Integer id) { 29 | return carouselMapper.selectByPrimaryKey(id); 30 | } 31 | 32 | @Override 33 | public List selectAll() { 34 | return carouselMapper.selectAll(); 35 | } 36 | 37 | @Override 38 | public int updateByPrimaryKey(Carousel record) { 39 | return carouselMapper.updateByPrimaryKey(record); 40 | } 41 | 42 | @Override 43 | public int updateStatusByPrimaryKey(Integer id, Byte status) { 44 | return carouselMapper.updateStatusByPrimaryKey(id,status); 45 | } 46 | 47 | @Override 48 | public List selectCarouselByStatus(Byte status) { 49 | return carouselMapper.selectCarouselByStatus(status); 50 | } 51 | 52 | @Override 53 | public List searchCarouselByTitleOrDescript(String title, String descript) { 54 | return carouselMapper.searchCarouselByTitleOrDescript(title,descript); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/impl/CatelogServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service.impl; 2 | 3 | import com.springmvc.dao.CatelogMapper; 4 | import com.springmvc.pojo.Catelog; 5 | import com.springmvc.service.CatelogService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service("catelogService") 12 | public class CatelogServiceImpl implements CatelogService{ 13 | 14 | @Resource 15 | private CatelogMapper catelogMapper; 16 | 17 | public int deleteByPrimaryKey(Integer id) { 18 | return catelogMapper.deleteByPrimaryKey(id); 19 | } 20 | 21 | public int insert(Catelog record) { 22 | return catelogMapper.insert(record); 23 | } 24 | 25 | public Catelog selectByPrimaryKey(Integer id) { 26 | return catelogMapper.selectByPrimaryKey(id); 27 | } 28 | 29 | public List selectAll() { 30 | return catelogMapper.selectAll(); 31 | } 32 | 33 | public int updateByPrimaryKey(Catelog record) { 34 | return catelogMapper.updateByPrimaryKey(record); 35 | } 36 | 37 | public List getAllCatelogByStatus(Byte status) { 38 | return catelogMapper.getAllCatelogByStatus(status); 39 | } 40 | 41 | public int getCount(Catelog catelog) { 42 | return catelogMapper.getCount(catelog); 43 | } 44 | 45 | public int updateCatelogNum(Integer id, Integer number) { 46 | return catelogMapper.updateCatelogNum(id,number); 47 | } 48 | 49 | @Override 50 | public List searchCatelogByName(String name) { 51 | return catelogMapper.searchCatelogByName(name); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/impl/CommentsServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service.impl; 2 | 3 | import com.springmvc.dao.CommentsMapper; 4 | import com.springmvc.pojo.Comments; 5 | import com.springmvc.service.CommentsService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | @Service("commentsService") 11 | public class CommentsServiceImpl implements CommentsService{ 12 | 13 | @Resource 14 | private CommentsMapper commentsMapper; 15 | 16 | public int deleteByPrimaryKey(Integer id) { 17 | return commentsMapper.deleteByPrimaryKey(id); 18 | } 19 | 20 | public int insert(Comments record) { 21 | return commentsMapper.insert(record); 22 | } 23 | 24 | public Comments selectByPrimaryKey(Integer id) { 25 | return commentsMapper.selectByPrimaryKey(id); 26 | } 27 | 28 | public List selectAll() { 29 | return commentsMapper.selectAll(); 30 | } 31 | 32 | public int updateByPrimaryKey(Comments record) { 33 | return commentsMapper.updateByPrimaryKey(record); 34 | } 35 | 36 | public List selectByUserKeyWithContent(Integer uid) { 37 | return commentsMapper.selectByUserKeyWithContent(uid); 38 | } 39 | 40 | public List selectByGoodsId(Integer goodsId) { 41 | return commentsMapper.selectByGoodsId(goodsId); 42 | } 43 | 44 | @Override 45 | public List searchCommentsByContent(String content) { 46 | return commentsMapper.searchCommentsByContent(content); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/impl/DictServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service.impl; 2 | 3 | import java.util.List; 4 | 5 | import javax.annotation.Resource; 6 | 7 | import com.springmvc.dao.DictMapper; 8 | import com.springmvc.pojo.Area; 9 | import com.springmvc.pojo.City; 10 | import com.springmvc.pojo.Province; 11 | import org.springframework.stereotype.Service; 12 | 13 | @Service("dictService") 14 | public class DictServiceImpl implements com.springmvc.service.DictService { 15 | 16 | @Resource 17 | private DictMapper dictMapper; 18 | 19 | @Override 20 | public List getProvinces() { 21 | return dictMapper.getProvinces(); 22 | } 23 | @Override 24 | public List getCities(String provinceCode) { 25 | return dictMapper.getCities(provinceCode); 26 | } 27 | @Override 28 | public List getAreas(String cityCode) { 29 | return dictMapper.getAreas(cityCode); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/impl/ImageServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service.impl; 2 | 3 | import com.springmvc.dao.ImageMapper; 4 | import com.springmvc.pojo.Image; 5 | import com.springmvc.service.ImageService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service("imageService") 12 | public class ImageServiceImpl implements ImageService{ 13 | 14 | @Resource 15 | private ImageMapper imageMapper; 16 | 17 | public int deleteByPrimaryKey(Integer id) { 18 | return imageMapper.deleteByPrimaryKey(id); 19 | } 20 | 21 | public int insert(Image record) { 22 | return imageMapper.insert(record); 23 | } 24 | 25 | public Image selectByPrimaryKey(Integer id) { 26 | return imageMapper.selectByPrimaryKey(id); 27 | } 28 | 29 | public List selectAll() { 30 | return imageMapper.selectAll(); 31 | } 32 | 33 | public int updateByPrimaryKey(Image record) { 34 | return imageMapper.updateByPrimaryKey(record); 35 | } 36 | 37 | public List selectByGoodsPrimaryKey(Integer goods_id) { 38 | return imageMapper.selectByGoodsPrimaryKey(goods_id); 39 | } 40 | 41 | public int deleteImagesByGoodsPrimaryKey(Integer goods_id) { 42 | return imageMapper.deleteImagesByGoodsPrimaryKey(goods_id); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/impl/OrdersServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service.impl; 2 | 3 | import com.springmvc.dao.OrdersMapper; 4 | import com.springmvc.pojo.Orders; 5 | import com.springmvc.service.OrdersService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | 12 | @Service("ordersService") 13 | public class OrdersServiceImpl implements OrdersService { 14 | 15 | @Resource 16 | private OrdersMapper ordersMapper; 17 | 18 | @Override 19 | public int insert(Orders record) { 20 | return ordersMapper.insert(record); 21 | } 22 | 23 | @Override 24 | public List selectAll() { 25 | return ordersMapper.selectAll(); 26 | } 27 | 28 | @Override 29 | public List selectOrdersByUserId(Integer userId) { 30 | return ordersMapper.selectOrdersByUserId(userId); 31 | } 32 | 33 | @Override 34 | public Orders selectOrdersByGoodId(Integer goodId) { 35 | return ordersMapper.selectOrdersByGoodId(goodId); 36 | } 37 | 38 | @Override 39 | public Double getSpendByUserId(Integer userId) { 40 | return ordersMapper.getSpendByUserId(userId); 41 | } 42 | 43 | @Override 44 | public Double getIncomeByUserId(Integer userId) { 45 | return ordersMapper.getIncomeByUserId(userId); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/impl/ReportServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service.impl; 2 | 3 | import com.springmvc.dao.ReportMapper; 4 | import com.springmvc.pojo.Report; 5 | import com.springmvc.service.ReportService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service("reportService") 12 | public class ReportServiceImpl implements ReportService{ 13 | 14 | @Resource 15 | private ReportMapper reportMapper; 16 | 17 | @Override 18 | public int deleteByPrimaryKey(Integer id) { 19 | return reportMapper.deleteByPrimaryKey(id); 20 | } 21 | 22 | @Override 23 | public int insert(Report record) { 24 | return reportMapper.insert(record); 25 | } 26 | 27 | @Override 28 | public Report selectByPrimaryKey(Integer id) { 29 | return reportMapper.selectByPrimaryKey(id); 30 | } 31 | 32 | @Override 33 | public List selectAll() { 34 | return reportMapper.selectAll(); 35 | } 36 | 37 | @Override 38 | public int updateByPrimaryKey(Report record) { 39 | return reportMapper.updateByPrimaryKey(record); 40 | } 41 | 42 | @Override 43 | public List selectReportByGoodsPrimaryKey(Integer gid) { 44 | return reportMapper.selectReportByGoodsPrimaryKey(gid); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service.impl; 2 | 3 | import com.springmvc.dao.UserMapper; 4 | import com.springmvc.ex.PhoneNotFoundException; 5 | import com.springmvc.ex.UsernameTakenException; 6 | import com.springmvc.pojo.User; 7 | import com.springmvc.service.UserService; 8 | import org.springframework.stereotype.Service; 9 | 10 | import javax.annotation.Resource; 11 | import java.text.SimpleDateFormat; 12 | import java.util.Date; 13 | import java.util.List; 14 | 15 | @Service("userService") 16 | public class UserServiceImpl implements UserService{ 17 | 18 | @Resource 19 | private UserMapper userMapper; 20 | 21 | 22 | public int deleteByPrimaryKey(Integer id) { 23 | return userMapper.deleteByPrimaryKey(id); 24 | } 25 | 26 | public int insert(User record) { 27 | User user = userMapper.getUserByPhone(record.getPhone()); 28 | if(user == null){ 29 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 30 | record.setCreateAt(sdf.format(new Date())); 31 | record.setGoodsNum(0); 32 | record.setPower((byte)10); 33 | record.setSex("男"); 34 | record.setImgUrl("b78c6caa-0175-4610-a591-c6aa2917c3aa.png"); 35 | record.setBirthday(sdf.format(new Date())); 36 | return userMapper.insert(record); 37 | }else{ 38 | throw new UsernameTakenException("手机号已注册"); 39 | } 40 | } 41 | 42 | public User selectByPrimaryKey(Integer id) { 43 | return userMapper.selectByPrimaryKey(id); 44 | } 45 | 46 | public List selectAll() { 47 | return userMapper.selectAll(); 48 | } 49 | 50 | public int updateByPrimaryKey(User record) { 51 | return userMapper.updateByPrimaryKey(record); 52 | } 53 | 54 | public int updateLastLoginByPrimaryKey(User record) { 55 | return userMapper.updateLastLoginByPrimaryKey(record); 56 | } 57 | 58 | public int updateByPrimaryKeySelective(User record) { 59 | return userMapper.updateByPrimaryKeySelective(record); 60 | } 61 | 62 | public User getUserByPhone(String phone) { 63 | User user = userMapper.getUserByPhone(phone); 64 | if(user == null){ 65 | throw new PhoneNotFoundException("手机号未注册"); 66 | }else{ 67 | return user; 68 | } 69 | } 70 | 71 | public List getUserList() { 72 | return userMapper.getUserList(); 73 | } 74 | 75 | public int updateGoodsNum(Integer id, Integer goodsNum) { 76 | return userMapper.updateGoodsNum(id,goodsNum); 77 | } 78 | 79 | public int updateImgUrl(Integer id, String url) { 80 | return userMapper.updateImgUrl(id,url); 81 | } 82 | 83 | @Override 84 | public Integer checkUserByPhone(String phone) { 85 | return userMapper.checkUserByPhone(phone); 86 | } 87 | 88 | @Override 89 | public int updatePasswordByPrimaryKey(Integer uid, String password) { 90 | return userMapper.updatePasswordByPrimaryKey(uid,password); 91 | } 92 | 93 | @Override 94 | public int updatePowerByPrimaryKey(Integer uid, Integer power) { 95 | return userMapper.updatePowerByPrimaryKey(uid,power); 96 | } 97 | 98 | @Override 99 | public List searchUserByNameOrPhone(String name, String phone) { 100 | return userMapper.searchUserByNameOrPhone(name,phone); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/service/impl/WantedServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.service.impl; 2 | 3 | import com.springmvc.dao.WantedMapper; 4 | import com.springmvc.pojo.Wanted; 5 | import com.springmvc.service.WantedService; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | @Service("wantedService") 11 | public class WantedServiceImpl implements WantedService { 12 | 13 | @Resource 14 | private WantedMapper wantedMapper; 15 | 16 | public int deleteByPrimaryKey(Integer id) { 17 | return wantedMapper.deleteByPrimaryKey(id); 18 | } 19 | 20 | public int insert(Wanted record) { 21 | return wantedMapper.insert(record); 22 | } 23 | 24 | public Wanted selectByPrimaryKey(Integer id) { 25 | return wantedMapper.selectByPrimaryKey(id); 26 | } 27 | 28 | public List selectAll() { 29 | return wantedMapper.selectAll(); 30 | } 31 | 32 | public int updateByPrimaryKey(Wanted record) { 33 | return wantedMapper.updateByPrimaryKey(record); 34 | } 35 | 36 | public Wanted selectWant( Integer uid, Integer gid) { 37 | return wantedMapper.selectWant(uid,gid); 38 | } 39 | 40 | public List selectWantByUserId(Integer uid) { 41 | return wantedMapper.selectWantByUserId(uid); 42 | } 43 | 44 | public int deleteWantedByGoodsId(Integer gid) { 45 | return wantedMapper.deleteWantedByGoodsId(gid); 46 | } 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/util/MD5.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.util; 2 | 3 | import java.security.MessageDigest; 4 | 5 | /** 6 | * MD5加密类 7 | * @描述:密码加密 8 | * 9 | */ 10 | public final class MD5 { 11 | 12 | /** 13 | * Md5加密 14 | * @param s 15 | * @return 16 | */ 17 | public final static String md5(String s) { 18 | char hexDigits[] = { '0', '1', '2', '3', '4', 19 | '5', '6', '7', '8', '9', 20 | 'A', 'B', 'C', 'D', 'E', 'F'}; 21 | try { 22 | byte[] btInput = s.getBytes(); 23 | MessageDigest mdInst = MessageDigest.getInstance("MD5"); 24 | mdInst.update(btInput); 25 | byte[] md = mdInst.digest(); 26 | int j = md.length; 27 | char str[] = new char[j * 2]; 28 | int k = 0; 29 | for (int i = 0; i < j; i++) { 30 | byte byte0 = md[i]; 31 | str[k++] = hexDigits[byte0 >>> 4 & 0xf]; 32 | str[k++] = hexDigits[byte0 & 0xf]; 33 | } 34 | return new String(str); 35 | } 36 | catch (Exception e) { 37 | e.printStackTrace(); 38 | return null; 39 | } 40 | } 41 | 42 | public static void main(String[] args) { 43 | System.out.println(MD5.md5("967042")); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/web/AccessInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.web; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpServletResponse; 5 | import javax.servlet.http.HttpSession; 6 | 7 | import org.springframework.stereotype.Component; 8 | import org.springframework.web.servlet.HandlerInterceptor; 9 | import org.springframework.web.servlet.ModelAndView; 10 | 11 | 12 | /** 13 | * @author lvr1997 14 | */ 15 | @Component 16 | public class AccessInterceptor implements HandlerInterceptor { 17 | 18 | @Override 19 | public boolean preHandle( 20 | HttpServletRequest request, 21 | HttpServletResponse response, 22 | Object handler) 23 | throws Exception { 24 | //获取Session中的登录用户信息 25 | //如果是登录用户是null, 则重定向到登录页 26 | //如果不是空, 则返回true继续执行 27 | HttpSession session 28 | = request.getSession(); 29 | if (session.getAttribute("cur_user") == null) { 30 | //发起重定向 31 | String path="/user/toLogin"; 32 | response.sendRedirect(path); 33 | return false;//返回false不再执行后续的控制器 34 | } 35 | //如果登录了就直接放行 返回 true 36 | 37 | return true; 38 | } 39 | 40 | @Override 41 | public void postHandle( 42 | HttpServletRequest request, 43 | HttpServletResponse response, 44 | Object handler, 45 | ModelAndView modelAndView) throws Exception { 46 | } 47 | 48 | @Override 49 | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) 50 | throws Exception { 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/springmvc/web/AdminAccessInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.springmvc.web; 2 | 3 | import org.springframework.web.servlet.HandlerInterceptor; 4 | import org.springframework.web.servlet.ModelAndView; 5 | 6 | import javax.servlet.http.HttpServletRequest; 7 | import javax.servlet.http.HttpServletResponse; 8 | import javax.servlet.http.HttpSession; 9 | 10 | /** 11 | * @author lvr1997 12 | */ 13 | public class AdminAccessInterceptor implements HandlerInterceptor { 14 | @Override 15 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { 16 | 17 | HttpSession session 18 | = request.getSession(); 19 | if (session.getAttribute("admin") == null) { 20 | //发起重定向 21 | String path="/admin/toLogin"; 22 | response.sendRedirect(path); 23 | return false;//返回false不再执行后续的控制器 24 | } 25 | return true; 26 | } 27 | 28 | @Override 29 | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { 30 | 31 | } 32 | 33 | @Override 34 | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception { 35 | 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/resources/generator.properties: -------------------------------------------------------------------------------- 1 | jdbc.driverLocation=D:\\Project\\mysql-connector-java-5.1.6.jar 2 | jdbc.driverClass=com.mysql.jdbc.Driver 3 | jdbc.connectionURL=jdbc:mysql://localhost:3306/market 4 | jdbc.userId=root 5 | jdbc.password=root -------------------------------------------------------------------------------- /src/main/resources/jdbc.properties: -------------------------------------------------------------------------------- 1 | driver=com.mysql.jdbc.Driver 2 | url=jdbc:mysql://localhost:3306/market?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&serverTimezone=UTC 3 | username=root 4 | password=root 5 | 6 | #配置初始化大小、最小、最大 7 | initialSize = 10 8 | minIdle = 1 9 | maxActive = 10 10 | 11 | # ;连接池获取连接超时时间 12 | maxWait=60000 13 | #开启druid防火墙(防止Sql注入) 14 | filters = wall -------------------------------------------------------------------------------- /src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Set root category priority to INFO and its only appender to CONSOLE. 2 | #log4j.rootCategory=INFO, CONSOLE debug info warn error fatal 3 | log4j.rootCategory=debug, LOGFILE,CONSOLE 4 | 5 | # Set the enterprise logger category to FATAL and its only appender to CONSOLE. 6 | log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE 7 | 8 | # CONSOLE is set to be a ConsoleAppender using a PatternLayout. 9 | log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender 10 | log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout 11 | log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} %-6r [%15.15t] %-5p %30.30c %x - %m\n 12 | 13 | # LOGFILE is set to be a File appender using a PatternLayout. 14 | log4j.appender.LOGFILE=org.apache.log4j.FileAppender 15 | log4j.appender.LOGFILE.File=D:/nmyslog/kd.log 16 | log4j.appender.LOGFILE.Append=true 17 | log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout 18 | log4j.appender.LOGFILE.layout.ConversionPattern=%d{ISO8601} %-6r [%15.15t] %-5p %30.30c %x - %m\n -------------------------------------------------------------------------------- /src/main/resources/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/main/resources/mysql-connector-java-5.1.47.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/resources/mysql-connector-java-5.1.47.jar -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/city.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %> 2 | <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 4 | <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 5 | <%@page isELIgnored="false" %> 6 | <% 7 | String path = request.getContextPath(); 8 | String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 9 | %> 10 | 11 | 12 | 13 | 切换城市 14 | 15 | 16 | 17 | 18 | 19 | 20 | 28 | 29 | 30 |
点击切换
31 |
    32 | 33 |
  • 34 | 全国 35 |
  • 36 |
    37 |
38 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/error/404.jsp: -------------------------------------------------------------------------------- 1 | 2 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 3 | 4 | 5 | 6 | 7 | 这个.. 页面没有找到!!! 8 | 9 | 20 | 21 | 22 | 23 |
24 |
25 |
26 |

Sorry..页面没有找到!

27 |

似乎你所寻找的网页已移动或丢失了。 28 |

或者也许你只是键入错误了一些东西。

29 | 请不要担心,这没事。如果该资源对你很重要,请与管理员联系。 30 | 31 | 返回首页 32 | 33 |
34 |
35 |
36 | 37 | -------------------------------------------------------------------------------- /src/main/webapp/css/admin/login.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | 4 | * { font: 13px/1.5 '微软雅黑'; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -box-sizing: border-box; padding:0; margin:0; list-style:none; box-sizing: border-box; } 5 | body, html { height:100%; overflow:hidden; } 6 | body { background:#93defe; background-size: cover; } 7 | a { color:#27A9E3; text-decoration:none; cursor:pointer; } 8 | img{ border:none;} 9 | 10 | .login_box{ width:1100px; margin:120px auto 0;} 11 | .login_box .login_l_img{ float:left; width:432px; height:440px; margin-left:50px;} 12 | .login_box .login_l_img img{width:500px; height:440px; } 13 | .login {height:360px; width:400px; padding:50px; background-color: #ffffff;border-radius:6px;box-sizing: border-box; float:right; margin-right:50px; position:relative; margin-top:50px;} 14 | .login_logo{ width:120px; height:120px; border:5px solid #93defe;border-radius:100px; background:#fff; text-align:center; line-height:110px; position:absolute; top:-60px; right:140px;} 15 | .login_name{ width:100%; float:left; text-align:center; margin-top:20px;} 16 | .login_name p{ width:100%; text-align:center; font-size:18px; color:#444; padding:10px 0 20px;} 17 | .login_logo img{ width:60px; height:60px;display: inline-block; vertical-align: middle;} 18 | input[type=text], input[type=file], input[type=password], input[type=email], select { border: 1px solid #DCDEE0; vertical-align: middle; border-radius: 3px; height: 50px; padding: 0px 16px; font-size: 14px; color: #555555; outline:none; width:100%;margin-bottom: 15px;line-height:50px; color:#888;} 19 | input[type=text]:focus, input[type=file]:focus, input[type=password]:focus, input[type=email]:focus, select:focus { border: 1px solid #27A9E3; } 20 | input[type=submit], input[type=button] { display: inline-block; vertical-align: middle; padding: 12px 24px; margin: 0px; font-size:16px; line-height: 24px; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; color: #ffffff; background-color: #27A9E3; border-radius: 3px; border: none; -webkit-appearance: none; outline:none; width:100%; } 21 | .copyright { font-size:14px; color:#fff; display:block;width:100%; float:left; text-align:center; margin-top:60px;} 22 | 23 | #password_text{border: 1px solid #DCDEE0; vertical-align: middle; border-radius: 3px; height: 50px; padding: 0px 16px; font-size: 14px; color: #888; outline:none; width:100%;margin-bottom: 15px;display: block; line-height:50px;} -------------------------------------------------------------------------------- /src/main/webapp/css/category_list.css: -------------------------------------------------------------------------------- 1 | #main{ margin-bottom: 20px; } 2 | .cate-name-list{ height: 40px; line-height: 40px; padding: 0 20px; border: #e5e5e5 solid 1px; background-color: #fff; } 3 | .cate-name-list span{ color: #999; font-size: 13px; } 4 | .cate-name-list a{ color: #999; margin: 0 10px; font-size: 13px;} 5 | .cate-name-list a:hover{ text-decoration: underline; color: #11cd6e; } 6 | .cate-name-list a.active{ color: #11cd6e;} 7 | 8 | .list-body{} 9 | .list-body ul{ padding-top: 20px; width: 1115px; } 10 | .list-body li{ 11 | width: 209.5px; 12 | border: #e5e5e5 solid 1px; 13 | float: left; 14 | margin-right: 11px; 15 | background-color: #fff; 16 | margin-bottom: 15px; 17 | } 18 | .list-body li:hover{ 19 | border: #11cd6e solid 1px; 20 | transition: all .3s; 21 | box-shadow: #11cd6e 0px 1px 5px; 22 | } 23 | 24 | .good-image{} 25 | .good-image img{ width: 209.5px; height: 209.5px; } 26 | .good-title{ 27 | display: block; 28 | color: #333; 29 | text-decoration: none; 30 | line-height: 28px; 31 | padding: 0 5px; 32 | overflow: hidden; 33 | height: 25px; 34 | } 35 | .good-title:hover{ color: #f40; } 36 | .good-price{ 37 | color: #f40; 38 | font-weight: bold; 39 | padding-left: 5px; 40 | line-height: 25px; 41 | } 42 | .quan{ 43 | float: right; 44 | border: #f30 dashed 1px; 45 | padding: 0 2px; 46 | margin-right: 5px; 47 | color: #f30; 48 | } 49 | .quan:hover{ 50 | color: #fff; 51 | background: #f30; 52 | transition: all .3s; 53 | } 54 | .quan:hover span{ 55 | color: #fff; 56 | transition: all .3s; 57 | } 58 | .quan span{ 59 | padding-right: 4px; 60 | margin-right: 2px; 61 | border-right: #f30 dashed 1px; 62 | color: #f30; 63 | padding-left: 2px; 64 | } -------------------------------------------------------------------------------- /src/main/webapp/css/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.4 LGPL license By www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #ddd;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:30px;line-height:30px;border-bottom:1px solid #ddd}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #ddd;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /src/main/webapp/css/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/webapp/css/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/webapp/css/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/webapp/css/lib/bootstrap/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/webapp/css/lib/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.7 LGPL License By http://www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #ddd;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:30px;line-height:30px;border-bottom:1px solid #ddd}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #ddd;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/css/modules/laydate/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/css/modules/laydate/icon.png -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/font/iconfont.eot -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/font/iconfont.woff -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/0.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/1.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/10.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/11.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/12.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/13.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/14.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/15.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/16.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/17.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/18.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/19.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/2.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/20.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/21.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/22.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/23.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/24.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/25.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/26.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/27.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/28.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/29.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/3.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/30.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/31.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/32.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/33.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/34.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/35.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/36.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/37.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/38.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/39.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/4.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/40.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/41.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/42.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/43.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/44.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/45.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/46.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/47.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/48.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/49.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/5.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/50.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/51.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/52.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/53.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/54.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/55.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/56.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/57.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/58.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/59.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/6.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/60.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/61.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/62.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/63.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/64.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/65.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/66.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/67.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/68.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/69.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/7.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/70.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/71.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/8.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/css/lib/layui/images/face/9.gif -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/lay/modules/code.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.7 LGPL License By http://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.7 LGPL License By http://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.jquery,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var u=l(e.elem);if(u[0]){var f=l(e.scrollElem||document),m=e.mb||50,s=!("isAuto"in e)||e.isAuto,y=e.end||"没有更多了",v=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('");u.find(".layui-flow-more")[0]||u.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(y):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(f.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=v?e.height():l(window).height(),n=v?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=m&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var f=e.attr("lay-src");layui.img(f,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",f).removeAttr("lay-src"),l[0]&&u(l),i++})}},u=function(e,o){var u=a?(o||n).height():l(window).height(),f=n.scrollTop(),m=f+u;if(t.lazyimg.elem=l(r),e)c(e,u);else for(var s=0;sm)break}};if(u(),!o){var f;n.on("scroll",function(){var e=l(this);f&&clearTimeout(f),f=setTimeout(function(){u(null,e)},50)}),o=!0}return u},e("flow",new o)}); -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.7 LGPL License By http://www.layui.com */ 2 | ;layui.define(function(a){"use strict";function t(a){new p(a)}var e=document,r="getElementById",n="getElementsByTagName",s=0,p=function(a){var t=this,e=t.config=a||{};e.item=s++,t.render(!0)};p.on=function(a,t,e){return a.attachEvent?a.attachEvent("on"+t,function(){e.call(a,window.even)}):a.addEventListener(t,e,!1),p},p.prototype.type=function(){var a=this.config;if("object"==typeof a.cont)return void 0===a.cont.length?2:3},p.prototype.view=function(){var a=this,t=a.config,e=[],r={};if(t.pages=0|t.pages,t.curr=0|t.curr||1,t.groups="groups"in t?0|t.groups:5,t.first="first"in t?t.first:"首页",t.last="last"in t?t.last:"末页",t.prev="prev"in t?t.prev:"上一页",t.next="next"in t?t.next:"下一页",t.pages<=1)return"";for(t.groups>t.pages&&(t.groups=t.pages),r.index=Math.ceil((t.curr+(t.groups>1&&t.groups!==t.pages?1:0))/(0===t.groups?1:t.groups)),t.curr>1&&t.prev&&e.push(''+t.prev+""),r.index>1&&t.first&&0!==t.groups&&e.push(''+t.first+""),r.poor=Math.floor((t.groups-1)/2),r.start=r.index>1?t.curr-r.poor:1,r.end=r.index>1?function(){var a=t.curr+(t.groups-r.poor-1);return a>t.pages?t.pages:a}():t.groups,r.end-r.start"+r.start+""):e.push(''+r.start+"");return t.pages>t.groups&&r.end'+t.last+""),r.flow=!t.prev&&0===t.groups,(t.curr!==t.pages&&t.next||r.flow)&&e.push(function(){return r.flow&&t.curr===t.pages?''+t.next+"":''+t.next+""}()),'
'+e.join("")+function(){return t.skip?'到第 ':""}()+"
"},p.prototype.jump=function(a){if(a){for(var t=this,e=t.config,r=a.children,s=a[n]("button")[0],i=a[n]("input")[0],u=0,o=r.length;u/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var n="Laytpl Error:";return"object"==typeof console&&console.error(n+e+"\n"+(r||"")),n+e}},c=n.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=c("^"+r.open+"#",""),l=c(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(c(r.open+"#"),r.open+"# ").replace(c(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(/(?="|')/g,"\\").replace(n.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(n.query(1),function(e){var n='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(c(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),n='"+_escape_('),n+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,n.escape)}catch(u){return delete o.cache,n.error(u,p)}},t.pt.render=function(e,r){var c,t=this;return e?(c=t.cache?t.cache(e,n.escape):t.parse(t.tpl,e),r?void r(c):c):n.error("no data")};var o=function(e){return"string"!=typeof e?n.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var n in e)r[n]=e[n]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/lay/modules/tree.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.7 LGPL License By http://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var o=layui.jquery,a=layui.hint(),r="layui-tree-enter",i=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};i.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},i.prototype.tree=function(e,a){var r=this,i=r.options,n=a||i.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('
    '),s=o(["
  • ",function(){return l?''+(n.spread?t.arrow[1]:t.arrow[0])+"":""}(),function(){return i.check?''+("checkbox"===i.check?t.checkbox[0]:"radio"===i.check?t.radio[0]:"")+"":""}(),function(){return'"+(''+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"")+(""+(n.name||"未命名")+"")}(),"
  • "].join(""));l&&(s.append(c),r.tree(c,n.children)),e.append(s),"function"==typeof i.click&&r.click(s,n),r.spread(s,n),i.drag&&r.drag(s,n)})},i.prototype.click=function(e,o){var a=this,r=a.options;e.children("a").on("click",function(e){layui.stope(e),r.click(o)})},i.prototype.spread=function(e,o){var a=this,r=(a.options,e.children(".layui-tree-spread")),i=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),i.removeClass("layui-show"),r.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),i.addClass("layui-show"),r.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};i[0]&&(r.on("click",l),n.on("dblclick",l))},i.prototype.on=function(e){var a=this,i=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),i.drag&&o(document).on("mousemove",function(e){var r=a.move;if(r.from){var i=(r.to,o('
    '));e.preventDefault(),o("."+t)[0]||o("body").append(i);var n=o("."+t)[0]?o("."+t):i;n.addClass("layui-show").html(r.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(r),e.to&&e.to.elem.children("a").removeClass(r),a.move={},o("."+t).remove())})},i.prototype.move={},i.prototype.drag=function(e,a){var i=this,t=(i.options,e.children("a")),n=function(){var t=o(this),n=i.move;n.from&&(n.to={item:a,elem:e},t.addClass(r))};t.on("mousedown",function(){var o=i.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=i.move;a.from&&(delete a.to,e.removeClass(r))})},e("tree",function(e){var r=new i(e=e||{}),t=o(e.elem);return t[0]?void r.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})}); -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/lay/modules/upload.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.7 LGPL License By http://www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var a=layui.jquery,t=layui.layer,i=(layui.device(),"layui-upload-enter"),n="layui-upload-iframe",r={icon:2,shift:6},o={file:"文件",video:"视频",audio:"音频"},s=function(e){this.options=e};s.prototype.init=function(){var e=this,t=e.options,r=a("body"),s=a(t.elem||".layui-upload-file"),u=a('');return a("#"+n)[0]||r.append(u),s.each(function(r,s){s=a(s);var u='
    ',l=s.attr("lay-type")||t.type;t.unwrap||(u='
    '+u+''+(s.attr("lay-title")||t.title||"上传"+(o[l]||"图片"))+"
    "),u=a(u),t.unwrap||u.on("dragover",function(e){e.preventDefault(),a(this).addClass(i)}).on("dragleave",function(){a(this).removeClass(i)}).on("drop",function(){a(this).removeClass(i)}),s.parent("form").attr("target")===n&&(t.unwrap?s.unwrap():(s.parent().next().remove(),s.unwrap().unwrap())),s.wrap(u),s.off("change").on("change",function(){e.action(this,l)})})},s.prototype.action=function(e,i){var o=this,s=o.options,u=e.value,l=a(e),p=l.attr("lay-ext")||s.ext||"";if(u){switch(i){case"file":if(p&&!RegExp("\\w\\.("+p+")$","i").test(escape(u)))return t.msg("不支持该文件格式",r),e.value="";break;case"video":if(!RegExp("\\w\\.("+(p||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(u)))return t.msg("不支持该视频格式",r),e.value="";break;case"audio":if(!RegExp("\\w\\.("+(p||"mp3|wav|mid")+")$","i").test(escape(u)))return t.msg("不支持该音频格式",r),e.value="";break;default:if(!RegExp("\\w\\.("+(p||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(u)))return t.msg("不支持该图片格式",r),e.value=""}s.before&&s.before(e),l.parent().submit();var c=a("#"+n),f=setInterval(function(){var a;try{a=c.contents().find("body").text()}catch(i){t.msg("上传接口存在跨域",r),clearInterval(f)}if(a){clearInterval(f),c.contents().find("body").html("");try{a=JSON.parse(a)}catch(i){return a={},t.msg("请对上传接口返回JSON字符",r)}"function"==typeof s.success&&s.success(a,e)}},30);e.value=""}},e("upload",function(e){var a=new s(e=e||{});a.init()})}); -------------------------------------------------------------------------------- /src/main/webapp/css/lib/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.7 LGPL License By http://www.layui.com */ 2 | ;layui.define("jquery",function(l){"use strict";var o=layui.jquery,i={fixbar:function(l){l=l||{},l.bgcolor=l.bgcolor?"background-color:"+l.bgcolor:"";var i,a,c="layui-fixbar-top",t=[l.bar1===!0?"":l.bar1,l.bar2===!0?"":l.bar2,""],r=o(['
      ',l.bar1?'
    • '+t[0]+"
    • ":"",l.bar2?'
    • '+t[1]+"
    • ":"",'
    • '+t[2]+"
    • ","
    "].join("")),e=r.find("."+c),s=function(){var i=o(document).scrollTop();i>=(l.showHeight||200)?a||(e.show(),a=1):a&&(e.hide(),a=0)};o(".layui-fixbar")[0]||("object"==typeof l.css&&r.css(l.css),o("body").append(r),s(),r.find("li").on("click",function(){var i=o(this),a=i.attr("lay-type");"top"===a&&o("html,body").animate({scrollTop:0},200),l.click&&l.click.call(this,a)}),o(document).on("scroll",function(){i&&clearTimeout(i),i=setTimeout(function(){s()},100)}))}};l("util",i)}); -------------------------------------------------------------------------------- /src/main/webapp/css/login.css: -------------------------------------------------------------------------------- 1 | body{ min-width: 1024px; min-height: 100%; } 2 | #header{ position: relative; width: 100%; height: 323px; background-color: #11cd6e; } 3 | .logo{ position: absolute; z-index: 9999; top: 70px; left: 136px; display: inline-block; width: 253px; height: 42px; background: url(/images/web/logo.png) left top no-repeat; } 4 | #login-main,#register-main{ width: 556px; margin: -168px auto 0 auto; padding: 50px 47px 60px 57px; background-color: #fff; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; -webkit-box-shadow: 0 0 5px rgba(0,0,0,.09); box-shadow: 0 0 5px rgba(0,0,0,.09); display: table; position: relative; z-index: 1;} 5 | .layui-tab-title li{ padding: 0 41px; } 6 | .layui-tab-title{ margin-bottom: 20px; } 7 | .layui-tab-content{ padding: 0; } 8 | .layui-input:focus, .layui-textarea:focus { border-color: #11cd6e!important;} 9 | 10 | .register-btn,.login-btn{ background-color: #11cd6e; width: 100%; font-size: 16px; } 11 | .right-box{ width: 145px; padding-left: 80px; } 12 | .right-box p{ color: #666; } 13 | .right-box a{ color: #11cd6e; font-size: 16px; line-height: 50px; } 14 | .right-box a:hover{ text-decoration: underline; } 15 | .layui-layer-hui .layui-layer-content{ color: #fff; } 16 | 17 | /*注册*/ 18 | #register-main{ height: 270px; } 19 | .reg-left{ width: 300px; padding-right: 30px; border-right: #eee solid 1px; } 20 | .phone{ position: relative; } 21 | .phoneCode,.captchaCode{ width: 160px; display: inline-block; } 22 | .captchaImage{ width: 125px; height: 38px; cursor: pointer; vertical-align: top; float: right; border: #ccc solid 1px; } 23 | .get-phoneCode{ width: 125px; display: inline-block; position: absolute; right: 0; height: 38px; background-color: #11cd6e; color: #fff; text-align: center; line-height: 38px; border-radius: 2px; } 24 | .get-phoneCode:hover{ color: #fff; } 25 | .showbox{ 26 | display: none; 27 | width: 125px; 28 | height: 37px; 29 | vertical-align: top; 30 | line-height: 38px; 31 | text-align: center; 32 | float: right; 33 | border: #e6e6e6 solid 1px; 34 | border-radius: 2px; 35 | background-color: #e6e6e6; 36 | color: #bbb; 37 | } 38 | .layui-form input[type=checkbox], .layui-form input[type=radio], .layui-form select{ display: inline-block; } 39 | .layui-tab-brief>.layui-tab-title .layui-this{ color: #11cd6e; } 40 | .layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after{ border-color: #11cd6e; } 41 | .check-wrap{ display: block; height: 38px; line-height: 38px;} 42 | .check-wrap a{ color: #11cd6e; } 43 | .check-wrap a:hover{ text-decoration: underline; } 44 | .checkbox{ height: 16px; width: 16px; vertical-align: sub; margin-right: 5px; } 45 | .reg-right{ margin-top: 110px; } 46 | 47 | /*登录*/ 48 | #login-main{ height: 205px;} 49 | .forgetpwd{ text-align: right;} 50 | .forgetpwd a{ color: #11cd6e;} 51 | .forgetpwd a:hover{ text-decoration: underline; } 52 | .log-right{ padding-top: 80px; } -------------------------------------------------------------------------------- /src/main/webapp/css/publish.css: -------------------------------------------------------------------------------- 1 | #main h2{ 2 | text-align: center; 3 | line-height: 50px; 4 | background-color: #fff; 5 | line-height: 50px; 6 | border-radius: 5px; 7 | margin-bottom: 20px; 8 | font-size: 18px; 9 | border-bottom: #e5e5e5 solid 1px; 10 | border-right: #e5e5e5 solid 1px; 11 | } 12 | 13 | .publish-main{ 14 | background-color: #fff; 15 | border-radius: 5px; 16 | margin-bottom: 20px; 17 | border-bottom: #e5e5e5 solid 1px; 18 | border-right: #e5e5e5 solid 1px; 19 | padding: 20px 50px; 20 | } 21 | .input-line{ 22 | margin-top: 30px; 23 | } 24 | .input-line.image{ text-align: center; } 25 | .good-image{ 26 | width: 150px; 27 | height: 150px; 28 | border-radius: 5px; 29 | border: #11cd6e solid 2px; 30 | } 31 | .uploaded{ 32 | display: inline-block; 33 | margin-right: 10px; 34 | position: relative; 35 | } 36 | i.delete{ 37 | color: #f40; 38 | position: absolute; 39 | font-size: 24px; 40 | right: -13px; 41 | top: -19px; 42 | cursor: pointer; 43 | } 44 | .image-upload-btn{ 45 | display: inline-block; 46 | width: 150px; 47 | height: 150px; 48 | text-align: center; 49 | line-height: 150px; 50 | border-radius: 5px; 51 | border: #11cd6e solid 2px; 52 | vertical-align: bottom; 53 | /*background-color: #f2f2f2;*/ 54 | } 55 | .image-upload-btn:hover i{ color: #11cd6e; transition: all .3s; } 56 | .image-upload-btn i{ font-size: 40px; } 57 | 58 | .layui-input, .layui-textarea{ } 59 | .layui-form-select dl dd.layui-this{ background-color: #11cd6e; } 60 | .layui-form-pane .layui-form-text .layui-form-label.good-description{ padding-left: 28px; } 61 | 62 | .publish-submit{ text-align: center; } 63 | .publish-submit .layui-btn{ background-color: #11cd6e; margin-top: 20px; width: 150px; height: 45px; line-height: 45px; font-size: 20px; } 64 | 65 | .layui-form-pane .layui-input:hover, .layui-form-pane .layui-textarea:hover, 66 | .layui-form-pane .layui-input:focus, .layui-form-pane .layui-textarea:focus { 67 | border-color: #11cd6e!important; 68 | } 69 | 70 | .image .layui-box.layui-upload-button{ 71 | width: 153px; 72 | height: 153px; 73 | border: #11cd6e solid 2px; 74 | } 75 | .image .layui-upload-icon{ 76 | width: 153px; 77 | height: 153px; 78 | margin: 0; 79 | text-align: center; 80 | line-height: 149px; 81 | font-size: 20px; 82 | } 83 | .image .layui-upload-icon i{ 84 | font-size: 32px; 85 | font-weight: bold; 86 | } 87 | 88 | .add-original-link{ 89 | background-color: #11cd6e; 90 | margin-top: 4px; 91 | } 92 | .no-data{ 93 | border-color: red; 94 | } -------------------------------------------------------------------------------- /src/main/webapp/css/search.css: -------------------------------------------------------------------------------- 1 | ul.result-list { width: 1115px; min-height: 370px; } 2 | .result-list li{ 3 | width: 209.5px; 4 | border: #e5e5e5 solid 1px; 5 | float: left; 6 | margin-right: 11px; 7 | background-color: #fff; 8 | margin-bottom: 15px; 9 | } 10 | .result-list li:hover{ 11 | border: #11cd6e solid 1px; 12 | transition: all .3s; 13 | box-shadow: #11cd6e 0px 1px 5px; 14 | } 15 | 16 | .good-image{} 17 | .good-image img{ width: 209.5px; height: 209.5px; border-bottom: #e5e5e5 solid 1px; } 18 | .good-title{ 19 | display: block; 20 | color: #333; 21 | text-decoration: none; 22 | line-height: 28px; 23 | padding: 0 5px; 24 | overflow: hidden; 25 | height: 25px; 26 | } 27 | .good-title:hover{ color: #f40; } 28 | .good-price{ 29 | color: #f40; 30 | font-weight: bold; 31 | padding-left: 5px; 32 | line-height: 25px; 33 | } 34 | 35 | .no-data{ 36 | height: 370px; 37 | line-height: 370px; 38 | text-align: center; 39 | } 40 | 41 | .count{ 42 | background: #fff; 43 | margin-bottom: 10px; 44 | border: #e5e5e5 solid 1px; 45 | line-height: 35px; 46 | padding: 0 20px; 47 | font-size: 12px; 48 | color: #999; 49 | } -------------------------------------------------------------------------------- /src/main/webapp/css/template.min.css: -------------------------------------------------------------------------------- 1 | html{color:#000;background-color:transparent}blockquote,body,code,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:400}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}q:after,q:before{content:""}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,select,textarea{font-family:inherit;font-size:inherit;font-weight:inherit}legend{color:#000}body{margin:0;padding:0}.bd-logo,.bd-logo4,.feed-logo{text-decoration:none;cursor:pointer;display:none;overflow:hidden;position:absolute;bottom:0;right:0;z-index:2147483647}.bd-logo{height:16px;width:16px;right:30px;background:url(img/pc-logo_1x.png) no-repeat left top;background-size:cover;background-position:0 0}.bd-logo:hover{width:52px;height:16px;right:30px;background:url(img/pc-logo-marketing_1x.png) no-repeat left top;background-size:cover}.bd-logo4{height:14px;width:14px;bottom:0;right:26px;background:url(img/mob-logo_2x.png) no-repeat left top;background-size:cover;background-position:center}.feed-logo{width:12px;height:12px;background:url(img/feedLogo.png) no-repeat left top;background-size:cover}.loader{text-align:center;width:90%;font-size:9pt;padding:8px;border:1px solid #aaa;margin-top:30px;display:none}.cf:after,.cf:before{content:"\20";display:table}.cf:after{clear:both}.textOverflow{white-space:nowrap;overflow:hidden;display:inline-block;width:100%}.textOverflowEllipsis{text-overflow:ellipsis}.textOverflowClip{text-overflow:clip}.bd-adIcon{width:30px;height:16px;background:url(img/pc-adIcon_1x.png) no-repeat left top;background-size:cover;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="https://cpro.baidustatic.com/cpro/ui/noexpire/css/2.1.5/img/pc-adIcon_2x.png",sizingMethod="scale")}.bd-adIcon,.mob-bd-adIcon,.feed-adIcon{position:absolute;right:0;bottom:0;overflow:hidden;z-index:2147483647;text-decoration:none}.mob-bd-adIcon{width:26px;height:14px;background:url(img/mob-adIcon_2x.png) no-repeat left top;background-size:cover}.feed-adIcon{width:23px;height:12px;background:url(img/feedIcon.png) no-repeat left top;background-size:cover} -------------------------------------------------------------------------------- /src/main/webapp/images/admin/0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/0.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/admin/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/add.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/banner1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/banner1.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/admin/banner1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/banner1.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/banner2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/banner2.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/admin/banner2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/banner2.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/banner3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/banner3.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/admin/banner3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/banner3.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/daochu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/daochu.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/daochu1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/daochu1.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/daoru.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/daoru.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/icon.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/logo.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/admin/look.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/look.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/look2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/look2.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/look3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/look3.png -------------------------------------------------------------------------------- /src/main/webapp/images/admin/quanxian.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/admin/quanxian.png -------------------------------------------------------------------------------- /src/main/webapp/images/pay/pay_fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/pay/pay_fail.png -------------------------------------------------------------------------------- /src/main/webapp/images/pay/pay_img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/pay/pay_img1.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/pay/pay_img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/pay/pay_img2.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/pay/pay_img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/pay/pay_img3.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/pay/pay_img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/pay/pay_img4.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/pay/pay_img5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/pay/pay_img5.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/pay/pay_succ.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/pay/pay_succ.png -------------------------------------------------------------------------------- /src/main/webapp/images/pay/scanSucc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/pay/scanSucc.jpg -------------------------------------------------------------------------------- /src/main/webapp/images/pay/talk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/pay/talk.png -------------------------------------------------------------------------------- /src/main/webapp/images/web/user/auth_alert_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/web/user/auth_alert_bg.png -------------------------------------------------------------------------------- /src/main/webapp/images/web/user/b78c6caa-0175-4610-a591-c6aa2917c3aa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/web/user/b78c6caa-0175-4610-a591-c6aa2917c3aa.png -------------------------------------------------------------------------------- /src/main/webapp/images/web/user/tongji.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/images/web/user/tongji.png -------------------------------------------------------------------------------- /src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | 3 | 4 | Title 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/main/webapp/js/admin/jquery.ba-resize.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery resize event - v1.1 - 3/14/2010 3 | * http://benalman.com/projects/jquery-resize-plugin/ 4 | * 5 | * Copyright (c) 2010 "Cowboy" Ben Alman 6 | * Dual licensed under the MIT and GPL licenses. 7 | * http://benalman.com/about/license/ 8 | */ 9 | (function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k="setTimeout",j="resize",d=j+"-special-event",b="delay",f="throttleWindow";e[b]=50;e[f]=true;$.event.special[j]={setup:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.add(l);$.data(this,d,{w:l.width(),h:l.height()});if(a.length===1){g()}},teardown:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.not(l);l.removeData(d);if(!a.length){clearTimeout(i)}},add:function(l){if(!e[f]&&this[k]){return false}var n;function m(s,o,p){var q=$(this),r=$.data(this,d);r.w=o!==c?o:q.width();r.h=p!==c?p:q.height();n.apply(this,arguments)}if($.isFunction(l)){n=l;return m}else{n=l.handler;l.handler=m}}};function g(){i=h[k](function(){a.each(function(){var n=$(this),m=n.width(),l=n.height(),o=$.data(this,d);if(m!==o.w||l!==o.h){n.trigger(j,[o.w=m,o.h=l])}});g()},e[b])}})(jQuery,this); -------------------------------------------------------------------------------- /src/main/webapp/js/admin/jquery.gvChart-1.0.1.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery gvChart plugin 3 | * This plugin was created to simplify things when using Google Visualisation Charts. 4 | * It still needs to be used with google script import tag, however now you can 5 | * crate chart from your table. 6 | * All examples you will find on http://www.ivellios.toron.pl/technikalia/demos/gvChart/ 7 | * @name jquery.gvChart-1.0.1.min.js 8 | * @author Janusz Kamieński - http://www.ivellios.toron.pl/technikalia 9 | * @version 1.0.1 10 | * @date December 04, 2010 11 | * @category jQuery plugin google charts 12 | * @copyright (c) 2010 Janusz Kamieński (www.ivellios.toron.pl) 13 | * @license CC Attribution Works 3.0 Poland - http://creativecommons.org/licenses/by/3.0/pl/deed.en_US 14 | * @example Visit http://www.ivellios.toron.pl/technikalia/demos/gvChart/ for more informations about this jQuery plugin 15 | */ 16 | (function(jQuery){jQuery.fn.gvChart=function(settings){defaults={hideTable:true,chartType:'AreaChart',chartDivID:'gvChartDiv',gvSettings:null};var el=document.createElement('div');jQuery(el).insertBefore(this);gvChartCount++;gvChartID=defaults.chartDivID+gvChartCount;jQuery(el).attr('id',gvChartID);jQuery(el).addClass('gvChart');if(settings){jQuery.extend(defaults,settings);}if(defaults.hideTable)$(this).hide();var data=new google.visualization.DataTable();data.addColumn('string','X labels');var a=new Array();var headers=$(this).find('thead').find('th');var rows=$(this).find('tbody').find('tr');rows.each(function(index){data.addColumn('number',$(this).find('th').text());});data.addRows(headers.length-1);headers.each(function(index){if(index){data.setCell(index-1,0,$(this).text());}});rows.each(function(index){$(this).find('td').each(function(index2){data.setCell(index2,index+1,parseFloat($(this).text()));});});chartSettings={title:$(this).find('caption').text()};if(defaults.gvSettings){jQuery.extend(chartSettings,defaults.gvSettings);}eval("var chart = new google.visualization."+defaults.chartType+"(document.getElementById('"+gvChartID+"'))");chart.draw(data,chartSettings);}})(jQuery);function gvChartInit(){gvChartCount=0;google.load('visualization','1',{packages:['corechart']});} 17 | -------------------------------------------------------------------------------- /src/main/webapp/js/admin/x-admin.js: -------------------------------------------------------------------------------- 1 | layui.use(['element'], function(){ 2 | $ = layui.jquery; 3 | element = layui.element(); 4 | 5 | //导航的hover效果、二级菜单等功能,需要依赖element模块 6 | // 侧边栏点击隐藏兄弟元素 7 | $('.layui-nav-item').click(function(event) { 8 | $(this).siblings().removeClass('layui-nav-itemed'); 9 | }); 10 | 11 | $('.layui-tab-title li').eq(0).find('i').remove(); 12 | 13 | height = $('.layui-layout-admin .site-demo').height(); 14 | $('.layui-layout-admin .site-demo').height(height-100); 15 | 16 | if($(window).width()<750){ 17 | trun = 0; 18 | $('.x-slide_left').css('background-position','0px -61px'); 19 | }else{ 20 | trun = 1; 21 | } 22 | $('.x-slide_left').click(function(event) { 23 | if(trun){ 24 | $('.x-side').animate({left: '-200px'},200).siblings('.x-main').animate({left: '0px'},200); 25 | $(this).css('background-position','0px -61px'); 26 | trun=0; 27 | }else{ 28 | $('.x-side').animate({left: '0px'},200).siblings('.x-main').animate({left: '200px'},200); 29 | $(this).css('background-position','0px 0px'); 30 | trun=1; 31 | } 32 | 33 | }); 34 | 35 | 36 | 37 | //监听导航点击 38 | element.on('nav(side)', function(elem){ 39 | title = elem.find('cite').text(); 40 | url = elem.find('a').attr('_href'); 41 | // alert(url); 42 | 43 | for (var i = 0; i <$('.x-iframe').length; i++) { 44 | if($('.x-iframe').eq(i).attr('src')==url){ 45 | element.tabChange('x-tab', i); 46 | return; 47 | } 48 | }; 49 | 50 | res = element.tabAdd('x-tab', { 51 | title: title//用于演示 52 | ,content: '' 53 | }); 54 | 55 | 56 | element.tabChange('x-tab', $('.layui-tab-title li').length-1); 57 | 58 | $('.layui-tab-title li').eq(0).find('i').remove(); 59 | }); 60 | }); 61 | 62 | -------------------------------------------------------------------------------- /src/main/webapp/js/admin/x-layui.js: -------------------------------------------------------------------------------- 1 | /*弹出层*/ 2 | /* 3 | 参数解释: 4 | title 标题 5 | url 请求的url 6 | id 需要操作的数据id 7 | w 弹出层宽度(缺省调默认值) 8 | h 弹出层高度(缺省调默认值) 9 | */ 10 | function x_admin_show(title,url,w,h){ 11 | if (title == null || title == '') { 12 | title=false; 13 | }; 14 | if (url == null || url == '') { 15 | url="404.html"; 16 | }; 17 | if (w == null || w == '') { 18 | w=800; 19 | }; 20 | if (h == null || h == '') { 21 | h=($(window).height() - 50); 22 | }; 23 | layer.open({ 24 | type: 2, 25 | area: [w+'px', h +'px'], 26 | fix: false, //不固定 27 | maxmin: true, 28 | shadeClose: true, 29 | shade:0.4, 30 | title: title, 31 | content: url 32 | }); 33 | } 34 | 35 | /*关闭弹出框口*/ 36 | function x_admin_close(){ 37 | var index = parent.layer.getFrameIndex(window.name); 38 | parent.layer.close(index); 39 | } -------------------------------------------------------------------------------- /src/main/webapp/js/base.js: -------------------------------------------------------------------------------- 1 | $(function () { 2 | $.basePath = getContextPath() 3 | }) 4 | 5 | /** 6 | * 获取工程上下文路径 7 | * @returns 8 | */ 9 | function getContextPath() { 10 | var pathName = document.location.pathname; 11 | var index = pathName.substr(1).indexOf("/"); 12 | var result = pathName.substr(0, index + 1); 13 | return result; 14 | } 15 | -------------------------------------------------------------------------------- /src/main/webapp/js/common.min.js: -------------------------------------------------------------------------------- 1 | try{document.execCommand("BackgroundImageCache",!1,!0)}catch(err){} 2 | -------------------------------------------------------------------------------- /src/main/webapp/js/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.4 LGPL license By www.layui.com */ 2 | html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #ddd;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:30px;line-height:30px;border-bottom:1px solid #ddd}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #ddd;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} -------------------------------------------------------------------------------- /src/main/webapp/js/css/modules/laydate/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/css/modules/laydate/icon.png -------------------------------------------------------------------------------- /src/main/webapp/js/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /src/main/webapp/js/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /src/main/webapp/js/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /src/main/webapp/js/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /src/main/webapp/js/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /src/main/webapp/js/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/font/iconfont.eot -------------------------------------------------------------------------------- /src/main/webapp/js/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/font/iconfont.ttf -------------------------------------------------------------------------------- /src/main/webapp/js/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/font/iconfont.woff -------------------------------------------------------------------------------- /src/main/webapp/js/index.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | var rImg = $(".rImg li"); 3 | var rButton = $(".button li"); 4 | var focusMap = $(".focusMap"); 5 | var index = 0; 6 | var interval = 5000; 7 | var t; 8 | var count = rImg.length; 9 | var prevNext = $(".focusMap span");//两个左右切换的按钮 10 | var prevImg = $(".focusMap .prev"); 11 | var nextImg = $(".focusMap .next"); 12 | 13 | focusMap.mouseover(function(){ 14 | prevNext.show(); 15 | clearInterval(t); 16 | }).mouseout(function(){ 17 | prevNext.hide(); 18 | t = setInterval(next,interval); 19 | }); 20 | //隐藏全部 21 | var hideAll = function(){ 22 | rImg.hide(); 23 | rButton.removeClass("on"); 24 | }; 25 | //显示当前 26 | var showItem = function(){ 27 | hideAll(); 28 | $(rImg[index]).fadeIn(); 29 | $(rButton[index]).addClass("on"); 30 | }; 31 | //下一张 32 | var next = function(){ 33 | index += 1; 34 | if(index == count){ 35 | index = 0; 36 | } 37 | showItem(); 38 | }; 39 | 40 | t = setInterval(next,interval); 41 | //上一张 42 | prevImg.click(function(){ 43 | index -= 1; 44 | if(index == -1){ 45 | index = count - 1; 46 | } 47 | showItem(); 48 | }); 49 | //下一张 50 | nextImg.click(function(){ 51 | index += 1; 52 | if(index == count){ 53 | index = 0; 54 | } 55 | showItem(); 56 | }); 57 | 58 | rButton.each(function(i, n) { 59 | $(n).bind("click",function(){ 60 | index = i; 61 | showItem(); 62 | }); 63 | }); 64 | 65 | 66 | /*分类顶部固定*/ 67 | $(document).scroll(function(){ 68 | if($(document).scrollTop() > 140){ 69 | 70 | $('.category').css({ 71 | 'position': 'fixed', 72 | 'top': '20px' 73 | }) 74 | 75 | $('.main-box').css('margin-left', '190.8px') 76 | }else{ 77 | $('.category').removeAttr('style') 78 | $('.main-box').css('margin-left', '0px') 79 | } 80 | }) 81 | 82 | /* /!*分页*!/ 83 | layui.use(['laypage', 'flow'], function(){ 84 | var laypage = layui.laypage 85 | 86 | laypage({ 87 | cont: 'page' 88 | ,pages: 1 89 | ,first: 1 90 | ,curr: Common.getQuery('p') || 1 91 | ,prev: '<' 92 | ,next: '>' 93 | ,jump: function(obj, first){ 94 | var curr = obj.curr 95 | if(!first) location.href = '?' + (Common.getQuery('n') ? 'n=' + Common.getQuery('n') : '') + '&p=' + curr 96 | } 97 | }); 98 | 99 | layui.flow.lazyimg(); 100 | })*/ 101 | }) -------------------------------------------------------------------------------- /src/main/webapp/js/lay/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/lay/font/iconfont.eot -------------------------------------------------------------------------------- /src/main/webapp/js/lay/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/lay/font/iconfont.ttf -------------------------------------------------------------------------------- /src/main/webapp/js/lay/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvr1997/kd-second-hand-workshop/38b5f12289a3b075bac4b03adaf5caa7feb4a492/src/main/webapp/js/lay/font/iconfont.woff -------------------------------------------------------------------------------- /src/main/webapp/js/lay/modules/code.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.4 LGPL license By www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
    1. '+o.replace(/[\r\t\n]+/g,"
    2. ")+"
    "),c.find(">.layui-code-h3")[0]||c.prepend('

    '+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

    ");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); -------------------------------------------------------------------------------- /src/main/webapp/js/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.4 LGPL license By www.layui.com */ 2 | ;layui.define("jquery",function(o){"use strict";var e=layui.jquery,l=function(o){},i='';l.prototype.load=function(o){var l,t,n,r,a=this,c=1;o=o||{};var u=e(o.elem);if(u[0]){var f=e(o.scrollElem||document),m=o.mb||50,s=!("isAuto"in o)||o.isAuto,y=!("isShowEnd"in o)||o.isShowEnd,h=o.scrollElem&&o.scrollElem!==document,v="加载更多",d=e('");u.find(".layui-flow-more")[0]||u.append(d);var p=function(o,i){o=e(o),d.before(o),i=0==i||null,i?d.html(y?"没有更多了":""):d.find("a").html(v),t=i,l=null,n&&n()},g=function(){l=!0,d.find("a").html(i),"function"==typeof o.done&&o.done(++c,p)};if(d.find("a").on("click",function(){e(this);t||l||g()}),o.isLazyimg)var n=a.lazyimg({elem:o.elem+" img",scrollElem:o.scrollElem});return s?(f.on("scroll",function(){var o=e(this),i=o.scrollTop();r&&clearTimeout(r),t||(r=setTimeout(function(){var t=h?o.height():e(window).height(),n=h?o.prop("scrollHeight"):document.documentElement.scrollHeight;n-i-t<=m&&(l||g())},100))}),a):a}},l.prototype.lazyimg=function(o){var l,i=this,t=0;o=o||{};var n=e(o.scrollElem||document),r=o.elem||"img",a=o.scrollElem&&o.scrollElem!==document,c=function(o,e){var l=n.scrollTop(),r=l+e,c=a?function(){return o.offset().top-n.offset().top+l}():o.offset().top;if(c>=l&&c<=r&&!o.attr("src")){var f=o.attr("lay-src");layui.img(f,function(){var e=i.lazyimg.elem.eq(t);o.attr("src",f).removeAttr("lay-src"),e[0]&&u(e),t++})}},u=function(o,l){var u=a?(l||n).height():e(window).height(),f=n.scrollTop(),m=f+u;if(i.lazyimg.elem=e(r),o)c(o,u);else for(var s=0;sm)break}};if(u(),!l){var f;n.on("scroll",function(){var o=e(this);f&&clearTimeout(f),f=setTimeout(function(){u(null,o)},100)}),l=!0}return u},o("flow",new l)}); -------------------------------------------------------------------------------- /src/main/webapp/js/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.4 LGPL license By www.layui.com */ 2 | ;layui.define(function(a){"use strict";function t(a){new p(a)}var e=document,r="getElementById",n="getElementsByTagName",s=0,p=function(a){var t=this,e=t.config=a||{};e.item=s++,t.render(!0)};p.on=function(a,t,e){return a.attachEvent?a.attachEvent("on"+t,function(){e.call(a,window.even)}):a.addEventListener(t,e,!1),p},p.prototype.type=function(){var a=this.config;if("object"==typeof a.cont)return void 0===a.cont.length?2:3},p.prototype.view=function(){var a=this,t=a.config,e=[],r={};if(t.pages=0|t.pages,t.curr=0|t.curr||1,t.groups="groups"in t?0|t.groups:5,t.first="first"in t?t.first:"首页",t.last="last"in t?t.last:"末页",t.prev="prev"in t?t.prev:"上一页",t.next="next"in t?t.next:"下一页",t.pages<=1)return"";for(t.groups>t.pages&&(t.groups=t.pages),r.index=Math.ceil((t.curr+(t.groups>1&&t.groups!==t.pages?1:0))/(0===t.groups?1:t.groups)),t.curr>1&&t.prev&&e.push(''+t.prev+""),r.index>1&&t.first&&0!==t.groups&&e.push(''+t.first+""),r.poor=Math.floor((t.groups-1)/2),r.start=r.index>1?t.curr-r.poor:1,r.end=r.index>1?function(){var a=t.curr+(t.groups-r.poor-1);return a>t.pages?t.pages:a}():t.groups,r.end-r.start"+r.start+""):e.push(''+r.start+"");return t.pages>t.groups&&r.end'+t.last+""),r.flow=!t.prev&&0===t.groups,(t.curr!==t.pages&&t.next||r.flow)&&e.push(function(){return r.flow&&t.curr===t.pages?''+t.next+"":''+t.next+""}()),'
    '+e.join("")+function(){return t.skip?'到第 ':""}()+"
    "},p.prototype.jump=function(a){if(a){for(var t=this,e=t.config,r=a.children,s=a[n]("button")[0],i=a[n]("input")[0],u=0,o=r.length;u/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var n="Laytpl Error:";return"object"==typeof console&&console.error(n+e+"\n"+(r||"")),n+e}},c=n.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=c("^"+r.open+"#",""),l=c(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(c(r.open+"#"),r.open+"# ").replace(c(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(/(?="|')/g,"\\").replace(n.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(n.query(1),function(e){var n='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(c(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),n='"+_escape_('),n+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,n.escape)}catch(u){return delete o.cache,n.error(u,p)}},t.pt.render=function(e,r){var c,t=this;return e?(c=t.cache?t.cache(e,n.escape):t.parse(t.tpl,e),r?void r(c):c):n.error("no data")};var o=function(e){return"string"!=typeof e?n.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var n in e)r[n]=e[n]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /src/main/webapp/js/lay/modules/tree.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.4 LGPL license By www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var o=layui.jquery,a=layui.hint(),r="layui-tree-enter",i=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};i.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},i.prototype.tree=function(e,a){var r=this,i=r.options,n=a||i.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('
      '),s=o(["
    • ",function(){return l?''+(n.spread?t.arrow[1]:t.arrow[0])+"":""}(),function(){return i.check?''+("checkbox"===i.check?t.checkbox[0]:"radio"===i.check?t.radio[0]:"")+"":""}(),function(){return'"+(''+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"")+(""+(n.name||"未命名")+"")}(),"
    • "].join(""));l&&(s.append(c),r.tree(c,n.children)),e.append(s),"function"==typeof i.click&&r.click(s,n),r.spread(s,n),i.drag&&r.drag(s,n)})},i.prototype.click=function(e,o){var a=this,r=a.options;e.children("a").on("click",function(e){layui.stope(e),r.click(o)})},i.prototype.spread=function(e,o){var a=this,r=(a.options,e.children(".layui-tree-spread")),i=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),i.removeClass("layui-show"),r.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),i.addClass("layui-show"),r.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};i[0]&&(r.on("click",l),n.on("dblclick",l))},i.prototype.on=function(e){var a=this,i=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),i.drag&&o(document).on("mousemove",function(e){var r=a.move;if(r.from){var i=(r.to,o('
      '));e.preventDefault(),o("."+t)[0]||o("body").append(i);var n=o("."+t)[0]?o("."+t):i;n.addClass("layui-show").html(r.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(r),e.to&&e.to.elem.children("a").removeClass(r),a.move={},o("."+t).remove())})},i.prototype.move={},i.prototype.drag=function(e,a){var i=this,t=(i.options,e.children("a")),n=function(){var t=o(this),n=i.move;n.from&&(n.to={item:a,elem:e},t.addClass(r))};t.on("mousedown",function(){var o=i.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=i.move;a.from&&(delete a.to,e.removeClass(r))})},e("tree",function(e){var r=new i(e=e||{}),t=o(e.elem);return t[0]?void r.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})}); -------------------------------------------------------------------------------- /src/main/webapp/js/lay/modules/upload.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.4 LGPL license By www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var a=layui.jquery,t=layui.layer,i=(layui.device(),"layui-upload-enter"),n="layui-upload-iframe",r={icon:2,shift:6},o={file:"文件",video:"视频",audio:"音频"},s=function(e){this.options=e};s.prototype.init=function(){var e=this,t=e.options,r=a("body"),s=a(t.elem||".layui-upload-file"),u=a('');return a("#"+n)[0]||r.append(u),s.each(function(r,s){s=a(s);var u='
      ',l=s.attr("lay-type")||t.type;t.unwrap||(u='
      '+u+''+(s.attr("lay-title")||t.title||"上传"+(o[l]||"图片"))+"
      "),u=a(u),t.unwrap||u.on("dragover",function(e){e.preventDefault(),a(this).addClass(i)}).on("dragleave",function(){a(this).removeClass(i)}).on("drop",function(){a(this).removeClass(i)}),s.parent("form").attr("target")===n&&(t.unwrap?s.unwrap():(s.parent().next().remove(),s.unwrap().unwrap())),s.wrap(u),s.off("change").on("change",function(){e.action(this,l)})})},s.prototype.action=function(e,i){var o=this,s=o.options,u=e.value,l=a(e),p=l.attr("lay-ext")||s.ext||"";if(u){switch(i){case"file":if(p&&!RegExp("\\w\\.("+p+")$","i").test(escape(u)))return t.msg("不支持该文件格式",r),e.value="";break;case"video":if(!RegExp("\\w\\.("+(p||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(u)))return t.msg("不支持该视频格式",r),e.value="";break;case"audio":if(!RegExp("\\w\\.("+(p||"mp3|wav|mid")+")$","i").test(escape(u)))return t.msg("不支持该音频格式",r),e.value="";break;default:if(!RegExp("\\w\\.("+(p||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(u)))return t.msg("不支持该图片格式",r),e.value=""}s.before&&s.before(e),l.parent().submit();var c=a("#"+n),f=setInterval(function(){var a;try{a=c.contents().find("body").text()}catch(i){t.msg("上传接口存在跨域",r),clearInterval(f)}if(a){clearInterval(f),c.contents().find("body").html("");try{a=JSON.parse(a)}catch(i){return a={},t.msg("请对上传接口返回JSON字符",r)}"function"==typeof s.success&&s.success(a,e)}},30);e.value=""}},e("upload",function(e){var a=new s(e=e||{});a.init()})}); -------------------------------------------------------------------------------- /src/main/webapp/js/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v1.0.4 LGPL license By www.layui.com */ 2 | ;layui.define("jquery",function(l){"use strict";var o=layui.jquery,i={fixbar:function(l){l=l||{},l.bgcolor=l.bgcolor?"background-color:"+l.bgcolor:"";var i,a,c="layui-fixbar-top",t=[l.bar1===!0?"":l.bar1,l.bar2===!0?"":l.bar2,""],r=o(['
        ',l.bar1?'
      • '+t[0]+"
      • ":"",l.bar2?'
      • '+t[1]+"
      • ":"",'
      • '+t[2]+"
      • ","
      "].join("")),e=r.find("."+c),s=function(){var i=o(document).scrollTop();i>=(l.showHeight||200)?a||(e.show(),a=1):a&&(e.hide(),a=0)};o(".layui-fixbar")[0]||("object"==typeof l.css&&r.css(l.css),o("body").append(r),s(),r.find("li").on("click",function(){var i=o(this),a=i.attr("lay-type");"top"===a&&o("html,body").animate({scrollTop:0},200),l.click&&l.click.call(this,a)}),o(document).on("scroll",function(){i&&clearTimeout(i),i=setTimeout(function(){s()},100)}))}};l("util",i)}); -------------------------------------------------------------------------------- /src/main/webapp/js/login.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | 3 | /*layui.use(['element', 'layer'], function(){ 4 | var element = layui.element(), 5 | layer = layui.layer; 6 | 7 | // var redirectURL = Common.getQuery('redirectURL'); 8 | 9 | $('.login-btn').click(function(){ 10 | if($('.phoneNum').val() == '' || $('.phoneNum').val() == undefined){ 11 | $('.phoneNum').focus(); 12 | return layer.tips('请输入手机号或邮箱', '.phoneNum') 13 | } 14 | if($('.password').val() == '' || $('.password').val() == undefined){ 15 | $('.password').focus(); 16 | 17 | return layer.tips('请输入密码', '.password') 18 | } 19 | 20 | var url = '/user/login'; 21 | var Data = { 22 | phone: $('.phoneNum').val(), 23 | password: $('.password').val() 24 | } 25 | Common.ajax(url, Data, function (data) { 26 | if(data.success){ 27 | layer.msg(data.msg); 28 | setTimeout(function(){ 29 | location.href = '/goods/index' 30 | }, 1500) 31 | /!*if(redirectURL){ 32 | setTimeout(function(){ 33 | location.href = redirectURL 34 | }, 1500) 35 | }else{ 36 | setTimeout(function(){ 37 | location.href = '/goods/index' 38 | }, 1500) 39 | }*!/ 40 | }else{ 41 | layer.msg(data.msg) 42 | } 43 | }, function (err) { 44 | console.log(err) 45 | }, function (){}, true, 'POST') 46 | }) 47 | })*/ 48 | }) -------------------------------------------------------------------------------- /src/main/webapp/js/order/orders.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by yy on 2016/12/15. 3 | */ 4 | 5 | $("#leftsidebar_box dt").css({"background-color":" #0AA1ED"}); 6 | $(function(){ 7 | $("#leftsidebar_box dd").hide(); 8 | $("#leftsidebar_box .my_order dd").show(); 9 | $("#leftsidebar_box dt").click(function(){ 10 | $("#leftsidebar_box dt").css({"background-color":"#0AA1ED"}); 11 | $(this).css({"background-color": "#0AA1ED"}); 12 | $(this).parent().find('dd').removeClass("menu_chioce"); 13 | $("#leftsidebar_box dt img").attr("src","../images/myOrder/myOrder2.png"); 14 | $(this).parent().find('img').attr("src","../images/myOrder/myOrder1.png"); 15 | $(".menu_chioce").slideUp(); 16 | $(this).parent().find('dd').slideToggle(); 17 | $(this).parent().find('dd').addClass("menu_chioce"); 18 | $(this).parent().siblings().children('dd').slideUp(); 19 | }); 20 | }) 21 | //分页部分 22 | $(".tcdPageCode").createPage({ 23 | pageCount:6, 24 | current:1, 25 | backFn:function(p){ 26 | 27 | } 28 | }); 29 | 30 | 31 | -------------------------------------------------------------------------------- /src/main/webapp/js/push.js: -------------------------------------------------------------------------------- 1 | !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=window.location.href,o=document.referrer;if(!e.test(r)){var n="//api.share.baidu.com/s.gif";o?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var t=new Image;t.src=n}}(window); -------------------------------------------------------------------------------- /src/main/webapp/js/search.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | $('.search-page-btn').click(function(){ 3 | location.href = '/user/search?keywords=' + $('.keywords').val() 4 | }) 5 | 6 | /*layui.use(['laypage'], function(){ 7 | var laypage = layui.laypage 8 | 9 | laypage({ 10 | cont: 'page', //容器。值支持id名、原生dom对象,jquery对象。【如该容器为】:
      11 | pages: count, //通过后台拿到的总页数 12 | curr: Common.getQuery('page') || 1, //当前页 13 | jump: function(obj, first){ //触发分页后的回调 14 | if(!first){ //点击跳页触发函数自身,并传递当前页:obj.curr 15 | location.href = '/user/search?keywords=' + location.href.split('keywords=')[1].split('&page=')[0] + '&page=' + obj.curr 16 | } 17 | } 18 | }) 19 | })*/ 20 | }) -------------------------------------------------------------------------------- /src/main/webapp/js/user_index.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | layui.use(['layer', 'laypage'], function(){ 3 | var layer = layui.layer 4 | 5 | /*layui.laypage({ 6 | cont: 'page', //容器。值支持id名、原生dom对象,jquery对象。【如该容器为】:
      7 | pages: count, //通过后台拿到的总页数 8 | curr: Common.getQuery('page') || 1, //当前页 9 | jump: function(obj, first){ //触发分页后的回调 10 | if(!first){ //点击跳页触发函数自身,并传递当前页:obj.curr 11 | window.location.href = '/user/index?page=' + obj.curr 12 | } 13 | } 14 | })*/ 15 | 16 | //下架 17 | $('.delete').click(function(){ 18 | var gid = $(this).attr('data-gid') 19 | var url = '/publish/delete_good' 20 | var Data = { 21 | gid: gid 22 | } 23 | Common.ajax(url, Data, function (data) { 24 | if(data.success){ 25 | layer.msg(data.msg) 26 | setTimeout(function(){ location.reload(); }, 1000) 27 | }else{ 28 | layer.msg(data.msg) 29 | } 30 | }, function (err) { 31 | console.log(err) 32 | }, function () {}, true, 'POST') 33 | }) 34 | //擦亮 35 | $('.reflash').click(function(){ 36 | var gid = $(this).attr('data-gid') 37 | var url = '/publish/reflash' 38 | var Data = { 39 | gid: gid 40 | } 41 | Common.ajax(url, Data, function (data) { 42 | if(data.success){ 43 | layer.msg(data.msg) 44 | setTimeout(function(){ location.reload(); }, 1000) 45 | }else{ 46 | layer.msg(data.msg) 47 | } 48 | }, function (err) { 49 | console.log(err) 50 | }, function () {}, true, 'POST') 51 | }) 52 | }) 53 | }) --------------------------------------------------------------------------------