first commit
This commit is contained in:
20
pages/home/home.wxml
Normal file
20
pages/home/home.wxml
Normal file
@@ -0,0 +1,20 @@
|
||||
<view class="page-body">
|
||||
<view>
|
||||
<!-- 轮播图组件 -->
|
||||
<swiper indicator-dots="true" autoplay="true" interval="3000" duration="500" indicator-color="rgba(128,128,128,1)" indicator-active-color="rgba(255,255,255,1)" circular="true">
|
||||
<swiper-item wx:for="{{swiperList}}" wx:key="unique">
|
||||
<image src="{{item.path}}" class="slide-image" mode="widthFix"></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
|
||||
</view>
|
||||
<!-- 四宫格容器 -->
|
||||
<view class="grid-container">
|
||||
<view class="card">
|
||||
<navigator wx:for="{{menuItems}}" wx:key="id" url="{{item.url}}" class="grid-item">
|
||||
<image src="data:image/png;base64,{{item.base64EncodedImage}}"></image>
|
||||
<text>{{item.menu_name}}</text>
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user