Java项目:82 springboot飘香水果购物网站的设计与实现

本文主要是介绍Java项目:82 springboot飘香水果购物网站的设计与实现,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

作者主页:源码空间codegym

简介:Java领域优质创作者、Java项目、学习资料、技术互助

文中获取源码

项目介绍

本水果购物网站管理员、用户两个角色。

管理员功能有,个人中心管理,用户管理,会员管理,会员卡管理,开通会员记录管理,积分管理,水果管理,购买水果订单管理,积分兑换管理,积分兑换记录管理,加积分记录管理,减积分记录管理。

用户可以注册登录,在首页开通会员卡,查看水果,购买水果,查看水果信息,以及个人中心修改个人资料,在自己的后台查看自己的购买记录等。

环境要求

1.运行环境:最好是java jdk1.8,我们在这个平台上运行的。其他版本理论上也可以。

2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;

3.tomcat环境:Tomcat7.x,8.X,9.x版本均可

4.硬件环境:windows7/8/10 4G内存以上;或者Mac OS;

5.是否Maven项目:是;查看源码目录中是否包含pom.xml;若包含,则为maven项目,否则为非maven.项目

6.数据库:MySql5.7/8.0等版本均可;

技术栈

运行环境:jdk8 + tomcat9 + mysql5.7 + windows10

服务端技术:SpringBoot + MyBatis + Vue + Bootstrap + jQuery

使用说明

1.使用Navicati或者其它工具,在mysql中创建对应sq文件名称的数据库,并导入项目的sql文件;

2.使用IDEA/Eclipse/MyEclipse导入项目,修改配置,运行项目;

3.将项目中config-propertiesi配置文件中的数据库配置改为自己的配置,然后运行;

运行指导

idea导入源码空间站顶目教程说明(Vindows版)-ssm篇:

http://mtw.so/5MHvZq

源码地址:http://codegym.top

运行截图

文档截图

img

img

项目截图

前台

1

2

3

4

5

后台

6

7

8

<template><div style="backgroundImage: url('/yiliaozonghefuwu/img/back-img-bg.jpg');background-size:cover;"><div class="container"><div class="login-form" style="backgroundColor:rgba(183, 174, 174, 0.5);borderRadius:22px"><h1 class="h1" style="color:#000;fontSize:28px;">妇幼健康管理系统注册</h1><el-form class="rgs-form" label-width="120px"><el-form-item label="账号" class="input"><el-input v-model="ruleForm.username" autocomplete="off" placeholder="账号"  /></el-form-item><el-form-item label="密码" class="input"><el-input type="password" v-model="ruleForm.password" autocomplete="off" show-password/></el-form-item><el-form-item label="重复密码" class="input"><el-input type="password" v-model="ruleForm.repetitionPassword" autocomplete="off" show-password/></el-form-item><el-form-item label="医生姓名" class="input" v-if="tableName=='yisheng'"><el-input v-model="ruleForm.yishengName" autocomplete="off" placeholder="医生姓名"  /></el-form-item><el-form-item label="医生手机号" class="input" v-if="tableName=='yisheng'"><el-input v-model="ruleForm.yishengPhone" autocomplete="off" placeholder="医生手机号"  /></el-form-item><el-form-item label="医生身份证号" class="input" v-if="tableName=='yisheng'"><el-input v-model="ruleForm.yishengIdNumber" autocomplete="off" placeholder="医生身份证号"  /></el-form-item><el-form-item label="电子邮箱" class="input" v-if="tableName=='yisheng'"><el-input v-model="ruleForm.yishengEmail" autocomplete="off" placeholder="电子邮箱"  /></el-form-item><el-form-item label="用户姓名" class="input" v-if="tableName=='yonghu'"><el-input v-model="ruleForm.yonghuName" autocomplete="off" placeholder="用户姓名"  /></el-form-item><el-form-item label="用户手机号" class="input" v-if="tableName=='yonghu'"><el-input v-model="ruleForm.yonghuPhone" autocomplete="off" placeholder="用户手机号"  /></el-form-item><el-form-item label="用户身份证号" class="input" v-if="tableName=='yonghu'"><el-input v-model="ruleForm.yonghuIdNumber" autocomplete="off" placeholder="用户身份证号"  /></el-form-item><el-form-item label="电子邮箱" class="input" v-if="tableName=='yonghu'"><el-input v-model="ruleForm.yonghuEmail" autocomplete="off" placeholder="电子邮箱"  /></el-form-item><div style="display: flex;flex-wrap: wrap;width: 100%;justify-content: center;"><el-button class="btn" type="primary" @click="login()">注册</el-button><el-button class="btn close" type="primary" @click="close()">取消</el-button></div></el-form></div></div></div>
</template>
<script>export default {data() {return {ruleForm: {},tableName:"",rules: {},sexTypesOptions : [],};},mounted(){let table = this.$storage.get("loginTable");this.tableName = table;//级联表的下拉框查询},methods: {// 获取uuidgetUUID () {return new Date().getTime();},close(){this.$router.push({ path: "/login" });},// 注册login() {if((!this.ruleForm.username)){this.$message.error('账号不能为空');return}if((!this.ruleForm.password)){this.$message.error('密码不能为空');return}if((!this.ruleForm.repetitionPassword)){this.$message.error('重复密码不能为空');return}if(this.ruleForm.repetitionPassword != this.ruleForm.password){this.$message.error('密码和重复密码不一致');return}if((!this.ruleForm.yishengName)&& 'yisheng'==this.tableName){this.$message.error('医生姓名不能为空');return}if('yisheng' == this.tableName && this.ruleForm.yishengPhone&&(!this.$validate.isMobile(this.ruleForm.yishengPhone))){this.$message.error('手机应输入手机格式');return}if((!this.ruleForm.yishengIdNumber)&& 'yisheng'==this.tableName){this.$message.error('医生身份证号不能为空');return}if('yisheng' == this.tableName && this.ruleForm.yishengEmail&&(!this.$validate.isEmail(this.ruleForm.yishengEmail))){this.$message.error("邮箱应输入邮件格式");return}if((!this.ruleForm.yonghuName)&& 'yonghu'==this.tableName){this.$message.error('用户姓名不能为空');return}if('yonghu' == this.tableName && this.ruleForm.yonghuPhone&&(!this.$validate.isMobile(this.ruleForm.yonghuPhone))){this.$message.error('手机应输入手机格式');return}if((!this.ruleForm.yonghuIdNumber)&& 'yonghu'==this.tableName){this.$message.error('用户身份证号不能为空');return}if('yonghu' == this.tableName && this.ruleForm.yonghuEmail&&(!this.$validate.isEmail(this.ruleForm.yonghuEmail))){this.$message.error("邮箱应输入邮件格式");return}this.$http({url: `${this.tableName}/register`,method: "post",data:this.ruleForm}).then(({ data }) => {if (data && data.code === 0) {this.$message({message: "注册成功,请登录后在个人中心页面补充个人数据",type: "success",duration: 1500,onClose: () => {this.$router.replace({ path: "/login" });}});} else {this.$message.error(data.msg);}});}}};
</script>
<style lang="scss" scoped>.el-radio__input.is-checked .el-radio__inner {border-color: #00c292;background: #00c292;}.el-radio__input.is-checked .el-radio__inner {border-color: #00c292;background: #00c292;}.el-radio__input.is-checked .el-radio__inner {border-color: #00c292;background: #00c292;}.el-radio__input.is-checked+.el-radio__label {color: #00c292;}.el-radio__input.is-checked+.el-radio__label {color: #00c292;}.el-radio__input.is-checked+.el-radio__label {color: #00c292;}.h1 {margin-top: 10px;}body {padding: 0;margin: 0;}// .container {//    min-height: 100vh;//    text-align: center;//    // background-color: #00c292;//    padding-top: 20vh;//    background-image: url(../assets/img/bg.jpg);//    background-size: 100% 100%;//    opacity: 0.9;//  }// .login-form:before {// 	vertical-align: middle;// 	display: inline-block;// }// .login-form {// 	max-width: 500px;// 	padding: 20px 0;// 	width: 80%;// 	position: relative;// 	margin: 0 auto;// 	.label {// 		min-width: 60px;// 	}// 	.input-group {// 		max-width: 500px;// 		padding: 20px 0;// 		width: 80%;// 		position: relative;// 		margin: 0 auto;// 		display: flex;// 		align-items: center;// 		.input-container {// 			display: inline-block;// 			width: 100%;// 			text-align: left;// 			margin-left: 10px;// 		}// 		.icon {// 			width: 30px;// 			height: 30px;// 		}// 		.input {// 			position: relative;// 			z-index: 2;// 			float: left;// 			width: 100%;// 			margin-bottom: 0;// 			box-shadow: none;// 			border-top: 0px solid #ccc;// 			border-left: 0px solid #ccc;// 			border-right: 0px solid #ccc;// 			border-bottom: 1px solid #ccc;// 			padding: 0px;// 			resize: none;// 			border-radius: 0px;// 			display: block;// 			width: 100%;// 			height: 34px;// 			padding: 6px 12px;// 			font-size: 14px;// 			line-height: 1.42857143;// 			color: #555;// 			background-color: #fff;// 		}// 	}// }.nk-navigation {margin-top: 15px;a {display: inline-block;color: #fff;background: rgba(255, 255, 255, .2);width: 100px;height: 50px;border-radius: 30px;text-align: center;display: flex;align-items: center;margin: 0 auto;justify-content: center;padding: 0 20px;}.icon {margin-left: 10px;width: 30px;height: 30px;}}.register-container {margin-top: 10px;a {display: inline-block;color: #fff;max-width: 500px;height: 50px;border-radius: 30px;text-align: center;display: flex;align-items: center;margin: 0 auto;justify-content: center;padding: 0 20px;div {margin-left: 10px;}}}.container {height: 100vh;background-position: center center;background-size: cover;background-repeat: no-repeat;.login-form {right: 50%;top: 50%;height: auto;transform: translate3d(50%, -50%, 0);border-radius: 10px;background-color: rgba(255,255,255,.5);width: 420px;padding: 30px 30px 40px 30px;font-size: 14px;font-weight: 500;.h1 {margin: 0;text-align: center;line-height: 54px;font-size: 24px;color: #000;}.rgs-form {display: flex;flex-direction: column;justify-content: center;align-items: center;.input {width: 100%;& /deep/ .el-form-item__label {line-height: 40px;color: rgba(17, 16, 16, 1);font-size: #606266;}& /deep/ .el-input__inner {height: 40px;color: rgba(23, 24, 26, 1);font-size: 14px;border-width: 1px;border-style: solid;border-color: #606266;border-radius: 22px;background-color: #fff;}}.btn {margin: 0 10px;width: 88px;height: 44px;color: #fff;font-size: 14px;border-width: 1px;border-style: solid;border-color: #409EFF;border-radius: 22px;background-color: #409EFF;}.close {margin: 0 10px;width: 88px;height: 44px;color: #409EFF;font-size: 14px;border-width: 1px;border-style: solid;border-color: #409EFF;border-radius: 22px;background-color: #FFF;}}}}
</style>

这篇关于Java项目:82 springboot飘香水果购物网站的设计与实现的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/862553

相关文章

使用Python和OpenCV库实现实时颜色识别系统

《使用Python和OpenCV库实现实时颜色识别系统》:本文主要介绍使用Python和OpenCV库实现的实时颜色识别系统,这个系统能够通过摄像头捕捉视频流,并在视频中指定区域内识别主要颜色(红... 目录一、引言二、系统概述三、代码解析1. 导入库2. 颜色识别函数3. 主程序循环四、HSV色彩空间详解

PostgreSQL中MVCC 机制的实现

《PostgreSQL中MVCC机制的实现》本文主要介绍了PostgreSQL中MVCC机制的实现,通过多版本数据存储、快照隔离和事务ID管理实现高并发读写,具有一定的参考价值,感兴趣的可以了解一下... 目录一 MVCC 基本原理python1.1 MVCC 核心概念1.2 与传统锁机制对比二 Postg

SpringBoot整合Flowable实现工作流的详细流程

《SpringBoot整合Flowable实现工作流的详细流程》Flowable是一个使用Java编写的轻量级业务流程引擎,Flowable流程引擎可用于部署BPMN2.0流程定义,创建这些流程定义的... 目录1、流程引擎介绍2、创建项目3、画流程图4、开发接口4.1 Java 类梳理4.2 查看流程图4

一文详解如何在idea中快速搭建一个Spring Boot项目

《一文详解如何在idea中快速搭建一个SpringBoot项目》IntelliJIDEA作为Java开发者的‌首选IDE‌,深度集成SpringBoot支持,可一键生成项目骨架、智能配置依赖,这篇文... 目录前言1、创建项目名称2、勾选需要的依赖3、在setting中检查maven4、编写数据源5、开启热

C++中零拷贝的多种实现方式

《C++中零拷贝的多种实现方式》本文主要介绍了C++中零拷贝的实现示例,旨在在减少数据在内存中的不必要复制,从而提高程序性能、降低内存使用并减少CPU消耗,零拷贝技术通过多种方式实现,下面就来了解一下... 目录一、C++中零拷贝技术的核心概念二、std::string_view 简介三、std::stri

C++高效内存池实现减少动态分配开销的解决方案

《C++高效内存池实现减少动态分配开销的解决方案》C++动态内存分配存在系统调用开销、碎片化和锁竞争等性能问题,内存池通过预分配、分块管理和缓存复用解决这些问题,下面就来了解一下... 目录一、C++内存分配的性能挑战二、内存池技术的核心原理三、主流内存池实现:TCMalloc与Jemalloc1. TCM

OpenCV实现实时颜色检测的示例

《OpenCV实现实时颜色检测的示例》本文主要介绍了OpenCV实现实时颜色检测的示例,通过HSV色彩空间转换和色调范围判断实现红黄绿蓝颜色检测,包含视频捕捉、区域标记、颜色分析等功能,具有一定的参考... 目录一、引言二、系统概述三、代码解析1. 导入库2. 颜色识别函数3. 主程序循环四、HSV色彩空间

Java对异常的认识与异常的处理小结

《Java对异常的认识与异常的处理小结》Java程序在运行时可能出现的错误或非正常情况称为异常,下面给大家介绍Java对异常的认识与异常的处理,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参... 目录一、认识异常与异常类型。二、异常的处理三、总结 一、认识异常与异常类型。(1)简单定义-什么是

SpringBoot项目配置logback-spring.xml屏蔽特定路径的日志

《SpringBoot项目配置logback-spring.xml屏蔽特定路径的日志》在SpringBoot项目中,使用logback-spring.xml配置屏蔽特定路径的日志有两种常用方式,文中的... 目录方案一:基础配置(直接关闭目标路径日志)方案二:结合 Spring Profile 按环境屏蔽关

Python实现精准提取 PDF中的文本,表格与图片

《Python实现精准提取PDF中的文本,表格与图片》在实际的系统开发中,处理PDF文件不仅限于读取整页文本,还有提取文档中的表格数据,图片或特定区域的内容,下面我们来看看如何使用Python实... 目录安装 python 库提取 PDF 文本内容:获取整页文本与指定区域内容获取页面上的所有文本内容获取