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

15 lines
2.1 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>{{brand.name || '个人品牌'}}</text><text>{{brand.tagline || '把专业能力,变成值得信赖的体验'}}</text></view></view>
<view class="intro"><text class="section-title">关于我</text><text class="intro-copy">{{brand.description || '这里展示你的专业背景、工作方式与品牌理念。'}}</text></view>
<view class="info-card"><view><text class="info-label">服务时间</text><text>{{brand.hours || '工作日 10:00—18:00'}}</text></view><text class="chevron">›</text><view><text class="info-label">所在位置</text><text>{{brand.address || '线上 / 线下均可沟通'}}</text></view><view class="line"></view><view><text class="info-label">合作说明</text><text>{{brand.deliveryNote || '提交需求后,我会尽快与你联系'}}</text></view></view>
<view class="actions"><button class="primary" bindtap="goServices">查看服务</button><button class="secondary" bindtap="goPrivateChef">发起咨询</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>