|
@@ -2,22 +2,22 @@
|
|
|
<div class="container">
|
|
|
<div id="album">
|
|
|
<div class="row" id="row1">
|
|
|
- <img src="../assets/p6/01.jpg" width="60%" height="200"/>
|
|
|
- <img src="../assets/p6/02.jpg" width="30%" height="140" style="margin-top: auto;"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/01.jpg" width="60%" height="200"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/02.jpg" width="30%" height="140" style="margin-top: auto;"/>
|
|
|
</div>
|
|
|
<div class="row" id="row2">
|
|
|
- <img src="../assets/p6/03.jpg" width="32.5%" height="160"/>
|
|
|
- <img src="../assets/p6/04.jpg" width="32.5%" height="160"/>
|
|
|
- <img src="../assets/p6/05.jpg" width="32.5%" height="160"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/03.jpg" width="32.5%" height="160"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/04.jpg" width="32.5%" height="160"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/05.jpg" width="32.5%" height="160"/>
|
|
|
</div>
|
|
|
<div class="row" id="row3">
|
|
|
- <img src="../assets/p6/06.jpg" width="30%" height="140" style="margin-left: auto;"/>
|
|
|
- <img src="../assets/p6/07.jpg" width="60%" height="200" style="margin-left: 0;"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/06.jpg" width="30%" height="140" style="margin-left: auto;"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/07.jpg" width="60%" height="200" style="margin-left: 0;"/>
|
|
|
</div>
|
|
|
<div class="row" id="row4">
|
|
|
- <img src="../assets/p6/08.png" width="32.5%" height="140"/>
|
|
|
- <img src="../assets/p6/09.jpg" width="32.5%" height="140"/>
|
|
|
- <img src="../assets/p6/10.jpg" width="32.5%" height="140"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/08.png" width="32.5%" height="140"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/09.jpg" width="32.5%" height="140"/>
|
|
|
+ <img @click="preview($event)" src="../assets/p6/10.jpg" width="32.5%" height="140"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -32,12 +32,28 @@
|
|
|
<div style="position: fixed; left: 32px; bottom: 100px;">
|
|
|
<img src="../assets/img-name.png"/>
|
|
|
</div>
|
|
|
+
|
|
|
+ <el-dialog title="" :visible.sync="dialogVisible" center fullscreen>
|
|
|
+ <img id="preview" :src="srcPreview" width="100%"/>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- name: "Part6"
|
|
|
+ name: "Part6",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ dialogVisible: false,
|
|
|
+ srcPreview: '',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ preview(event) {
|
|
|
+ this.srcPreview = event.target.getAttribute('src');
|
|
|
+ this.dialogVisible = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -46,7 +62,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
#album {
|
|
|
- background-color: white;
|
|
|
+ background-color: transparent;
|
|
|
display: block;
|
|
|
width: 60%;
|
|
|
margin: 24px 32px 24px auto;
|
|
@@ -68,7 +84,8 @@ export default {
|
|
|
}
|
|
|
|
|
|
#album img:hover {
|
|
|
- transform: scale(1.5);
|
|
|
+ cursor: pointer;
|
|
|
+ /*transform: scale(1.5);*/
|
|
|
}
|
|
|
|
|
|
#album2 img {
|
|
@@ -79,8 +96,4 @@ export default {
|
|
|
#album2 img:hover {
|
|
|
transform: scale(1.5);
|
|
|
}
|
|
|
-
|
|
|
-#row1 {
|
|
|
- /*justify-content: end;*/
|
|
|
-}
|
|
|
</style>
|