소스 검색

按钮图片

Baozhangchao 3 년 전
부모
커밋
ee4e1a76df
2개의 변경된 파일27개의 추가작업 그리고 39개의 파일을 삭제
  1. 11
    32
      src/views/components/OfficeImage.vue
  2. 16
    7
      src/views/office.vue

+ 11
- 32
src/views/components/OfficeImage.vue 파일 보기

@@ -1,53 +1,32 @@
1 1
 <template>
2
-  <div>
2
+  <div style="overflow: hidden;">
3 3
     <div class="flex-box-a">
4 4
       <div class="flex-box-item">
5
-        <img :src="require('@/assets/office/1-1-0.png')" style="height: 48px; " alt />
5
+        <img
6
+          :src="require('@/assets/office/1-1-0.png')"
7
+          style="height: 48px;animation: downfade 2s infinite; "
8
+          alt
9
+        />
6 10
       </div>
7 11
     </div>
8 12
     <div class="flex-box" style="margin-top: 10px">
9 13
       <div class="flex-box-item">
10
-        <img
11
-          :src="require('@/assets/office/2.png')"
12
-          style="height: 78px"
13
-          alt
14
-          @click="handleClick(1)"
15
-        />
14
+        <img :src="require('@/assets/office/2.png')" alt @click="handleClick(1)" />
16 15
       </div>
17 16
       <div class="flex-box-item">
18
-        <img
19
-          :src="require('@/assets/office/3.png')"
20
-          style="height: 78px"
21
-          alt
22
-          @click="handleClick(2)"
23
-        />
17
+        <img :src="require('@/assets/office/3.png')" alt @click="handleClick(2)" />
24 18
       </div>
25 19
       <div class="flex-box-item">
26
-        <img
27
-          :src="require('@/assets/office/4.png')"
28
-          style="height: 78px"
29
-          alt
30
-          @click="handleClick(3)"
31
-        />
20
+        <img :src="require('@/assets/office/4.png')" alt @click="handleClick(3)" />
32 21
       </div>
33 22
     </div>
34 23
     <div class="flex-box" style="margin-top: 20px">
35 24
       <div class="flex-box-style" :style="`transform: translate(${divWidth}px)`">
36 25
         <div class="flex-box-item">
37
-          <img
38
-            :src="require('@/assets/office/5.png')"
39
-            style="height: 78px"
40
-            alt
41
-            @click="handleClick(4)"
42
-          />
26
+          <img :src="require('@/assets/office/5.png')" alt @click="handleClick(4)" />
43 27
         </div>
44 28
         <div class="flex-box-item">
45
-          <img
46
-            :src="require('@/assets/office/6.png')"
47
-            style="height: 78px"
48
-            alt
49
-            @click="handleClick(5)"
50
-          />
29
+          <img :src="require('@/assets/office/6.png')" alt @click="handleClick(5)" />
51 30
         </div>
52 31
         <div ref="divWidth" class="flex-box-item"></div>
53 32
       </div>

+ 16
- 7
src/views/office.vue 파일 보기

@@ -7,7 +7,7 @@
7 7
       <yz-modal :visible="visible[index]" class="office-modal">
8 8
         <pure-image :bg-image="item.image"></pure-image>
9 9
         <div class="back-sign" @click="cancelShow(index)">
10
-          <img :src="require('@/assets/office/1-2.png')" alt />
10
+          <img :src="item.backSign" alt />
11 11
         </div>
12 12
       </yz-modal>
13 13
     </div>
@@ -21,6 +21,8 @@
21 21
 </template>
22 22
 
23 23
 <script>
24
+const backSignImg = require('@/assets/office/1-2.png')
25
+const backSignImg2 = require('@/assets/images/apartment/backSign-2.png')
24 26
 export default {
25 27
   components: {
26 28
     PureImage: () => import('./components/PureImage.vue'),
@@ -30,27 +32,34 @@ export default {
30 32
   },
31 33
   data() {
32 34
     return {
35
+      backSignImg,
36
+      backSignImg2,
33 37
       visible: Array(6).fill(false),
34 38
       list: [
35 39
         {
36 40
           image: require('@/assets/office/2-1.png'),
37
-          color: '#f0f0f0'
41
+          color: '#f0f0f0',
42
+          backSign: backSignImg
38 43
         },
39 44
         {
40 45
           image: require('@/assets/office/3-1.png'),
41
-          color: '#f0f0f0'
46
+          color: '#f0f0f0',
47
+          backSign: backSignImg2
42 48
         },
43 49
         {
44 50
           image: require('@/assets/office/4-1.png'),
45
-          color: '#f0f0f0'
51
+          color: '#f0f0f0',
52
+          backSign: backSignImg
46 53
         },
47 54
         {
48 55
           image: require('@/assets/office/6-1.png'),
49
-          color: '#f0f0f0'
56
+          color: '#f0f0f0',
57
+          backSign: backSignImg
50 58
         },
51 59
         {
52 60
           image: require('@/assets/office/5-1.png'),
53
-          color: '#f0f0f0'
61
+          color: '#f0f0f0',
62
+          backSign: backSignImg
54 63
         }
55 64
       ],
56 65
       houseList: [
@@ -127,7 +136,7 @@ export default {
127 136
     position: absolute;
128 137
     z-index: 500;
129 138
     right: 10px;
130
-    bottom: 20px;
139
+    bottom: -24px;
131 140
     width: 96px;
132 141
     height: 78px;
133 142