2026-09-09 22:05:00 +08:00
|
|
|
<view class="container">
|
2026-09-17 01:25:12 +08:00
|
|
|
<!-- Loading -->
|
|
|
|
|
<view class="state-box" wx:if="{{loading}}">
|
|
|
|
|
<text class="state-text">加载中…</text>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- Error / Permission -->
|
|
|
|
|
<view class="state-box" wx:elif="{{errorMsg}}">
|
|
|
|
|
<text class="state-text">{{errorMsg}}</text>
|
|
|
|
|
<button class="go-btn" bindtap="loadList" wx:if="{{!forbidden}}">重试</button>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- Empty -->
|
|
|
|
|
<view class="state-box" wx:elif="{{list.length === 0}}">
|
|
|
|
|
<text class="state-text">暂无咨询记录</text>
|
2026-09-09 22:05:00 +08:00
|
|
|
<button class="go-btn" bindtap="goToIntro">去申请咨询</button>
|
|
|
|
|
</view>
|
2026-09-17 01:25:12 +08:00
|
|
|
|
|
|
|
|
<!-- List -->
|
|
|
|
|
<block wx:else>
|
|
|
|
|
<view class="card" wx:for="{{list}}" wx:key="id">
|
|
|
|
|
<view class="card-header">
|
|
|
|
|
<text class="card-title">{{item.serviceTypeName}}</text>
|
|
|
|
|
<text class="card-status status-{{item.status}}">{{item.statusName}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="card-body">
|
|
|
|
|
<text class="card-summary" wx:if="{{item.userRequestSummary}}">{{item.userRequestSummary}}</text>
|
|
|
|
|
<text class="card-time" wx:if="{{item.scheduledText}}">预约时间:{{item.scheduledText}}</text>
|
|
|
|
|
<text class="card-time" wx:if="{{item.completedAt}}">完成时间:{{item.createdText}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="card-footer">
|
|
|
|
|
<text class="card-date">申请于 {{item.createdText}}</text>
|
|
|
|
|
<view class="actions">
|
|
|
|
|
<!-- INV-005:伴侣本人确认(仅当自己是受邀伴侣且尚未确认) -->
|
|
|
|
|
<button
|
|
|
|
|
wx:if="{{item.serviceType === 'premarital_guidance' && item.companionUserId && !item.userConfirmedAt}}"
|
|
|
|
|
class="mini-btn confirm" size="mini"
|
|
|
|
|
catchtap="onConfirmCompanion" data-id="{{item.id}}">确认参与</button>
|
|
|
|
|
<button
|
|
|
|
|
wx:if="{{item.canCancel}}"
|
|
|
|
|
class="mini-btn cancel" size="mini"
|
|
|
|
|
catchtap="onCancel" data-id="{{item.id}}">取消申请</button>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2026-09-09 22:05:00 +08:00
|
|
|
</view>
|
2026-09-17 01:25:12 +08:00
|
|
|
</block>
|
2026-09-09 22:05:00 +08:00
|
|
|
</view>
|