保安服务单位许可和备案申请系统
Administrator
2022-04-11 3a82aab402e8cdee192ab47405f2a01973bd4dab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<template>
  <div
    class="card animation-target"
    :style="{ backgroundImage: out ? data.topUrl : data.topUrlh }"
    @click="opens"
    @mouseenter="enter"
    @mouseleave="leave"
  >
    <div class="floatCard">
      <el-button type="primary" class="floatCard_buts" round v-show="handle"
        >点击办理</el-button
      >
      <el-button type="success" class="floatCard_butsd" round v-show="!handle"
        >您已成功办理,点击可查询进度</el-button
      >
    </div>
    <div class="title" :style="{ top: titleTop }">{{ data.menuName }}</div>
    <!-- <img :src="data.topUrl" alt="" /> -->
  </div>
</template>
 
<script>
import { mapGetters } from "vuex";
export default {
  props: ["data", "ind", "background"],
  data() {
    return {
      out: true,
      titleTop: "166px",
    };
  },
  computed: {
    ...mapGetters(["handle"]),
  },
  methods: {
    enter() {
      this.out = false;
      this.titleTop = "126px";
    },
    leave() {
      this.out = true;
      this.titleTop = "166px";
    },
    opens() {
      var d = this.handle ? "open" : "openLook";
      this.$emit("open", this.ind, d);
    },
  },
};
</script>
 
<style lang="scss" scoped>
.card {
  position: relative;
  float: left;
  width: 285px;
  height: 240px;
  padding: 0 10px;
  margin-bottom: 70px;
  margin-right: 30px;
  margin-left: 30px;
  border-radius: 10px;
  background-size: 100% 100%;
  overflow: hidden;
  background-repeat: no-repeat;
  border: 1px solid rgba($color: #000000, $alpha: 0.1);
  border-top: 0px solid rgba($color: #000000, $alpha: 0.3);
  &:hover {
    box-shadow: 0px 5px 15px rgba($color: #000000, $alpha: 0.3);
    cursor: pointer;
  }
  .title {
    width: 100%;
    height: 35px;
    position: absolute;
    // top: 176px;
    left: 0;
  }
}
.floatCard {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: rgba($color: #fff, $alpha: 0.6);
  .floatCard_buts {
    width: 110px;
    height: 40px;
    position: relative;
    left: calc(50% - 55px);
    top: calc(50% - 20px);
  }
  .floatCard_butsd {
    width: 250px;
    height: 40px;
    position: relative;
    left: calc(50% - 125px);
    top: calc(50% - 20px);
  }
}
.animation-target {
  animation: animationA 400ms linear both;
  &:hover {
    animation: animation 400ms linear both;
    // .title {
    //   animation: floatCardanimation 200ms linear both;
    // }
  }
}
 
@keyframes animationA {
  0% {
    top: -15px;
  }
  100% {
    top: 0px;
  }
}
 
@keyframes animation {
  0% {
    top: 0px;
  }
  100% {
    top: -15px;
  }
}
@keyframes floatCardanimation {
  0% {
    top: 176px;
  }
  100% {
    top: 126px;
  }
}
</style>