...
|
...
|
@@ -8,14 +8,14 @@ |
|
|
<span>{{slider.name}}</span>
|
|
|
<i class="icon" :class="{'icon-up': subSwitch[index], 'icon-down': !subSwitch[index]}"></i>
|
|
|
</div>
|
|
|
<div v-else class="item title">
|
|
|
<div v-else class="item title" @click="close">
|
|
|
<a-link :href="slider.url">
|
|
|
<span>{{slider.name}}</span>
|
|
|
<i class="icon icon-up trans-right"></i>
|
|
|
</a-link>
|
|
|
</div>
|
|
|
<div class="childs" v-show="slider.secList.length && subSwitch[index]">
|
|
|
<div class="item" v-for="item in slider.secList" :key="item.name">
|
|
|
<div class="item" v-for="item in slider.secList" :key="item.name" @click="close">
|
|
|
<a-link :href="item.url">{{item.name}}</a-link>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -53,6 +53,11 @@ export default { |
|
|
});
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
value(val) {
|
|
|
this.$yoho && this.$yoho.blkBackStatus(val);
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
for (let i = 0; i < this.sliders.length; i++) {
|
|
|
this.subSwitch.push(false);
|
...
|
...
|
|