Commit f0d8f17fcf2f67ac174bf0b0a78f2970c047e51c

Authored by liujun001
1 parent 144fc0c1

update

src/views/getInfo.vue 0 → 100644
  1 +<template>
  2 + <div class="login">
  3 + <div class="wscn-http404-container">
  4 + <div class="wscn-http404">
  5 + <div class="pic-404">
  6 + <!--<img class="pic-404__parent" src="@/assets/404_images/404.png" alt="404">-->
  7 + <img class="pic-404__parent" src="#" alt="">
  8 +
  9 + </div>
  10 + <div class="bullshit">
  11 + <div class="bullshit__oops" v-if="token!='' && token!=null && token!='undefined'">
  12 + 正在登录中.....
  13 + </div>
  14 + <div class="bullshit__oops" v-else style="font-size: 22px">
  15 + 登录状态已过期或token无效<br/>请重新登录.....
  16 + </div>
  17 + <!--<div class="bullshit__headline">-->
  18 + <!--{{ message }}-->
  19 + <!--</div>-->
  20 + <!--<div class="bullshit__info">-->
  21 + <!--对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。-->
  22 + <!--</div>-->
  23 + <!--<router-link to="/" class="bullshit__return-home">-->
  24 + <!--返回首页-->
  25 + <!--</router-link>-->
  26 + </div>
  27 + </div>
  28 + </div>
  29 + </div>
  30 +</template>
  31 +
  32 +<script>
  33 + import {getInfo} from '@/api/login';
  34 + import {getToken, setToken} from "@/utils/auth";
  35 +
  36 + export default {
  37 + name: 'Page404',
  38 + computed: {
  39 + message() {
  40 + return '找不到网页!'
  41 + },
  42 + },
  43 + data() {
  44 + return {
  45 + token: false,
  46 + };
  47 + },
  48 + created() {
  49 + this.pointLogin();
  50 + },
  51 + methods: {
  52 + pointLogin() {
  53 + this.token = this.$route.query.token;
  54 + if (this.token != null && this.token != 'undefined' ) {
  55 + //debugger
  56 + setToken(this.token)
  57 + let that = this;
  58 + console.log("=====================================>8");
  59 +
  60 + getInfo(this.token).then(res => {
  61 + if (res.user != null) {
  62 + this.$router.push({path: "/index"})
  63 + }
  64 + else {
  65 + this.$router.go(-1)
  66 + }
  67 + })
  68 + }
  69 + }
  70 + }
  71 +
  72 + }
  73 +</script>
  74 +
  75 +<style lang="scss" scoped>
  76 + .wscn-http404-container{
  77 + transform: translate(-50%,-50%);
  78 + position: absolute;
  79 + top: 40%;
  80 + left: 50%;
  81 + /*background-image: url("../../assets/images/login-background.jpg");*/
  82 +
  83 + }
  84 + .login {
  85 + display: flex;
  86 + justify-content: center;
  87 + align-items: center;
  88 + height: 100%;
  89 + background-image: url("../assets/images/login-background.jpg");
  90 + background-size: cover;
  91 + }
  92 + .wscn-http404 {
  93 + position: relative;
  94 + width: 1200px;
  95 + padding: 0 50px;
  96 + overflow: hidden;
  97 + .pic-404 {
  98 + position: relative;
  99 + float: left;
  100 + width: 600px;
  101 + overflow: hidden;
  102 + &__parent {
  103 + width: 100%;
  104 + }
  105 + &__child {
  106 + position: absolute;
  107 + &.left {
  108 + width: 80px;
  109 + top: 17px;
  110 + left: 220px;
  111 + opacity: 0;
  112 + animation-name: cloudLeft;
  113 + animation-duration: 2s;
  114 + animation-timing-function: linear;
  115 + animation-fill-mode: forwards;
  116 + animation-delay: 1s;
  117 + }
  118 + &.mid {
  119 + width: 46px;
  120 + top: 10px;
  121 + left: 420px;
  122 + opacity: 0;
  123 + animation-name: cloudMid;
  124 + animation-duration: 2s;
  125 + animation-timing-function: linear;
  126 + animation-fill-mode: forwards;
  127 + animation-delay: 1.2s;
  128 + }
  129 + &.right {
  130 + width: 62px;
  131 + top: 100px;
  132 + left: 500px;
  133 + opacity: 0;
  134 + animation-name: cloudRight;
  135 + animation-duration: 2s;
  136 + animation-timing-function: linear;
  137 + animation-fill-mode: forwards;
  138 + animation-delay: 1s;
  139 + }
  140 + @keyframes cloudLeft {
  141 + 0% {
  142 + top: 17px;
  143 + left: 220px;
  144 + opacity: 0;
  145 + }
  146 + 20% {
  147 + top: 33px;
  148 + left: 188px;
  149 + opacity: 1;
  150 + }
  151 + 80% {
  152 + top: 81px;
  153 + left: 92px;
  154 + opacity: 1;
  155 + }
  156 + 100% {
  157 + top: 97px;
  158 + left: 60px;
  159 + opacity: 0;
  160 + }
  161 + }
  162 + @keyframes cloudMid {
  163 + 0% {
  164 + top: 10px;
  165 + left: 420px;
  166 + opacity: 0;
  167 + }
  168 + 20% {
  169 + top: 40px;
  170 + left: 360px;
  171 + opacity: 1;
  172 + }
  173 + 70% {
  174 + top: 130px;
  175 + left: 180px;
  176 + opacity: 1;
  177 + }
  178 + 100% {
  179 + top: 160px;
  180 + left: 120px;
  181 + opacity: 0;
  182 + }
  183 + }
  184 + @keyframes cloudRight {
  185 + 0% {
  186 + top: 100px;
  187 + left: 500px;
  188 + opacity: 0;
  189 + }
  190 + 20% {
  191 + top: 120px;
  192 + left: 460px;
  193 + opacity: 1;
  194 + }
  195 + 80% {
  196 + top: 180px;
  197 + left: 340px;
  198 + opacity: 1;
  199 + }
  200 + 100% {
  201 + top: 200px;
  202 + left: 300px;
  203 + opacity: 0;
  204 + }
  205 + }
  206 + }
  207 + }
  208 + .bullshit {
  209 + position: relative;
  210 + float: left;
  211 + width: 300px;
  212 + padding: 30px 0;
  213 + overflow: hidden;
  214 + &__oops {
  215 + font-size: 32px;
  216 + font-weight: bold;
  217 + line-height: 40px;
  218 + color: #1482f0;
  219 + opacity: 0;
  220 + margin-bottom: 20px;
  221 + animation-name: slideUp;
  222 + animation-duration: 0.5s;
  223 + animation-fill-mode: forwards;
  224 + }
  225 + &__headline {
  226 + font-size: 20px;
  227 + line-height: 24px;
  228 + color: #222;
  229 + font-weight: bold;
  230 + opacity: 0;
  231 + margin-bottom: 10px;
  232 + animation-name: slideUp;
  233 + animation-duration: 0.5s;
  234 + animation-delay: 0.1s;
  235 + animation-fill-mode: forwards;
  236 + }
  237 + &__info {
  238 + font-size: 13px;
  239 + line-height: 21px;
  240 + color: grey;
  241 + opacity: 0;
  242 + margin-bottom: 30px;
  243 + animation-name: slideUp;
  244 + animation-duration: 0.5s;
  245 + animation-delay: 0.2s;
  246 + animation-fill-mode: forwards;
  247 + }
  248 + &__return-home {
  249 + display: block;
  250 + float: left;
  251 + width: 110px;
  252 + height: 36px;
  253 + background: #1482f0;
  254 + border-radius: 100px;
  255 + text-align: center;
  256 + color: #ffffff;
  257 + opacity: 0;
  258 + font-size: 14px;
  259 + line-height: 36px;
  260 + cursor: pointer;
  261 + animation-name: slideUp;
  262 + animation-duration: 0.5s;
  263 + animation-delay: 0.3s;
  264 + animation-fill-mode: forwards;
  265 + }
  266 + @keyframes slideUp {
  267 + 0% {
  268 + transform: translateY(60px);
  269 + opacity: 0;
  270 + }
  271 + 100% {
  272 + transform: translateY(0);
  273 + opacity: 1;
  274 + }
  275 + }
  276 + }
  277 + }
  278 +</style>
... ...
src/views/refresh/page.vue
... ... @@ -19,7 +19,7 @@
19 19 import { refreshScheduling, refreshKeyInfoLocal, refreshDriver, refreshDriverImageByJob,refreshDriverImageByName } from "@/api/refresh/page";
20 20 const { proxy } = getCurrentInstance();
21 21  
22   - const imagePath=ref("/images");
  22 + const imagePath=ref("/opt/alcoholSign/lib/images");
23 23 const device =ref();
24 24  
25 25 function refreshSchedulingFun(){
... ...