本系统的使用对象包括管理员,教师和学生;
管理员可以管理学生的信息,管理教师的信息,管理课程信息,重置密码,查看学生成绩,审批开课申请等;
教师可以查询学生信息,查询个人信息,登记自己所教学生的成绩信息,修改自己的登录密码和个人信息,申请开设新的课程等;
学生可以查看个人信息,网上选课,查看选课,查看成绩,修改密码,上课签到等;
包括微信小程序前端和Web端后台。
前台:微信小程序
后台:Spring+SpringMVC+Mybatis
开发工具:idea、微信开发者工具
数据库:MySQL
服务器:Tomcat 8.5.5
其他:jdk1.8、Maven
(1)按时签到
(2)迟到了
formSubmit: function (e) {var that = this;var student ={};student.userid = e.detail.value.userid;student.username = e.detail.value.username;student.sex = this.data.sex;student.birthyear = this.data.ade = llegeid = Number(llegeid)+1;if (student.userid == ""|| student.username == "" || student.sex == "" || student.birthyear == "" || ade == "" || llegeid ==""){wx.showToast({title: '输入不能为空',icon: 'loading'})return;}wx.showModal({title: '提示',content: '确定要提交吗?',success(res) {if (firm) {wx.request({url: getApp().globalData.apiConfig.wxaddStudent,data: student,method: "POST",header: {'content-type': 'application/x-www-form-urlencoded'},success: function (res) {if (res.data.addstudent == "true") {wx.showToast({title: '添加成功',duration: 3000,icon: 'success'})setTimeout(function () {wx.navigateTo({url: "../../admin/index"})}, 2000)} else {wx.showToast({title: '添加失败',duration: 3000,icon: 'loading'})}}})} else if (res.cancel) {console.log('用户点击取消')}}})}
public class LoginController {//登录跳转@RequestMapping(value = "/login", method = {RequestMethod.GET})public String loginUI() throws Exception {return "/login";}@RequestMapping(value="/logout",method = {RequestMethod.GET})public String logout() throws Exception{return "/login";}//登录表单处理@RequestMapping(value = "/login", method = {RequestMethod.POST})public String login(Userlogin userlogin) throws Exception {UsernamePasswordToken token = new Username(),Password());Subject subject = Subject();subject.login(token);if (subject.hasRole("admin")) {return "redirect:/admin/showStudent";} else if (subject.hasRole("teacher")) {return "redirect:/teacher/showCourse";} else if (subject.hasRole("student")) {return "redirect:/student/showCourse";}return "/login";}}
本文发布于:2024-02-05 01:38:29,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170721081261844.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |