|
@@ -4,7 +4,7 @@
|
|
|
<div slot="item"
|
|
<div slot="item"
|
|
|
slot-scope="{data, index}"
|
|
slot-scope="{data, index}"
|
|
|
class="item"
|
|
class="item"
|
|
|
- @click="clickHandle(index)"
|
|
|
|
|
|
|
+ @click="clickHandle(index, data)"
|
|
|
:style="{backgroundImage: 'url('+data.image+')'}">
|
|
:style="{backgroundImage: 'url('+data.image+')'}">
|
|
|
</div>
|
|
</div>
|
|
|
</slide>
|
|
</slide>
|
|
@@ -23,16 +23,20 @@ export default {
|
|
|
data () {
|
|
data () {
|
|
|
let items = [{
|
|
let items = [{
|
|
|
image: require('@/assets/images/exh_1.jpg'),
|
|
image: require('@/assets/images/exh_1.jpg'),
|
|
|
- title: 'Hetjens Hall'
|
|
|
|
|
|
|
+ title: 'Hetjens Hall',
|
|
|
|
|
+ url: 'http://www.4dmodel.com/SuperTwo/index.html?m=409'
|
|
|
}, {
|
|
}, {
|
|
|
image: require('@/assets/images/exh_2.jpg'),
|
|
image: require('@/assets/images/exh_2.jpg'),
|
|
|
- title: 'Schneider Collection'
|
|
|
|
|
|
|
+ title: 'Schneider Collection',
|
|
|
|
|
+ url: 'http://www.4dmodel.com/SuperTwo/index.html?m=410'
|
|
|
}, {
|
|
}, {
|
|
|
image: require('@/assets/images/exh_3.jpg'),
|
|
image: require('@/assets/images/exh_3.jpg'),
|
|
|
- title: 'Blue Onion Exhibition'
|
|
|
|
|
|
|
+ title: 'Blue Onion Exhibition',
|
|
|
|
|
+ url: 'http://www.4dmodel.com/SuperTwo/index.html?m=411'
|
|
|
}, {
|
|
}, {
|
|
|
image: require('@/assets/images/exh_4.jpg'),
|
|
image: require('@/assets/images/exh_4.jpg'),
|
|
|
- title: 'Alle Farben Chinas'
|
|
|
|
|
|
|
+ title: 'Alle Farben Chinas',
|
|
|
|
|
+ url: 'http://www.4dmodel.com/SuperTwo/index.html?m=412'
|
|
|
}]
|
|
}]
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
@@ -42,9 +46,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- clickHandle (index) {
|
|
|
|
|
- if (this.focus === index) {
|
|
|
|
|
- console.log(this.title)
|
|
|
|
|
|
|
+ clickHandle (index, item) {
|
|
|
|
|
+ if (this.active === item) {
|
|
|
|
|
+ this.$router.push({name: 'external', params: {src: this.items[index].url}})
|
|
|
} else {
|
|
} else {
|
|
|
this.focus = index
|
|
this.focus = index
|
|
|
}
|
|
}
|