欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 文化 > uniapp-列表样式

uniapp-列表样式

2025/2/22 2:21:16 来源:https://blog.csdn.net/xulihua_75/article/details/145589022  浏览:    关键词:uniapp-列表样式

在这里插入图片描述

<template><view><!-- 背景渐变 --><view class="background"></view><!-- 列表 --><scroll-view class="list" scroll-y @scrolltolower="loadMore"><view class="list-item" v-for="(item, index) in 10" :key="index">{{ index }}</view></scroll-view></view>
</template><script setup>import {ref,reactive} from 'vue'import {onLoad,onShow,onReachBottom} from '@dcloudio/uni-app'import i from '@/libs/common/index.js'import api from '@/request/api.js'import {userStore} from '@/store/userStore.js'import {commonStore} from '@/store/commonStore.js'import stationItem from '@/components/stationItem/stationItem.vue'import {usePaginatedList} from '@/hooks/usePaginatedList'import {locationStore} from '@/store/locationStore.js'const user = userStore()const common = commonStore()const location = locationStore()onLoad(() => {})function loadMore(){console.log("触底");}
</script><style lang="scss">page {background-color: #ffffff;}.background {position: absolute;top: 0;left: 0;width: 100%;height: 40vh;background: linear-gradient(to bottom, #ff7e5f, #feb47b);z-index: 1;}.list {position: relative;z-index: 2;height: 100vh;padding-top: 40rpx;box-sizing: border-box;}.list-item {border: 1px solid blue;height: 200rpx;padding: 20px;background-color: #fff;border-bottom: 1px solid #eee;margin: 0 30rpx;}.loading {text-align: center;padding: 20px;color: #999;}
</style>

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词