×

微信小程序开发毕业论文

微信小程序开发毕业论文(论文双选小程序怎么弄)

admin admin 发表于2024-03-29 05:14:16 浏览20 评论0

抢沙发发表评论

本篇文章给大家谈谈微信小程序开发毕业论文,以及论文双选小程序怎么弄对应的知识点,文章可能有点长,但是希望大家可以阅读完,增长自己的知识,最重要的是希望对各位有所帮助,可以解决了您的问题,不要忘了收藏本站喔。

本文目录

论文双选小程序怎么弄

毕业论文选题系统是基于微信小程序,后端是基于java编程语言,ssm框架,mysql数据库和IDEA工具开发,本系统分为学生,教师,管理员三个角色;学生可以注册登陆系统,查看系统公告,选课论文课题,提交课题论文,查看论文审核,答辩结果等信息;教师可以发布课题,审核学生论文,课题答辩结果,在线回复学生留言;管理员对学生,教师,公告,论文,选题,答辩等进行管理;本系统功能齐全,文档齐全,适合作为微信小程序毕业设计来参考和学习。一.技术环境jdk版本:1.8 及以上ide工具:IDEA ,微信小程序开发工具数据库: mysql5.7 (必须5.7)编程语言: Javatomcat: 8.0 及以上java框架:SSMmaven: 3.6.1前端:layui ,微信详细技术:HTML+CSS+JS+JSP+JAVA+SSM+MYSQL+JQUERY+MAVEN+微信开发工具二.项目文件(项目获取请看文末官网)在这里插入图片描述三.系统功能在这里插入图片描述四.代码示例package com.lmu.controller;/** * 和登陆有关的都在这里 */import com.opensymphony.xwork2.ActionContext;import com.opensymphony.xwork2.ActionSupport;import com.lmu.model.Role;import com.lmu.model.User;import com.lmu.service.RoleService;import com.lmu.service.UserService;import com.lmu.utils.JsonUtils;import com.lmu.utils.UserUtils;import org.apache.commons.collections.map.HashedMap;import org.apache.struts2.ServletActionContext;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.context.annotation.Scope;import org.springframework.stereotype.Controller;import java.io.IOException;import java.util.HashMap;import java.util.Map;@Controller("loginController")@Scope("prototype")public class LoginController extends ActionSupport { @Autowired private UserService userService; @Autowired private RoleService roleService; private User user; private Map《String, Object》 map = new HashMap(); public User getUser() { return user; } public void setUser(User user) { this.user = user; } public UserService getUserService() { return userService; } public void setUserService(UserService userService) { this.userService = userService; } /** * 用户登陆 * @return */public void index() throws IOException { User user1 = userService.getUser(user); if (user1 != null){ if (user1.getIsSh() == 1){ if (user1.getRole().getEnName().equals("admin")){ ActionContext.getContext().getSession().put("user", user1); } if (user1.getRole().getEnName().equals("js")){ ActionContext.getContext().getSession().put("user1", user1); } if (user1.getRole().getEnName().equals("xs")){ ActionContext.getContext().getSession().put("user2", user1); } map.put("flag", 1); map.put("url", "login_indexs.do"); map.put("id", user1.getId()); JsonUtils.toJson(map); } else { map.put("flag", 2); JsonUtils.toJson(map); } } else { map.put("flag", 3); JsonUtils.toJson(map); } } public String indexs() throws IOException { User u = UserUtils.getUser(); if (u != null){ ActionContext.getContext().put("user", u); String ss = u.getRole().getEnName(); ActionContext.getContext().put("role", u.getRole().getEnName()); } return SUCCESS; }//登陆页面public String login() { return SUCCESS;} //退出public String tuichu() {ActionContext ac = ActionContext.getContext();Map session = ac.getSession();session.remove("userName");session.remove("userId");ServletActionContext.getRequest().getSession().invalidate();return "login";}}package com.lmu.controller;/** * 用户新增 */import com.opensymphony.xwork2.ActionContext;import com.opensymphony.xwork2.ActionSupport;import com.opensymphony.xwork2.ModelDriven;import com.lmu.model.Role;import com.lmu.model.User;import com.lmu.service.RoleService;import com.lmu.service.UserService;import com.lmu.utils.JsonUtils;import com.lmu.utils.Pager;import com.lmu.utils.UserUtils;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.context.annotation.Scope;import org.springframework.stereotype.Controller;import java.awt.event.FocusEvent;import java.io.IOException;import java.util.Date;import java.util.HashMap;import java.util.Map;@Controller("userController")@Scope("prototype")public class UserController extends ActionSupport implements ModelDriven《User》 { @Autowired private UserService userService; @Autowired private RoleService roleService; private User user; private Integer userId; private Map《String, Object》 map = new HashMap();/** * list * * @return */ public String list() throws IOException { User user1 = UserUtils.getUser(); if (user1 == null || user1.getId() == null){ ActionContext.getContext().put("login", 1); return SUCCESS; } Pager《User》 pagers = null; Role role = user1.getRole(); if (role.getEnName().equals("admin")) { pagers = userService.getList(user); ActionContext.getContext().put("pagers", pagers); ActionContext.getContext().put("user", user1); ActionContext.getContext().put("role", role); ActionContext.getContext().put("bean", user); return SUCCESS; } else if (role.getEnName().equals("xs") || role.getEnName().equals("js")) { pagers = userService.getList(user1); ActionContext.getContext().put("pagers", pagers); ActionContext.getContext().put("bean", user); return SUCCESS; } return null; }/** * 跳转add * * @return */ public String add() { Pager《Role》 pagers = roleService.pagers(); ActionContext.getContext().put("pagers", pagers); return SUCCESS; } /** * 查询修改 * * @return */ public String edit() { User bean = userService.findById(userId); Pager《Role》 pagers = roleService.pagers(); ActionContext.getContext().put("bean", bean); ActionContext.getContext().put("pagers", pagers); return SUCCESS; }/** * 审核 * * @return */ public void updateSh() throws IOException { user.setIsSh(1); userService.updates(user); map.put("flag", true); map.put("url", "user_list.do"); JsonUtils.toJson(map); } /** * 更新 * * @return */ public String update() throws IOException { if (user.getPass().equals("")){ user.setPass(null); } userService.updates(user); map.put("flag", true); map.put("url", "user_list.do"); JsonUtils.toJson(map); return SUCCESS; } /** * 保存 * * @return */ public void save() throws IOException { if (userService.getUser(user) != null){ map.put("flag", false); map.put("url", "login_login.do"); JsonUtils.toJson(map); } else { user.setTime(new Date()); userService.save(user); map.put("flag", true); map.put("url", "login_login.do"); JsonUtils.toJson(map); } } public void delete() throws IOException { User user1 = userService.findById(userId); user1.setIsDelete(1); userService.update(user1); map.put("flag", true); map.put("url", "user_list.do"); JsonUtils.toJson(map); } @Override public User getModel() { if (user == null) { user = new User(); } return user; } public Integer getUserId() { return userId; } public void setUserId(Integer userId) { this.userId = userId; } public User getUser() { return user; } public void setUser(User user) { this.user = user; }}

小程序开发经验总结

最近一直在做小程序,工作中也遇到了一些问题,踩了一些坑,所以想着写篇文章记录下来,并借此将小程序开发的相关知识进行梳理,方便以后参考,也为刚刚接触小程序的人提供一些思路方法,互相学习,共同进步。 1、微信小程序的目录结构及配置说明 app.json是小程序的全局配置文件,所有配置项key必须使用 双引号括起来 ,value值为字符串类型的也必须使用双引号, 不支持单引号 。 1.1 pages pages选项是必须配置的。该配置项注册了小程序所有页面的地址,其中每一项都是页面的 路径+文件名 。每一个页面都是由.json、.js、.wxml、.wxss四个文件组成,并且 四个文件的名字必须要一致 。 1.2   tabBar tabBar 配置项指定 tab 栏的表现,以及 tab 切换时显示的对应页面。其中 list 接受一个数组,只能配置最少 2 个、最多 5 个 tab 1.3 usingComponents 使用自定义组件或者插件提供的组件前,必须先在这里声明 2、开发微信小程序遇到的问题及解决办法2.1 双向绑定 微信小程序不支持通过v-model的方式实现自动双向绑定,需要给表单元素通过绑定事件,并使用this.setData来赋值实现。 2.2 computed和watch 微信小程序默认是不支持computed和watch的,如需要使用这两项功能,需要安装miniprogram-computed ,安装方法见 官方文档 2.3 对象赋值 如果给对象的属性赋值,可以使用this.setData({’obj.key’:value})来赋值,但是如果给某个属性名是变量的属性赋值,通过这种方法是会报错的,经过多次尝试,发现使用如下的方式赋值成功。 let newObj = `obj.${key}` this.setData({ : value }) 2.4 scroll-view 当页面存在弹框容器,并且弹框里的内容是需要滚动条滚动展示时,如果弹框下面那层的容器使用view元素的话,会导致滚动弹框内容时,同时会触发弹框下面那层的页面容器也会一起滚动,解决此问题可以将弹框下面的容器使用scroll-view元素替代view元素 3、小程序测试和发布 由于服务器域名request合法域名每个月 只能修改5次 ,因此在本地开发小程序时,需要在微信调试工具中设置不校验合法域名。等小程序上线前再一次性将所有域名添加到小程序管理后台。 以上便是此次小程序开发中积累的一些经验,希望能给刚刚接触小程序的人提供一些思路方法,在以后的开发中,如果遇到新的问题,继续更新文档......

微信小程序论文提纲怎么写

主要写法如下:?1.先拟标题;?2.写出总论点;?3.考虑全篇总的安排:从几个方面,以什么顺序来论述总论点,这是论文结构的骨架;?4.大的项目安排妥当之后,再逐个考虑每个项目的下位论点,直到段一级,写出段的论点句(即段旨);?5.依次考虑各个段的安排,把准备使用的材料按顺序编码,以便写作时使用6.全面检查,作必要的增删。论文提纲可分为简单提纲和详细提纲两种。简单提纲是高度概括的,只提示论文的要点,如何展开则不涉及。这种提纲虽然简单,但由于它是经过深思熟虑构成的,写作可以顺利进行。没有这种准备,边想边写很难顺利地写下去。

关于微信小程序开发毕业论文,论文双选小程序怎么弄的介绍到此结束,希望对大家有所帮助。