首页 > 其他分享 >团队冲刺7

团队冲刺7

时间:2023-04-21 23:33:32浏览次数:33  
标签:username 团队 登录 auto 冲刺 alert state password

1.任务量:10天

  目前已经花费的时间:6天

  还剩余的时间:4天

3.

 4.vue的部分完成,只不过还没调试vue和springboot的接口。

<template>
  <div class="login-wrap">
    <el-form class="login-container">
      <h1 class="title">用户登录:</h1>
      <el-form-item>
        <el-input
          type="text"
          placeholder="用户账号"
          v-model="username"
          autocomplete="off"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-input
          type="password"
          placeholder="用户密码"
          v-model="password"
          autocomplete="off"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="doLogin" style="width: 100%">登录</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="toRegister" style="width: 100%">注册</el-button>
      </el-form-item>
        <!-- <el-link type="primary" @click="toRegister">用户注册</el-link> -->
        <!-- <el-link type="primary">忘记密码</el-link> -->
    </el-form>
  </div>
</template>
 
<script>
import { reqUserLogin } from '@/api';
import { mapState } from "vuex";
export default {
  name: "Login",
  data: function () {
    return {
      username: "",
      password: "",
    };
  },
  // mounted() {
  //   //派发action,通知vuex发请求
  //   this.$store.dispatch("userLoginMock");
  // },
  // computed: {
  //   ...mapState({
  //      usermock: (state) => state.user.usermock,
  //     //bookList: (state) => state.booktext.bookList,
  //   }),
  // },
  methods: {
      doLogin (){
      //alert(132);
       const { username, password } = this;
      //在发登录请求
      try {
        //登录成功
        this.$store.dispatch("userLoginMock", { username, password });
        // const res = reqUserLogin({username,password});
        // console.log(res);
        // console.log(222);
        if (JSON.parse(sessionStorage.getItem("userinfo"))) {
           alert("登录成功")
        }else{
          alert("登陆失败")
        }
         //  let goPath = this.$route.query.redirect||'/home';
        //跳转到首页
        this.$router.push('search');
        } catch (error) {
        alert(error.message);
      }
      },
      
    toRegister: function () {
      this.$router.push("/register");
    },
  },
};
</script>
 
<style>
.login-wrap {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding-top: 10%;
}

.login-container {
  border-radius: 10px;
  margin: 0px auto;
  width: 350px;
  padding: 30px 35px 15px 35px;
  background: #fff;
  border: 1px solid #eaeaea;
  text-align: left;
  box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.1);
}

.title {
  margin: 0px auto 40px auto;
  text-align: center;
  color: #505458;
}
</style>

 

标签:username,团队,登录,auto,冲刺,alert,state,password
From: https://www.cnblogs.com/teamno12/p/17342215.html

相关文章

  • 青岛市程序设计竞赛冲刺①
    2021年青岛市小学组第三题原题: 解题代码:#include<iostream>#include<cstdio>#include<cmath>#include<cstring>#include<algorithm>usingnamespacestd;constintN=5e2+5,dx[4]={0,0,-1,1},dy[4]={1,-1,0,0};intn,m,vis[N][N],ans=0;charc......
  • 冲刺6
    这个作业属于哪个课程2023软件工程-双学位这个作业要求在哪里团队作业4——项目冲刺这个作业的目标团队项目Scrum冲刺day6目录1.会议1.1今日已完成的工作1.2明日计划完成的工作1.3工作中遇到的困难2.燃尽图3.代码/文档签入记录签入记录对应的Issue内容与链接,代......
  • 团队项目冲刺02
    信息详情这个作业属于哪个课程https://edu.cnblogs.com/campus/gdgy/2023softwareengine这个作业要求在哪里https://edu.cnblogs.com/campus/gdgy/2023softwareengine/homework/12920这个作业的目标项目冲刺目录目录目录一、会议1.昨天已完成的工作2.今天......
  • 每日团队小结
    昨天对前端的显示做了一些调整,修改了一下显得更加美观今天还在修改servlet,现在还是不显示界面,就说部署的设备不足,现在一直在找是什么情况 ......
  • 每日团队
    昨天对前端的显示做了一些调整,修改了一下显得更加美观今天还在修改servlet,现在还是不显示界面,就说部署的设备不足,现在一直在找是什么情况......
  • 团队冲刺第二天
    今天完成了用户界面的绝大部分 <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>Title</title></head><body><divid="app"><el-tabsv-model="activeName......
  • 团队项目4——项目冲刺
    这个作业属于哪个课程2023软件工程——双学位这个作业的要求何在团队作业4——项目冲刺作业目标团队作业Scrum冲刺博客合集项目地址https://gitcode.net/m0_62281440/teamwork每日博客合集博客地址第一篇Scrum冲刺博客https://www.cnblogs.com/bk......
  • 团队项目第八天
    我们的项目预计3周,现在已经过去19天,实际完成度70%,我们小组今日完成如下:彭锁群:今日完成:       明日目标:       遇到问题(已解决或未解决):杨凯文:今日完成:实现了代码量判断专注度       明日目标:完善前端界面       遇......
  • 团队冲刺第七天
    今日我预计花1个多小时时间去将人脸识别导入项目中,但实际却很差强人意,为团队效率考虑,我们决定先完善pc端。               今日完成:前端qt设计界面学习中,改去协助做pc界面       明日目标:初步做出qt界面       遇到问......
  • 团队冲刺第八天
    今天我大约花了2小时时间在qt学习上。               今日完成:初步用qt制作页面,在python的基础上完成网页实现       明日目标:继续学习qt页面布局       遇到问题(已解决或未解决):用python做页面意味着要学更多新内容,由......