微信小程序页面迁移校验之前 P5任务处理之前
This commit is contained in:
45
apps/miniprogram - 副本/miniprogram/pages/notes/notes.wxml
Normal file
45
apps/miniprogram - 副本/miniprogram/pages/notes/notes.wxml
Normal file
@@ -0,0 +1,45 @@
|
||||
<!-- 自定义顶部导航栏 -->
|
||||
<view class="nav-bar" style="padding-top: {{statusBarHeight}}px;">
|
||||
<view class="nav-bar-inner">
|
||||
<view class="nav-back" bindtap="onBack">
|
||||
<t-icon name="chevron-left" size="40rpx" color="#4b4b4b" />
|
||||
</view>
|
||||
<text class="nav-title">备注</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 加载态 -->
|
||||
<view class="page-loading" wx:if="{{loading}}">
|
||||
<t-loading theme="circular" size="80rpx" text="加载中..." />
|
||||
</view>
|
||||
|
||||
<!-- 错误态 -->
|
||||
<view class="page-error" wx:elif="{{error}}">
|
||||
<text class="error-text">加载失败,请点击重试</text>
|
||||
<view class="retry-btn" bindtap="onRetry">
|
||||
<text>重试</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 空数据态 -->
|
||||
<view class="page-empty" wx:elif="{{notes.length === 0}}">
|
||||
<t-icon name="edit-1" size="120rpx" color="#dcdcdc" />
|
||||
<text class="empty-text">暂无备注记录</text>
|
||||
</view>
|
||||
|
||||
<!-- 正常态 — 备注列表 -->
|
||||
<view class="note-list" wx:else>
|
||||
<view
|
||||
class="note-card"
|
||||
wx:for="{{notes}}"
|
||||
wx:key="id"
|
||||
>
|
||||
<text class="note-content">{{item.content}}</text>
|
||||
<view class="note-bottom">
|
||||
<text class="note-tag {{item.tagType === 'coach' ? 'tag-coach' : 'tag-customer'}}">{{item.tagLabel}}</text>
|
||||
<text class="note-time">{{item.createdAt}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<dev-fab />
|
||||
Reference in New Issue
Block a user