当前位置: 首页 > news >正文

做网站的最终目的wordpress 时光网

做网站的最终目的,wordpress 时光网,网站功能组件,wordpress 使用 mysqli大家好#xff0c;我是java1234_小锋老师#xff0c;看到一个不错的微信小程序图书馆座位预约管理系统(SpringBoot后端Vue管理端)#xff0c;分享下哈。 项目介绍 随着移动互联网技术的飞速发展和智能设备的普及#xff0c;图书馆服务模式正在经历深刻的变革。本论文旨在…大家好我是java1234_小锋老师看到一个不错的微信小程序图书馆座位预约管理系统(SpringBoot后端Vue管理端)分享下哈。 项目介绍 随着移动互联网技术的飞速发展和智能设备的普及图书馆服务模式正在经历深刻的变革。本论文旨在探讨如何利用微信小程序这一便捷高效的平台开发一款针对高校图书馆的座位预约管理系统以优化图书馆资源分配提升学生和教师的学习与研究效率。 本文首先分析了当前高校图书馆座位管理中存在的问题如座位空置率高、排队等候时间长、信息更新不及时等这些问题严重影响了图书馆资源的有效利用和用户体验。随后我们设计并实现了一款基于微信小程序的图书馆座位预约系统该系统集成了座位查询、在线预约、自动释放、实时通知等功能能够为用户提供全方位、个性化的座位服务。 系统采用微信小程序作为前端展示界面用户通过简单的操作即可完成座位预约后台服务器则负责处理数据存储、逻辑运算及与用户的交互。此外系统还引入了位置感知技术和大数据分析能够根据用户的历史行为和偏好推荐最佳座位并预测高峰时段帮助图书馆管理者进行资源调配。 实验结果表明该系统能够显著减少座位浪费提高图书馆空间利用率同时极大地提升了用户的满意度和图书馆的服务水平。未来我们将继续探索更多智能化的功能如人脸识别签退、智能推荐系统等以进一步提升图书馆座位管理系统的效率和用户体验。 系统展示 部分代码 package com.controller;import java.util.Arrays; import java.util.Calendar; import java.util.Date; import java.util.Map;import javax.servlet.http.HttpServletRequest;import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController;import com.annotation.IgnoreAuth; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.entity.TokenEntity; import com.entity.UsersEntity; import com.service.TokenService; import com.service.UsersService; import com.utils.CommonUtil; import com.utils.MPUtil; import com.utils.PageUtils; import com.utils.R; import com.utils.ValidatorUtils;/*** 登录相关*/ RequestMapping(users) RestController public class UsersController{Autowiredprivate UsersService userService;Autowiredprivate TokenService tokenService;/*** 登录*/IgnoreAuthPostMapping(value /login)public R login(String username, String password, String captcha, HttpServletRequest request) {UsersEntity user userService.selectOne(new EntityWrapperUsersEntity().eq(username, username));if(usernull || !user.getPassword().equals(password)) {return R.error(账号或密码不正确);}String token tokenService.generateToken(user.getId(),username, users, user.getRole());return R.ok().put(token, token);}/*** 注册*/IgnoreAuthPostMapping(value /register)public R register(RequestBody UsersEntity user){ // ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapperUsersEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}userService.insert(user);return R.ok();}/*** 退出*/GetMapping(value logout)public R logout(HttpServletRequest request) {request.getSession().invalidate();return R.ok(退出成功);}/*** 密码重置*/IgnoreAuthRequestMapping(value /resetPass)public R resetPass(String username, HttpServletRequest request){UsersEntity user userService.selectOne(new EntityWrapperUsersEntity().eq(username, username));if(usernull) {return R.error(账号不存在);}user.setPassword(123456);userService.update(user,null);return R.ok(密码已重置为123456);}/*** 列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,UsersEntity user){EntityWrapperUsersEntity ew new EntityWrapperUsersEntity();PageUtils page userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));return R.ok().put(data, page);}/*** 列表*/RequestMapping(/list)public R list( UsersEntity user){EntityWrapperUsersEntity ew new EntityWrapperUsersEntity();ew.allEq(MPUtil.allEQMapPre( user, user)); return R.ok().put(data, userService.selectListView(ew));}/*** 信息*/RequestMapping(/info/{id})public R info(PathVariable(id) String id){UsersEntity user userService.selectById(id);return R.ok().put(data, user);}/*** 获取用户的session用户信息*/RequestMapping(/session)public R getCurrUser(HttpServletRequest request){Long id (Long)request.getSession().getAttribute(userId);UsersEntity user userService.selectById(id);return R.ok().put(data, user);}/*** 保存*/PostMapping(/save)public R save(RequestBody UsersEntity user){ // ValidatorUtils.validateEntity(user);if(userService.selectOne(new EntityWrapperUsersEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}userService.insert(user);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody UsersEntity user){ // ValidatorUtils.validateEntity(user);UsersEntity u userService.selectOne(new EntityWrapperUsersEntity().eq(username, user.getUsername()));if(u!null u.getId()!user.getId() u.getUsername().equals(user.getUsername())) {return R.error(用户名已存在。);}userService.updateById(user);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){userService.deleteBatchIds(Arrays.asList(ids));return R.ok();} }templatedivdiv classcontainer :style{minHeight:100vh,alignItems:center,background:url(http://codegen.caihongy.cn/20220730/9902656b81254c719937f2da32e6b42c.png),display:flex,width:100%,backgroundSize:cover,backgroundPosition:center center,backgroundRepeat:no-repeat,justifyContent:center}el-form :style{padding:40px 50px 20px,boxShadow:0px 4px 10px 0px #A29988,margin:0 0 0 -500px,borderRadius:10px,background:#fff,width:420px,height:auto}div v-iftrue :style{padding:10px 20px,margin:0 0 20px 0,color:#000,textAlign:center,width:100%,lineHeight:40px,fontSize:20px,fontWeight:700,height:auto} classtitle-container基于微信小程序的图书馆座位预约登录/divdiv v-ifloginType1 classlist-item :style{width:100%,margin:0 auto 10px,alignItems:center,flexWrap:wrap,display:flex}div v-iffalse classlable :style{width:64px,lineHeight:44px,fontSize:14px,color:rgba(64, 158, 255, 1)}用户名/divinput :style{border:0px solid rgba(64, 158, 255, 1),padding:0 10px,boxShadow: 0px 4px 10px 0px rgba(0,0,0,0.3020),color:#333,outlineOffset:4px,width:100%,fontSize:14px,height:44px} placeholder请输入用户名 nameusername typetext v-modelrulesForm.username/divdiv v-ifloginType1 classlist-item :style{width:100%,margin:0 auto 10px,alignItems:center,flexWrap:wrap,display:flex}div v-iffalse classlable :style{width:64px,lineHeight:44px,fontSize:14px,color:rgba(64, 158, 255, 1)}密码/divinput :style{border:0px solid rgba(64, 158, 255, 1),padding:0 10px,boxShadow: 0px 4px 10px 0px rgba(0,0,0,0.3020),color:#333,outlineOffset:4px,width:100%,fontSize:14px,height:44px} placeholder请输入密码 namepassword typepassword v-modelrulesForm.password/divdiv :style{width:105%,padding:0 10px,margin:20px auto,height:auto} v-ifroles.length1 proploginInRole classlist-typeel-radio v-foritem in roles v-bind:keyitem.roleName v-modelrulesForm.role :labelitem.roleName{{item.roleName}}/el-radio/divdiv :style{width:100%,margin:20px auto,alignItems:center,flexWrap:wrap,justifyContent:flex-start,display:flex}el-button v-ifloginType1 :style{border:0,cursor:pointer,padding:0 24px,margin:0,outline:none,color:#fff,borderRadius:0,background:rgba(193, 44, 44, 1),width:100%,fontSize:16px,fontWeight:600,height:44px} typeprimary clicklogin() classloginInBt登录/el-button/diva hrefhttp://www.java1234.com/a/bysj/javaweb/ target_blankfont colorredJava1234收藏整理/font/a/el-form/div/div /template scriptimport menu from /utils/menu; export default {data() {return {baseUrl:this.$base.url,loginType: 1,rulesForm: {username: ,password: ,role: ,code: ,},menus: [],roles: [],tableName: ,codes: [{num: 1,color: #000,rotate: 10deg,size: 16px},{num: 2,color: #000,rotate: 10deg,size: 16px},{num: 3,color: #000,rotate: 10deg,size: 16px},{num: 4,color: #000,rotate: 10deg,size: 16px}],};},mounted() {let menus menu.list();this.menus menus;for (let i 0; i this.menus.length; i) {if (this.menus[i].hasBackLogin是) {this.roles.push(this.menus[i])}}},created() {this.getRandCode()},destroyed() {},methods: {//注册register(tableName){this.$storage.set(loginTable, tableName);this.$storage.set(pageFlag, register);this.$router.push({path:/register})},// 登陆login() {if (!this.rulesForm.username) {this.$message.error(请输入用户名);return;}if (!this.rulesForm.password) {this.$message.error(请输入密码);return;}if(this.roles.length1) {if (!this.rulesForm.role) {this.$message.error(请选择角色);return;}let menus this.menus;for (let i 0; i menus.length; i) {if (menus[i].roleName this.rulesForm.role) {this.tableName menus[i].tableName;}}} else {this.tableName this.roles[0].tableName;this.rulesForm.role this.roles[0].roleName;}this.$http({url: ${this.tableName}/login?username${this.rulesForm.username}password${this.rulesForm.password},method: post}).then(({ data }) {if (data data.code 0) {this.$storage.set(Token, data.token);this.$storage.set(role, this.rulesForm.role);this.$storage.set(sessionTable, this.tableName);this.$storage.set(adminName, this.rulesForm.username);this.$router.replace({ path: /index/ });} else {this.$message.error(data.msg);}});},getRandCode(len 4){this.randomString(len)},randomString(len 4) {let chars [a, b, c, d, e, f, g, h, i, j, k,l, m, n, o, p, q, r, s, t, u, v,w, x, y, z, A, B, C, D, E, F, G,H, I, J, K, L, M, N, O, P, Q, R,S, T, U, V, W, X, Y, Z, 0, 1, 2,3, 4, 5, 6, 7, 8, 9]let colors [0, 1, 2,3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f]let sizes [14, 15, 16, 17, 18]let output [];for (let i 0; i len; i) {// 随机验证码let key Math.floor(Math.random()*chars.length)this.codes[i].num chars[key]// 随机验证码颜色let code #for (let j 0; j 6; j) {let key Math.floor(Math.random()*colors.length)code colors[key]}this.codes[i].color code// 随机验证码方向let rotate Math.floor(Math.random()*60)let plus Math.floor(Math.random()*2)if(plus 1) rotate -rotatethis.codes[i].rotate rotate(rotatedeg)// 随机验证码字体大小let size Math.floor(Math.random()*sizes.length)this.codes[i].size sizes[size]px}},} }; /scriptstyle langscss scoped .container {min-height: 100vh;position: relative;background-repeat: no-repeat;background-position: center center;background-size: cover;background: url(http://codegen.caihongy.cn/20220730/9902656b81254c719937f2da32e6b42c.png);.list-item /deep/ .el-input .el-input__inner {border: 0px solid rgba(64, 158, 255, 1);padding: 0 10px;box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.3020);color: #333;width: 100%;font-size: 14px;outline-offset: 4px;height: 44px;}.list-code /deep/ .el-input .el-input__inner {border: 0px solid rgba(64, 158, 255, 1);padding: 0 10px;box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.3020);outline: none;color: #333;width: 100%;font-size: 14px;height: 44px;}.list-type /deep/ .el-radio__input .el-radio__inner {margin: 5px 0;background: rgba(53, 53, 53, 0);border-color: #666666;}.list-type /deep/ .el-radio__input.is-checked .el-radio__inner {margin: 5px 0;background: rgba(0, 0, 0, 1);border-color: rgba(0, 0, 0, 1);}.list-type /deep/ .el-radio__label {color: rgba(112, 112, 112, 1);font-size: 14px;}.list-type /deep/ .el-radio__input.is-checked.el-radio__label {color: rgba(0, 0, 0, 1);font-size: 14px;} } /style源码下载 下载地址 链接https://pan.baidu.com/s/1WxuQDrQS204upRoyMhhg2A  提取码1234
http://www.tj-hxxt.cn/news/229359.html

相关文章:

  • 商业网站成功的原因在线营销推广
  • 北京购物网站建设建同城购物网站经历
  • 电商网站如何备案wordpress ftp存储
  • 湛江电气建站软件网站首页开发收费
  • 玉溪市建设厅官方网站网站备案IP与空间
  • 淘宝客网站建设教程梅县区住房和城市建设局网站
  • 百度助手官网企业优化网站
  • 开发网站用什么语言如何在阿里云自主建网站
  • 5000个网站资源做外链外贸网店
  • 网站优化公司排名深圳深圳网络营销公司
  • 泾川网站城镇建设规化图烟台市建设局网站
  • 网站建设如何入账如何做网站ppt
  • 贵阳网站开发外包公司代刷网网站怎么做
  • 企业网站pc优化淘客推广计划
  • 3d建模怎么做网站旋转快捷的网站建设排行榜
  • 商务网站建设毕业设计模板网站建设实践试卷
  • 东莞一站式网站建设广告联盟
  • 网站制作网站做网怎样选择网站建设
  • 建设外贸网站公司青岛百度网站排名优化
  • 花生壳可以做网站吗计算机初学者入门教程
  • 肃宁县做网站自己做自媒体在哪个网站比较好
  • 做网站的工作记录网站开发项目经理
  • 溧阳 招网站开发东莞网站免费制作
  • 网站开发 网页设计北京师范大学出版社快速做网站教程
  • 怎么做网站外贸123上网
  • 郑州集团网站建设哪家好2019年做网站还有机会吗
  • wordpress建站准备网络广告推广是怎么做的
  • 茶叶包装设计成都抖音seo
  • 胶州做网站的不是搜索网站的是
  • 企业网站建设合同一个网站多个域名的seo优化