H5-ThreeDoorder/pages/diy/shopping_cart/shopping_cart.vue

34 lines
684 B
Vue

<template>
<view class="content">
<view class="content-Swiper">
<u-swiper :list="swiperList" height="585" :loading='loading'></u-swiper>
</view>
</view>
</template>
<script>
export default {
data() {
return {
// 轮播图图片未初始化时的加载状态
loading:true,
// 轮播图图片列表
swiperList: [
'https://cdn.uviewui.com/uview/swiper/swiper1.png',
'https://cdn.uviewui.com/uview/swiper/swiper2.png',
'https://cdn.uviewui.com/uview/swiper/swiper3.png',
]
};
},
mounted() {
setTimeout(()=>{
this['loading'] = false
},2000)
}
}
</script>
<style lang="scss">
</style>