clxx.vue
2.46 KB
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
<template>
<div class="clxx">
<div class="clxx-box">
<div class="header">
<div class="title">{{ title }}</div>
</div>
<div class="img-box">
<img :src="showImg.imgUrl" alt="" />
</div>
<div class="img-list">
<div class="item" v-for="(item, index) in imgList" :key="index">
<img
:class="showImg.id == item.id ? 'active' : ''"
:src="item.imgUrl"
alt=""
@click="imgClick(item)"
/>
</div>
</div>
<div class="btn-group">
<el-button>扫描</el-button>
<el-button>上传文件</el-button>
<el-button icon="el-icon-delete">删除</el-button>
</div>
</div>
</div>
</template>
<script>
export default {
/**注册组件*/
components: {},
data() {
return {
title: "不动产登记申请书 (1/2)",
imgList: [
{
id: "1",
imgUrl: require("../images/1.png"),
},
{
id: "2",
imgUrl: require("../images/2.png"),
},
{
id: "3",
imgUrl: require("../images/3.png"),
},
],
showImg: {
id: "1",
imgUrl: require("../images/1.png"),
},
};
},
methods: {
imgClick(item) {
this.showImg = item;
},
},
};
</script>
<style scoped lang='scss'>
.clxx {
width: 100%;
height: 100%;
&-box {
width: 800px;
height: 800px;
background: #e4e4e4;
margin: 0 auto;
.header {
height: 30px;
background: #fff;
text-align: center;
.title {
height: 28px;
line-height: 28px;
font-size: 13px;
padding: 0 8px;
border: 1px solid #aaa;
display: inline-block;
}
}
.img-box {
width: 800px;
height: 610px;
line-height: 610px;
padding: 5px;
text-align: center;
img {
max-height: 600px;
max-width: 790px;
}
}
.img-list {
width: 100%;
height: 80px;
line-height: 80px;
background: #ccc;
text-align: center;
.item {
display: inline-block;
margin: 10px 5px;
img {
width: 60px;
height: 60px;
cursor: pointer;
}
.active {
border: 1px solid #fff;
}
}
}
.btn-group {
width: 100%;
height: 80px;
line-height: 80px;
background: #fff;
text-align: center;
}
}
}
</style>