├── src └── main │ ├── webapp │ ├── admin │ │ ├── src │ │ │ ├── store │ │ │ │ └── store.js │ │ │ ├── assets │ │ │ │ └── css │ │ │ │ │ ├── element-variables.scss │ │ │ │ │ └── style.scss │ │ │ ├── App.vue │ │ │ ├── views │ │ │ │ ├── index.vue │ │ │ │ ├── 404.vue │ │ │ │ ├── home.vue │ │ │ │ ├── pay.vue │ │ │ │ └── center.vue │ │ │ ├── main.js │ │ │ └── router │ │ │ │ └── router-static.js │ │ ├── babel.config.js │ │ ├── public │ │ │ ├── favicon.ico │ │ │ └── index.html │ │ ├── package.json │ │ └── vue.config.js │ ├── upload │ │ └── 1686136753533.jpg │ ├── front │ │ ├── xznstatic │ │ │ ├── img │ │ │ │ └── news_list_time.jpg │ │ │ ├── js │ │ │ │ ├── index.js │ │ │ │ └── jquery.SuperSlide.2.1.1.js │ │ │ └── css │ │ │ │ ├── login.css │ │ │ │ ├── common.css │ │ │ │ ├── public.css │ │ │ │ └── style.css │ │ └── pages │ │ │ ├── news │ │ │ └── detail.html │ │ │ └── storeup │ │ │ └── list.html │ └── WEB-INF │ │ └── web.xml │ ├── resources │ ├── config.properties │ ├── mapper │ │ ├── ConfigDao.xml │ │ ├── UserDao.xml │ │ ├── AddressDao.xml │ │ ├── DiscussshangjiaDao.xml │ │ ├── OrdersDao.xml │ │ └── XianhuayoulanDao.xml │ ├── spring │ │ ├── spring.xml │ │ ├── spring-mvc.xml │ │ └── spring-mybatis.xml │ ├── log4j.properties │ └── mybatis │ │ └── mybatis-config.xml │ └── java │ └── com │ ├── dao │ ├── ConfigDao.java │ ├── YonghuDao.java │ ├── StoreupDao.java │ ├── XianhuafenleiDao.java │ └── DiscussxianhuayoulanDao.java │ ├── service │ ├── impl │ │ ├── ConfigServiceImpl.java │ │ ├── CommonServiceImpl.java │ │ ├── UserServiceImpl.java │ │ ├── CartServiceImpl.java │ │ └── OrdersServiceImpl.java │ ├── ShangjiaService.java │ ├── XianhuafenleiService.java │ ├── XianhuayoulanService.java │ ├── DiscussshangjiaService.java │ └── DiscussxianhuayoulanService.java │ ├── entity │ ├── EIException.java │ ├── UserEntity.java │ ├── NewsEntity.java │ ├── StoreupEntity.java │ ├── DiscussshangjiaEntity.java │ └── ShangjiaEntity.java │ └── controller │ ├── FileController.java │ ├── UserController.java │ ├── DiscussshangjiaController.java │ ├── ChatController.java │ ├── CommonController.java │ ├── YonghuController.java │ └── ShangjiaController.java ├── assets ├── img_1.png ├── img_2.png ├── img_3.png ├── img_4.png ├── img_5.png ├── img_6.png ├── img_7.png ├── img_8.png ├── img_9.png ├── img_9-1693639354338.png ├── img_9-1693639364028.png └── Snipaste_2023-09-02_15-20-10.png ├── .idea └── .gitignore ├── .gitignore ├── README.md └── pom.xml /src/main/webapp/admin/src/store/store.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/img_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_1.png -------------------------------------------------------------------------------- /assets/img_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_2.png -------------------------------------------------------------------------------- /assets/img_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_3.png -------------------------------------------------------------------------------- /assets/img_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_4.png -------------------------------------------------------------------------------- /assets/img_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_5.png -------------------------------------------------------------------------------- /assets/img_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_6.png -------------------------------------------------------------------------------- /assets/img_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_7.png -------------------------------------------------------------------------------- /assets/img_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_8.png -------------------------------------------------------------------------------- /assets/img_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_9.png -------------------------------------------------------------------------------- /assets/img_9-1693639354338.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_9-1693639354338.png -------------------------------------------------------------------------------- /assets/img_9-1693639364028.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/img_9-1693639364028.png -------------------------------------------------------------------------------- /assets/Snipaste_2023-09-02_15-20-10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/assets/Snipaste_2023-09-02_15-20-10.png -------------------------------------------------------------------------------- /src/main/webapp/admin/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /src/main/webapp/admin/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/src/main/webapp/admin/public/favicon.ico -------------------------------------------------------------------------------- /src/main/webapp/upload/1686136753533.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/src/main/webapp/upload/1686136753533.jpg -------------------------------------------------------------------------------- /src/main/webapp/front/xznstatic/img/news_list_time.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bsxj97/flower-mall/HEAD/src/main/webapp/front/xznstatic/img/news_list_time.jpg -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /src/main/resources/config.properties: -------------------------------------------------------------------------------- 1 | validationQuery=SELECT 1 2 | 3 | jdbc_url=jdbc:mysql://127.0.0.1:3306/flower?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8 4 | jdbc_username=root 5 | jdbc_password=123456 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/mapper/ConfigDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/main/java/com/dao/ConfigDao.java: -------------------------------------------------------------------------------- 1 | 2 | package com.dao; 3 | 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import com.entity.ConfigEntity; 6 | 7 | /** 8 | * 配置 9 | */ 10 | public interface ConfigDao extends BaseMapper { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/assets/css/element-variables.scss: -------------------------------------------------------------------------------- 1 | /* 改变主题色变量 */ 2 | $--color-primary: #00c292 !default; 3 | $--color-success: #67c23a !default; 4 | $--color-warning: #e6a23c !default; 5 | $--color-danger: #f56c6c !default; 6 | $--color-info: #909399 !default; 7 | /* 改变 icon 字体路径变量,必需 */ 8 | $--font-path: '~element-ui/lib/theme-chalk/fonts'; 9 | @import "~element-ui/packages/theme-chalk/src/index"; -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | replay_pid* 25 | 26 | .idea 27 | -------------------------------------------------------------------------------- /src/main/resources/mapper/UserDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | SELECT u.* FROM users u 10 | 1=1 ${ew.sqlSegment} 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/App.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 31 | -------------------------------------------------------------------------------- /src/main/webapp/front/xznstatic/js/index.js: -------------------------------------------------------------------------------- 1 | jQuery(".banner").slide({mainCell:".bd ul",autoPlay:true,interTime:5000}); 2 | 3 | //???????????? 4 | jQuery("#ifocus").slide({ titCell:"#ifocus_btn li", mainCell:"#ifocus_piclist ul",effect:"leftLoop", delayTime:200, autoPlay:true,triggerTime:0}); 5 | //???????????? 6 | jQuery("#ifocus").slide({ titCell:"#ifocus_btn li", mainCell:"#ifocus_tx ul",delayTime:0, autoPlay:true}); 7 | 8 | jQuery(".product_list").slide({mainCell:".bd ul",autoPage:true,effect:"leftLoop",autoPlay:true,vis:5,trigger:"click",interTime:4000}); -------------------------------------------------------------------------------- /src/main/webapp/admin/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 后台管理系统 10 | 11 | 12 | 13 | 14 | We're sorry but mas-creator-admin doesn't work properly without JavaScript enabled. Please enable it to 15 | continue. 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/views/index.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 22 | 23 | 33 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/assets/css/style.scss: -------------------------------------------------------------------------------- 1 | .form-content { 2 | background: #ffffff; 3 | padding: 10px 10px 0 10px; 4 | } 5 | .table-content { 6 | background: #ffffff; 7 | padding: 0 10px; 8 | } 9 | .pagination-content { 10 | margin-top: 10px; 11 | padding-bottom: 10px; 12 | text-align: right; 13 | } 14 | .detail-form-content{ 15 | background: #ffffff; 16 | padding: 10px; 17 | .el-input{ 18 | min-width: 200px; 19 | max-width: 600px; 20 | } 21 | } 22 | .bg { 23 | position: absolute; 24 | top: 0; 25 | left: 0; 26 | height: 100%; 27 | } 28 | .login-form { 29 | position: absolute; 30 | top: 0; 31 | right: 0; 32 | width: 350px; 33 | height: 100%; 34 | background: #ffffff; 35 | padding: 0 60px; 36 | font-size: 18px; 37 | font-weight: bold; 38 | } 39 | .h1 { 40 | margin-top: 80px; 41 | font-size: 20px; 42 | font-weight: bold; 43 | } 44 | .btn-login { 45 | margin-top: 50px; 46 | width: 100%; 47 | } -------------------------------------------------------------------------------- /src/main/resources/spring/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootLogger=INFO,CONSOLE,A 2 | log4j.addivity.org.apache=false 3 | log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender 4 | log4j.appender.CONSOLE.Threshold=INFO 5 | log4j.appender.CONSOLE.layout.ConversionPattern=%d{yyyy-MM-dd HH\:mm\:ss} -%-4r [%t] %-5p %x - %m%n 6 | log4j.appender.CONSOLE.Target=System.out 7 | #log4j.appender.CONSOLE.charset=utf-8 8 | log4j.appender.CONSOLE.encoding=utf-8 9 | log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout 10 | log4j.appender.A=org.apache.log4j.DailyRollingFileAppender 11 | log4j.appender.A.File=${catalina.home}/logs/yo_log/PurePro_ 12 | log4j.appender.A.DatePattern=yyyy-MM-dd'.log' 13 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 14 | log4j.appender.A.layout.ConversionPattern=[FH_sys] %d{yyyy-MM-dd HH\:mm\:ss} %5p %c{1}\:%L \: %m%n 15 | log4j.logger.java.sql.ResultSet=INFO 16 | log4j.logger.org.apache=INFO 17 | log4j.logger.java.sql.Connection=INFO 18 | log4j.logger.java.sql.Statement=INFO 19 | log4j.logger.java.sql.PreparedStatement=INFO -------------------------------------------------------------------------------- /src/main/java/com/dao/YonghuDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.YonghuEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.YonghuVO; 11 | import com.entity.view.YonghuView; 12 | 13 | 14 | /** 15 | * 用户 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-20 11:33:20 20 | */ 21 | public interface YonghuDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | YonghuVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | YonghuView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/ConfigServiceImpl.java: -------------------------------------------------------------------------------- 1 | 2 | package com.service.impl; 3 | 4 | 5 | import java.util.Map; 6 | 7 | import org.springframework.stereotype.Service; 8 | 9 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 10 | import com.baomidou.mybatisplus.plugins.Page; 11 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 12 | import com.dao.ConfigDao; 13 | import com.entity.ConfigEntity; 14 | import com.entity.UserEntity; 15 | import com.service.ConfigService; 16 | import com.utils.PageUtils; 17 | import com.utils.Query; 18 | 19 | 20 | /** 21 | * 系统用户 22 | */ 23 | @Service("configService") 24 | public class ConfigServiceImpl extends ServiceImpl implements ConfigService { 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/entity/EIException.java: -------------------------------------------------------------------------------- 1 | 2 | package com.entity; 3 | 4 | /** 5 | * 自定义异常 6 | */ 7 | public class EIException extends RuntimeException { 8 | private static final long serialVersionUID = 1L; 9 | 10 | private String msg; 11 | private int code = 500; 12 | 13 | public EIException(String msg) { 14 | super(msg); 15 | this.msg = msg; 16 | } 17 | 18 | public EIException(String msg, Throwable e) { 19 | super(msg, e); 20 | this.msg = msg; 21 | } 22 | 23 | public EIException(String msg, int code) { 24 | super(msg); 25 | this.msg = msg; 26 | this.code = code; 27 | } 28 | 29 | public EIException(String msg, int code, Throwable e) { 30 | super(msg, e); 31 | this.msg = msg; 32 | this.code = code; 33 | } 34 | 35 | public String getMsg() { 36 | return msg; 37 | } 38 | 39 | public void setMsg(String msg) { 40 | this.msg = msg; 41 | } 42 | 43 | public int getCode() { 44 | return code; 45 | } 46 | 47 | public void setCode(int code) { 48 | this.code = code; 49 | } 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/dao/StoreupDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.StoreupEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.StoreupVO; 11 | import com.entity.view.StoreupView; 12 | 13 | 14 | /** 15 | * 收藏表 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-20 11:33:21 20 | */ 21 | public interface StoreupDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | StoreupVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | StoreupView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/views/404.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 出错了...页面失踪了 5 | 6 | 返回 7 | 8 | 9 | 10 | 11 | 20 | 21 | 46 | 47 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 介绍 2 | 基于SSM+Vue的鲜花商城、鲜花销售系统、在线鲜花商城、花店,前后端分离,毕业设计。 3 | 4 | - 开发语言:Java 5 | - 数据库:mysql 6 | - 技术:Spring+SpringMVC+MyBatis+Vue 7 | - 工具:IDEA/Ecilpse+mysql+Navicat 8 | - Q: 3270728362 9 | 10 | --- 11 | 12 | 本系统分为**用户**、**店家**和**管理员**三种角色 13 | 14 | - 用户模块主要功能包括:登录/注册、主页浏览、**商家店铺**浏览、评论浏览、发表评论、鲜花浏览、可以按花店、花名、用途、**花语**进行查询、查看系统公告、查看**鲜花介绍**(花语)、修改个人资料、查看订单、编辑**收货地址**、**收藏**鲜花和查看收藏、购买鲜花、查看**购物车**。 15 | - 商家模块主要功能包括:修改密码、修改商家信息、查看评论、新增鲜花商品。 16 | - 管理员模块主要功能包括:修改密码和用户名、用户管理、商家管理(新增商家和删除商家)、设置鲜花分类、设置鲜花浏览、公告管理、设置轮播图、所有订单管理。 17 | 18 | ## 系统展示 19 | 20 | >首页展示鲜花、商家等,导航栏也有详细的分类。 21 | 22 |  23 | 24 | >鲜花搜索。 25 | 26 |  27 | 28 | > 订单界面,可以显示未支付,已支付,已发货,未发货等。 29 | 30 |  31 | 32 |  33 | 34 | > 管理员界面。 35 | 36 |  37 | 38 |  39 | 40 |  41 | 42 | > 商家界面 43 | 44 |  45 | 46 |  47 | 48 |  49 | -------------------------------------------------------------------------------- /src/main/java/com/service/ShangjiaService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.ShangjiaEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.ShangjiaVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.ShangjiaView; 12 | 13 | 14 | /** 15 | * 商家 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-20 11:33:20 20 | */ 21 | public interface ShangjiaService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | ShangjiaVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | ShangjiaView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/dao/XianhuafenleiDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.XianhuafenleiEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.XianhuafenleiVO; 11 | import com.entity.view.XianhuafenleiView; 12 | 13 | 14 | /** 15 | * 鲜花分类 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-20 11:33:20 20 | */ 21 | public interface XianhuafenleiDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | XianhuafenleiVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | XianhuafenleiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/service/XianhuafenleiService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.XianhuafenleiEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.XianhuafenleiVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.XianhuafenleiView; 12 | 13 | 14 | /** 15 | * 鲜花分类 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-20 11:33:20 20 | */ 21 | public interface XianhuafenleiService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | XianhuafenleiVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | XianhuafenleiView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/XianhuayoulanService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.XianhuayoulanEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.XianhuayoulanVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.XianhuayoulanView; 12 | 13 | 14 | /** 15 | * 鲜花游览 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-20 11:33:20 20 | */ 21 | public interface XianhuayoulanService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | XianhuayoulanVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | XianhuayoulanView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/java/com/service/DiscussshangjiaService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.DiscussshangjiaEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.DiscussshangjiaVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.DiscussshangjiaView; 12 | 13 | 14 | /** 15 | * 商家评论表 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-20 11:33:21 20 | */ 21 | public interface DiscussshangjiaService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | DiscussshangjiaVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | DiscussshangjiaView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/views/home.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 欢迎使用 {{this.$project.projectName}} 5 | 6 | 7 | 8 | 32 | 33 | -------------------------------------------------------------------------------- /src/main/java/com/dao/DiscussxianhuayoulanDao.java: -------------------------------------------------------------------------------- 1 | package com.dao; 2 | 3 | import com.entity.DiscussxianhuayoulanEntity; 4 | import com.baomidou.mybatisplus.mapper.BaseMapper; 5 | import java.util.List; 6 | import com.baomidou.mybatisplus.mapper.Wrapper; 7 | import com.baomidou.mybatisplus.plugins.pagination.Pagination; 8 | 9 | import org.apache.ibatis.annotations.Param; 10 | import com.entity.vo.DiscussxianhuayoulanVO; 11 | import com.entity.view.DiscussxianhuayoulanView; 12 | 13 | 14 | /** 15 | * 鲜花游览评论表 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-20 11:33:21 20 | */ 21 | public interface DiscussxianhuayoulanDao extends BaseMapper { 22 | 23 | List selectListVO(@Param("ew") Wrapper wrapper); 24 | 25 | DiscussxianhuayoulanVO selectVO(@Param("ew") Wrapper wrapper); 26 | 27 | List selectListView(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Pagination page,@Param("ew") Wrapper wrapper); 30 | 31 | DiscussxianhuayoulanView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/service/DiscussxianhuayoulanService.java: -------------------------------------------------------------------------------- 1 | package com.service; 2 | 3 | import com.baomidou.mybatisplus.mapper.Wrapper; 4 | import com.baomidou.mybatisplus.service.IService; 5 | import com.utils.PageUtils; 6 | import com.entity.DiscussxianhuayoulanEntity; 7 | import java.util.List; 8 | import java.util.Map; 9 | import com.entity.vo.DiscussxianhuayoulanVO; 10 | import org.apache.ibatis.annotations.Param; 11 | import com.entity.view.DiscussxianhuayoulanView; 12 | 13 | 14 | /** 15 | * 鲜花游览评论表 16 | * 17 | * @author 18 | * @email 19 | * @date 2021-03-20 11:33:21 20 | */ 21 | public interface DiscussxianhuayoulanService extends IService { 22 | 23 | PageUtils queryPage(Map params); 24 | 25 | List selectListVO(Wrapper wrapper); 26 | 27 | DiscussxianhuayoulanVO selectVO(@Param("ew") Wrapper wrapper); 28 | 29 | List selectListView(Wrapper wrapper); 30 | 31 | DiscussxianhuayoulanView selectView(@Param("ew") Wrapper wrapper); 32 | 33 | PageUtils queryPage(Map params,Wrapper wrapper); 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AddressDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 17 | SELECT * FROM address address 18 | 1=1 ${ew.sqlSegment} 19 | 20 | 21 | 23 | SELECT address.* FROM address address 24 | 1=1 ${ew.sqlSegment} 25 | 26 | 27 | 29 | 30 | SELECT address.* FROM address address 31 | 1=1 ${ew.sqlSegment} 32 | 33 | 34 | 36 | SELECT * FROM address address 1=1 ${ew.sqlSegment} 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/CommonServiceImpl.java: -------------------------------------------------------------------------------- 1 | 2 | package com.service.impl; 3 | 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import com.dao.CommonDao; 12 | import com.service.CommonService; 13 | 14 | 15 | /** 16 | * 系统用户 17 | */ 18 | @Service("commonService") 19 | public class CommonServiceImpl implements CommonService { 20 | 21 | @Autowired 22 | private CommonDao commonDao; 23 | 24 | @Override 25 | public List getOption(Map params) { 26 | return commonDao.getOption(params); 27 | } 28 | 29 | @Override 30 | public Map getFollowByOption(Map params) { 31 | return commonDao.getFollowByOption(params); 32 | } 33 | 34 | @Override 35 | public void sh(Map params) { 36 | commonDao.sh(params); 37 | } 38 | 39 | @Override 40 | public int remindCount(Map params) { 41 | return commonDao.remindCount(params); 42 | } 43 | 44 | @Override 45 | public Map selectCal(Map params) { 46 | return commonDao.selectCal(params); 47 | } 48 | 49 | @Override 50 | public List> selectGroup(Map params) { 51 | return commonDao.selectGroup(params); 52 | } 53 | 54 | @Override 55 | public List> selectValue(Map params) { 56 | return commonDao.selectValue(params); 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /src/main/java/com/entity/UserEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | 6 | import com.baomidou.mybatisplus.annotations.TableId; 7 | import com.baomidou.mybatisplus.annotations.TableName; 8 | import com.baomidou.mybatisplus.enums.IdType; 9 | 10 | /** 11 | * 用户 12 | */ 13 | @TableName("users") 14 | public class UserEntity implements Serializable { 15 | private static final long serialVersionUID = 1L; 16 | 17 | @TableId(type = IdType.AUTO) 18 | private Long id; 19 | 20 | /** 21 | * 用户账号 22 | */ 23 | private String username; 24 | 25 | /** 26 | * 密码 27 | */ 28 | private String password; 29 | 30 | /** 31 | * 用户类型 32 | */ 33 | private String role; 34 | 35 | private Date addtime; 36 | 37 | public String getUsername() { 38 | return username; 39 | } 40 | 41 | public void setUsername(String username) { 42 | this.username = username; 43 | } 44 | 45 | public String getPassword() { 46 | return password; 47 | } 48 | 49 | public void setPassword(String password) { 50 | this.password = password; 51 | } 52 | 53 | public String getRole() { 54 | return role; 55 | } 56 | 57 | public void setRole(String role) { 58 | this.role = role; 59 | } 60 | 61 | public Date getAddtime() { 62 | return addtime; 63 | } 64 | 65 | public void setAddtime(Date addtime) { 66 | this.addtime = addtime; 67 | } 68 | 69 | public Long getId() { 70 | return id; 71 | } 72 | 73 | public void setId(Long id) { 74 | this.id = id; 75 | } 76 | 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | 2 | package com.service.impl; 3 | 4 | 5 | import java.util.List; 6 | import java.util.Map; 7 | 8 | import org.springframework.stereotype.Service; 9 | 10 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 11 | import com.baomidou.mybatisplus.mapper.Wrapper; 12 | import com.baomidou.mybatisplus.plugins.Page; 13 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 14 | import com.dao.UserDao; 15 | import com.entity.UserEntity; 16 | import com.service.UserService; 17 | import com.utils.PageUtils; 18 | import com.utils.Query; 19 | 20 | 21 | /** 22 | * 系统用户 23 | */ 24 | @Service("userService") 25 | public class UserServiceImpl extends ServiceImpl implements UserService { 26 | 27 | @Override 28 | public PageUtils queryPage(Map params) { 29 | Page page = this.selectPage( 30 | new Query(params).getPage(), 31 | new EntityWrapper() 32 | ); 33 | return new PageUtils(page); 34 | } 35 | 36 | @Override 37 | public List selectListView(Wrapper wrapper) { 38 | return baseMapper.selectListView(wrapper); 39 | } 40 | 41 | @Override 42 | public PageUtils queryPage(Map params, 43 | Wrapper wrapper) { 44 | Page page =new Query(params).getPage(); 45 | page.setRecords(baseMapper.selectListView(page,wrapper)); 46 | PageUtils pageUtil = new PageUtils(page); 47 | return pageUtil; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/resources/mapper/DiscussshangjiaDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 17 | SELECT * FROM discussshangjia discussshangjia 18 | 1=1 ${ew.sqlSegment} 19 | 20 | 21 | 23 | SELECT discussshangjia.* FROM discussshangjia discussshangjia 24 | 1=1 ${ew.sqlSegment} 25 | 26 | 27 | 29 | 30 | SELECT discussshangjia.* FROM discussshangjia discussshangjia 31 | 1=1 ${ew.sqlSegment} 32 | 33 | 34 | 36 | SELECT * FROM discussshangjia discussshangjia 1=1 ${ew.sqlSegment} 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/main/webapp/admin/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mas-creator-admin", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", 9 | "lint": "vue-cli-service lint" 10 | }, 11 | "dependencies": { 12 | "axios": "^0.19.2", 13 | "core-js": "^3.4.4", 14 | "echarts": "^4.6.0", 15 | "element-ui": "^2.13.0", 16 | "js-md5": "^0.7.3", 17 | "print-js": "^1.5.0", 18 | "vue": "^2.6.10", 19 | "vue-quill-editor": "^3.0.6", 20 | "vue-amap": "^0.5.10", 21 | "vue-json-excel": "^0.3.0", 22 | "vue-router": "^3.1.5" 23 | }, 24 | "devDependencies": { 25 | "@vue/cli-plugin-babel": "^4.1.0", 26 | "@vue/cli-plugin-eslint": "^4.1.0", 27 | "@vue/cli-service": "^4.1.0", 28 | "babel-eslint": "^10.0.3", 29 | "babel-plugin-component": "^1.1.1", 30 | "eslint": "^5.16.0", 31 | "eslint-plugin-vue": "^5.0.0", 32 | "node-sass": "^4.13.1", 33 | "sass-loader": "^8.0.2", 34 | "svg-sprite-loader": "4.1.3", 35 | "svgo": "1.2.2", 36 | "vue-template-compiler": "^2.6.10" 37 | }, 38 | "eslintConfig": { 39 | "root": true, 40 | "env": { 41 | "node": true 42 | }, 43 | "extends": [ 44 | "plugin:vue/essential", 45 | "eslint:recommended" 46 | ], 47 | "rules": { 48 | "no-console": "off", 49 | "no-unused-vars": 0, 50 | "no-useless-escape": "off" 51 | }, 52 | "parserOptions": { 53 | "parser": "babel-eslint" 54 | } 55 | }, 56 | "browserslist": [ 57 | "> 1%", 58 | "last 2 versions", 59 | "not ie <= 8", 60 | "Android >= 4.0" 61 | ] 62 | } 63 | -------------------------------------------------------------------------------- /src/main/webapp/admin/vue.config.js: -------------------------------------------------------------------------------- 1 | // var webpack = require('webpack'); 2 | const path = require('path') 3 | function resolve(dir) { 4 | return path.join(__dirname, dir) 5 | } 6 | function publicPath(){ 7 | if (process.env.NODE_ENV == 'production') { 8 | return "././"; 9 | } else { 10 | return "/"; 11 | } 12 | } 13 | // vue.config.js 14 | module.exports = { 15 | // publicPath:"././", 16 | publicPath: publicPath(), 17 | // 国际化配置 使用其它语言,默认情况下中文语言包依旧是被引入的 18 | configureWebpack: { 19 | // plugins: [ 20 | // new webpack.NormalModuleReplacementPlugin(/element-ui[\/\\]lib[\/\\]locale[\/\\]lang[\/\\]zh-CN/, 'element-ui/lib/locale/lang/en') 21 | // ] 22 | resolve: { 23 | alias: { 24 | '@': resolve('src') 25 | } 26 | } 27 | }, 28 | lintOnSave: false, 29 | devServer: { 30 | host: "0.0.0.0", //指定使用一个 host。默认是 localhost,这里默认值即可 31 | port: 8081, //指定端口 32 | hot: true, // 开启热更新 33 | https: false, // 是否开启https模式 34 | proxy: { // 请求代理服务器 35 | '/bishe': { //带上api前缀的 36 | target: 'http://localhost:8080/bishe/', //代理目标地址 37 | changeOrigin: true, 38 | secure: false, 39 | pathRewrite: { // 在发出请求后将/api替换为''空值,这样不影响接口请求 40 | '^/bishe': '' 41 | } 42 | } 43 | } 44 | }, 45 | chainWebpack(config) { 46 | config.module 47 | .rule('svg') 48 | .exclude.add(resolve('src/icons')) 49 | .end() 50 | config.module 51 | .rule('icons') 52 | .test(/\.svg$/) 53 | .include.add(resolve('src/icons')) 54 | .end() 55 | .use('svg-sprite-loader') 56 | .loader('svg-sprite-loader') 57 | .options({ 58 | symbolId: 'icon-[name]' 59 | }) 60 | .end() 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/main/resources/mybatis/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 12 | 13 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /src/main/resources/mapper/OrdersDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | SELECT * FROM orders orders 27 | 1=1 ${ew.sqlSegment} 28 | 29 | 30 | 32 | SELECT orders.* FROM orders orders 33 | 1=1 ${ew.sqlSegment} 34 | 35 | 36 | 38 | 39 | SELECT orders.* FROM orders orders 40 | 1=1 ${ew.sqlSegment} 41 | 42 | 43 | 45 | SELECT * FROM orders orders 1=1 ${ew.sqlSegment} 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/CartServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.CartDao; 16 | import com.entity.CartEntity; 17 | import com.service.CartService; 18 | import com.entity.vo.CartVO; 19 | import com.entity.view.CartView; 20 | 21 | @Service("cartService") 22 | public class CartServiceImpl extends ServiceImpl implements CartService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public CartVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public CartView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/service/impl/OrdersServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.service.impl; 2 | 3 | import org.springframework.stereotype.Service; 4 | import java.util.Map; 5 | import java.util.List; 6 | 7 | import com.baomidou.mybatisplus.mapper.Wrapper; 8 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 9 | import com.baomidou.mybatisplus.plugins.Page; 10 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; 11 | import com.utils.PageUtils; 12 | import com.utils.Query; 13 | 14 | 15 | import com.dao.OrdersDao; 16 | import com.entity.OrdersEntity; 17 | import com.service.OrdersService; 18 | import com.entity.vo.OrdersVO; 19 | import com.entity.view.OrdersView; 20 | 21 | @Service("ordersService") 22 | public class OrdersServiceImpl extends ServiceImpl implements OrdersService { 23 | 24 | 25 | @Override 26 | public PageUtils queryPage(Map params) { 27 | Page page = this.selectPage( 28 | new Query(params).getPage(), 29 | new EntityWrapper() 30 | ); 31 | return new PageUtils(page); 32 | } 33 | 34 | @Override 35 | public PageUtils queryPage(Map params, Wrapper wrapper) { 36 | Page page =new Query(params).getPage(); 37 | page.setRecords(baseMapper.selectListView(page,wrapper)); 38 | PageUtils pageUtil = new PageUtils(page); 39 | return pageUtil; 40 | } 41 | 42 | @Override 43 | public List selectListVO(Wrapper wrapper) { 44 | return baseMapper.selectListVO(wrapper); 45 | } 46 | 47 | @Override 48 | public OrdersVO selectVO(Wrapper wrapper) { 49 | return baseMapper.selectVO(wrapper); 50 | } 51 | 52 | @Override 53 | public List selectListView(Wrapper wrapper) { 54 | return baseMapper.selectListView(wrapper); 55 | } 56 | 57 | @Override 58 | public OrdersView selectView(Wrapper wrapper) { 59 | return baseMapper.selectView(wrapper); 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/resources/mapper/XianhuayoulanDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 27 | SELECT * FROM xianhuayoulan xianhuayoulan 28 | 1=1 ${ew.sqlSegment} 29 | 30 | 31 | 33 | SELECT xianhuayoulan.* FROM xianhuayoulan xianhuayoulan 34 | 1=1 ${ew.sqlSegment} 35 | 36 | 37 | 39 | 40 | SELECT xianhuayoulan.* FROM xianhuayoulan xianhuayoulan 41 | 1=1 ${ew.sqlSegment} 42 | 43 | 44 | 46 | SELECT * FROM xianhuayoulan xianhuayoulan 1=1 ${ew.sqlSegment} 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from '@/App.vue' 3 | // element ui 完全引入 4 | import ElementUI from 'element-ui' 5 | import '@/assets/css/element-variables.scss' 6 | import '@/assets/css/style.scss' 7 | // 加载路由 8 | // import router from '@/router/router-static.js'; 9 | import router from '@/router/router-static.js'; 10 | // 面包屑导航,注册为全局组件 11 | import BreadCrumbs from '@/components/common/BreadCrumbs' 12 | // 引入echart 13 | import echarts from 'echarts' 14 | // 引入echart主题 15 | // import '@/assets/js/echarts-theme-macarons.js' 16 | import 'echarts/theme/macarons.js' 17 | // ajax 18 | import http from '@/utils/http.js' 19 | // 基础配置 20 | import base from '@/utils/base' 21 | // 工具类 22 | import { isAuth } from '@/utils/utils' 23 | // storage 封装 24 | import storage from "@/utils/storage"; 25 | // 上传组件 26 | import FileUpload from "@/components/common/FileUpload"; 27 | // 富文本编辑组件 28 | import Editor from "@/components/common/Editor"; 29 | // api 接口 30 | import api from '@/utils/api' 31 | // 数据校验工具类 32 | import * as validate from '@/utils/validate.js' 33 | // 后台地图 34 | import VueAMap from 'vue-amap' 35 | import '@/icons' 36 | //excel导出 37 | import JsonExcel from 'vue-json-excel' 38 | //打印 39 | import printJS from 'print-js' 40 | //MD5 41 | import md5 from 'js-md5'; 42 | 43 | // 后台地图 44 | Vue.use(VueAMap) 45 | VueAMap.initAMapApiLoader({ 46 | key: 'ca04cee7ac952691aa67a131e6f0cee0', 47 | plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'AMap.Geocoder'], 48 | // 默认高德 sdk 版本为 1.4.4 49 | v: '1.4.4' 50 | }) 51 | Vue.prototype.$validate = validate 52 | Vue.prototype.$http = http // ajax请求方法 53 | Vue.prototype.$echarts = echarts 54 | Vue.prototype.$base = base.get() 55 | Vue.prototype.$project = base.getProjectName() 56 | Vue.prototype.$storage = storage 57 | Vue.prototype.$api = api 58 | // 判断权限方法 59 | Vue.prototype.isAuth = isAuth 60 | // Vue.prototype.$base = base 61 | Vue.use(ElementUI, { size: 'medium', zIndex: 3000 }); 62 | Vue.config.productionTip = false 63 | // 组件全局组件 64 | Vue.component('bread-crumbs', BreadCrumbs) 65 | Vue.component('file-upload', FileUpload) 66 | Vue.component('editor', Editor) 67 | //excel导出 68 | Vue.component('downloadExcel', JsonExcel) 69 | //MD5 70 | Vue.prototype.$md5 = md5; 71 | new Vue({ 72 | render: h => h(App), 73 | router 74 | }).$mount('#app') 75 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | spring 6 | 7 | 8 | tiaozhuan.html 9 | 10 | 11 | 12 | contextConfigLocation 13 | classpath:spring/spring.xml 14 | 15 | 16 | 17 | 18 | 19 | encodingFilter 20 | org.springframework.web.filter.CharacterEncodingFilter 21 | 22 | encoding 23 | UTF-8 24 | 25 | 26 | 27 | encodingFilter 28 | /* 29 | 30 | 31 | 32 | 33 | Spring监听器 34 | org.springframework.web.context.ContextLoaderListener 35 | 36 | 37 | 38 | org.springframework.web.util.IntrospectorCleanupListener 39 | 40 | 41 | 42 | 43 | SpringMVC 44 | org.springframework.web.servlet.DispatcherServlet 45 | 46 | SpringMVC 47 | contextConfigLocation 48 | classpath:spring/spring-mvc.xml 49 | 50 | 1 51 | 52 | 53 | 54 | 55 | 56 | default 57 | *.js 58 | *.css 59 | *.html 60 | /upload/* 61 | 62 | 63 | 64 | SpringMVC 65 | / 66 | 67 | 68 | 69 | 72 | 73 | -------------------------------------------------------------------------------- /src/main/webapp/front/xznstatic/css/login.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | width: 100%; 3 | height: 100%; 4 | } 5 | 6 | .reg { 7 | width: 100%; 8 | height: 100%; 9 | background: url("../img/20.jpg") no-repeat; 10 | background-size: 100% 100%; 11 | } 12 | 13 | .login { 14 | width: 100%; 15 | height: 100%; 16 | background: url("../img/20.jpg") no-repeat; 17 | background-size: 100% 100%; 18 | } 19 | 20 | .login img, .reg img { 21 | width: auto; 22 | } 23 | 24 | .login form, .reg form { 25 | position: fixed; 26 | top: 15%; 27 | right: 140px; 28 | padding: 20px 0; 29 | text-align: center; 30 | z-index: 10; 31 | background: #fff; 32 | } 33 | 34 | .msg-warn { 35 | position: relative; 36 | background: #fef4e5; 37 | color: #666; 38 | display: inline-block; 39 | border: 1px solid #f6c090; 40 | padding: 3px 31px 3px 31px; 41 | line-height: 15px; 42 | height: auto; 43 | margin-bottom: 15px; 44 | } 45 | 46 | .login form { 47 | top: 18%; 48 | border: 1px solid #dbdbdb; 49 | width: 440px; 50 | height: 350px; 51 | } 52 | 53 | .reg form { 54 | width: 480px; 55 | height: 490px; 56 | background: #fff; 57 | } 58 | 59 | .reg form h1, .login form h1 { 60 | border-bottom: 1px solid #dbdbdb; 61 | padding-bottom: 20px; 62 | } 63 | 64 | .reg form p, .login form p { 65 | margin-top: 15px; 66 | } 67 | 68 | .reg form a.off, .login form a.off { 69 | position: absolute; 70 | right: 20px; 71 | top: 20px; 72 | } 73 | 74 | .reg form input, .login form input { 75 | width: 280px; 76 | height: 40px; 77 | border-radius: 3px; 78 | } 79 | 80 | .reg form input[type="text"], .login form input[type="text"] { 81 | border: 1px solid #dbdbdb; 82 | font-size: 14px; 83 | padding-left: 10px; 84 | } 85 | 86 | .reg form input[type="password"], .login form input[type="password"] { 87 | border: 1px solid #dbdbdb; 88 | font-size: 14px; 89 | padding-left: 10px; 90 | } 91 | 92 | .reg input[type="submit"], .login input[type="submit"] { 93 | width: 280px; 94 | background: #C10000; 95 | font-size: 20px; 96 | border: none; 97 | color: #fff; 98 | } 99 | 100 | div.reg form input.code { 101 | width: 150px; 102 | } 103 | 104 | div.reg form p.txtL { 105 | text-align: left; 106 | } 107 | 108 | div.reg form p.txtL img { 109 | width: 97px; 110 | height: 37px; 111 | vertical-align: middle; 112 | } 113 | 114 | div.reg form p.txtL a { 115 | color: #c10000; 116 | } 117 | 118 | .reg form p.txt, .login form p.txt { 119 | width: 280px; 120 | margin: 10px auto 0; 121 | text-align: right; 122 | } 123 | 124 | .reg p.txt a, .login p.txt a, { 125 | color: #666; 126 | text-decoration: underline; 127 | } 128 | 129 | div.login form p.txt a { 130 | margin-left: 20px; 131 | cursor: pointer; 132 | } -------------------------------------------------------------------------------- /src/main/java/com/controller/FileController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.io.File; 4 | import java.io.IOException; 5 | import java.util.Date; 6 | 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import org.apache.commons.io.FileUtils; 11 | import org.apache.commons.io.IOUtils; 12 | import org.apache.commons.lang3.StringUtils; 13 | import org.springframework.beans.factory.annotation.Autowired; 14 | import org.springframework.web.bind.annotation.RequestMapping; 15 | import org.springframework.web.bind.annotation.RequestParam; 16 | import org.springframework.web.bind.annotation.RestController; 17 | import org.springframework.web.multipart.MultipartFile; 18 | 19 | import com.annotation.IgnoreAuth; 20 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 21 | import com.entity.ConfigEntity; 22 | import com.entity.EIException; 23 | import com.service.ConfigService; 24 | import com.utils.R; 25 | 26 | /** 27 | * 上传文件映射表 28 | */ 29 | @RestController 30 | @RequestMapping("file") 31 | @SuppressWarnings({"unchecked","rawtypes"}) 32 | public class FileController{ 33 | @Autowired 34 | private ConfigService configService; 35 | /** 36 | * 上传文件 37 | */ 38 | @RequestMapping("/upload") 39 | public R upload(@RequestParam("file") MultipartFile file, String type,HttpServletRequest request) throws Exception { 40 | if (file.isEmpty()) { 41 | throw new EIException("上传文件不能为空"); 42 | } 43 | String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1); 44 | String fileName = new Date().getTime()+"."+fileExt; 45 | File dest = new File("F:/xy/tmp/鲜花/前后端分离/OnlineFlowerTransactionManagementSystem/src/main/webapp/upload"+"/"+fileName); 46 | file.transferTo(dest); 47 | if(StringUtils.isNotBlank(type) && type.equals("1")) { 48 | ConfigEntity configEntity = configService.selectOne(new EntityWrapper().eq("name", "faceFile")); 49 | if(configEntity==null) { 50 | configEntity = new ConfigEntity(); 51 | configEntity.setName("faceFile"); 52 | configEntity.setValue(fileName); 53 | } else { 54 | configEntity.setValue(fileName); 55 | } 56 | configService.insertOrUpdate(configEntity); 57 | } 58 | return R.ok().put("file", fileName); 59 | } 60 | 61 | /** 62 | * 下载文件 63 | */ 64 | @IgnoreAuth 65 | @RequestMapping("/download") 66 | public void download(@RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) { 67 | try { 68 | File file = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName); 69 | if (file.exists()) { 70 | response.reset(); 71 | response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName+"\""); 72 | response.setHeader("Cache-Control", "no-cache"); 73 | response.setHeader("Access-Control-Allow-Credentials", "true"); 74 | response.setContentType("application/octet-stream; charset=UTF-8"); 75 | IOUtils.write(FileUtils.readFileToByteArray(file), response.getOutputStream()); 76 | } 77 | 78 | } catch (IOException e) { 79 | e.printStackTrace(); 80 | } 81 | } 82 | 83 | } 84 | -------------------------------------------------------------------------------- /src/main/java/com/entity/NewsEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import com.baomidou.mybatisplus.annotations.TableId; 4 | import com.baomidou.mybatisplus.annotations.TableName; 5 | import javax.validation.constraints.NotBlank; 6 | import javax.validation.constraints.NotEmpty; 7 | import javax.validation.constraints.NotNull; 8 | 9 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 10 | import java.lang.reflect.InvocationTargetException; 11 | 12 | import java.io.Serializable; 13 | import java.util.Date; 14 | import java.util.List; 15 | 16 | import org.springframework.format.annotation.DateTimeFormat; 17 | import com.fasterxml.jackson.annotation.JsonFormat; 18 | import org.apache.commons.beanutils.BeanUtils; 19 | import com.baomidou.mybatisplus.annotations.TableField; 20 | import com.baomidou.mybatisplus.enums.FieldFill; 21 | import com.baomidou.mybatisplus.enums.IdType; 22 | 23 | 24 | /** 25 | * 系统公告 26 | * 数据库通用操作实体类(普通增删改查) 27 | * @author 28 | * @email 29 | * @date 2021-03-20 11:33:21 30 | */ 31 | @TableName("news") 32 | public class NewsEntity implements Serializable { 33 | private static final long serialVersionUID = 1L; 34 | 35 | 36 | public NewsEntity() { 37 | 38 | } 39 | 40 | public NewsEntity(T t) { 41 | try { 42 | BeanUtils.copyProperties(this, t); 43 | } catch (IllegalAccessException | InvocationTargetException e) { 44 | // TODO Auto-generated catch block 45 | e.printStackTrace(); 46 | } 47 | } 48 | 49 | /** 50 | * 主键id 51 | */ 52 | @TableId 53 | private Long id; 54 | /** 55 | * 标题 56 | */ 57 | 58 | private String title; 59 | 60 | /** 61 | * 简介 62 | */ 63 | 64 | private String introduction; 65 | 66 | /** 67 | * 图片 68 | */ 69 | 70 | private String picture; 71 | 72 | /** 73 | * 内容 74 | */ 75 | 76 | private String content; 77 | 78 | 79 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 80 | @DateTimeFormat 81 | private Date addtime; 82 | 83 | public Date getAddtime() { 84 | return addtime; 85 | } 86 | public void setAddtime(Date addtime) { 87 | this.addtime = addtime; 88 | } 89 | 90 | public Long getId() { 91 | return id; 92 | } 93 | 94 | public void setId(Long id) { 95 | this.id = id; 96 | } 97 | /** 98 | * 设置:标题 99 | */ 100 | public void setTitle(String title) { 101 | this.title = title; 102 | } 103 | /** 104 | * 获取:标题 105 | */ 106 | public String getTitle() { 107 | return title; 108 | } 109 | /** 110 | * 设置:简介 111 | */ 112 | public void setIntroduction(String introduction) { 113 | this.introduction = introduction; 114 | } 115 | /** 116 | * 获取:简介 117 | */ 118 | public String getIntroduction() { 119 | return introduction; 120 | } 121 | /** 122 | * 设置:图片 123 | */ 124 | public void setPicture(String picture) { 125 | this.picture = picture; 126 | } 127 | /** 128 | * 获取:图片 129 | */ 130 | public String getPicture() { 131 | return picture; 132 | } 133 | /** 134 | * 设置:内容 135 | */ 136 | public void setContent(String content) { 137 | this.content = content; 138 | } 139 | /** 140 | * 获取:内容 141 | */ 142 | public String getContent() { 143 | return content; 144 | } 145 | 146 | } 147 | -------------------------------------------------------------------------------- /src/main/resources/spring/spring-mvc.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/entity/StoreupEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import com.baomidou.mybatisplus.annotations.TableId; 4 | import com.baomidou.mybatisplus.annotations.TableName; 5 | import javax.validation.constraints.NotBlank; 6 | import javax.validation.constraints.NotEmpty; 7 | import javax.validation.constraints.NotNull; 8 | 9 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 10 | import java.lang.reflect.InvocationTargetException; 11 | 12 | import java.io.Serializable; 13 | import java.util.Date; 14 | import java.util.List; 15 | 16 | import org.springframework.format.annotation.DateTimeFormat; 17 | import com.fasterxml.jackson.annotation.JsonFormat; 18 | import org.apache.commons.beanutils.BeanUtils; 19 | import com.baomidou.mybatisplus.annotations.TableField; 20 | import com.baomidou.mybatisplus.enums.FieldFill; 21 | import com.baomidou.mybatisplus.enums.IdType; 22 | 23 | 24 | /** 25 | * 收藏表 26 | * 数据库通用操作实体类(普通增删改查) 27 | * @author 28 | * @email 29 | * @date 2021-03-20 11:33:21 30 | */ 31 | @TableName("storeup") 32 | public class StoreupEntity implements Serializable { 33 | private static final long serialVersionUID = 1L; 34 | 35 | 36 | public StoreupEntity() { 37 | 38 | } 39 | 40 | public StoreupEntity(T t) { 41 | try { 42 | BeanUtils.copyProperties(this, t); 43 | } catch (IllegalAccessException | InvocationTargetException e) { 44 | // TODO Auto-generated catch block 45 | e.printStackTrace(); 46 | } 47 | } 48 | 49 | /** 50 | * 主键id 51 | */ 52 | @TableId 53 | private Long id; 54 | /** 55 | * 用户id 56 | */ 57 | 58 | private Long userid; 59 | 60 | /** 61 | * 收藏id 62 | */ 63 | 64 | private Long refid; 65 | 66 | /** 67 | * 表名 68 | */ 69 | 70 | private String tablename; 71 | 72 | /** 73 | * 收藏名称 74 | */ 75 | 76 | private String name; 77 | 78 | /** 79 | * 收藏图片 80 | */ 81 | 82 | private String picture; 83 | 84 | 85 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 86 | @DateTimeFormat 87 | private Date addtime; 88 | 89 | public Date getAddtime() { 90 | return addtime; 91 | } 92 | public void setAddtime(Date addtime) { 93 | this.addtime = addtime; 94 | } 95 | 96 | public Long getId() { 97 | return id; 98 | } 99 | 100 | public void setId(Long id) { 101 | this.id = id; 102 | } 103 | /** 104 | * 设置:用户id 105 | */ 106 | public void setUserid(Long userid) { 107 | this.userid = userid; 108 | } 109 | /** 110 | * 获取:用户id 111 | */ 112 | public Long getUserid() { 113 | return userid; 114 | } 115 | /** 116 | * 设置:收藏id 117 | */ 118 | public void setRefid(Long refid) { 119 | this.refid = refid; 120 | } 121 | /** 122 | * 获取:收藏id 123 | */ 124 | public Long getRefid() { 125 | return refid; 126 | } 127 | /** 128 | * 设置:表名 129 | */ 130 | public void setTablename(String tablename) { 131 | this.tablename = tablename; 132 | } 133 | /** 134 | * 获取:表名 135 | */ 136 | public String getTablename() { 137 | return tablename; 138 | } 139 | /** 140 | * 设置:收藏名称 141 | */ 142 | public void setName(String name) { 143 | this.name = name; 144 | } 145 | /** 146 | * 获取:收藏名称 147 | */ 148 | public String getName() { 149 | return name; 150 | } 151 | /** 152 | * 设置:收藏图片 153 | */ 154 | public void setPicture(String picture) { 155 | this.picture = picture; 156 | } 157 | /** 158 | * 获取:收藏图片 159 | */ 160 | public String getPicture() { 161 | return picture; 162 | } 163 | 164 | } 165 | -------------------------------------------------------------------------------- /src/main/java/com/entity/DiscussshangjiaEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import com.baomidou.mybatisplus.annotations.TableId; 4 | import com.baomidou.mybatisplus.annotations.TableName; 5 | import javax.validation.constraints.NotBlank; 6 | import javax.validation.constraints.NotEmpty; 7 | import javax.validation.constraints.NotNull; 8 | 9 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 10 | import java.lang.reflect.InvocationTargetException; 11 | 12 | import java.io.Serializable; 13 | import java.util.Date; 14 | import java.util.List; 15 | 16 | import org.springframework.format.annotation.DateTimeFormat; 17 | import com.fasterxml.jackson.annotation.JsonFormat; 18 | import org.apache.commons.beanutils.BeanUtils; 19 | import com.baomidou.mybatisplus.annotations.TableField; 20 | import com.baomidou.mybatisplus.enums.FieldFill; 21 | import com.baomidou.mybatisplus.enums.IdType; 22 | 23 | 24 | /** 25 | * 商家评论表 26 | * 数据库通用操作实体类(普通增删改查) 27 | * @author 28 | * @email 29 | * @date 2021-03-20 11:33:21 30 | */ 31 | @TableName("discussshangjia") 32 | public class DiscussshangjiaEntity implements Serializable { 33 | private static final long serialVersionUID = 1L; 34 | 35 | 36 | public DiscussshangjiaEntity() { 37 | 38 | } 39 | 40 | public DiscussshangjiaEntity(T t) { 41 | try { 42 | BeanUtils.copyProperties(this, t); 43 | } catch (IllegalAccessException | InvocationTargetException e) { 44 | // TODO Auto-generated catch block 45 | e.printStackTrace(); 46 | } 47 | } 48 | 49 | /** 50 | * 主键id 51 | */ 52 | @TableId 53 | private Long id; 54 | /** 55 | * 关联表id 56 | */ 57 | 58 | private Long refid; 59 | 60 | /** 61 | * 用户id 62 | */ 63 | 64 | private Long userid; 65 | 66 | /** 67 | * 用户名 68 | */ 69 | 70 | private String nickname; 71 | 72 | /** 73 | * 评论内容 74 | */ 75 | 76 | private String content; 77 | 78 | /** 79 | * 回复内容 80 | */ 81 | 82 | private String reply; 83 | 84 | 85 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 86 | @DateTimeFormat 87 | private Date addtime; 88 | 89 | public Date getAddtime() { 90 | return addtime; 91 | } 92 | public void setAddtime(Date addtime) { 93 | this.addtime = addtime; 94 | } 95 | 96 | public Long getId() { 97 | return id; 98 | } 99 | 100 | public void setId(Long id) { 101 | this.id = id; 102 | } 103 | /** 104 | * 设置:关联表id 105 | */ 106 | public void setRefid(Long refid) { 107 | this.refid = refid; 108 | } 109 | /** 110 | * 获取:关联表id 111 | */ 112 | public Long getRefid() { 113 | return refid; 114 | } 115 | /** 116 | * 设置:用户id 117 | */ 118 | public void setUserid(Long userid) { 119 | this.userid = userid; 120 | } 121 | /** 122 | * 获取:用户id 123 | */ 124 | public Long getUserid() { 125 | return userid; 126 | } 127 | /** 128 | * 设置:用户名 129 | */ 130 | public void setNickname(String nickname) { 131 | this.nickname = nickname; 132 | } 133 | /** 134 | * 获取:用户名 135 | */ 136 | public String getNickname() { 137 | return nickname; 138 | } 139 | /** 140 | * 设置:评论内容 141 | */ 142 | public void setContent(String content) { 143 | this.content = content; 144 | } 145 | /** 146 | * 获取:评论内容 147 | */ 148 | public String getContent() { 149 | return content; 150 | } 151 | /** 152 | * 设置:回复内容 153 | */ 154 | public void setReply(String reply) { 155 | this.reply = reply; 156 | } 157 | /** 158 | * 获取:回复内容 159 | */ 160 | public String getReply() { 161 | return reply; 162 | } 163 | 164 | } 165 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/router/router-static.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue'; 2 | //配置路由 3 | import VueRouter from 'vue-router' 4 | Vue.use(VueRouter); 5 | //1.创建组件 6 | import Index from '@/views/index' 7 | import Home from '@/views/home' 8 | import Login from '@/views/login' 9 | import NotFound from '@/views/404' 10 | import UpdatePassword from '@/views/update-password' 11 | import pay from '@/views/pay' 12 | import register from '@/views/register' 13 | import center from '@/views/center' 14 | import news from '@/views/modules/news/list' 15 | import xianhuafenlei from '@/views/modules/xianhuafenlei/list' 16 | import yonghu from '@/views/modules/yonghu/list' 17 | import chat from '@/views/modules/chat/list' 18 | import orders from '@/views/modules/orders/list' 19 | import discussshangjia from '@/views/modules/discussshangjia/list' 20 | import storeup from '@/views/modules/storeup/list' 21 | import config from '@/views/modules/config/list' 22 | import shangjia from '@/views/modules/shangjia/list' 23 | import discussxianhuayoulan from '@/views/modules/discussxianhuayoulan/list' 24 | import xianhuayoulan from '@/views/modules/xianhuayoulan/list' 25 | 26 | 27 | //2.配置路由 注意:名字 28 | const routes = [{ 29 | path: '/index', 30 | name: '首页', 31 | component: Index, 32 | children: [{ 33 | // 这里不设置值,是把main作为默认页面 34 | path: '/', 35 | name: '首页', 36 | component: Home, 37 | meta: {icon:'', title:'center'} 38 | }, { 39 | path: '/updatePassword', 40 | name: '修改密码', 41 | component: UpdatePassword, 42 | meta: {icon:'', title:'updatePassword'} 43 | }, { 44 | path: '/pay', 45 | name: '支付', 46 | component: pay, 47 | meta: {icon:'', title:'pay'} 48 | }, { 49 | path: '/center', 50 | name: '个人信息', 51 | component: center, 52 | meta: {icon:'', title:'center'} 53 | } 54 | ,{ 55 | path: '/news', 56 | name: '系统公告', 57 | component: news 58 | } 59 | ,{ 60 | path: '/xianhuafenlei', 61 | name: '鲜花分类', 62 | component: xianhuafenlei 63 | } 64 | ,{ 65 | path: '/yonghu', 66 | name: '用户', 67 | component: yonghu 68 | } 69 | ,{ 70 | path: '/chat', 71 | name: '在线客服', 72 | component: chat 73 | } 74 | ,{ 75 | path: '/orders/:status', 76 | name: '订单管理', 77 | component: orders 78 | } 79 | ,{ 80 | path: '/discussshangjia', 81 | name: '商家评论', 82 | component: discussshangjia 83 | } 84 | ,{ 85 | path: '/storeup', 86 | name: '我的收藏管理', 87 | component: storeup 88 | } 89 | ,{ 90 | path: '/config', 91 | name: '轮播图管理', 92 | component: config 93 | } 94 | ,{ 95 | path: '/shangjia', 96 | name: '商家', 97 | component: shangjia 98 | } 99 | ,{ 100 | path: '/discussxianhuayoulan', 101 | name: '鲜花游览评论', 102 | component: discussxianhuayoulan 103 | } 104 | ,{ 105 | path: '/xianhuayoulan', 106 | name: '鲜花游览', 107 | component: xianhuayoulan 108 | } 109 | ] 110 | }, 111 | { 112 | path: '/login', 113 | name: 'login', 114 | component: Login, 115 | meta: {icon:'', title:'login'} 116 | }, 117 | { 118 | path: '/register', 119 | name: 'register', 120 | component: register, 121 | meta: {icon:'', title:'register'} 122 | }, 123 | { 124 | path: '/', 125 | name: '首页', 126 | redirect: '/index' 127 | }, /*默认跳转路由*/ 128 | { 129 | path: '*', 130 | component: NotFound 131 | } 132 | ] 133 | //3.实例化VueRouter 注意:名字 134 | const router = new VueRouter({ 135 | mode: 'hash', 136 | /*hash模式改为history*/ 137 | routes // (缩写)相当于 routes: routes 138 | }) 139 | 140 | export default router; 141 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/views/pay.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 确认支付 48 | 返回 49 | 50 | 51 | 52 | 116 | 162 | -------------------------------------------------------------------------------- /src/main/java/com/entity/ShangjiaEntity.java: -------------------------------------------------------------------------------- 1 | package com.entity; 2 | 3 | import com.baomidou.mybatisplus.annotations.TableId; 4 | import com.baomidou.mybatisplus.annotations.TableName; 5 | import javax.validation.constraints.NotBlank; 6 | import javax.validation.constraints.NotEmpty; 7 | import javax.validation.constraints.NotNull; 8 | 9 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 10 | import java.lang.reflect.InvocationTargetException; 11 | 12 | import java.io.Serializable; 13 | import java.util.Date; 14 | import java.util.List; 15 | 16 | import org.springframework.format.annotation.DateTimeFormat; 17 | import com.fasterxml.jackson.annotation.JsonFormat; 18 | import org.apache.commons.beanutils.BeanUtils; 19 | import com.baomidou.mybatisplus.annotations.TableField; 20 | import com.baomidou.mybatisplus.enums.FieldFill; 21 | import com.baomidou.mybatisplus.enums.IdType; 22 | 23 | 24 | /** 25 | * 商家 26 | * 数据库通用操作实体类(普通增删改查) 27 | * @author 28 | * @email 29 | * @date 2021-03-20 11:33:20 30 | */ 31 | @TableName("shangjia") 32 | public class ShangjiaEntity implements Serializable { 33 | private static final long serialVersionUID = 1L; 34 | 35 | 36 | public ShangjiaEntity() { 37 | 38 | } 39 | 40 | public ShangjiaEntity(T t) { 41 | try { 42 | BeanUtils.copyProperties(this, t); 43 | } catch (IllegalAccessException | InvocationTargetException e) { 44 | // TODO Auto-generated catch block 45 | e.printStackTrace(); 46 | } 47 | } 48 | 49 | /** 50 | * 主键id 51 | */ 52 | @TableId 53 | private Long id; 54 | /** 55 | * 商家账号 56 | */ 57 | 58 | private String shangjiazhanghao; 59 | 60 | /** 61 | * 密码 62 | */ 63 | 64 | private String mima; 65 | 66 | /** 67 | * 店铺名 68 | */ 69 | 70 | private String dianpuming; 71 | 72 | /** 73 | * 店铺地址 74 | */ 75 | 76 | private String dianpudizhi; 77 | 78 | /** 79 | * 联系方式 80 | */ 81 | 82 | private String lianxifangshi; 83 | 84 | /** 85 | * 联系人 86 | */ 87 | 88 | private String lianxiren; 89 | 90 | /** 91 | * 商家图片 92 | */ 93 | 94 | private String shangjiatupian; 95 | 96 | /** 97 | * 经营范围 98 | */ 99 | 100 | private String jingyingfanwei; 101 | 102 | /** 103 | * 商家介绍 104 | */ 105 | 106 | private String shangjiajieshao; 107 | 108 | /** 109 | * 余额 110 | */ 111 | 112 | private Float money; 113 | 114 | 115 | @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss") 116 | @DateTimeFormat 117 | private Date addtime; 118 | 119 | public Date getAddtime() { 120 | return addtime; 121 | } 122 | public void setAddtime(Date addtime) { 123 | this.addtime = addtime; 124 | } 125 | 126 | public Long getId() { 127 | return id; 128 | } 129 | 130 | public void setId(Long id) { 131 | this.id = id; 132 | } 133 | /** 134 | * 设置:商家账号 135 | */ 136 | public void setShangjiazhanghao(String shangjiazhanghao) { 137 | this.shangjiazhanghao = shangjiazhanghao; 138 | } 139 | /** 140 | * 获取:商家账号 141 | */ 142 | public String getShangjiazhanghao() { 143 | return shangjiazhanghao; 144 | } 145 | /** 146 | * 设置:密码 147 | */ 148 | public void setMima(String mima) { 149 | this.mima = mima; 150 | } 151 | /** 152 | * 获取:密码 153 | */ 154 | public String getMima() { 155 | return mima; 156 | } 157 | /** 158 | * 设置:店铺名 159 | */ 160 | public void setDianpuming(String dianpuming) { 161 | this.dianpuming = dianpuming; 162 | } 163 | /** 164 | * 获取:店铺名 165 | */ 166 | public String getDianpuming() { 167 | return dianpuming; 168 | } 169 | /** 170 | * 设置:店铺地址 171 | */ 172 | public void setDianpudizhi(String dianpudizhi) { 173 | this.dianpudizhi = dianpudizhi; 174 | } 175 | /** 176 | * 获取:店铺地址 177 | */ 178 | public String getDianpudizhi() { 179 | return dianpudizhi; 180 | } 181 | /** 182 | * 设置:联系方式 183 | */ 184 | public void setLianxifangshi(String lianxifangshi) { 185 | this.lianxifangshi = lianxifangshi; 186 | } 187 | /** 188 | * 获取:联系方式 189 | */ 190 | public String getLianxifangshi() { 191 | return lianxifangshi; 192 | } 193 | /** 194 | * 设置:联系人 195 | */ 196 | public void setLianxiren(String lianxiren) { 197 | this.lianxiren = lianxiren; 198 | } 199 | /** 200 | * 获取:联系人 201 | */ 202 | public String getLianxiren() { 203 | return lianxiren; 204 | } 205 | /** 206 | * 设置:商家图片 207 | */ 208 | public void setShangjiatupian(String shangjiatupian) { 209 | this.shangjiatupian = shangjiatupian; 210 | } 211 | /** 212 | * 获取:商家图片 213 | */ 214 | public String getShangjiatupian() { 215 | return shangjiatupian; 216 | } 217 | /** 218 | * 设置:经营范围 219 | */ 220 | public void setJingyingfanwei(String jingyingfanwei) { 221 | this.jingyingfanwei = jingyingfanwei; 222 | } 223 | /** 224 | * 获取:经营范围 225 | */ 226 | public String getJingyingfanwei() { 227 | return jingyingfanwei; 228 | } 229 | /** 230 | * 设置:商家介绍 231 | */ 232 | public void setShangjiajieshao(String shangjiajieshao) { 233 | this.shangjiajieshao = shangjiajieshao; 234 | } 235 | /** 236 | * 获取:商家介绍 237 | */ 238 | public String getShangjiajieshao() { 239 | return shangjiajieshao; 240 | } 241 | /** 242 | * 设置:余额 243 | */ 244 | public void setMoney(Float money) { 245 | this.money = money; 246 | } 247 | /** 248 | * 获取:余额 249 | */ 250 | public Float getMoney() { 251 | return money; 252 | } 253 | 254 | } 255 | -------------------------------------------------------------------------------- /src/main/java/com/controller/UserController.java: -------------------------------------------------------------------------------- 1 | 2 | package com.controller; 3 | 4 | 5 | import java.util.Arrays; 6 | import java.util.Calendar; 7 | import java.util.Date; 8 | import java.util.Map; 9 | 10 | import javax.servlet.http.HttpServletRequest; 11 | 12 | import org.springframework.beans.factory.annotation.Autowired; 13 | import org.springframework.stereotype.Controller; 14 | import org.springframework.web.bind.annotation.GetMapping; 15 | import org.springframework.web.bind.annotation.PathVariable; 16 | import org.springframework.web.bind.annotation.PostMapping; 17 | import org.springframework.web.bind.annotation.RequestBody; 18 | import org.springframework.web.bind.annotation.RequestMapping; 19 | import org.springframework.web.bind.annotation.RequestParam; 20 | import org.springframework.web.bind.annotation.ResponseBody; 21 | import org.springframework.web.bind.annotation.RestController; 22 | 23 | import com.annotation.IgnoreAuth; 24 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 25 | import com.entity.TokenEntity; 26 | import com.entity.UserEntity; 27 | import com.service.TokenService; 28 | import com.service.UserService; 29 | import com.utils.CommonUtil; 30 | import com.utils.MD5Util; 31 | import com.utils.MPUtil; 32 | import com.utils.PageUtils; 33 | import com.utils.R; 34 | import com.utils.ValidatorUtils; 35 | 36 | /** 37 | * 登录相关 38 | */ 39 | @RequestMapping("users") 40 | @RestController 41 | public class UserController{ 42 | 43 | @Autowired 44 | private UserService userService; 45 | 46 | @Autowired 47 | private TokenService tokenService; 48 | 49 | /** 50 | * 登录 51 | */ 52 | @IgnoreAuth 53 | @PostMapping(value = "/login") 54 | public R login(String username, String password, String captcha, HttpServletRequest request) { 55 | UserEntity user = userService.selectOne(new EntityWrapper().eq("username", username)); 56 | if(user==null || !user.getPassword().equals(password)) { 57 | return R.error("账号或密码不正确"); 58 | } 59 | String token = tokenService.generateToken(user.getId(),username, "users", user.getRole()); 60 | return R.ok().put("token", token); 61 | } 62 | 63 | /** 64 | * 注册 65 | */ 66 | @IgnoreAuth 67 | @PostMapping(value = "/register") 68 | public R register(@RequestBody UserEntity user){ 69 | // ValidatorUtils.validateEntity(user); 70 | if(userService.selectOne(new EntityWrapper().eq("username", user.getUsername())) !=null) { 71 | return R.error("用户已存在"); 72 | } 73 | userService.insert(user); 74 | return R.ok(); 75 | } 76 | 77 | /** 78 | * 退出 79 | */ 80 | @GetMapping(value = "logout") 81 | public R logout(HttpServletRequest request) { 82 | request.getSession().invalidate(); 83 | return R.ok("退出成功"); 84 | } 85 | 86 | /** 87 | * 密码重置 88 | */ 89 | @IgnoreAuth 90 | @RequestMapping(value = "/resetPass") 91 | public R resetPass(String username, HttpServletRequest request){ 92 | UserEntity user = userService.selectOne(new EntityWrapper().eq("username", username)); 93 | if(user==null) { 94 | return R.error("账号不存在"); 95 | } 96 | user.setPassword("123456"); 97 | userService.update(user,null); 98 | return R.ok("密码已重置为:123456"); 99 | } 100 | 101 | /** 102 | * 列表 103 | */ 104 | @RequestMapping("/page") 105 | public R page(@RequestParam Map params,UserEntity user){ 106 | EntityWrapper ew = new EntityWrapper(); 107 | PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params)); 108 | return R.ok().put("data", page); 109 | } 110 | 111 | /** 112 | * 列表 113 | */ 114 | @RequestMapping("/list") 115 | public R list( UserEntity user){ 116 | EntityWrapper ew = new EntityWrapper(); 117 | ew.allEq(MPUtil.allEQMapPre( user, "user")); 118 | return R.ok().put("data", userService.selectListView(ew)); 119 | } 120 | 121 | /** 122 | * 信息 123 | */ 124 | @RequestMapping("/info/{id}") 125 | public R info(@PathVariable("id") String id){ 126 | UserEntity user = userService.selectById(id); 127 | return R.ok().put("data", user); 128 | } 129 | 130 | /** 131 | * 获取用户的session用户信息 132 | */ 133 | @RequestMapping("/session") 134 | public R getCurrUser(HttpServletRequest request){ 135 | Long id = (Long)request.getSession().getAttribute("userId"); 136 | UserEntity user = userService.selectById(id); 137 | return R.ok().put("data", user); 138 | } 139 | 140 | /** 141 | * 保存 142 | */ 143 | @PostMapping("/save") 144 | public R save(@RequestBody UserEntity user){ 145 | // ValidatorUtils.validateEntity(user); 146 | if(userService.selectOne(new EntityWrapper().eq("username", user.getUsername())) !=null) { 147 | return R.error("用户已存在"); 148 | } 149 | userService.insert(user); 150 | return R.ok(); 151 | } 152 | 153 | /** 154 | * 修改 155 | */ 156 | @RequestMapping("/update") 157 | public R update(@RequestBody UserEntity user){ 158 | // ValidatorUtils.validateEntity(user); 159 | UserEntity u = userService.selectOne(new EntityWrapper().eq("username", user.getUsername())); 160 | if(u!=null && u.getId()!=user.getId() && u.getUsername().equals(user.getUsername())) { 161 | return R.error("用户名已存在。"); 162 | } 163 | userService.updateById(user);//全部更新 164 | return R.ok(); 165 | } 166 | 167 | /** 168 | * 删除 169 | */ 170 | @RequestMapping("/delete") 171 | public R delete(@RequestBody Long[] ids){ 172 | userService.deleteBatchIds(Arrays.asList(ids)); 173 | return R.ok(); 174 | } 175 | } 176 | -------------------------------------------------------------------------------- /src/main/resources/spring/spring-mybatis.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 76 | 77 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | -------------------------------------------------------------------------------- /src/main/webapp/front/pages/news/detail.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 系统公告 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | NEWS / INFORMATION系统公告 88 | 89 | 90 | 91 | {{detail.title}} 92 | 93 | 时间:{{detail.addtime}} 94 | 95 | 96 | 97 | 98 | 106 | 107 | 108 | 本篇文章:{{detail.title}} 109 | 110 | 111 | 返回列表 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 196 | 197 | 198 | -------------------------------------------------------------------------------- /src/main/java/com/controller/DiscussshangjiaController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.ArrayList; 5 | import java.util.Arrays; 6 | import java.util.Calendar; 7 | import java.util.Map; 8 | import java.util.HashMap; 9 | import java.util.Iterator; 10 | import java.util.Date; 11 | import java.util.List; 12 | import javax.servlet.http.HttpServletRequest; 13 | 14 | import com.utils.ValidatorUtils; 15 | import org.apache.commons.lang3.StringUtils; 16 | import org.springframework.beans.factory.annotation.Autowired; 17 | import org.springframework.format.annotation.DateTimeFormat; 18 | import org.springframework.web.bind.annotation.PathVariable; 19 | import org.springframework.web.bind.annotation.RequestBody; 20 | import org.springframework.web.bind.annotation.RequestMapping; 21 | import org.springframework.web.bind.annotation.RequestParam; 22 | import org.springframework.web.bind.annotation.RestController; 23 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 24 | import com.baomidou.mybatisplus.mapper.Wrapper; 25 | import com.annotation.IgnoreAuth; 26 | 27 | import com.entity.DiscussshangjiaEntity; 28 | import com.entity.view.DiscussshangjiaView; 29 | 30 | import com.service.DiscussshangjiaService; 31 | import com.service.TokenService; 32 | import com.utils.PageUtils; 33 | import com.utils.R; 34 | import com.utils.MD5Util; 35 | import com.utils.MPUtil; 36 | import com.utils.CommonUtil; 37 | 38 | 39 | /** 40 | * 商家评论表 41 | * 后端接口 42 | * @author 43 | * @email 44 | * @date 2021-03-20 11:33:21 45 | */ 46 | @RestController 47 | @RequestMapping("/discussshangjia") 48 | public class DiscussshangjiaController { 49 | @Autowired 50 | private DiscussshangjiaService discussshangjiaService; 51 | 52 | 53 | 54 | /** 55 | * 后端列表 56 | */ 57 | @RequestMapping("/page") 58 | public R page(@RequestParam Map params,DiscussshangjiaEntity discussshangjia, 59 | HttpServletRequest request){ 60 | 61 | EntityWrapper ew = new EntityWrapper(); 62 | PageUtils page = discussshangjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussshangjia), params), params)); 63 | return R.ok().put("data", page); 64 | } 65 | 66 | /** 67 | * 前端列表 68 | */ 69 | @IgnoreAuth 70 | @RequestMapping("/list") 71 | public R list(@RequestParam Map params,DiscussshangjiaEntity discussshangjia, HttpServletRequest request){ 72 | EntityWrapper ew = new EntityWrapper(); 73 | PageUtils page = discussshangjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, discussshangjia), params), params)); 74 | return R.ok().put("data", page); 75 | } 76 | 77 | /** 78 | * 列表 79 | */ 80 | @RequestMapping("/lists") 81 | public R list( DiscussshangjiaEntity discussshangjia){ 82 | EntityWrapper ew = new EntityWrapper(); 83 | ew.allEq(MPUtil.allEQMapPre( discussshangjia, "discussshangjia")); 84 | return R.ok().put("data", discussshangjiaService.selectListView(ew)); 85 | } 86 | 87 | /** 88 | * 查询 89 | */ 90 | @RequestMapping("/query") 91 | public R query(DiscussshangjiaEntity discussshangjia){ 92 | EntityWrapper< DiscussshangjiaEntity> ew = new EntityWrapper< DiscussshangjiaEntity>(); 93 | ew.allEq(MPUtil.allEQMapPre( discussshangjia, "discussshangjia")); 94 | DiscussshangjiaView discussshangjiaView = discussshangjiaService.selectView(ew); 95 | return R.ok("查询商家评论表成功").put("data", discussshangjiaView); 96 | } 97 | 98 | /** 99 | * 后端详情 100 | */ 101 | @RequestMapping("/info/{id}") 102 | public R info(@PathVariable("id") Long id){ 103 | DiscussshangjiaEntity discussshangjia = discussshangjiaService.selectById(id); 104 | return R.ok().put("data", discussshangjia); 105 | } 106 | 107 | /** 108 | * 前端详情 109 | */ 110 | @RequestMapping("/detail/{id}") 111 | public R detail(@PathVariable("id") Long id){ 112 | DiscussshangjiaEntity discussshangjia = discussshangjiaService.selectById(id); 113 | return R.ok().put("data", discussshangjia); 114 | } 115 | 116 | 117 | 118 | 119 | /** 120 | * 后端保存 121 | */ 122 | @RequestMapping("/save") 123 | public R save(@RequestBody DiscussshangjiaEntity discussshangjia, HttpServletRequest request){ 124 | discussshangjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); 125 | //ValidatorUtils.validateEntity(discussshangjia); 126 | 127 | discussshangjiaService.insert(discussshangjia); 128 | return R.ok(); 129 | } 130 | 131 | /** 132 | * 前端保存 133 | */ 134 | @RequestMapping("/add") 135 | public R add(@RequestBody DiscussshangjiaEntity discussshangjia, HttpServletRequest request){ 136 | discussshangjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); 137 | //ValidatorUtils.validateEntity(discussshangjia); 138 | 139 | discussshangjiaService.insert(discussshangjia); 140 | return R.ok(); 141 | } 142 | 143 | /** 144 | * 修改 145 | */ 146 | @RequestMapping("/update") 147 | public R update(@RequestBody DiscussshangjiaEntity discussshangjia, HttpServletRequest request){ 148 | //ValidatorUtils.validateEntity(discussshangjia); 149 | discussshangjiaService.updateById(discussshangjia);//全部更新 150 | return R.ok(); 151 | } 152 | 153 | 154 | /** 155 | * 删除 156 | */ 157 | @RequestMapping("/delete") 158 | public R delete(@RequestBody Long[] ids){ 159 | discussshangjiaService.deleteBatchIds(Arrays.asList(ids)); 160 | return R.ok(); 161 | } 162 | 163 | /** 164 | * 提醒接口 165 | */ 166 | @RequestMapping("/remind/{columnName}/{type}") 167 | public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 168 | @PathVariable("type") String type,@RequestParam Map map) { 169 | map.put("column", columnName); 170 | map.put("type", type); 171 | 172 | if(type.equals("2")) { 173 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 174 | Calendar c = Calendar.getInstance(); 175 | Date remindStartDate = null; 176 | Date remindEndDate = null; 177 | if(map.get("remindstart")!=null) { 178 | Integer remindStart = Integer.parseInt(map.get("remindstart").toString()); 179 | c.setTime(new Date()); 180 | c.add(Calendar.DAY_OF_MONTH,remindStart); 181 | remindStartDate = c.getTime(); 182 | map.put("remindstart", sdf.format(remindStartDate)); 183 | } 184 | if(map.get("remindend")!=null) { 185 | Integer remindEnd = Integer.parseInt(map.get("remindend").toString()); 186 | c.setTime(new Date()); 187 | c.add(Calendar.DAY_OF_MONTH,remindEnd); 188 | remindEndDate = c.getTime(); 189 | map.put("remindend", sdf.format(remindEndDate)); 190 | } 191 | } 192 | 193 | Wrapper wrapper = new EntityWrapper(); 194 | if(map.get("remindstart")!=null) { 195 | wrapper.ge(columnName, map.get("remindstart")); 196 | } 197 | if(map.get("remindend")!=null) { 198 | wrapper.le(columnName, map.get("remindend")); 199 | } 200 | 201 | 202 | int count = discussshangjiaService.selectCount(wrapper); 203 | return R.ok().put("count", count); 204 | } 205 | 206 | 207 | 208 | } 209 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | com.xxx 5 | xxx 6 | war 7 | 1.0-SNAPSHOT 8 | 9 | 10 | UTF-8 11 | 5.0.0.RELEASE 12 | 4.12 13 | 1.1.0 14 | 1.2.8 15 | 2.3 16 | 8.0.27 17 | 1.2.17 18 | 1.7.19 19 | 1.8.8 20 | 1.3.1 21 | 1.2 22 | 23 | 24 | 25 | 26 | 27 | junit 28 | junit 29 | ${junit.version} 30 | test 31 | 32 | 33 | 34 | 35 | com.alibaba 36 | druid 37 | ${druid.version} 38 | 39 | 40 | 41 | 42 | org.springframework 43 | spring-core 44 | ${spring.version} 45 | jar 46 | compile 47 | 48 | 49 | org.springframework 50 | spring-context 51 | ${spring.version} 52 | jar 53 | compile 54 | 55 | 56 | org.springframework 57 | spring-context-support 58 | ${spring.version} 59 | jar 60 | compile 61 | 62 | 63 | org.springframework 64 | spring-tx 65 | ${spring.version} 66 | jar 67 | compile 68 | 69 | 70 | org.springframework 71 | spring-aop 72 | ${spring.version} 73 | jar 74 | compile 75 | 76 | 77 | org.springframework 78 | spring-beans 79 | ${spring.version} 80 | jar 81 | compile 82 | 83 | 84 | org.springframework 85 | spring-jdbc 86 | ${spring.version} 87 | jar 88 | compile 89 | 90 | 91 | 92 | 93 | org.springframework 94 | spring-web 95 | ${spring.version} 96 | jar 97 | compile 98 | 99 | 100 | org.springframework 101 | spring-webmvc 102 | ${spring.version} 103 | jar 104 | compile 105 | 106 | 107 | 108 | 109 | org.aspectj 110 | aspectjweaver 111 | ${aspectjweaver.version} 112 | 113 | 114 | 115 | 116 | commons-fileupload 117 | commons-fileupload 118 | ${fileupload.version} 119 | 120 | 121 | 122 | javax.servlet 123 | jstl 124 | ${jstl.version} 125 | 126 | 127 | 128 | 129 | com.baomidou 130 | mybatis-plus 131 | ${mybaitsplus.version} 132 | 133 | 134 | 135 | 136 | mysql 137 | mysql-connector-java 138 | ${mysql.version} 139 | 140 | 141 | 142 | 143 | 144 | log4j 145 | log4j 146 | ${log4j.version} 147 | 148 | 149 | org.slf4j 150 | slf4j-api 151 | ${slf4j.version} 152 | 153 | 154 | org.slf4j 155 | slf4j-log4j12 156 | ${slf4j.version} 157 | 158 | 159 | 160 | org.springframework 161 | spring-test 162 | ${spring.version} 163 | 164 | 165 | 166 | org.apache.commons 167 | commons-lang3 168 | 3.0 169 | 170 | 171 | 172 | javax.validation 173 | validation-api 174 | 2.0.1.Final 175 | 176 | 177 | 178 | commons-io 179 | commons-io 180 | 2.5 181 | 182 | 183 | 184 | cn.hutool 185 | hutool-all 186 | 4.0.12 187 | 188 | 189 | 190 | org.apache.tomcat.embed 191 | tomcat-embed-core 192 | 9.0.29 193 | 194 | 195 | 196 | 197 | commons-beanutils 198 | commons-beanutils 199 | 1.8.0 200 | 201 | 202 | 203 | 204 | com.baidu.aip 205 | java-sdk 206 | 4.4.1 207 | 208 | 209 | 210 | 211 | com.fasterxml.jackson.core 212 | jackson-annotations 213 | 2.10.1 214 | 215 | 216 | 217 | com.fasterxml.jackson.core 218 | jackson-databind 219 | 2.10.1 220 | 221 | 222 | 223 | org.codehaus.jackson 224 | jackson-mapper-asl 225 | 1.9.13 226 | 227 | 228 | com.alibaba.fastjson2 229 | fastjson2 230 | 2.0.18 231 | 232 | 233 | com.alibaba 234 | fastjson 235 | 2.0.12 236 | 237 | 238 | 239 | 240 | 241 | 242 | bishe 243 | 244 | 245 | org.apache.maven.plugins 246 | maven-compiler-plugin 247 | 248 | 1.8 249 | 1.8 250 | 251 | 252 | 253 | 254 | 255 | -------------------------------------------------------------------------------- /src/main/java/com/controller/ChatController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.ArrayList; 5 | import java.util.Arrays; 6 | import java.util.Calendar; 7 | import java.util.Map; 8 | import java.util.HashMap; 9 | import java.util.Iterator; 10 | import java.util.Date; 11 | import java.util.List; 12 | import javax.servlet.http.HttpServletRequest; 13 | 14 | import com.utils.ValidatorUtils; 15 | import org.apache.commons.lang3.StringUtils; 16 | import org.springframework.beans.factory.annotation.Autowired; 17 | import org.springframework.format.annotation.DateTimeFormat; 18 | import org.springframework.web.bind.annotation.PathVariable; 19 | import org.springframework.web.bind.annotation.RequestBody; 20 | import org.springframework.web.bind.annotation.RequestMapping; 21 | import org.springframework.web.bind.annotation.RequestParam; 22 | import org.springframework.web.bind.annotation.RestController; 23 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 24 | import com.baomidou.mybatisplus.mapper.Wrapper; 25 | import com.annotation.IgnoreAuth; 26 | 27 | import com.entity.ChatEntity; 28 | import com.entity.view.ChatView; 29 | 30 | import com.service.ChatService; 31 | import com.service.TokenService; 32 | import com.utils.PageUtils; 33 | import com.utils.R; 34 | import com.utils.MD5Util; 35 | import com.utils.MPUtil; 36 | import com.utils.CommonUtil; 37 | 38 | 39 | /** 40 | * 在线客服 41 | * 后端接口 42 | * @author 43 | * @email 44 | * @date 2021-03-20 11:33:21 45 | */ 46 | @RestController 47 | @RequestMapping("/chat") 48 | public class ChatController { 49 | @Autowired 50 | private ChatService chatService; 51 | 52 | 53 | 54 | /** 55 | * 后端列表 56 | */ 57 | @RequestMapping("/page") 58 | public R page(@RequestParam Map params,ChatEntity chat, 59 | HttpServletRequest request){ 60 | if(!request.getSession().getAttribute("role").toString().equals("管理员")) { 61 | chat.setUserid((Long)request.getSession().getAttribute("userId")); 62 | } 63 | 64 | EntityWrapper ew = new EntityWrapper(); 65 | PageUtils page = chatService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chat), params), params)); 66 | return R.ok().put("data", page); 67 | } 68 | 69 | /** 70 | * 前端列表 71 | */ 72 | @RequestMapping("/list") 73 | public R list(@RequestParam Map params,ChatEntity chat, HttpServletRequest request){ 74 | if(!request.getSession().getAttribute("role").toString().equals("管理员")) { 75 | chat.setUserid((Long)request.getSession().getAttribute("userId")); 76 | } 77 | 78 | EntityWrapper ew = new EntityWrapper(); 79 | PageUtils page = chatService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, chat), params), params)); 80 | return R.ok().put("data", page); 81 | } 82 | 83 | /** 84 | * 列表 85 | */ 86 | @RequestMapping("/lists") 87 | public R list( ChatEntity chat){ 88 | EntityWrapper ew = new EntityWrapper(); 89 | ew.allEq(MPUtil.allEQMapPre( chat, "chat")); 90 | return R.ok().put("data", chatService.selectListView(ew)); 91 | } 92 | 93 | /** 94 | * 查询 95 | */ 96 | @RequestMapping("/query") 97 | public R query(ChatEntity chat){ 98 | EntityWrapper< ChatEntity> ew = new EntityWrapper< ChatEntity>(); 99 | ew.allEq(MPUtil.allEQMapPre( chat, "chat")); 100 | ChatView chatView = chatService.selectView(ew); 101 | return R.ok("查询在线客服成功").put("data", chatView); 102 | } 103 | 104 | /** 105 | * 后端详情 106 | */ 107 | @RequestMapping("/info/{id}") 108 | public R info(@PathVariable("id") Long id){ 109 | ChatEntity chat = chatService.selectById(id); 110 | return R.ok().put("data", chat); 111 | } 112 | 113 | /** 114 | * 前端详情 115 | */ 116 | @RequestMapping("/detail/{id}") 117 | public R detail(@PathVariable("id") Long id){ 118 | ChatEntity chat = chatService.selectById(id); 119 | return R.ok().put("data", chat); 120 | } 121 | 122 | 123 | 124 | 125 | /** 126 | * 后端保存 127 | */ 128 | @RequestMapping("/save") 129 | public R save(@RequestBody ChatEntity chat, HttpServletRequest request){ 130 | chat.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); 131 | //ValidatorUtils.validateEntity(chat); 132 | if(StringUtils.isNotBlank(chat.getAsk())) { 133 | chatService.updateForSet("isreply=0", new EntityWrapper().eq("userid", request.getSession().getAttribute("userId"))); 134 | chat.setUserid((Long)request.getSession().getAttribute("userId")); 135 | chat.setIsreply(1); 136 | } 137 | if(StringUtils.isNotBlank(chat.getReply())) { 138 | chatService.updateForSet("isreply=0", new EntityWrapper().eq("userid", chat.getUserid())); 139 | chat.setAdminid((Long)request.getSession().getAttribute("userId")); 140 | } 141 | 142 | chatService.insert(chat); 143 | return R.ok(); 144 | } 145 | 146 | /** 147 | * 前端保存 148 | */ 149 | @RequestMapping("/add") 150 | public R add(@RequestBody ChatEntity chat, HttpServletRequest request){ 151 | chat.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); 152 | //ValidatorUtils.validateEntity(chat); 153 | chat.setUserid((Long)request.getSession().getAttribute("userId")); 154 | if(StringUtils.isNotBlank(chat.getAsk())) { 155 | chatService.updateForSet("isreply=0", new EntityWrapper().eq("userid", request.getSession().getAttribute("userId"))); 156 | chat.setUserid((Long)request.getSession().getAttribute("userId")); 157 | chat.setIsreply(1); 158 | } 159 | if(StringUtils.isNotBlank(chat.getReply())) { 160 | chatService.updateForSet("isreply=0", new EntityWrapper().eq("userid", chat.getUserid())); 161 | chat.setAdminid((Long)request.getSession().getAttribute("userId")); 162 | } 163 | 164 | chatService.insert(chat); 165 | return R.ok(); 166 | } 167 | 168 | /** 169 | * 修改 170 | */ 171 | @RequestMapping("/update") 172 | public R update(@RequestBody ChatEntity chat, HttpServletRequest request){ 173 | //ValidatorUtils.validateEntity(chat); 174 | chatService.updateById(chat);//全部更新 175 | return R.ok(); 176 | } 177 | 178 | 179 | /** 180 | * 删除 181 | */ 182 | @RequestMapping("/delete") 183 | public R delete(@RequestBody Long[] ids){ 184 | chatService.deleteBatchIds(Arrays.asList(ids)); 185 | return R.ok(); 186 | } 187 | 188 | /** 189 | * 提醒接口 190 | */ 191 | @RequestMapping("/remind/{columnName}/{type}") 192 | public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 193 | @PathVariable("type") String type,@RequestParam Map map) { 194 | map.put("column", columnName); 195 | map.put("type", type); 196 | 197 | if(type.equals("2")) { 198 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 199 | Calendar c = Calendar.getInstance(); 200 | Date remindStartDate = null; 201 | Date remindEndDate = null; 202 | if(map.get("remindstart")!=null) { 203 | Integer remindStart = Integer.parseInt(map.get("remindstart").toString()); 204 | c.setTime(new Date()); 205 | c.add(Calendar.DAY_OF_MONTH,remindStart); 206 | remindStartDate = c.getTime(); 207 | map.put("remindstart", sdf.format(remindStartDate)); 208 | } 209 | if(map.get("remindend")!=null) { 210 | Integer remindEnd = Integer.parseInt(map.get("remindend").toString()); 211 | c.setTime(new Date()); 212 | c.add(Calendar.DAY_OF_MONTH,remindEnd); 213 | remindEndDate = c.getTime(); 214 | map.put("remindend", sdf.format(remindEndDate)); 215 | } 216 | } 217 | 218 | Wrapper wrapper = new EntityWrapper(); 219 | if(map.get("remindstart")!=null) { 220 | wrapper.ge(columnName, map.get("remindstart")); 221 | } 222 | if(map.get("remindend")!=null) { 223 | wrapper.le(columnName, map.get("remindend")); 224 | } 225 | 226 | 227 | int count = chatService.selectCount(wrapper); 228 | return R.ok().put("count", count); 229 | } 230 | 231 | 232 | 233 | } 234 | -------------------------------------------------------------------------------- /src/main/webapp/front/xznstatic/css/common.css: -------------------------------------------------------------------------------- 1 | /* 模板秀(mobanxiu.cn)做最好的织梦整站模板下载网站 */ 2 | html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img { 3 | margin: 0 auto; 4 | padding: 0; 5 | } 6 | h1, h2, h3, h4, h5, h6 { 7 | font-size: 100%; 8 | font-weight: bold; 9 | } 10 | fieldset, img { 11 | vertical-align: middle; 12 | border: none; 13 | } 14 | address, caption, cite, code, dfn, th, var { 15 | font-style: normal; 16 | font-weight: normal; 17 | } 18 | ul, ol { 19 | list-style: none; 20 | } 21 | li { 22 | list-style-type: none; 23 | } 24 | input { 25 | padding-top: 0; 26 | padding-bottom: 0; 27 | font-family: "????????????", Arial, sans-serif; 28 | } 29 | select, input { 30 | vertical-align: middle; 31 | } 32 | select, input, textarea { 33 | font-size: 12px; 34 | margin: 0; 35 | } 36 | input[type="text"], input[type="submit"], textarea { 37 | outline-style: none; 38 | } 39 | textarea { 40 | resize: none; 41 | font-family: "????????????", Arial, sans-serif; 42 | } 43 | body { 44 | color: #333; 45 | font: 12px "????????????", Arial, sans-serif; 46 | background: #ffffff; 47 | overflow-x: hidden 48 | } 49 | a { 50 | color: #333; 51 | text-decoration: none; 52 | } 53 | a:link { 54 | text-decoration: none; /* ????????????????????????????????????*/ 55 | } 56 | a:visited { 57 | text-decoration: none; /*???????????????????????????*/ 58 | } 59 | a:hover { 60 | text-decoration: none;/*??????????????????*/ 61 | } 62 | a:active { 63 | text-decoration: none;/* ?????????????????????*/ 64 | } 65 | i, em { 66 | font-style: normal; 67 | } 68 | .clear { 69 | clear: both; 70 | } 71 | .fl { 72 | float: left; 73 | } 74 | .fr { 75 | float: right; 76 | } 77 | .auto { 78 | margin-left: auto; 79 | margin-right: auto; 80 | } 81 | #app { 82 | position: relative; 83 | z-index: 1; 84 | } 85 | /*transition*/ 86 | .tran200 { 87 | -webkit-transition: all 0.2s ease; 88 | -moz-transition: all 0.2s ease; 89 | transition: all 0.2s ease; 90 | } 91 | .tran400 { 92 | -webkit-transition: all 0.4s ease; 93 | -moz-transition: all 0.4s ease; 94 | transition: all 0.4s ease; 95 | } 96 | /*??????????????????*/ 97 | .con_1000 { 98 | margin: 0 auto; 99 | position: relative; 100 | width: 1002px; 101 | } 102 | .con_1000:after { 103 | content: ""; 104 | display: block; 105 | height: 0; 106 | clear: both; 107 | } 108 | .detail .tit { 109 | height: 40px; 110 | line-height: 40px; 111 | text-align: center; 112 | font-weight: bold; 113 | border-bottom: 1px solid #ccc; 114 | overflow: hidden; 115 | } 116 | .detail .related { 117 | padding: 6px 0; 118 | text-align: center; 119 | } 120 | .detail .related span { 121 | padding: 0 10px; 122 | } 123 | .detail .text { 124 | padding: 10px; 125 | line-height: 23px; 126 | } 127 | .detail .text .photo { 128 | text-align: center; 129 | } 130 | .detail .other { 131 | padding: 8px 0; 132 | width: 100%; 133 | } 134 | .detail .other li { 135 | line-height: 24px; 136 | } 137 | .detail .print { 138 | padding: 8px 0; 139 | text-align: right; 140 | clear: both; 141 | } 142 | .detail .print a { 143 | margin-right: 20px; 144 | } 145 | .detail .text .pro_photo { 146 | text-align: center; 147 | } 148 | .ny_right .content .photo img { 149 | max-width: 100%; 150 | display: block; 151 | margin: 0 auto 152 | } 153 | #header { 154 | height: 90px; 155 | background: #d42e3b; 156 | border-bottom: 19px solid #06897d 157 | } 158 | #header .top { 159 | width: 1002px; 160 | margin: 0 auto; 161 | height: 90px; 162 | position: relative 163 | } 164 | #header .top .logo { 165 | position: absolute; 166 | left: 0; 167 | top: 74px; 168 | } 169 | #header .top .rexian { 170 | position: absolute; 171 | top: 45px; 172 | right: 190px; 173 | line-height: 26px; 174 | font-size: 24px; 175 | font-family: Arial; 176 | color: #fff; 177 | background: url(img/index_03.gif) left center no-repeat; 178 | padding-left: 30px; 179 | } 180 | #header .top .search { 181 | width: 155px; 182 | height: 24px; 183 | position: absolute; 184 | top: 31px; 185 | right: 0; 186 | background: #fff; 187 | border-radius: 8px; 188 | } 189 | .search .input { 190 | float: left; 191 | width: 125px; 192 | height: 24px; 193 | line-height: 24px; 194 | text-align: right; 195 | background: none; 196 | border: none; 197 | color: #d42e3b 198 | } 199 | .search .button { 200 | float: left; 201 | background: url(img/index_07.gif) no-repeat; 202 | width: 9px; 203 | height: 9px; 204 | border: none; 205 | margin: 9px 0 0 12px; 206 | } 207 | #header .nav { 208 | height: 26px; 209 | position: absolute; 210 | top: 32px; 211 | right: 0; 212 | } 213 | .nav ul li { 214 | float: left; 215 | height: 26px; 216 | line-height: 26px; 217 | margin-left: 54px; 218 | } 219 | .nav li a { 220 | color: #fff; 221 | font-size: 14px; 222 | } 223 | .nav li a:hover, .nav li.current a { 224 | color: #fff500 225 | } 226 | #footer { 227 | width: 100%; 228 | background: url(img/index_42.gif) center center no-repeat; 229 | height: 300px; 230 | overflow: hidden 231 | } 232 | .f_top { 233 | width: 1002px; 234 | margin: 0 auto; 235 | padding-top: 12px; 236 | height: 208px; 237 | overflow: hidden 238 | } 239 | .f_top .f_left { 240 | float: left; 241 | width: 217px; 242 | border-right: 1px dashed #ae1a25; 243 | height: 143px; 244 | overflow: hidden; 245 | background: url(img/index_49.jpg) left 43px no-repeat; 246 | padding: 34px 0 0 133px; 247 | color: #fff; 248 | line-height: 22px; 249 | color: #fff 250 | } 251 | .f_top .f_left span { 252 | color: #fff600; 253 | font-size: 26px; 254 | height: 38px; 255 | line-height: 38px; 256 | display: block 257 | } 258 | .f_top .f_right { 259 | float: right; 260 | width: 600px; 261 | color: #fff; 262 | padding-top: 24px; 263 | } 264 | .f_top .f_right dl { 265 | float: left; 266 | width: 162px; 267 | margin-left: 30px; 268 | } 269 | .f_top .f_right dl dt { 270 | height: 30px; 271 | line-height: 30px; 272 | font-size: 16px; 273 | margin-bottom: 10px; 274 | } 275 | .f_top .f_right dl dd { 276 | line-height: 18px; 277 | } 278 | .f_top .f_right dl dd span { 279 | color: #fff600; 280 | font-size: 18px; 281 | display: block; 282 | margin-top: 12px; 283 | } 284 | .copyright { 285 | text-align: center; 286 | line-height: 26px; 287 | color: #f47982; 288 | } 289 | .copyright a { 290 | color: #f47982 291 | } 292 | /*?????????*/ 293 | .ny_left { 294 | float: left; 295 | width: 196px; 296 | font-size: 16px; 297 | } 298 | .ny_left ul { 299 | margin-bottom: 57px; 300 | margin-top: 15px; 301 | } 302 | .ny_left ul li { 303 | margin: -2px; 304 | width: 191px; 305 | height: 48px; 306 | border: solid 2px #d42e3b; 307 | } 308 | .ny_left ul li p { 309 | margin-top: 12px; 310 | margin-left: 33px; 311 | float: left; 312 | } 313 | .ny_left li:hover, .ny_left li.hover { 314 | background: url(../img/service_btn.png) #d42e3b 140px center no-repeat; 315 | } 316 | .ny_left li:hover a, .ny_left li.hover a { 317 | color: #fff 318 | } 319 | .ny_left ul .hover { 320 | margin: -2px; 321 | width: 191px; 322 | height: 48px; 323 | border: solid 2px #d42e3b; 324 | background: url(../img/service_btn.png) #d42e3b 140px center no-repeat; 325 | } 326 | .ny_left ul .hover p { 327 | color: #fff; 328 | } 329 | .ny_left .service_tel { 330 | color: #d42e3b; 331 | margin-top: 36px; 332 | } 333 | .ny_left .service_tel p { 334 | background: url(img/service_tel.png) left center no-repeat; 335 | padding-left: 29px; 336 | font-size: 21px; 337 | margin-left: 5px; 338 | font-family: Arial; 339 | margin-top: 5px; 340 | } 341 | .ny_left .service_tel span { 342 | display: block; 343 | font-family: "Microsoft YaHei"; 344 | color: #d42e3b; 345 | font-size: 13px; 346 | } 347 | /*????????????*/ 348 | .ny_right { 349 | float: right; 350 | width: 754px; 351 | height: auto !important; 352 | height: 500px; 353 | min-height: 500px; 354 | margin-bottom: 120px; 355 | } 356 | .ny_right .title { 357 | height: 46px; 358 | line-height: 46px; 359 | border-bottom: 1px solid #dcdcdc; 360 | margin-bottom: 40px 361 | } 362 | .ny_right .title p { 363 | float: right; 364 | color: #6c6c6c 365 | } 366 | .ny_right .title h3 { 367 | height: 45px; 368 | border-bottom: 2px solid #d42e3b; 369 | display: inline-block; 370 | float: left; 371 | padding-right: 13px; 372 | font-size: 18px; 373 | font-weight: normal 374 | } 375 | /*??????*/ 376 | #full .qq_info a, #full .qq_info span { 377 | display: block 378 | } 379 | #full .qq_info span { 380 | width: 86px; 381 | background: #fff; 382 | text-align: center; 383 | padding-top: 6px; 384 | line-height: 24px; 385 | border: 1px solid #968f96; 386 | border-top: none 387 | } 388 | .single_con { 389 | margin-top: 20px 390 | } 391 | .news_con { 392 | margin-top: 20px 393 | } 394 | .pro_con { 395 | margin-top: 20px 396 | } 397 | -------------------------------------------------------------------------------- /src/main/webapp/front/pages/storeup/list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 我的收藏 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 58 | 59 | 60 | 61 | 62 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | USER / STOREUP我的收藏 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 名称 91 | 92 | 93 | 94 | 95 | 96 | 97 | 搜索 98 | 99 | 100 | 101 | 102 | 103 | 105 | 106 | {{item.name}} 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 271 | 272 | 273 | -------------------------------------------------------------------------------- /src/main/java/com/controller/CommonController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.io.File; 4 | import java.io.FileNotFoundException; 5 | import java.io.IOException; 6 | import java.text.SimpleDateFormat; 7 | import java.util.ArrayList; 8 | import java.util.Calendar; 9 | import java.util.Date; 10 | import java.util.HashMap; 11 | import java.util.List; 12 | import java.util.Map; 13 | 14 | import javax.servlet.http.HttpServletRequest; 15 | 16 | import org.apache.commons.lang3.StringUtils; 17 | import org.json.JSONObject; 18 | import org.springframework.beans.factory.annotation.Autowired; 19 | import org.springframework.util.ResourceUtils; 20 | import org.springframework.web.bind.annotation.PathVariable; 21 | import org.springframework.web.bind.annotation.RequestBody; 22 | import org.springframework.web.bind.annotation.RequestMapping; 23 | import org.springframework.web.bind.annotation.RequestParam; 24 | import org.springframework.web.bind.annotation.RestController; 25 | 26 | import com.annotation.IgnoreAuth; 27 | import com.baidu.aip.face.AipFace; 28 | import com.baidu.aip.face.MatchRequest; 29 | import com.baidu.aip.util.Base64Util; 30 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 31 | import com.baomidou.mybatisplus.mapper.Wrapper; 32 | import com.entity.ConfigEntity; 33 | import com.service.CommonService; 34 | import com.service.ConfigService; 35 | import com.utils.BaiduUtil; 36 | import com.utils.FileUtil; 37 | import com.utils.R; 38 | 39 | /** 40 | * 通用接口 41 | */ 42 | @RestController 43 | public class CommonController{ 44 | @Autowired 45 | private CommonService commonService; 46 | 47 | @Autowired 48 | private ConfigService configService; 49 | 50 | private static AipFace client = null; 51 | 52 | private static String BAIDU_DITU_AK = null; 53 | 54 | @RequestMapping("/location") 55 | public R location(String lng,String lat) { 56 | if(BAIDU_DITU_AK==null) { 57 | BAIDU_DITU_AK = configService.selectOne(new EntityWrapper().eq("name", "baidu_ditu_ak")).getValue(); 58 | if(BAIDU_DITU_AK==null) { 59 | return R.error("请在配置管理中正确配置baidu_ditu_ak"); 60 | } 61 | } 62 | Map map = BaiduUtil.getCityByLonLat(BAIDU_DITU_AK, lng, lat); 63 | return R.ok().put("data", map); 64 | } 65 | 66 | /** 67 | * 人脸比对 68 | * 69 | * @param face1 人脸1 70 | * @param face2 人脸2 71 | * @return 72 | */ 73 | @RequestMapping("/matchFace") 74 | public R matchFace(String face1, String face2,HttpServletRequest request) { 75 | if(client==null) { 76 | /*String AppID = configService.selectOne(new EntityWrapper().eq("name", "AppID")).getValue();*/ 77 | String APIKey = configService.selectOne(new EntityWrapper().eq("name", "APIKey")).getValue(); 78 | String SecretKey = configService.selectOne(new EntityWrapper().eq("name", "SecretKey")).getValue(); 79 | String token = BaiduUtil.getAuth(APIKey, SecretKey); 80 | if(token==null) { 81 | return R.error("请在配置管理中正确配置APIKey和SecretKey"); 82 | } 83 | client = new AipFace(null, APIKey, SecretKey); 84 | client.setConnectionTimeoutInMillis(2000); 85 | client.setSocketTimeoutInMillis(60000); 86 | } 87 | JSONObject res = null; 88 | try { 89 | File file1 = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+face1); 90 | File file2 = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+face2); 91 | String img1 = Base64Util.encode(FileUtil.FileToByte(file1)); 92 | String img2 = Base64Util.encode(FileUtil.FileToByte(file2)); 93 | MatchRequest req1 = new MatchRequest(img1, "BASE64"); 94 | MatchRequest req2 = new MatchRequest(img2, "BASE64"); 95 | ArrayList requests = new ArrayList(); 96 | requests.add(req1); 97 | requests.add(req2); 98 | res = client.match(requests); 99 | System.out.println(res.get("result")); 100 | } catch (FileNotFoundException e) { 101 | e.printStackTrace(); 102 | return R.error("文件不存在"); 103 | } catch (IOException e) { 104 | e.printStackTrace(); 105 | } 106 | return R.ok().put("data", com.alibaba.fastjson.JSONObject.parse(res.get("result").toString())); 107 | } 108 | 109 | /** 110 | * 获取table表中的column列表(联动接口) 111 | * @param table 112 | * @param column 113 | * @return 114 | */ 115 | @IgnoreAuth 116 | @RequestMapping("/option/{tableName}/{columnName}") 117 | public R getOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName,String level,String parent) { 118 | Map params = new HashMap(); 119 | params.put("table", tableName); 120 | params.put("column", columnName); 121 | if(StringUtils.isNotBlank(level)) { 122 | params.put("level", level); 123 | } 124 | if(StringUtils.isNotBlank(parent)) { 125 | params.put("parent", parent); 126 | } 127 | List data = commonService.getOption(params); 128 | return R.ok().put("data", data); 129 | } 130 | 131 | /** 132 | * 根据table中的column获取单条记录 133 | * @param table 134 | * @param column 135 | * @return 136 | */ 137 | @IgnoreAuth 138 | @RequestMapping("/follow/{tableName}/{columnName}") 139 | public R getFollowByOption(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName, @RequestParam String columnValue) { 140 | Map params = new HashMap(); 141 | params.put("table", tableName); 142 | params.put("column", columnName); 143 | params.put("columnValue", columnValue); 144 | Map result = commonService.getFollowByOption(params); 145 | return R.ok().put("data", result); 146 | } 147 | 148 | /** 149 | * 修改table表的sfsh状态 150 | * @param table 151 | * @param map 152 | * @return 153 | */ 154 | @RequestMapping("/sh/{tableName}") 155 | public R sh(@PathVariable("tableName") String tableName, @RequestBody Map map) { 156 | map.put("table", tableName); 157 | commonService.sh(map); 158 | return R.ok(); 159 | } 160 | 161 | /** 162 | * 获取需要提醒的记录数 163 | * @param tableName 164 | * @param columnName 165 | * @param type 1:数字 2:日期 166 | * @param map 167 | * @return 168 | */ 169 | @IgnoreAuth 170 | @RequestMapping("/remind/{tableName}/{columnName}/{type}") 171 | public R remindCount(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName, 172 | @PathVariable("type") String type,@RequestParam Map map) { 173 | map.put("table", tableName); 174 | map.put("column", columnName); 175 | map.put("type", type); 176 | 177 | if(type.equals("2")) { 178 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 179 | Calendar c = Calendar.getInstance(); 180 | Date remindStartDate = null; 181 | Date remindEndDate = null; 182 | if(map.get("remindstart")!=null) { 183 | Integer remindStart = Integer.parseInt(map.get("remindstart").toString()); 184 | c.setTime(new Date()); 185 | c.add(Calendar.DAY_OF_MONTH,remindStart); 186 | remindStartDate = c.getTime(); 187 | map.put("remindstart", sdf.format(remindStartDate)); 188 | } 189 | if(map.get("remindend")!=null) { 190 | Integer remindEnd = Integer.parseInt(map.get("remindend").toString()); 191 | c.setTime(new Date()); 192 | c.add(Calendar.DAY_OF_MONTH,remindEnd); 193 | remindEndDate = c.getTime(); 194 | map.put("remindend", sdf.format(remindEndDate)); 195 | } 196 | } 197 | 198 | int count = commonService.remindCount(map); 199 | return R.ok().put("count", count); 200 | } 201 | 202 | /** 203 | * 单列求和 204 | */ 205 | @IgnoreAuth 206 | @RequestMapping("/cal/{tableName}/{columnName}") 207 | public R cal(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) { 208 | Map params = new HashMap(); 209 | params.put("table", tableName); 210 | params.put("column", columnName); 211 | Map result = commonService.selectCal(params); 212 | return R.ok().put("data", result); 213 | } 214 | 215 | /** 216 | * 分组统计 217 | */ 218 | @IgnoreAuth 219 | @RequestMapping("/group/{tableName}/{columnName}") 220 | public R group(@PathVariable("tableName") String tableName, @PathVariable("columnName") String columnName) { 221 | Map params = new HashMap(); 222 | params.put("table", tableName); 223 | params.put("column", columnName); 224 | List> result = commonService.selectGroup(params); 225 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 226 | for(Map m : result) { 227 | for(String k : m.keySet()) { 228 | if(m.get(k) instanceof Date) { 229 | m.put(k, sdf.format((Date)m.get(k))); 230 | } 231 | } 232 | } 233 | return R.ok().put("data", result); 234 | } 235 | 236 | /** 237 | * (按值统计) 238 | */ 239 | @IgnoreAuth 240 | @RequestMapping("/value/{tableName}/{xColumnName}/{yColumnName}") 241 | public R value(@PathVariable("tableName") String tableName, @PathVariable("yColumnName") String yColumnName, @PathVariable("xColumnName") String xColumnName) { 242 | Map params = new HashMap(); 243 | params.put("table", tableName); 244 | params.put("xColumn", xColumnName); 245 | params.put("yColumn", yColumnName); 246 | List> result = commonService.selectValue(params); 247 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 248 | for(Map m : result) { 249 | for(String k : m.keySet()) { 250 | if(m.get(k) instanceof Date) { 251 | m.put(k, sdf.format((Date)m.get(k))); 252 | } 253 | } 254 | } 255 | return R.ok().put("data", result); 256 | } 257 | 258 | } 259 | -------------------------------------------------------------------------------- /src/main/java/com/controller/YonghuController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.ArrayList; 5 | import java.util.Arrays; 6 | import java.util.Calendar; 7 | import java.util.Map; 8 | import java.util.HashMap; 9 | import java.util.Iterator; 10 | import java.util.Date; 11 | import java.util.List; 12 | import javax.servlet.http.HttpServletRequest; 13 | 14 | import com.utils.ValidatorUtils; 15 | import org.apache.commons.lang3.StringUtils; 16 | import org.springframework.beans.factory.annotation.Autowired; 17 | import org.springframework.format.annotation.DateTimeFormat; 18 | import org.springframework.web.bind.annotation.PathVariable; 19 | import org.springframework.web.bind.annotation.RequestBody; 20 | import org.springframework.web.bind.annotation.RequestMapping; 21 | import org.springframework.web.bind.annotation.RequestParam; 22 | import org.springframework.web.bind.annotation.RestController; 23 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 24 | import com.baomidou.mybatisplus.mapper.Wrapper; 25 | import com.annotation.IgnoreAuth; 26 | 27 | import com.entity.YonghuEntity; 28 | import com.entity.view.YonghuView; 29 | 30 | import com.service.YonghuService; 31 | import com.service.TokenService; 32 | import com.utils.PageUtils; 33 | import com.utils.R; 34 | import com.utils.MD5Util; 35 | import com.utils.MPUtil; 36 | import com.utils.CommonUtil; 37 | 38 | 39 | /** 40 | * 用户 41 | * 后端接口 42 | * @author 43 | * @email 44 | * @date 2021-03-20 11:33:20 45 | */ 46 | @RestController 47 | @RequestMapping("/yonghu") 48 | public class YonghuController { 49 | @Autowired 50 | private YonghuService yonghuService; 51 | 52 | @Autowired 53 | private TokenService tokenService; 54 | 55 | /** 56 | * 登录 57 | */ 58 | @IgnoreAuth 59 | @RequestMapping(value = "/login") 60 | public R login(String username, String password, String captcha, HttpServletRequest request) { 61 | YonghuEntity user = yonghuService.selectOne(new EntityWrapper().eq("yonghuzhanghao", username)); 62 | if(user==null || !user.getMima().equals(password)) { 63 | return R.error("账号或密码不正确"); 64 | } 65 | String token = tokenService.generateToken(user.getId(), username,"yonghu", "用户" ); 66 | return R.ok().put("token", token); 67 | } 68 | 69 | /** 70 | * 注册 71 | */ 72 | @IgnoreAuth 73 | @RequestMapping("/register") 74 | public R register(@RequestBody YonghuEntity yonghu){ 75 | //ValidatorUtils.validateEntity(yonghu); 76 | YonghuEntity user = yonghuService.selectOne(new EntityWrapper().eq("yonghuzhanghao", yonghu.getYonghuzhanghao())); 77 | if(user!=null) { 78 | return R.error("注册用户已存在"); 79 | } 80 | Long uId = new Date().getTime(); 81 | yonghu.setId(uId); 82 | yonghuService.insert(yonghu); 83 | return R.ok(); 84 | } 85 | 86 | /** 87 | * 退出 88 | */ 89 | @RequestMapping("/logout") 90 | public R logout(HttpServletRequest request) { 91 | request.getSession().invalidate(); 92 | return R.ok("退出成功"); 93 | } 94 | 95 | /** 96 | * 获取用户的session用户信息 97 | */ 98 | @RequestMapping("/session") 99 | public R getCurrUser(HttpServletRequest request){ 100 | Long id = (Long)request.getSession().getAttribute("userId"); 101 | YonghuEntity user = yonghuService.selectById(id); 102 | return R.ok().put("data", user); 103 | } 104 | 105 | /** 106 | * 密码重置 107 | */ 108 | @IgnoreAuth 109 | @RequestMapping(value = "/resetPass") 110 | public R resetPass(String username, HttpServletRequest request){ 111 | YonghuEntity user = yonghuService.selectOne(new EntityWrapper().eq("yonghuzhanghao", username)); 112 | if(user==null) { 113 | return R.error("账号不存在"); 114 | } 115 | user.setMima("123456"); 116 | yonghuService.updateById(user); 117 | return R.ok("密码已重置为:123456"); 118 | } 119 | 120 | 121 | /** 122 | * 后端列表 123 | */ 124 | @RequestMapping("/page") 125 | public R page(@RequestParam Map params,YonghuEntity yonghu, 126 | HttpServletRequest request){ 127 | 128 | EntityWrapper ew = new EntityWrapper(); 129 | PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params)); 130 | return R.ok().put("data", page); 131 | } 132 | 133 | /** 134 | * 前端列表 135 | */ 136 | @RequestMapping("/list") 137 | public R list(@RequestParam Map params,YonghuEntity yonghu, HttpServletRequest request){ 138 | EntityWrapper ew = new EntityWrapper(); 139 | PageUtils page = yonghuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, yonghu), params), params)); 140 | return R.ok().put("data", page); 141 | } 142 | 143 | /** 144 | * 列表 145 | */ 146 | @RequestMapping("/lists") 147 | public R list( YonghuEntity yonghu){ 148 | EntityWrapper ew = new EntityWrapper(); 149 | ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu")); 150 | return R.ok().put("data", yonghuService.selectListView(ew)); 151 | } 152 | 153 | /** 154 | * 查询 155 | */ 156 | @RequestMapping("/query") 157 | public R query(YonghuEntity yonghu){ 158 | EntityWrapper< YonghuEntity> ew = new EntityWrapper< YonghuEntity>(); 159 | ew.allEq(MPUtil.allEQMapPre( yonghu, "yonghu")); 160 | YonghuView yonghuView = yonghuService.selectView(ew); 161 | return R.ok("查询用户成功").put("data", yonghuView); 162 | } 163 | 164 | /** 165 | * 后端详情 166 | */ 167 | @RequestMapping("/info/{id}") 168 | public R info(@PathVariable("id") Long id){ 169 | YonghuEntity yonghu = yonghuService.selectById(id); 170 | return R.ok().put("data", yonghu); 171 | } 172 | 173 | /** 174 | * 前端详情 175 | */ 176 | @RequestMapping("/detail/{id}") 177 | public R detail(@PathVariable("id") Long id){ 178 | YonghuEntity yonghu = yonghuService.selectById(id); 179 | return R.ok().put("data", yonghu); 180 | } 181 | 182 | 183 | 184 | 185 | /** 186 | * 后端保存 187 | */ 188 | @RequestMapping("/save") 189 | public R save(@RequestBody YonghuEntity yonghu, HttpServletRequest request){ 190 | yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); 191 | //ValidatorUtils.validateEntity(yonghu); 192 | YonghuEntity user = yonghuService.selectOne(new EntityWrapper().eq("yonghuzhanghao", yonghu.getYonghuzhanghao())); 193 | if(user!=null) { 194 | return R.error("用户已存在"); 195 | } 196 | 197 | yonghu.setId(new Date().getTime()); 198 | yonghuService.insert(yonghu); 199 | return R.ok(); 200 | } 201 | 202 | /** 203 | * 前端保存 204 | */ 205 | @RequestMapping("/add") 206 | public R add(@RequestBody YonghuEntity yonghu, HttpServletRequest request){ 207 | yonghu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); 208 | //ValidatorUtils.validateEntity(yonghu); 209 | YonghuEntity user = yonghuService.selectOne(new EntityWrapper().eq("yonghuzhanghao", yonghu.getYonghuzhanghao())); 210 | if(user!=null) { 211 | return R.error("用户已存在"); 212 | } 213 | 214 | yonghu.setId(new Date().getTime()); 215 | yonghuService.insert(yonghu); 216 | return R.ok(); 217 | } 218 | 219 | /** 220 | * 修改 221 | */ 222 | @RequestMapping("/update") 223 | public R update(@RequestBody YonghuEntity yonghu, HttpServletRequest request){ 224 | //ValidatorUtils.validateEntity(yonghu); 225 | yonghuService.updateById(yonghu);//全部更新 226 | return R.ok(); 227 | } 228 | 229 | 230 | /** 231 | * 删除 232 | */ 233 | @RequestMapping("/delete") 234 | public R delete(@RequestBody Long[] ids){ 235 | yonghuService.deleteBatchIds(Arrays.asList(ids)); 236 | return R.ok(); 237 | } 238 | 239 | /** 240 | * 提醒接口 241 | */ 242 | @RequestMapping("/remind/{columnName}/{type}") 243 | public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 244 | @PathVariable("type") String type,@RequestParam Map map) { 245 | map.put("column", columnName); 246 | map.put("type", type); 247 | 248 | if(type.equals("2")) { 249 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 250 | Calendar c = Calendar.getInstance(); 251 | Date remindStartDate = null; 252 | Date remindEndDate = null; 253 | if(map.get("remindstart")!=null) { 254 | Integer remindStart = Integer.parseInt(map.get("remindstart").toString()); 255 | c.setTime(new Date()); 256 | c.add(Calendar.DAY_OF_MONTH,remindStart); 257 | remindStartDate = c.getTime(); 258 | map.put("remindstart", sdf.format(remindStartDate)); 259 | } 260 | if(map.get("remindend")!=null) { 261 | Integer remindEnd = Integer.parseInt(map.get("remindend").toString()); 262 | c.setTime(new Date()); 263 | c.add(Calendar.DAY_OF_MONTH,remindEnd); 264 | remindEndDate = c.getTime(); 265 | map.put("remindend", sdf.format(remindEndDate)); 266 | } 267 | } 268 | 269 | Wrapper wrapper = new EntityWrapper(); 270 | if(map.get("remindstart")!=null) { 271 | wrapper.ge(columnName, map.get("remindstart")); 272 | } 273 | if(map.get("remindend")!=null) { 274 | wrapper.le(columnName, map.get("remindend")); 275 | } 276 | 277 | 278 | int count = yonghuService.selectCount(wrapper); 279 | return R.ok().put("count", count); 280 | } 281 | 282 | 283 | 284 | } 285 | -------------------------------------------------------------------------------- /src/main/webapp/front/xznstatic/css/public.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; /* CSS Document *//*css预设*/ 2 | * { 3 | margin: 0; 4 | padding: 0; 5 | } 6 | 7 | /*将所有HTML元素的默认边距清0*/ 8 | html, body { 9 | font-size: 12px; 10 | font-family: "微软雅黑", "arial"; 11 | color: #262626; 12 | background: #FFF; 13 | } 14 | 15 | /*对HTML元素中的字体、颜色、背景色进行初始设置*/ 16 | ul li, ol li { 17 | list-style: none; 18 | } 19 | 20 | /*将列表标签的默认样式清除*/ 21 | a { 22 | text-decoration: none; 23 | outline: none; 24 | color: #262626; 25 | blr: expression(this.onFocus=this.blur()); 26 | } 27 | 28 | /*将超链接的下划线去掉以及在ie6中点击出现的虚线框去掉*/ 29 | img { 30 | border: none; 31 | } 32 | 33 | /*图片的默认边框去掉 */ 34 | table { 35 | border-collapse: collapse; 36 | border-spacing: 0; 37 | } 38 | 39 | caption, th, td { 40 | font-weight: normal; 41 | text-align: left; 42 | } 43 | 44 | input, textarea, select, button { 45 | font-size: 100%; 46 | font-family: inherit; 47 | margin: 0; 48 | padding: 0; 49 | border: none; 50 | outline: none; 51 | } 52 | 53 | label, button { 54 | cursor: pointer 55 | } 56 | 57 | textarea { 58 | white-space: pre; 59 | resize: none; 60 | border: 1px solid #ececec; 61 | } 62 | 63 | article, aside, figcaption, figure, footer, header, hgroup, nav, section, summary { 64 | display: block; 65 | } 66 | 67 | /*清楚浮动*/ 68 | .clearfix:after { 69 | content: ""; 70 | display: block; 71 | clear: both; 72 | height: 0; 73 | line-height: 0; 74 | visibility: hidden; 75 | } 76 | 77 | .clearfix { 78 | zoom: 1; 79 | } 80 | 81 | /*解决ie6的兼容性问题*/ 82 | .fl { 83 | float: left; 84 | } 85 | 86 | .fr { 87 | float: right; 88 | } 89 | 90 | .mt { 91 | margin-top: 80px; 92 | } 93 | 94 | .wrapper { 95 | width: 1160px; 96 | margin: 0 auto; 97 | } 98 | 99 | /*********************head********************/ 100 | .head { 101 | margin-top: 30px; 102 | min-width: 1160px; 103 | position: relative; 104 | border-bottom: 1px solid #e0e0e0; 105 | } 106 | 107 | .head h1 img { 108 | width: 80%; 109 | display: block; 110 | } 111 | 112 | .head div p { 113 | margin-top: 20px; 114 | } 115 | 116 | .head div p a { 117 | color: #262626; 118 | padding: 0 10px; 119 | font-size: 14px; 120 | } 121 | 122 | .head div p a:nth-child(1) { 123 | border-right: 1px solid #dbdbdb; 124 | } 125 | 126 | .head div form { 127 | width: 160px; 128 | height: 30px; 129 | line-height: 30px; 130 | margin: 0 10px; 131 | margin-top: 13px; 132 | border-bottom: 1px solid #262626; 133 | } 134 | 135 | .head div form input:nth-child(1) { 136 | background: none; 137 | text-indent: 8px; 138 | } 139 | 140 | .head div form input:nth-child(2) { 141 | float: right; 142 | width: 13%; 143 | padding-bottom: 10px; 144 | background: url("../img/ss.png") no-repeat right 5px; 145 | cursor: pointer; 146 | } 147 | 148 | .head div.btn { 149 | margin-top: 20px; 150 | position: relative; 151 | } 152 | 153 | .head div.btn a { 154 | float: left; 155 | margin: 0 10px; 156 | } 157 | 158 | .head ul { 159 | float: left; 160 | margin-left: 18%; 161 | line-height: 50px; 162 | } 163 | 164 | .head ul li { 165 | float: left; 166 | padding: 0 20px; 167 | } 168 | 169 | .head ul li > a { 170 | color: #262626; 171 | font-size: 14px; 172 | display: inline-block; 173 | position: relative; 174 | } 175 | 176 | .head ul li a:before { 177 | content: ""; 178 | background: #A10000; 179 | position: absolute; 180 | bottom: -3px; 181 | z-index: -1; 182 | transform: scaleX(0); 183 | transition: all .5s ease; 184 | -webkit-transition: all .5s ease; 185 | } 186 | 187 | .head ul li:nth-child(1) a:before { 188 | left: -12px; 189 | } 190 | 191 | .head ul li > a:hover { 192 | color: #A10000; 193 | } 194 | 195 | .head ul li > a:hover:before { 196 | width: 56px; 197 | height: 2px; 198 | transform: scaleX(1); 199 | transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66); 200 | -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);; 201 | z-index: 9999; 202 | } 203 | 204 | .head div.sList { 205 | position: absolute; 206 | top: 113px; 207 | left: 0; 208 | z-index: 3; 209 | background: #fff; 210 | width: 100%; 211 | display: none; 212 | } 213 | 214 | .head div.sList div { 215 | text-align: center; 216 | padding: 20px 0; 217 | display: flex; 218 | } 219 | 220 | .head div.sList div a { 221 | flex: 1 1 20%; 222 | border-right: 1px solid #dbdbdb; 223 | } 224 | 225 | .head div.sList div a:last-child { 226 | border-right: none; 227 | } 228 | 229 | .head div.sList div dl dt img { 230 | width: 70%; 231 | } 232 | 233 | .head div.sList div dl dd { 234 | font-size: 14px; 235 | } 236 | 237 | .head div.sList2 { 238 | display: none; 239 | position: absolute; 240 | top: 113px; 241 | left: 0; 242 | z-index: 3; 243 | background: #fff; 244 | width: 100%; 245 | } 246 | 247 | .head div.sList2 div { 248 | width: 46%; 249 | margin: 0 auto; 250 | } 251 | 252 | .head div.sList2 a { 253 | float: left; 254 | margin-right: 40px; 255 | } 256 | 257 | /*定位样式*/ 258 | .ding { 259 | margin-top: 0; 260 | position: fixed; 261 | top: 0; 262 | left: 0; 263 | width: 100%; 264 | height: 40px; 265 | padding: 20px 0; 266 | background: #fff; 267 | z-index: 100; 268 | } 269 | 270 | .ding h1 { 271 | position: absolute; 272 | left: 10%; 273 | top: 20%; 274 | } 275 | 276 | .ding h1 img { 277 | width: 65%; 278 | } 279 | 280 | /*.ding #top1{ display: none;}*/ 281 | .ding #top1 p, .ding #top1 div { 282 | display: none; 283 | } 284 | 285 | .ding ul li a:before { 286 | bottom: -25px; 287 | } 288 | 289 | .ding div.sList, .ding div.sList2 { 290 | top: 81px; 291 | } 292 | 293 | .ding ul { 294 | float: left; 295 | margin-left: 18%; 296 | line-height: 0; 297 | } 298 | 299 | .ding div form { 300 | width: 185px; 301 | height: 30px; 302 | line-height: 30px; 303 | margin: 0 10px; 304 | margin-top: 5px; 305 | border-bottom: 1px solid #262626; 306 | } 307 | 308 | .ding div.sList2 a { 309 | float: left; 310 | margin-right: 40px; 311 | line-height: 38px; 312 | } 313 | 314 | .ding div.sList div dl dd { 315 | line-height: 35px; 316 | } 317 | 318 | /*头部二维码*/ 319 | .head div.btn p { 320 | display: none; 321 | } 322 | 323 | .head div.btn p a { 324 | width: 74px; 325 | height: 74px; 326 | position: absolute; 327 | top: 30px; 328 | background: #fff; 329 | right: 10px; 330 | padding: 2px; 331 | z-index: 10; 332 | border: 1px solid #A10000; 333 | } 334 | 335 | .head div.btn p a img { 336 | width: 100%; 337 | } 338 | 339 | .head div.btn p a:before { 340 | position: absolute; 341 | top: -5px; 342 | left: 50%; 343 | width: 0; 344 | height: 0; 345 | margin-left: -5px; 346 | vertical-align: middle; 347 | content: " "; 348 | border-right: 5px solid transparent; 349 | border-bottom: 5px solid #A10000; 350 | border-left: 5px solid transparent; 351 | } 352 | 353 | /*********************address********************/ 354 | .address { 355 | height: 40px; 356 | line-height: 40px; 357 | border-bottom: 1px solid #DBDBDB; 358 | } 359 | 360 | .address a, .address span { 361 | float: left; 362 | color: #777; 363 | } 364 | 365 | .address span { 366 | margin: 0 20px; 367 | } 368 | 369 | .address a.on { 370 | color: #262626; 371 | } 372 | 373 | /*********************footer********************/ 374 | .footer { 375 | min-width: 1160px; 376 | } 377 | 378 | .footer .top { 379 | padding: 30px 0; 380 | border-top: 1px solid #DBDBDB; 381 | border-bottom: 1px solid #DBDBDB; 382 | } 383 | 384 | .footer .top .wrapper { 385 | display: flex; 386 | } 387 | 388 | .footer .top .wrapper div { 389 | flex: 1 1 25%; 390 | border-right: 1px solid #dbdbdb; 391 | } 392 | 393 | .footer .top .wrapper div:last-child { 394 | border-right: none; 395 | } 396 | 397 | .footer .top .wrapper div a img { 398 | display: block; 399 | } 400 | 401 | .footer .top .wrapper div a { 402 | margin-left: 25%; 403 | } 404 | 405 | .footer .top .wrapper div span { 406 | margin-top: 15px; 407 | margin-left: 10px; 408 | display: block; 409 | font-size: 16px; 410 | } 411 | 412 | .footer p.dibu { 413 | background: #000; 414 | padding: 30px 0; 415 | text-align: center; 416 | color: #fff; 417 | } 418 | 419 | /*********************gotop********************/ 420 | body { 421 | position: relative; 422 | } 423 | 424 | .gotop { 425 | position: fixed; 426 | right: 20px; 427 | top: 400px; 428 | z-index: 20; 429 | } 430 | 431 | .gotop a { 432 | display: block; 433 | width: 48px; 434 | height: 48px; 435 | line-height: 38px; 436 | background: #f4f4f4; 437 | margin-bottom: 10px; 438 | border: 1px solid #d6d6d6; 439 | cursor: pointer; 440 | } 441 | 442 | .gotop dl dt { 443 | margin: 0 auto; 444 | width: 20px; 445 | padding-top: 10px; 446 | } 447 | 448 | .gotop dl.goCart { 449 | position: relative; 450 | } 451 | 452 | .gotop dl.goCart span { 453 | position: absolute; 454 | top: -9px; 455 | right: -8px; 456 | width: 16px; 457 | height: 16px; 458 | border-radius: 8px; 459 | background: #c10000; 460 | color: #fff; 461 | text-align: center; 462 | line-height: 16px; 463 | } 464 | 465 | .gotop dl dd { 466 | display: none; 467 | background: #a10000; 468 | height: 41px; 469 | width: 41px; 470 | color: #fff; 471 | padding: 8px 0 0 10px; 472 | line-height: 15px; 473 | } 474 | 475 | .gotop p { 476 | border: 1px solid #A10000; 477 | padding: 10px; 478 | position: absolute; 479 | background: #f4f4f4; 480 | top: 66px; 481 | left: -130px; 482 | display: none; 483 | } 484 | 485 | .gotop p:before { 486 | position: absolute; 487 | top: 50%; 488 | right: -6px; 489 | width: 0; 490 | margin-top: -5px; 491 | height: 0; 492 | margin-left: -5px; 493 | vertical-align: middle; 494 | content: " "; 495 | border-bottom: 5px solid transparent; 496 | border-left: 5px solid #a10000; 497 | border-top: 5px solid transparent; 498 | } -------------------------------------------------------------------------------- /src/main/java/com/controller/ShangjiaController.java: -------------------------------------------------------------------------------- 1 | package com.controller; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.ArrayList; 5 | import java.util.Arrays; 6 | import java.util.Calendar; 7 | import java.util.Map; 8 | import java.util.HashMap; 9 | import java.util.Iterator; 10 | import java.util.Date; 11 | import java.util.List; 12 | import javax.servlet.http.HttpServletRequest; 13 | 14 | import com.utils.ValidatorUtils; 15 | import org.apache.commons.lang3.StringUtils; 16 | import org.springframework.beans.factory.annotation.Autowired; 17 | import org.springframework.format.annotation.DateTimeFormat; 18 | import org.springframework.web.bind.annotation.PathVariable; 19 | import org.springframework.web.bind.annotation.RequestBody; 20 | import org.springframework.web.bind.annotation.RequestMapping; 21 | import org.springframework.web.bind.annotation.RequestParam; 22 | import org.springframework.web.bind.annotation.RestController; 23 | import com.baomidou.mybatisplus.mapper.EntityWrapper; 24 | import com.baomidou.mybatisplus.mapper.Wrapper; 25 | import com.annotation.IgnoreAuth; 26 | 27 | import com.entity.ShangjiaEntity; 28 | import com.entity.view.ShangjiaView; 29 | 30 | import com.service.ShangjiaService; 31 | import com.service.TokenService; 32 | import com.utils.PageUtils; 33 | import com.utils.R; 34 | import com.utils.MD5Util; 35 | import com.utils.MPUtil; 36 | import com.utils.CommonUtil; 37 | 38 | 39 | /** 40 | * 商家 41 | * 后端接口 42 | * @author 43 | * @email 44 | * @date 2021-03-20 11:33:20 45 | */ 46 | @RestController 47 | @RequestMapping("/shangjia") 48 | public class ShangjiaController { 49 | @Autowired 50 | private ShangjiaService shangjiaService; 51 | 52 | @Autowired 53 | private TokenService tokenService; 54 | 55 | /** 56 | * 登录 57 | */ 58 | @IgnoreAuth 59 | @RequestMapping(value = "/login") 60 | public R login(String username, String password, String captcha, HttpServletRequest request) { 61 | ShangjiaEntity user = shangjiaService.selectOne(new EntityWrapper().eq("shangjiazhanghao", username)); 62 | if(user==null || !user.getMima().equals(password)) { 63 | return R.error("账号或密码不正确"); 64 | } 65 | String token = tokenService.generateToken(user.getId(), username,"shangjia", "商家" ); 66 | return R.ok().put("token", token); 67 | } 68 | 69 | /** 70 | * 注册 71 | */ 72 | @IgnoreAuth 73 | @RequestMapping("/register") 74 | public R register(@RequestBody ShangjiaEntity shangjia){ 75 | //ValidatorUtils.validateEntity(shangjia); 76 | ShangjiaEntity user = shangjiaService.selectOne(new EntityWrapper().eq("shangjiazhanghao", shangjia.getShangjiazhanghao())); 77 | if(user!=null) { 78 | return R.error("注册用户已存在"); 79 | } 80 | Long uId = new Date().getTime(); 81 | shangjia.setId(uId); 82 | shangjiaService.insert(shangjia); 83 | return R.ok(); 84 | } 85 | 86 | /** 87 | * 退出 88 | */ 89 | @RequestMapping("/logout") 90 | public R logout(HttpServletRequest request) { 91 | request.getSession().invalidate(); 92 | return R.ok("退出成功"); 93 | } 94 | 95 | /** 96 | * 获取用户的session用户信息 97 | */ 98 | @RequestMapping("/session") 99 | public R getCurrUser(HttpServletRequest request){ 100 | Long id = (Long)request.getSession().getAttribute("userId"); 101 | ShangjiaEntity user = shangjiaService.selectById(id); 102 | return R.ok().put("data", user); 103 | } 104 | 105 | /** 106 | * 密码重置 107 | */ 108 | @IgnoreAuth 109 | @RequestMapping(value = "/resetPass") 110 | public R resetPass(String username, HttpServletRequest request){ 111 | ShangjiaEntity user = shangjiaService.selectOne(new EntityWrapper().eq("shangjiazhanghao", username)); 112 | if(user==null) { 113 | return R.error("账号不存在"); 114 | } 115 | user.setMima("123456"); 116 | shangjiaService.updateById(user); 117 | return R.ok("密码已重置为:123456"); 118 | } 119 | 120 | 121 | /** 122 | * 后端列表 123 | */ 124 | @RequestMapping("/page") 125 | public R page(@RequestParam Map params,ShangjiaEntity shangjia, 126 | HttpServletRequest request){ 127 | 128 | String tableName = request.getSession().getAttribute("tableName").toString(); 129 | if(tableName.equals("shangjia")) { 130 | shangjia.setShangjiazhanghao((String)request.getSession().getAttribute("username")); 131 | } 132 | EntityWrapper ew = new EntityWrapper(); 133 | PageUtils page = shangjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shangjia), params), params)); 134 | return R.ok().put("data", page); 135 | } 136 | 137 | /** 138 | * 前端列表 139 | */ 140 | @IgnoreAuth 141 | @RequestMapping("/list") 142 | public R list(@RequestParam Map params,ShangjiaEntity shangjia, HttpServletRequest request){ 143 | EntityWrapper ew = new EntityWrapper(); 144 | PageUtils page = shangjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shangjia), params), params)); 145 | return R.ok().put("data", page); 146 | } 147 | 148 | /** 149 | * 列表 150 | */ 151 | @RequestMapping("/lists") 152 | public R list( ShangjiaEntity shangjia){ 153 | EntityWrapper ew = new EntityWrapper(); 154 | ew.allEq(MPUtil.allEQMapPre( shangjia, "shangjia")); 155 | return R.ok().put("data", shangjiaService.selectListView(ew)); 156 | } 157 | 158 | /** 159 | * 查询 160 | */ 161 | @RequestMapping("/query") 162 | public R query(ShangjiaEntity shangjia){ 163 | EntityWrapper< ShangjiaEntity> ew = new EntityWrapper< ShangjiaEntity>(); 164 | ew.allEq(MPUtil.allEQMapPre( shangjia, "shangjia")); 165 | ShangjiaView shangjiaView = shangjiaService.selectView(ew); 166 | return R.ok("查询商家成功").put("data", shangjiaView); 167 | } 168 | 169 | /** 170 | * 后端详情 171 | */ 172 | @RequestMapping("/info/{id}") 173 | public R info(@PathVariable("id") Long id){ 174 | ShangjiaEntity shangjia = shangjiaService.selectById(id); 175 | return R.ok().put("data", shangjia); 176 | } 177 | 178 | /** 179 | * 前端详情 180 | */ 181 | @IgnoreAuth 182 | @RequestMapping("/detail/{id}") 183 | public R detail(@PathVariable("id") Long id){ 184 | ShangjiaEntity shangjia = shangjiaService.selectById(id); 185 | return R.ok().put("data", shangjia); 186 | } 187 | 188 | 189 | 190 | 191 | /** 192 | * 后端保存 193 | */ 194 | @RequestMapping("/save") 195 | public R save(@RequestBody ShangjiaEntity shangjia, HttpServletRequest request){ 196 | shangjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); 197 | //ValidatorUtils.validateEntity(shangjia); 198 | ShangjiaEntity user = shangjiaService.selectOne(new EntityWrapper().eq("shangjiazhanghao", shangjia.getShangjiazhanghao())); 199 | if(user!=null) { 200 | return R.error("用户已存在"); 201 | } 202 | 203 | shangjia.setId(new Date().getTime()); 204 | shangjiaService.insert(shangjia); 205 | return R.ok(); 206 | } 207 | 208 | /** 209 | * 前端保存 210 | */ 211 | @RequestMapping("/add") 212 | public R add(@RequestBody ShangjiaEntity shangjia, HttpServletRequest request){ 213 | shangjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); 214 | //ValidatorUtils.validateEntity(shangjia); 215 | ShangjiaEntity user = shangjiaService.selectOne(new EntityWrapper().eq("shangjiazhanghao", shangjia.getShangjiazhanghao())); 216 | if(user!=null) { 217 | return R.error("用户已存在"); 218 | } 219 | 220 | shangjia.setId(new Date().getTime()); 221 | shangjiaService.insert(shangjia); 222 | return R.ok(); 223 | } 224 | 225 | /** 226 | * 修改 227 | */ 228 | @RequestMapping("/update") 229 | public R update(@RequestBody ShangjiaEntity shangjia, HttpServletRequest request){ 230 | //ValidatorUtils.validateEntity(shangjia); 231 | shangjiaService.updateById(shangjia);//全部更新 232 | return R.ok(); 233 | } 234 | 235 | 236 | /** 237 | * 删除 238 | */ 239 | @RequestMapping("/delete") 240 | public R delete(@RequestBody Long[] ids){ 241 | shangjiaService.deleteBatchIds(Arrays.asList(ids)); 242 | return R.ok(); 243 | } 244 | 245 | /** 246 | * 提醒接口 247 | */ 248 | @RequestMapping("/remind/{columnName}/{type}") 249 | public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 250 | @PathVariable("type") String type,@RequestParam Map map) { 251 | map.put("column", columnName); 252 | map.put("type", type); 253 | 254 | if(type.equals("2")) { 255 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 256 | Calendar c = Calendar.getInstance(); 257 | Date remindStartDate = null; 258 | Date remindEndDate = null; 259 | if(map.get("remindstart")!=null) { 260 | Integer remindStart = Integer.parseInt(map.get("remindstart").toString()); 261 | c.setTime(new Date()); 262 | c.add(Calendar.DAY_OF_MONTH,remindStart); 263 | remindStartDate = c.getTime(); 264 | map.put("remindstart", sdf.format(remindStartDate)); 265 | } 266 | if(map.get("remindend")!=null) { 267 | Integer remindEnd = Integer.parseInt(map.get("remindend").toString()); 268 | c.setTime(new Date()); 269 | c.add(Calendar.DAY_OF_MONTH,remindEnd); 270 | remindEndDate = c.getTime(); 271 | map.put("remindend", sdf.format(remindEndDate)); 272 | } 273 | } 274 | 275 | Wrapper wrapper = new EntityWrapper(); 276 | if(map.get("remindstart")!=null) { 277 | wrapper.ge(columnName, map.get("remindstart")); 278 | } 279 | if(map.get("remindend")!=null) { 280 | wrapper.le(columnName, map.get("remindend")); 281 | } 282 | 283 | String tableName = request.getSession().getAttribute("tableName").toString(); 284 | if(tableName.equals("shangjia")) { 285 | wrapper.eq("shangjiazhanghao", (String)request.getSession().getAttribute("username")); 286 | } 287 | 288 | int count = shangjiaService.selectCount(wrapper); 289 | return R.ok().put("count", count); 290 | } 291 | 292 | 293 | 294 | } 295 | -------------------------------------------------------------------------------- /src/main/webapp/admin/src/views/center.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 99 | 100 | 101 | 102 | 修 改 103 | 104 | 105 | 106 | 107 | 108 | 109 | 198 | 200 | -------------------------------------------------------------------------------- /src/main/webapp/front/xznstatic/css/style.css: -------------------------------------------------------------------------------- 1 | /* 模板秀(mobanxiu.cn)做最好的织梦整站模板下载网站 */ 2 | @charset "utf-8"; 3 | .banner { 4 | position: relative; 5 | /* left: 50%; */ 6 | /* width: 1920px; */ 7 | /* height: 492px; */ 8 | /* text-align: center; */ 9 | /* margin: 0 82px 0 -960px; */ 10 | /* margin-bottom: 30px; */ 11 | } 12 | .banner .bd li { 13 | width: 100%; 14 | text-align: center 15 | } 16 | .banner .hd { 17 | position: absolute; 18 | bottom: 46px; 19 | width: 100%; 20 | text-align: center; 21 | z-index: 10000 22 | } 23 | .banner .hd ul { 24 | width: 100%; 25 | text-align: center; 26 | } 27 | .banner .hd li { 28 | display: inline-block; 29 | *display:inline; 30 | width: 10px; 31 | height: 10px; 32 | background: #1e0f00; 33 | border-radius: 5px; 34 | margin: 0 3px; 35 | } 36 | .banner .hd li.on { 37 | background: #fff; 38 | } 39 | .section { 40 | width: 1014px; 41 | margin: 0 auto; 42 | overflow: hidden; 43 | margin-bottom: 57px; 44 | } 45 | .section .title { 46 | text-align: center; 47 | margin-bottom: 26px; 48 | } 49 | .section li .photo { 50 | display: block; 51 | width: 312px; 52 | height: 312px; 53 | border-radius: 156px; 54 | overflow: hidden 55 | } 56 | .section li .tit { 57 | display: block; 58 | height: 44px; 59 | color: #037066; 60 | font-size: 16px; 61 | line-height: 44px; 62 | } 63 | .section li { 64 | float: left; 65 | width: 312px; 66 | margin: 0 13px; 67 | text-align: center 68 | } 69 | .section1 { 70 | background: url(../img/index_24.gif) center center no-repeat; 71 | width: 100%; 72 | height: 551px; 73 | margin-bottom: 38px; 74 | } 75 | .news { 76 | width: 1002px; 77 | margin: 0 auto; 78 | padding-top: 72px; 79 | } 80 | .news .title { 81 | text-align: center; 82 | margin-bottom: 62px; 83 | } 84 | .news .n_left { 85 | float: left; 86 | width: 305px; 87 | height: 271px; 88 | padding: 7px 7px 0; 89 | background: #e75f6a; 90 | position: relative 91 | } 92 | #ifocus_pic { 93 | position: relative; 94 | width: 305px; 95 | height: 271px; 96 | overflow: hidden 97 | } 98 | #ifocus #ifocus_pic { 99 | width: 305px; 100 | height: 271px; 101 | } 102 | #ifocus_tx { 103 | width: 293px; 104 | height: 34px; 105 | line-height: 34px; 106 | text-align: right; 107 | padding-right: 12px; 108 | position: absolute; 109 | left: 0; 110 | bottom: 0; 111 | } 112 | #ifocus_tx a { 113 | color: #fff 114 | } 115 | #ifocus_btn { 116 | position: absolute; 117 | width: 305px; 118 | bottom: 40px; 119 | z-index: 1000000 120 | } 121 | #ifocus_btn ul { 122 | width: 305px; 123 | text-align: right; 124 | zomm: 1; 125 | } 126 | #ifocus_btn ul li { 127 | display: inline-block; 128 | *display:inline; 129 | width: 8px; 130 | height: 8px; 131 | margin: 0 2px; 132 | background: #fff; 133 | border-radius: 4px; 134 | font-size: 0 135 | } 136 | #ifocus_btn ul li.on { 137 | background: #e75f6a 138 | } 139 | .n_right { 140 | float: right; 141 | width: 602px; 142 | } 143 | .n_right li .date { 144 | float: left; 145 | width: 78px; 146 | height: 70px; 147 | border-right: 1px solid #ea979d; 148 | color: #ffd800; 149 | font-size: 50px; 150 | font-family: Arial; 151 | line-height: 70px; 152 | } 153 | .n_right li .info { 154 | float: right; 155 | width: 495px; 156 | line-height: 22px; 157 | color: #c2c0be 158 | } 159 | .n_right li .info a { 160 | display: block; 161 | height: 28px; 162 | line-height: 28px; 163 | color: #fff 164 | } 165 | .n_right li { 166 | height: 72px; 167 | overflow: hidden; 168 | margin-bottom: 22px; 169 | } 170 | .student { 171 | width: 1002px; 172 | margin: 0 auto; 173 | background: url(../img/index_35.gif) #fffefa 145px bottom no-repeat; 174 | height: 572px; 175 | overflow: hidden 176 | } 177 | .student .title { 178 | text-align: center; 179 | margin-bottom: 28px; 180 | } 181 | .student .list { 182 | width: 100%; 183 | text-align: center; 184 | height: 25px; 185 | overflow: hidden; 186 | margin-bottom: 48px; 187 | } 188 | .student .list a { 189 | display: inline-block; 190 | width: 84px; 191 | height: 25px; 192 | line-height: 25px; 193 | text-align: center; 194 | background: #f7eedc; 195 | color: #d42e3b; 196 | font-size: 14px; 197 | border-radius: 6px 198 | } 199 | .student .list a:hover { 200 | background: #d42e3b; 201 | color: #fff 202 | } 203 | .student li .photo { 204 | display: block; 205 | width: 166px; 206 | height: 166px; 207 | } 208 | .student li .name { 209 | display: block; 210 | height: 45px; 211 | line-height: 45px; 212 | text-align: center 213 | } 214 | .student li { 215 | float: left; 216 | width: 166px; 217 | height: 211px; 218 | padding: 5px 5px 0; 219 | border: 1px solid #fcf9f3; 220 | margin: 0 8px; 221 | background: #fff 222 | } 223 | .student li:hover { 224 | background: #d42e3b; 225 | border-color: #d42e3b 226 | } 227 | .student li:hover a { 228 | color: #fff 229 | } 230 | .student .bd { 231 | width: 970px; 232 | margin: 0 auto; 233 | overflow: hidden 234 | } 235 | .student .hd { 236 | width: 100%; 237 | margin-top: 46px; 238 | text-align: center; 239 | } 240 | .student .hd a { 241 | display: inline-block; 242 | width: 57px; 243 | height: 33px; 244 | margin: 0 20px; 245 | cursor: pointer 246 | } 247 | .student .hd .prev { 248 | background: url(../img/index_44.gif) no-repeat 249 | } 250 | .student .hd .next { 251 | background: url(../img/index_41.gif) no-repeat 252 | } 253 | /*??????*/ 254 | .single_con .ny_right .content { 255 | line-height: 27px 256 | } 257 | /*????????????*/ 258 | .news_con .ny_right .content_title { 259 | margin-bottom: 30px; 260 | padding-bottom: 20px; 261 | text-align: center; 262 | border-bottom: 1px #ddd dotted; 263 | } 264 | .news_con .ny_right .content_title h3 { 265 | font-size: 17px; 266 | color: #4d5260; 267 | } 268 | .news_con .ny_right .content_title .info { 269 | margin-top: 15px; 270 | font-size: 12px; 271 | color: #aaa; 272 | } 273 | .news_con .ny_right .content_title .info span { 274 | display: inline-block; 275 | margin: 0 10px; 276 | } 277 | .news_con .ny_right .content { 278 | line-height: 27px 279 | } 280 | .first_list { 281 | height: 125px; 282 | overflow: hidden; 283 | margin-bottom: 26px; 284 | } 285 | .first_list img { 286 | border: solid 1px #c2c2c2; 287 | float: left; 288 | width: 210px; 289 | height: 123px; 290 | } 291 | .first_list .right { 292 | float: right; 293 | color: #8c8573; 294 | line-height: 20px; 295 | width: 516px; 296 | } 297 | .first_list .right .tit { 298 | display: block; 299 | height: 31px; 300 | color: #d42e3b; 301 | font-size: 14px; 302 | } 303 | .first_list .right .text { 304 | height: 40px; 305 | overflow: hidden; 306 | margin-bottom: 4px; 307 | } 308 | .first_list .right a { 309 | color: #cf281f; 310 | display: block 311 | } 312 | .first_list .right .date { 313 | display: block; 314 | height: 20px; 315 | line-height: 20px; 316 | background: url(../img/news_list_time.jpg) left center no-repeat; 317 | padding-left: 20px; 318 | margin-top: 10px; 319 | } 320 | .other_list { 321 | margin-bottom: 67px; 322 | } 323 | .other_list li { 324 | height: 37px; 325 | line-height: 37px; 326 | border-bottom: dotted 1px #dddddd; 327 | } 328 | .other_list a:hover, .other_list li:hover { 329 | color: #d42e3b 330 | } 331 | .other_list li span { 332 | float: right; 333 | } 334 | /*????????????*/ 335 | .list_btn { 336 | margin: 20px auto; 337 | width: 752px; 338 | } 339 | .list_btn_l_r { 340 | float: left; 341 | width: 20px; 342 | height: 20px; 343 | border: solid 1px #d3d3d3; 344 | text-align: center; 345 | color: #d3d3d3; 346 | -webkit-transition: all 0.5s; 347 | -moz-transition: all 0.5s; 348 | -o-transition: all 0.5s; 349 | transition: all 0.5s; 350 | } 351 | .list_btn_l_r:hover { 352 | color: #8c8573; 353 | border-color: #8c8573; 354 | } 355 | .list_btn_line { 356 | float: left; 357 | width: 85px; 358 | height: 1px; 359 | background-color: #d3d3d3; 360 | margin-top: 11px; 361 | } 362 | .list_btn_num { 363 | width: 120px; 364 | float: left; 365 | margin: 0 9px; 366 | text-align: center; 367 | } 368 | .list_btn_num a { 369 | display: inline-block; 370 | width: 20px; 371 | height: 20px; 372 | text-align: center; 373 | border: solid 1px #d3d3d3; 374 | margin: 0 2px; 375 | color: #606060; 376 | -webkit-transition: all 0.5s; 377 | -moz-transition: all 0.5s; 378 | -o-transition: all 0.5s; 379 | transition: all 0.5s; 380 | } 381 | .list_btn_num a:hover, .list_btn_num .hover { 382 | color: #d42e3b; 383 | border-color: #d42e3b; 384 | } 385 | /*????????????*/ 386 | .news_con .ny_right .content_tit { 387 | height: 40px; 388 | line-height: 40px; 389 | text-align: center; 390 | font-weight: bold; 391 | border-bottom: 1px solid #ccc; 392 | overflow: hidden; 393 | } 394 | .news_con .ny_right .content_related { 395 | padding: 6px 0; 396 | text-align: center; 397 | margin-bottom: 30px; 398 | } 399 | .news_con .ny_right .content { 400 | line-height: 27px 401 | } 402 | .news_con .ny_right .content_btn { 403 | line-height: 27px 404 | } 405 | .news_con .ny_right .content_btn a { 406 | color: #2d3140 407 | } 408 | /*????????????*/ 409 | .pro_con .ny_right .content { 410 | line-height: 27px 411 | } 412 | .pro_con .ny_right .content ul { 413 | float: left; 414 | margin: 0 -24px 0 -23px; 415 | } 416 | .pro_con .ny_right .content li { 417 | float: left; 418 | width: 212px; 419 | height: 310px; 420 | border: solid 3px transparent; 421 | ; 422 | margin: 0 24px 67px; 423 | -webkit-transition: all 0.3s; 424 | -moz-transition: all 0.3s; 425 | -o-transition: all 0.3s; 426 | transition: all 0.3s; 427 | } 428 | .pro_con .ny_right .content li .photo { 429 | display: block; 430 | width: 213px; 431 | height: 200px; 432 | } 433 | .pro_con .ny_right .content li .info { 434 | width: 213px; 435 | height: 110px; 436 | background: #f5f5f5; 437 | } 438 | .pro_con .ny_right .content li .info .name { 439 | height: 40px; 440 | line-height: 40px; 441 | padding-left: 19px; 442 | font-size: 14px; 443 | font-weight: bold; 444 | } 445 | .pro_con .ny_right .content li .info .text { 446 | line-height: 18px; 447 | padding: 0 19px; 448 | height: 36px; 449 | overflow: hidden; 450 | margin-bottom: 10px; 451 | } 452 | .pro_con .ny_right .content li .info .more { 453 | display: block; 454 | height: 24px; 455 | line-height: 24px; 456 | background: #adadad; 457 | padding-left: 20px; 458 | color: #fff; 459 | -webkit-transition: all 0.3s; 460 | -moz-transition: all 0.3s; 461 | -o-transition: all 0.3s; 462 | transition: all 0.3s; 463 | } 464 | .pro_con .ny_right .content li:hover { 465 | border-color: #d42e3b 466 | } 467 | .pro_con .ny_right .content li:hover .more { 468 | background: #d42e3b 469 | } 470 | .pagelink { 471 | height: 26px; 472 | width: 350px; 473 | line-height: 26px; 474 | TEXT-ALIGN: center; 475 | float: left; 476 | } 477 | .pagelink li { 478 | float: left; 479 | margin-right: 3px; 480 | list-style-type: none; 481 | border: solid 1px; 482 | } 483 | .pagelink a, .pagelink span { 484 | padding: 0 3px; 485 | } 486 | .pagelink .thisclass { 487 | padding: -5px auto 3px; 488 | color: #F00; 489 | border: solid 1px #FF0000; 490 | } 491 | .pagelink .thisclass a { 492 | padding: -5px auto 3px; 493 | color: #F00; 494 | ; 495 | } 496 | .pagelink a.on, .pagelink a:hover { 497 | color: #F9003B; 498 | } 499 | -------------------------------------------------------------------------------- /src/main/webapp/front/xznstatic/js/jquery.SuperSlide.2.1.1.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * SuperSlide v2.1.1 3 | * ????????????????????????????????????????????? 4 | * ???????????????????????????http://www.SuperSlide2.com/ 5 | * 6 | * Copyright 2011-2013, ???????????? 7 | * 8 | * ???????????????????????????????????? 9 | * ???????????????????????????????????????????????????????????? 10 | 11 | * v2.1.1????????????????????????SuperSlide????????????returnDefault:true ?????????defaultIndex???????????? 12 | 13 | */ 14 | 15 | !function(a){a.fn.slide=function(b){return a.fn.slide.defaults={type:"slide",effect:"fade",autoPlay:!1,delayTime:500,interTime:2500,triggerTime:150,defaultIndex:0,titCell:".hd li",mainCell:".bd",targetCell:null,trigger:"mouseover",scroll:1,vis:1,titOnClassName:"on",autoPage:!1,prevCell:".prev",nextCell:".next",pageStateCell:".pageState",opp:!1,pnLoop:!0,easing:"swing",startFun:null,endFun:null,switchLoad:null,playStateCell:".playState",mouseOverStop:!0,defaultPlay:!0,returnDefault:!1},this.each(function(){var c=a.extend({},a.fn.slide.defaults,b),d=a(this),e=c.effect,f=a(c.prevCell,d),g=a(c.nextCell,d),h=a(c.pageStateCell,d),i=a(c.playStateCell,d),j=a(c.titCell,d),k=j.size(),l=a(c.mainCell,d),m=l.children().size(),n=c.switchLoad,o=a(c.targetCell,d),p=parseInt(c.defaultIndex),q=parseInt(c.delayTime),r=parseInt(c.interTime);parseInt(c.triggerTime);var Q,t=parseInt(c.scroll),u=parseInt(c.vis),v="false"==c.autoPlay||0==c.autoPlay?!1:!0,w="false"==c.opp||0==c.opp?!1:!0,x="false"==c.autoPage||0==c.autoPage?!1:!0,y="false"==c.pnLoop||0==c.pnLoop?!1:!0,z="false"==c.mouseOverStop||0==c.mouseOverStop?!1:!0,A="false"==c.defaultPlay||0==c.defaultPlay?!1:!0,B="false"==c.returnDefault||0==c.returnDefault?!1:!0,C=0,D=0,E=0,F=0,G=c.easing,H=null,I=null,J=null,K=c.titOnClassName,L=j.index(d.find("."+K)),M=p=-1==L?p:L,N=p,O=p,P=m>=u?0!=m%t?m%t:t:0,R="leftMarquee"==e||"topMarquee"==e?!0:!1,S=function(){a.isFunction(c.startFun)&&c.startFun(p,k,d,a(c.titCell,d),l,o,f,g)},T=function(){a.isFunction(c.endFun)&&c.endFun(p,k,d,a(c.titCell,d),l,o,f,g)},U=function(){j.removeClass(K),A&&j.eq(N).addClass(K)};if("menu"==c.type)return A&&j.removeClass(K).eq(p).addClass(K),j.hover(function(){Q=a(this).find(c.targetCell);var b=j.index(a(this));I=setTimeout(function(){switch(p=b,j.removeClass(K).eq(p).addClass(K),S(),e){case"fade":Q.stop(!0,!0).animate({opacity:"show"},q,G,T);break;case"slideDown":Q.stop(!0,!0).animate({height:"show"},q,G,T)}},c.triggerTime)},function(){switch(clearTimeout(I),e){case"fade":Q.animate({opacity:"hide"},q,G);break;case"slideDown":Q.animate({height:"hide"},q,G)}}),B&&d.hover(function(){clearTimeout(J)},function(){J=setTimeout(U,q)}),void 0;if(0==k&&(k=m),R&&(k=2),x){if(m>=u)if("leftLoop"==e||"topLoop"==e)k=0!=m%t?(0^m/t)+1:m/t;else{var V=m-u;k=1+parseInt(0!=V%t?V/t+1:V/t),0>=k&&(k=1)}else k=1;j.html("");var W="";if(1==c.autoPage||"true"==c.autoPage)for(var X=0;k>X;X++)W+=""+(X+1)+"";else for(var X=0;k>X;X++)W+=c.autoPage.replace("$",X+1);j.html(W);var j=j.children()}if(m>=u){l.children().each(function(){a(this).width()>E&&(E=a(this).width(),D=a(this).outerWidth(!0)),a(this).height()>F&&(F=a(this).height(),C=a(this).outerHeight(!0))});var Y=l.children(),Z=function(){for(var a=0;u>a;a++)Y.eq(a).clone().addClass("clone").appendTo(l);for(var a=0;P>a;a++)Y.eq(m-a-1).clone().addClass("clone").prependTo(l)};switch(e){case"fold":l.css({position:"relative",width:D,height:C}).children().css({position:"absolute",width:E,left:0,top:0,display:"none"});break;case"top":l.wrap('').css({top:-(p*t)*C,position:"relative",padding:"0",margin:"0"}).children().css({height:F});break;case"left":l.wrap('').css({width:m*D,left:-(p*t)*D,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({"float":"left",width:E});break;case"leftLoop":case"leftMarquee":Z(),l.wrap('').css({width:(m+u+P)*D,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(P+p*t)*D}).children().css({"float":"left",width:E});break;case"topLoop":case"topMarquee":Z(),l.wrap('').css({height:(m+u+P)*C,position:"relative",padding:"0",margin:"0",top:-(P+p*t)*C}).children().css({height:F})}}var $=function(a){var b=a*t;return a==k?b=m:-1==a&&0!=m%t&&(b=-m%t),b},_=function(b){var c=function(c){for(var d=c;u+c>d;d++)b.eq(d).find("img["+n+"]").each(function(){var b=a(this);if(b.attr("src",b.attr(n)).removeAttr(n),l.find(".clone")[0])for(var c=l.children(),d=0;d=1?p=1:0>=p&&(p=0):(O=p,p>=k?p=0:0>p&&(p=k-1)),S(),null!=n&&_(l.children()),o[0]&&(Q=o.eq(p),null!=n&&_(o),"slideDown"==e?(o.not(Q).stop(!0,!0).slideUp(q),Q.slideDown(q,G,function(){l[0]||T()})):(o.not(Q).stop(!0,!0).hide(),Q.animate({opacity:"show"},q,function(){l[0]||T()}))),m>=u)switch(e){case"fade":l.children().stop(!0,!0).eq(p).animate({opacity:"show"},q,G,function(){T()}).siblings().hide();break;case"fold":l.children().stop(!0,!0).eq(p).animate({opacity:"show"},q,G,function(){T()}).siblings().animate({opacity:"hide"},q,G);break;case"top":l.stop(!0,!1).animate({top:-p*t*C},q,G,function(){T()});break;case"left":l.stop(!0,!1).animate({left:-p*t*D},q,G,function(){T()});break;case"leftLoop":var b=O;l.stop(!0,!0).animate({left:-($(O)+P)*D},q,G,function(){-1>=b?l.css("left",-(P+(k-1)*t)*D):b>=k&&l.css("left",-P*D),T()});break;case"topLoop":var b=O;l.stop(!0,!0).animate({top:-($(O)+P)*C},q,G,function(){-1>=b?l.css("top",-(P+(k-1)*t)*C):b>=k&&l.css("top",-P*C),T()});break;case"leftMarquee":var c=l.css("left").replace("px","");0==p?l.animate({left:++c},0,function(){l.css("left").replace("px","")>=0&&l.css("left",-m*D)}):l.animate({left:--c},0,function(){l.css("left").replace("px","")<=-(m+P)*D&&l.css("left",-P*D)});break;case"topMarquee":var d=l.css("top").replace("px","");0==p?l.animate({top:++d},0,function(){l.css("top").replace("px","")>=0&&l.css("top",-m*C)}):l.animate({top:--d},0,function(){l.css("top").replace("px","")<=-(m+P)*C&&l.css("top",-P*C)})}j.removeClass(K).eq(p).addClass(K),M=p,y||(g.removeClass("nextStop"),f.removeClass("prevStop"),0==p&&f.addClass("prevStop"),p==k-1&&g.addClass("nextStop")),h.html(""+(p+1)+"/"+k)}};A&&ab(!0),B&&d.hover(function(){clearTimeout(J)},function(){J=setTimeout(function(){p=N,A?ab():"slideDown"==e?Q.slideUp(q,U):Q.animate({opacity:"hide"},q,U),M=p},300)});var bb=function(a){H=setInterval(function(){w?p--:p++,ab()},a?a:r)},cb=function(a){H=setInterval(ab,a?a:r)},db=function(){z||(clearInterval(H),bb())},eb=function(){(y||p!=k-1)&&(p++,ab(),R||db())},fb=function(){(y||0!=p)&&(p--,ab(),R||db())},gb=function(){clearInterval(H),R?cb():bb(),i.removeClass("pauseState")},hb=function(){clearInterval(H),i.addClass("pauseState")};if(v?R?(w?p--:p++,cb(),z&&l.hover(hb,gb)):(bb(),z&&d.hover(hb,gb)):(R&&(w?p--:p++),i.addClass("pauseState")),i.click(function(){i.hasClass("pauseState")?gb():hb()}),"mouseover"==c.trigger?j.hover(function(){var a=j.index(this);I=setTimeout(function(){p=a,ab(),db()},c.triggerTime)},function(){clearTimeout(I)}):j.click(function(){p=j.index(this),ab(),db()}),R){if(g.mousedown(eb),f.mousedown(fb),y){var ib,jb=function(){ib=setTimeout(function(){clearInterval(H),cb(0^r/10)},150)},kb=function(){clearTimeout(ib),clearInterval(H),cb()};g.mousedown(jb),g.mouseup(kb),f.mousedown(jb),f.mouseup(kb)}"mouseover"==c.trigger&&(g.hover(eb,function(){}),f.hover(fb,function(){}))}else g.click(eb),f.click(fb)})}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),hb?-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c:.5*h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}}); --------------------------------------------------------------------------------