You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.9 KiB
59 lines
1.9 KiB
<view class="container">
|
|
<!-- 加载中提示 -->
|
|
<view wx:if="{{loading}}" class="loading">
|
|
<text>加载中...</text>
|
|
</view>
|
|
|
|
<!-- 空列表提示 -->
|
|
<view wx:elif="{{list.length === 0}}" class="empty">
|
|
<text>暂无今日问诊</text>
|
|
</view>
|
|
|
|
<!-- 问诊列表 -->
|
|
<scroll-view
|
|
wx:else
|
|
scroll-y
|
|
class="scroll-list"
|
|
bindscrolltolower="loadMore"
|
|
lower-threshold="50"
|
|
>
|
|
<view class="list">
|
|
<view class="card" wx:for="{{list}}" wx:key="formId" data-value="{{item}}" bindtap="goDetail">
|
|
<!-- 用户信息行:头像、姓名、时间、状态 -->
|
|
<view class="user-row">
|
|
<image class="avatar" src="{{baseUrl + item.avatar}}" mode="aspectFill" lazy-load></image>
|
|
<view class="user-info">
|
|
<text class="name">{{item.farmerName}}</text>
|
|
<text class="time">{{item.createdTime}}</text>
|
|
</view>
|
|
<view class="status" data-status="{{item.status}}">{{item.status}}</view>
|
|
</view>
|
|
|
|
<!-- 病情描述卡片 -->
|
|
<view class="content-block">
|
|
<view class="desc">{{item.description}}</view>
|
|
<!-- 动物标签 -->
|
|
<view class="tag-group">
|
|
<text class="tag">{{item.animalType}}</text>
|
|
<text class="tag">{{item.animalGender}}</text>
|
|
<text class="tag">{{item.animalAge}}岁</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 底部互动信息 -->
|
|
<view class="card-footer">
|
|
<text>浏览 {{item.viewCount || 0}}</text>
|
|
<text>回复 {{item.replyCount || 0}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 加载更多 -->
|
|
<view class="load-more" wx:if="{{hasMore}}">
|
|
<text>加载更多...</text>
|
|
</view>
|
|
<view class="no-more" wx:elif="{{list.length > 0}}">
|
|
<text>没有更多了</text>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|