Files
persionalBrand/packages/template-acheng-campus-food/miniapp/pages/bookings/index.wxml
T

36 lines
2.4 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 wx:if="{{error}}" class="runtime-error">{{error}}</view>
<block wx:else>
<acheng-profile brand="{{brand}}" credentials="{{credentials}}" presentation="{{presentation}}" />
<view wx:for="{{cases}}" wx:key="id" class="case-card">
<view class="section-heading"><image class="heading-icon" src="/assets/owner/handshake.png" /><text>{{item.title}}</text></view>
<text wx:if="{{item.summary}}" class="summary">{{item.summary}}</text>
<view wx:if="{{item.entries.length}}" class="case-list">
<view wx:for="{{item.entries}}" wx:for-item="entry" wx:key="index" class="case-row tone-{{entry.tone}}">
<view class="case-badge">{{entry.badge}}</view>
<view class="case-copy"><text class="case-title">{{entry.title}}</text><text wx:if="{{entry.detail}}" class="case-detail">{{entry.detail}}</text></view>
<text wx:if="{{entry.result}}" class="case-result">{{entry.result}}</text>
</view>
</view>
<text wx:elif="{{item.content}}" class="content">{{item.content}}</text>
</view>
<view wx:for="{{promises}}" wx:key="id" class="promise-card">
<view class="section-heading"><image class="promise-icon" src="/assets/owner/clock.png" /><text>{{item.title}}</text></view>
<text wx:if="{{item.summary}}" class="summary">{{item.summary}}</text>
<view wx:if="{{item.config.commitments.length}}" class="commitment-list">
<view wx:for="{{item.config.commitments}}" wx:for-item="commitment" wx:key="label" class="commitment">
<view class="dot"/><view class="commitment-copy"><text class="commitment-label">{{commitment.label}}:</text><text>{{commitment.detail}}</text><text wx:if="{{commitment.highlight}}" class="highlight">{{commitment.highlight}}</text></view>
</view>
</view>
<text wx:elif="{{item.content}}" class="content">{{item.content}}</text>
</view>
<view class="utilities">
<view wx:if="{{brand.contactPhone || brand.contactWechat}}" class="contact-actions">
<button wx:if="{{brand.contactPhone}}" bindtap="call">电话联系</button>
<button wx:if="{{brand.contactWechat}}" bindtap="copyWechat">复制微信</button>
</view>
<view class="records-entry" bindtap="recordsPage"><text>{{presentation.recordsTitle || '我的咨询记录'}}</text><text>{{records.length}} {{presentation.recordsCountUnit || '条记录'}} ›</text></view>
</view>
</block>
</view>