46 lines
960 B
Vue
46 lines
960 B
Vue
<template>
|
|
<view class="wrap">
|
|
<u-swiper :list="list" keyName="image" showTitle :autoplay="false" circular />
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {apiService} from '../../service/request.js'
|
|
export default {
|
|
computed: {},
|
|
data() {
|
|
return {
|
|
list: [{
|
|
image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
|
|
title: '昨夜星辰昨夜风,画楼西畔桂堂东'
|
|
},
|
|
{
|
|
image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
|
|
title: '身无彩凤双飞翼,心有灵犀一点通'
|
|
},
|
|
{
|
|
image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
|
|
title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
|
|
}
|
|
],
|
|
}
|
|
},
|
|
onLoad() {
|
|
console.log('--------------')
|
|
apiService.getCategories().then(res => {
|
|
const {message} = res.data
|
|
console.log(message)
|
|
})
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang='scss' scoped>
|
|
.wrap {
|
|
padding: 40rpx;
|
|
}
|
|
</style>
|