|
@@ -8,14 +8,14 @@ |
|
@@ -8,14 +8,14 @@ |
8
|
<span>{{slider.name}}</span>
|
8
|
<span>{{slider.name}}</span>
|
9
|
<i class="icon" :class="{'icon-up': subSwitch[index], 'icon-down': !subSwitch[index]}"></i>
|
9
|
<i class="icon" :class="{'icon-up': subSwitch[index], 'icon-down': !subSwitch[index]}"></i>
|
10
|
</div>
|
10
|
</div>
|
11
|
- <div v-else class="item title">
|
11
|
+ <div v-else class="item title" @click="close">
|
12
|
<a-link :href="slider.url">
|
12
|
<a-link :href="slider.url">
|
13
|
<span>{{slider.name}}</span>
|
13
|
<span>{{slider.name}}</span>
|
14
|
<i class="icon icon-up trans-right"></i>
|
14
|
<i class="icon icon-up trans-right"></i>
|
15
|
</a-link>
|
15
|
</a-link>
|
16
|
</div>
|
16
|
</div>
|
17
|
<div class="childs" v-show="slider.secList.length && subSwitch[index]">
|
17
|
<div class="childs" v-show="slider.secList.length && subSwitch[index]">
|
18
|
- <div class="item" v-for="item in slider.secList" :key="item.name">
|
18
|
+ <div class="item" v-for="item in slider.secList" :key="item.name" @click="close">
|
19
|
<a-link :href="item.url">{{item.name}}</a-link>
|
19
|
<a-link :href="item.url">{{item.name}}</a-link>
|
20
|
</div>
|
20
|
</div>
|
21
|
</div>
|
21
|
</div>
|
|
@@ -53,6 +53,11 @@ export default { |
|
@@ -53,6 +53,11 @@ export default { |
53
|
});
|
53
|
});
|
54
|
}
|
54
|
}
|
55
|
},
|
55
|
},
|
|
|
56
|
+ watch: {
|
|
|
57
|
+ value(val) {
|
|
|
58
|
+ this.$yoho && this.$yoho.blkBackStatus(val);
|
|
|
59
|
+ }
|
|
|
60
|
+ },
|
56
|
created() {
|
61
|
created() {
|
57
|
for (let i = 0; i < this.sliders.length; i++) {
|
62
|
for (let i = 0; i < this.sliders.length; i++) {
|
58
|
this.subSwitch.push(false);
|
63
|
this.subSwitch.push(false);
|