Files
persionalBrand/apps/miniapp/pages/index/index.wxml
T

15 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="page">
<view class="topbar"><text class="brand-subtitle">{{brand.tagline || '现做家常饭,熟客都爱吃'}}</text></view>
<view wx:if="{{loading}}" class="state">加载中...</view>
<view wx:elif="{{error}}" class="state error">{{error}}<button bindtap="load">重试</button></view>
<block wx:else>
<view class="hero"><image wx:if="{{brand.coverUrl}}" src="{{brand.coverUrl}}" mode="aspectFill"/><view wx:else class="hero-placeholder"></view><view class="hero-copy"><text>{{copy.hero}}</text><text>{{copy.heroSub}}</text></view></view>
<view class="intro"><text class="section-title">{{copy.about}}</text><text class="intro-copy">{{brand.description || copy.description}}</text></view>
<view class="info-card"><view><text class="info-label">{{copy.timeLabel}}</text><text>{{brand.hours || copy.time}}</text></view><text class="chevron">›</text><view><text class="info-label">{{copy.addressLabel}}</text><text>{{brand.address || copy.address}}</text></view><view class="line"></view><view><text class="info-label">{{copy.noteLabel}}</text><text>{{brand.deliveryNote || copy.note}}</text></view></view>
<view class="actions"><button class="primary" bindtap="goServices">{{copy.primary}}</button><button class="secondary" bindtap="goPrivateChef">{{copy.secondary}}</button></view>
<view class="section-title services-title">今日服务</view>
<view wx:for="{{services}}" wx:key="id" class="service" data-id="{{item.id}}" bindtap="selectService"><view><text class="service-name">{{item.name}}</text><text class="description">{{item.description}}</text></view><text class="price">{{item.priceText}}</text></view>
</block>
<view class="tabbar"><view class="tab active" bindtap="goHome">⌂<text>首页</text></view><view class="tab" bindtap="goServices">▦<text>服务</text></view><view class="tab" bindtap="goBooking">▤<text>预约</text></view><view class="tab" bindtap="goBookings">♙<text>我的</text></view></view>
</view>