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

网站意识形态建设开通一个微信小程序

网站意识形态建设,开通一个微信小程序,电商网站开发价格,wordpress无法访问上传的图面大家好#xff0c;我是java1234_小锋老师#xff0c;看到一个不错的SpringBootVue民宿(预约)系统#xff0c;分享下嘿嘿。 项目介绍 传统办法管理信息首先需要花费的时间比较多#xff0c;其次数据出错率比较高#xff0c;而且对错误的数据进行更改也比较困难#xff0c… 大家好我是java1234_小锋老师看到一个不错的SpringBootVue民宿(预约)系统分享下嘿嘿。 项目介绍 传统办法管理信息首先需要花费的时间比较多其次数据出错率比较高而且对错误的数据进行更改也比较困难最后检索数据费事费力。因此在计算机上安装民宿管理系统软件来发挥其高效地信息处理的作用可以规范信息管理流程让管理工作可以系统化和程序化同时民宿管理系统的有效运用可以帮助管理人员准确快速地处理信息。 民宿管理系统在对开发工具的选择上也很慎重为了便于开发实现选择的开发工具为Eclipse选择的数据库工具为Mysql。以此搭建开发环境实现民宿管理系统的功能。其中管理员管理用户新闻公告。 民宿管理系统是一款运用软件开发技术设计实现的应用系统在信息处理上可以达到快速的目的不管是针对数据添加数据维护和统计以及数据查询等处理要求民宿管理系统都可以轻松应对。 系统展示 部分代码 package com.controller;import java.util.Arrays; import java.util.Map;import javax.servlet.http.HttpServletRequest;import com.service.UsersService; import org.springframework.beans.factory.annotation.Autowired; 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.RestController;import com.annotation.IgnoreAuth; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.entity.UsersEntity; import com.service.TokenService; import com.utils.MPUtil; import com.utils.PageUtils; import com.utils.R;/*** 登录相关*/ RequestMapping(users) RestController public class UsersController {Autowiredprivate UsersService usersService;Autowiredprivate TokenService tokenService;/*** 登录*/IgnoreAuthPostMapping(value /login)public R login(String username, String password, String captcha, HttpServletRequest request) {UsersEntity user usersService.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());R r R.ok();r.put(token, token);r.put(role,user.getRole());r.put(userId,user.getId());return r;}/*** 注册*/IgnoreAuthPostMapping(value /register)public R register(RequestBody UsersEntity user){ // ValidatorUtils.validateEntity(user);if(usersService.selectOne(new EntityWrapperUsersEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}usersService.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 usersService.selectOne(new EntityWrapperUsersEntity().eq(username, username));if(usernull) {return R.error(账号不存在);}user.setPassword(123456);usersService.update(user,null);return R.ok(密码已重置为123456);}/*** 列表*/RequestMapping(/page)public R page(RequestParam MapString, Object params,UsersEntity user){EntityWrapperUsersEntity ew new EntityWrapperUsersEntity();PageUtils page usersService.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, usersService.selectListView(ew));}/*** 信息*/RequestMapping(/info/{id})public R info(PathVariable(id) String id){UsersEntity user usersService.selectById(id);return R.ok().put(data, user);}/*** 获取用户的session用户信息*/RequestMapping(/session)public R getCurrUser(HttpServletRequest request){Integer id (Integer)request.getSession().getAttribute(userId);UsersEntity user usersService.selectById(id);return R.ok().put(data, user);}/*** 保存*/PostMapping(/save)public R save(RequestBody UsersEntity user){ // ValidatorUtils.validateEntity(user);if(usersService.selectOne(new EntityWrapperUsersEntity().eq(username, user.getUsername())) !null) {return R.error(用户已存在);}user.setPassword(123456);usersService.insert(user);return R.ok();}/*** 修改*/RequestMapping(/update)public R update(RequestBody UsersEntity user){ // ValidatorUtils.validateEntity(user);usersService.updateById(user);//全部更新return R.ok();}/*** 删除*/RequestMapping(/delete)public R delete(RequestBody Long[] ids){usersService.deleteBatchIds(Arrays.asList(ids));return R.ok();} }templatedivdiv classcontainer loginIn stylebackgroundImage: url(/minsuguanliw/img/back-img-bg.jpg)div :class2 1 ? left : 2 2 ? left center : left right stylebackgroundColor: rgba(255, 255, 255, 0.15)el-form classlogin-form label-positionleft :label-width1 3 ? 56px : 0pxdiv classtitle-containerh3 classtitle stylecolor: rgba(7, 0, 255, 1)民宿管理系统/h3/divel-form-item :label1 3 ? 用户名 : :classstyle1span v-if1 ! 3 classsvg-container stylecolor:rgba(18, 18, 18, 1);line-height:44pxsvg-icon icon-classuser //spanel-input placeholder请输入用户名 nameusername typetext v-modelrulesForm.username //el-form-itemel-form-item :label1 3 ? 密码 : :classstyle1span v-if1 ! 3 classsvg-container stylecolor:rgba(18, 18, 18, 1);line-height:44pxsvg-icon icon-classpassword //spanel-input placeholder请输入密码 namepassword typepassword v-modelrulesForm.password //el-form-itemel-form-item v-if0 1 classcode :label1 3 ? 验证码 : :classstyle1span v-if1 ! 3 classsvg-container stylecolor:rgba(18, 18, 18, 1);line-height:44pxsvg-icon icon-classcode //spanel-input placeholder请输入验证码 namecode typetext v-modelrulesForm.code /div classgetCodeBt clickgetRandCode(4) styleheight:44px;line-height:44pxspan v-for(item, index) in codes :keyindex :style{color:item.color,transform:item.rotate,fontSize:item.size}{{ item.num }}/span/div/el-form-itemel-form-item label角色 proploginInRole classroleel-radiov-foritem in menusv-ifitem.hasBackLogin是v-bind:keyitem.roleNamev-modelrulesForm.role:labelitem.roleName{{item.roleName}}/el-radio/el-form-itemel-button typeprimary clicklogin() classloginInBt stylepadding:0;font-size:16px;border-radius:4px;height:44px;line-height:44px;width:100%;backgroundColor:rgba(117, 113, 249, 1); borderColor:rgba(117, 113, 249, 1); color:rgba(255, 255, 255, 1){{2 1 ? 登录 : login}}/el-buttonel-form-item classsettingdiv stylecolor:rgba(0, 150, 136, 1) classregister clickregister(yonghu)用户注册/div/el-form-itema hrefhttp://www.java1234.com/a/bysj/javaweb/ target_blankfont colorredJava1234收藏整理/font/a/el-form/div/div/div /template scriptimport menu from /utils/menu;export default {data() {return {rulesForm: {username: ,password: ,role: ,code: ,},menus: [],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;},created() {this.setInputColor()this.getRandCode()},methods: {setInputColor(){this.$nextTick((){document.querySelectorAll(.loginIn .el-input__inner).forEach(el{el.style.backgroundColor rgba(202, 202, 202, 1)el.style.color rgba(129, 129, 129, 1)el.style.height 46pxel.style.lineHeight 46pxel.style.borderRadius 25px})document.querySelectorAll(.loginIn .style3 .el-form-item__label).forEach(el{el.style.height 46pxel.style.lineHeight 46px})document.querySelectorAll(.loginIn .el-form-item__label).forEach(el{el.style.color rgb(0 0 0)})setTimeout((){document.querySelectorAll(.loginIn .role .el-radio__label).forEach(el{el.style.color rgb(0 0 0)})},350)})},register(tableName){this.$storage.set(loginTable, tableName);this.$router.push({path:/register})},// 登陆login() {let code for(let i in this.codes) {code this.codes[i].num}if (0 1 !this.rulesForm.code) {this.$message.error(请输入验证码);return;}if (0 1 this.rulesForm.code.toLowerCase() ! code.toLowerCase()) {this.$message.error(验证码输入有误);this.getRandCode()return;}if (!this.rulesForm.username) {this.$message.error(请输入用户名);return;}if (!this.rulesForm.password) {this.$message.error(请输入密码);return;}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;}}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(userId, data.userId);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}},}}; /script style langscss scoped.loginIn {min-height: 100vh;position: relative;background-repeat: no-repeat;background-position: center center;background-size: cover;.left {position: absolute;left: 0;top: 0;width: 360px;height: 100%;.login-form {background-color: transparent;width: 100%;right: inherit;padding: 0 12px;box-sizing: border-box;display: flex;justify-content: center;flex-direction: column;}.title-container {text-align: center;font-size: 24px;.title {margin: 20px 0;}}.el-form-item {position: relative;.svg-container {padding: 6px 5px 6px 15px;color: #889aa4;vertical-align: middle;display: inline-block;position: absolute;left: 0;top: 0;z-index: 1;padding: 0;line-height: 40px;width: 30px;text-align: center;}.el-input {display: inline-block;height: 40px;width: 100%; /deep/ input {background: transparent;border: 0px;-webkit-appearance: none;padding: 0 15px 0 30px;color: #fff;height: 40px;}}}}.center {position: absolute;left: 50%;top: 50%;width: 360px;transform: translate3d(-50%,-50%,0);height: 446px;border-radius: 8px;}.right {position: absolute;left: inherit;right: 0;top: 0;width: 360px;height: 100%;}.code {.el-form-item__content {position: relative;.getCodeBt {position: absolute;right: 0;top: 0;line-height: 40px;width: 100px;background-color: rgba(51,51,51,0.4);color: #fff;text-align: center;border-radius: 0 4px 4px 0;height: 40px;overflow: hidden;span {padding: 0 5px;display: inline-block;font-size: 16px;font-weight: 600;}}.el-input { /deep/ input {padding: 0 130px 0 30px;}}}}.setting { /deep/ .el-form-item__content {padding: 0 15px;box-sizing: border-box;line-height: 32px;height: 32px;font-size: 14px;color: #999;margin: 0 !important;.register {float: left;width: 50%;}.reset {float: right;width: 50%;text-align: right;}}}.style2 {padding-left: 30px;.svg-container {left: -30px !important;}.el-input { /deep/ input {padding: 0 15px !important;}}}.code.style2, .code.style3 {.el-input { /deep/ input {padding: 0 115px 0 15px;}}}.style3 { /deep/ .el-form-item__label {padding-right: 6px;}.el-input { /deep/ input {padding: 0 15px !important;}}}.role { /deep/ .el-form-item__label {width: 56px !important;} /deep/ .el-radio {margin-right: 12px;}}} /style源码代码 链接https://pan.baidu.com/s/1qvy-BgQNzK4cR8LNSieDxQ  提取码1234
文章转载自:
http://www.morning.zbqry.cn.gov.cn.zbqry.cn
http://www.morning.nnpwg.cn.gov.cn.nnpwg.cn
http://www.morning.zpyxl.cn.gov.cn.zpyxl.cn
http://www.morning.qlsyf.cn.gov.cn.qlsyf.cn
http://www.morning.kcdts.cn.gov.cn.kcdts.cn
http://www.morning.ckbmz.cn.gov.cn.ckbmz.cn
http://www.morning.jnvivi.com.gov.cn.jnvivi.com
http://www.morning.hwprz.cn.gov.cn.hwprz.cn
http://www.morning.kntbk.cn.gov.cn.kntbk.cn
http://www.morning.ktmnq.cn.gov.cn.ktmnq.cn
http://www.morning.ksgjn.cn.gov.cn.ksgjn.cn
http://www.morning.jcpq.cn.gov.cn.jcpq.cn
http://www.morning.lfbsd.cn.gov.cn.lfbsd.cn
http://www.morning.sthp.cn.gov.cn.sthp.cn
http://www.morning.lktjj.cn.gov.cn.lktjj.cn
http://www.morning.htqrh.cn.gov.cn.htqrh.cn
http://www.morning.phlrp.cn.gov.cn.phlrp.cn
http://www.morning.gfrtg.com.gov.cn.gfrtg.com
http://www.morning.epeij.cn.gov.cn.epeij.cn
http://www.morning.qrqg.cn.gov.cn.qrqg.cn
http://www.morning.cfpq.cn.gov.cn.cfpq.cn
http://www.morning.ksjmt.cn.gov.cn.ksjmt.cn
http://www.morning.kmqlf.cn.gov.cn.kmqlf.cn
http://www.morning.nbqwr.cn.gov.cn.nbqwr.cn
http://www.morning.ggrzk.cn.gov.cn.ggrzk.cn
http://www.morning.btwlp.cn.gov.cn.btwlp.cn
http://www.morning.gynlc.cn.gov.cn.gynlc.cn
http://www.morning.hnpkr.cn.gov.cn.hnpkr.cn
http://www.morning.rmxwm.cn.gov.cn.rmxwm.cn
http://www.morning.xcjwm.cn.gov.cn.xcjwm.cn
http://www.morning.httpm.cn.gov.cn.httpm.cn
http://www.morning.kkzwn.cn.gov.cn.kkzwn.cn
http://www.morning.kgtyj.cn.gov.cn.kgtyj.cn
http://www.morning.gbybx.cn.gov.cn.gbybx.cn
http://www.morning.bhwz.cn.gov.cn.bhwz.cn
http://www.morning.qsszq.cn.gov.cn.qsszq.cn
http://www.morning.yrdkl.cn.gov.cn.yrdkl.cn
http://www.morning.qtzqk.cn.gov.cn.qtzqk.cn
http://www.morning.hbhnh.cn.gov.cn.hbhnh.cn
http://www.morning.qgtbx.cn.gov.cn.qgtbx.cn
http://www.morning.bmts.cn.gov.cn.bmts.cn
http://www.morning.wqsjx.cn.gov.cn.wqsjx.cn
http://www.morning.sgfnx.cn.gov.cn.sgfnx.cn
http://www.morning.kxnnh.cn.gov.cn.kxnnh.cn
http://www.morning.wgkz.cn.gov.cn.wgkz.cn
http://www.morning.ssjtr.cn.gov.cn.ssjtr.cn
http://www.morning.skdhm.cn.gov.cn.skdhm.cn
http://www.morning.htsrm.cn.gov.cn.htsrm.cn
http://www.morning.nnttr.cn.gov.cn.nnttr.cn
http://www.morning.tznlz.cn.gov.cn.tznlz.cn
http://www.morning.zkjqj.cn.gov.cn.zkjqj.cn
http://www.morning.dycbp.cn.gov.cn.dycbp.cn
http://www.morning.lwqst.cn.gov.cn.lwqst.cn
http://www.morning.nqmkr.cn.gov.cn.nqmkr.cn
http://www.morning.ldmtq.cn.gov.cn.ldmtq.cn
http://www.morning.kybpj.cn.gov.cn.kybpj.cn
http://www.morning.qhvah.cn.gov.cn.qhvah.cn
http://www.morning.bmmhs.cn.gov.cn.bmmhs.cn
http://www.morning.yskhj.cn.gov.cn.yskhj.cn
http://www.morning.hhmfp.cn.gov.cn.hhmfp.cn
http://www.morning.fbpdp.cn.gov.cn.fbpdp.cn
http://www.morning.rnqrl.cn.gov.cn.rnqrl.cn
http://www.morning.wylpy.cn.gov.cn.wylpy.cn
http://www.morning.btlmb.cn.gov.cn.btlmb.cn
http://www.morning.ysbrz.cn.gov.cn.ysbrz.cn
http://www.morning.ysybx.cn.gov.cn.ysybx.cn
http://www.morning.ntqqm.cn.gov.cn.ntqqm.cn
http://www.morning.qnhpq.cn.gov.cn.qnhpq.cn
http://www.morning.yysqz.cn.gov.cn.yysqz.cn
http://www.morning.tnnfy.cn.gov.cn.tnnfy.cn
http://www.morning.csznh.cn.gov.cn.csznh.cn
http://www.morning.tllhz.cn.gov.cn.tllhz.cn
http://www.morning.drbd.cn.gov.cn.drbd.cn
http://www.morning.hcwjls.com.gov.cn.hcwjls.com
http://www.morning.jrhcp.cn.gov.cn.jrhcp.cn
http://www.morning.xnflx.cn.gov.cn.xnflx.cn
http://www.morning.wspyb.cn.gov.cn.wspyb.cn
http://www.morning.ptqbt.cn.gov.cn.ptqbt.cn
http://www.morning.oumong.com.gov.cn.oumong.com
http://www.morning.lwgrf.cn.gov.cn.lwgrf.cn
http://www.tj-hxxt.cn/news/250058.html

相关文章:

  • 优秀的国内企业网站网页设计用的软件
  • 网站快速搜索品牌官方网站建设需要什么
  • 网站代码优化视频教程云指官网
  • 保定网站制作费用建立网站的目的
  • 建设网站方式有哪些直播小程序源码
  • 做网站需要什么人才官方网站app
  • 河南和城乡建设厅网站企业管理咨询收费方案明细
  • 电商网站布局设计专业制作门牌
  • 哪家网站建设电话wordpress电商建站
  • 东方网站建设网站外包维护一年多少钱
  • 防蚊手环移动网站建设wordpress porto主题
  • 太原网站制作计划雅思培训班
  • 自适应网站主要用什么做wordpress数字中文主题
  • 网站设计联系手机网站关键词seo
  • 环企优站网站建设网站开发顶岗实习报告
  • 网站备案主体是什么视觉网站建设
  • 健身网站开发可行性分析怎么做关键词优化排名
  • 网站面包屑导航设计特点大连住建部官方网站
  • 网站中的分享怎么做互联网营销方式
  • 大连零基础网站建设培训中心html5网站模板移动端
  • 门户网站建设课程设计推广网app下载
  • 甘肃省建设监理协会网站做网站能挣钱吗
  • 企业网站搭建教程海南综合网站
  • 网站建设的基本话术华为网站建设的目标是否明确
  • 汽车零件销售网站开发公司网站维护分工
  • wordpress网站 800cdn怎样做视频电影网站
  • 手机网站建设规划书沐众科技网站建设
  • 有好看图片的软件网站模板东莞专业网络营销公司
  • 深圳市网站备案需求那家公司装修比较好
  • 网站开发的技术支持wordpress链接尾缀