1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <template>
- <view>
- <fs-swiper :list="list1"></fs-swiper>
- <fs-grid :columnNum="4">
- <fs-grid-item>
- <view class="text-center">
- <fs-avatar size="90rpx" src="/static/images/menu/menu1.png"></fs-avatar>
- <view class="menu-item">菜单1</view>
- </view>
- </fs-grid-item>
- <fs-grid-item>
- <view class="text-center">
- <fs-avatar size="90rpx" src="/static/images/menu/menu2.png"></fs-avatar>
- <view class="menu-item">菜单2</view>
- </view>
- </fs-grid-item>
- <fs-grid-item>
- <view class="text-center">
- <fs-avatar size="90rpx" src="/static/images/menu/menu3.png"></fs-avatar>
- <view class="menu-item">菜单3</view>
- </view>
- </fs-grid-item>
- <fs-grid-item>
- <view class="text-center">
- <fs-avatar size="90rpx" src="/static/images/menu/menu4.png"></fs-avatar>
- <view class="menu-item">菜单4</view>
- </view>
- </fs-grid-item>
- </fs-grid>
- <fs-cell border align="stretch" v-for="(item, index) in 3" :key="index">
- <template #title>
- <fs-avatar shape="square" radius width="240rpx" height="180rpx" src="/static/images/banner.png"></fs-avatar>
- </template>
- <template #value>
- <view class="fs-cell-right">
- <view class="title">图文标题</view>
- <view class="content line2">
- 图文内容图文内容图文内容图文内容图文内容图文内容图文内容图文内容图文内容图文内容图文内容
- </view>
- <view class="sub">2021-09-15</view>
- </view>
- </template>
- </fs-cell>
- </view>
- </template>
- <script setup>
- const list1 = [
- {
- src: '/static/images/banner.png'
- },
- {
- src: '/static/images/banner.png'
- },
- {
- src: '/static/images/banner.png'
- }
- ]
- </script>
- <style lang="scss" scoped>
- .menu-item {
- margin-top: 6rpx;
- font-size: 14px;
- }
- </style>
|