1 |
- <view class="homepage data-v-57280228"><view class="banner-section data-v-57280228"><view class="status-bar-placeholder data-v-57280228" style="{{'height:'+(statusBarHeight+'px')+';'}}"></view><swiper class="banner-swiper data-v-57280228" indicator-dots="{{true}}" autoplay="{{true}}" interval="{{1000}}" duration="{{300}}" circular="{{true}}" indicator-color="rgba(255,255,255,0.5)" indicator-active-color="#FFFFFF" data-event-opts="{{[['change',[['onBannerChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{bannerList}}" wx:for-item="banner" wx:for-index="index" wx:key="index"><swiper-item data-event-opts="{{[['tap',[['onBannerClick',['$0'],[[['bannerList','',index]]]]]]]}}" bindtap="__e" class="data-v-57280228"><view class="banner-item data-v-57280228"><image class="banner-image data-v-57280228" src="{{banner.image}}" mode="aspectFill"></image><view class="banner-overlay data-v-57280228"><text class="banner-title data-v-57280228">{{banner.title}}</text></view></view></swiper-item></block></swiper><view class="banner-indicator data-v-57280228">{{currentBanner+1+"/"+$root.g0}}</view><view class="transparent-search-container data-v-57280228"><view data-event-opts="{{[['tap',[['goToSearch',['$event']]]]]}}" class="transparent-search-box data-v-57280228" bindtap="__e"><text class="search-icon data-v-57280228">🔍</text><text class="search-placeholder data-v-57280228">搜索商品名称</text></view></view></view><view class="categories-section data-v-57280228"><block wx:for="{{categoryList}}" wx:for-item="category" wx:for-index="__i0__" wx:key="id"><view class="category-block data-v-57280228"><view class="category-header data-v-57280228"><text class="category-title data-v-57280228">{{category.name}}</text><view data-event-opts="{{[['tap',[['viewMoreProducts',['$0'],[[['categoryList','id',category.id]]]]]]]}}" class="more-btn data-v-57280228" bindtap="__e"><text class="more-text data-v-57280228">更多</text><text class="more-arrow data-v-57280228">></text></view></view><view class="products-grid data-v-57280228"><block wx:for="{{category.products}}" wx:for-item="product" wx:for-index="__i1__" wx:key="id"><view data-event-opts="{{[['tap',[['goToProductDetail',['$0'],[[['categoryList','id',category.id],['products','id',product.id]]]]]]]}}" class="product-item data-v-57280228" bindtap="__e"><image class="product-image data-v-57280228" src="{{product.image}}" mode="aspectFill"></image><view class="product-info data-v-57280228"><text class="product-name data-v-57280228">{{product.name}}</text></view></view></block></view></view></block></view><block wx:if="{{loading}}"><view class="loading-container data-v-57280228"><view class="loading-content data-v-57280228"><view class="loading-spinner data-v-57280228"></view><text class="loading-text data-v-57280228">{{loadingText}}</text></view></view></block><view class="bottom-spacer data-v-57280228"></view><block wx:if="{{showDebug}}"><view class="debug-section data-v-57280228"><view data-event-opts="{{[['tap',[['toggleDebug',['$event']]]]]}}" class="debug-header data-v-57280228" bindtap="__e"><text class="debug-title data-v-57280228">🔧 开发测试</text></view><block wx:if="{{debugExpanded}}"><view class="debug-content data-v-57280228"><view class="user-status data-v-57280228"><text class="status-text data-v-57280228">{{isLoggedIn?'已登录: '+userPhone:'游客模式'}}</text><block wx:if="{{!isLoggedIn}}"><button data-event-opts="{{[['tap',[['goToLogin',['$event']]]]]}}" class="debug-btn login data-v-57280228" bindtap="__e">登录</button></block><block wx:else><button data-event-opts="{{[['tap',[['logout',['$event']]]]]}}" class="debug-btn logout data-v-57280228" bindtap="__e">退出</button></block></view><button data-event-opts="{{[['tap',[['clearAppData',['$event']]]]]}}" class="debug-btn clear data-v-57280228" bindtap="__e">清除数据</button></view></block></view></block></view>
|