<div class="swiper-container swiper-container-horizontal" id="swiper-container2" style="width:750px;">
<div id="yun" class="swiper-wrapper" style="transition-duration:500ms; transform: translate3d(0px, 0px, 0px);">
<div v-if="off" class="swiper-slide navb" >{{navbar[0].name}}</div>
<div v-if="off" class="swiper-slide navb" >{{navbar[1].name}}</div>
<div v-if="off" class="swiper-slide navb" >{{navbar[2].name}}</div>
<div v-if="off" class="navb swiper-slide swiper-slide-prev" >{{navbar[3].name}}</div>
<div v-if="off" class="swiper-slide navb active-nav swiper-slide-visible swiper-slide-active" >{{navbar[4].name}}</div>
<div v-if="off" class="swiper-slide navb swiper-slide-visible swiper-slide-next">{{navbar[5].name}}</div>
<div v-if="off" class="swiper-slide navb swiper-slide-visible">{{navbar[6].name}}</div>
<div v-if="off" class="swiper-slide navb" >{{navbar[7].name}}</div>
<div id="xian"></div>
</div>
<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span></div>
<div class="swiper-container swiper-container-horizontal" id="swiper-container3" style="width: 750px;">
<div class="swiper-wrapper" style=" transition-duration: 500ms;transition: 500ms !important; transform: translate3d(0px, 0px, 0px);">
<div class="swiper-slide navc blue-slide" style="width: 750px;">
slider1</div>
<div class="swiper-slide navc red-slide" style="width: 750px;">
slider2</div>
<div class="swiper-slide navc orange-slide" style="width: 750px;">
slider3</div>
<div class="swiper-slide navc blue-slide " style="width: 750px;">
slider4</div>
<div class="swiper-slide navc red-slide " style="width: 750px;">
slider5</div>
<div class="swiper-slide navc orange-slide " style="width: 750px;">
slider6</div>
<div class="swiper-slide navc blue-slide" style="width: 750px;">
slider7</div>
<div class="swiper-slide navc red-slide" style="width: 750px;">
slider8</div>
</div>
<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span></div>
</div>
</div>
<Footer></Footer>
</div>
</div>
</template>
<script>
import Footer from "../../base/v-footer";
export default {
components:{Footer},
data() {
return {
active: 'tab-container1',
navbar:[],
off:false
}
},
mounted(){
this.$http.get('/api/recipe/class', {
params: {"appkey": '916ee2f34354c51f'}
}
).then((res) => {
this.navbar = res.data.result[0].list;
console.log(this.navbar);
this.off=true
})
console.log(this.navbar)
V-IF在获取数据里面使用
原创
©著作权归作者所有:来自51CTO博客作者姚辉乾51CTO的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:rem
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
哪款 Java 代码审计工具最好用
java 代码审计工具分析对比。
CodeQL Java 企业级 -
v-if
直接看代码data数据中心的
数据中心 随机数 数据 -
3 methods、v-on、v-if
阅读目录场景编写页面的基本结构Vue3的绑定事件和事件方法显示隐藏套餐服务场景这篇文章先来完成来宾en"><head> <meta ch
laravel php 开发语言 html Vue