From 375c18a6d2713ff19b22093eec57315992d8333f Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期四, 06 十一月 2025 13:33:52 +0800
Subject: [PATCH] 增加评审下载
---
wx/pages/profile/employee-review.wxml | 40 ++++++++++++++++++++++++----------------
1 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/wx/pages/profile/employee-review.wxml b/wx/pages/profile/employee-review.wxml
index a1c4e8c..c7eb086 100644
--- a/wx/pages/profile/employee-review.wxml
+++ b/wx/pages/profile/employee-review.wxml
@@ -1,16 +1,18 @@
<view class="container">
- <view class="search-bar">
- <input
- class="search-input"
- value="{{searchKeyword}}"
- placeholder="鎼滅储姣旇禌 / 椤圭洰 / 瀛﹀憳"
- bindinput="onSearchInput"
- confirm-type="search"
- bindconfirm="onSearch"
- />
- <view class="search-actions">
- <button class="primary-btn" bindtap="onSearch">鎼滅储</button>
- <button class="plain-btn" bindtap="clearSearch" wx:if="{{searchKeyword}}">娓呯┖</button>
+ <view class="search-container">
+ <view class="search-box">
+ <text class="icon search-icon ic-search"></text>
+ <input
+ class="search-input"
+ placeholder="鎼滅储姣旇禌 / 椤圭洰 / 瀛﹀憳"
+ value="{{searchKeyword}}"
+ bindinput="onSearchInput"
+ confirm-type="search"
+ bindconfirm="onSearch"
+ />
+ <view class="search-clear" wx:if="{{searchKeyword}}" bindtap="clearSearch">
+ <text class="icon clear-icon ic-close"></text>
+ </view>
</view>
</view>
@@ -32,7 +34,14 @@
</view>
<view class="list-container">
- <view wx:if="{{list.length > 0}}">
+ <block wx:if="{{loading && list.length === 0}}">
+ <view class="loading-state">
+ <text class="icon loading-icon ic-refresh"></text>
+ <text class="loading-text">姝e湪鍔犺浇</text>
+ </view>
+ </block>
+
+ <block wx:elif="{{list.length > 0}}">
<view class="audit-card" wx:for="{{list}}" wx:key="id">
<view class="card-header">
<text class="card-title">{{item.projectName || '鏈懡鍚嶉」鐩�'}}</text>
@@ -51,7 +60,6 @@
<text class="card-value">{{item.applyTime || '-'}}</text>
</view>
<view class="card-footer">
- <text class="card-tip">鏈�鏂扮姸鎬侊細{{item.stateText || '鏈煡'}}</text>
<button class="action-btn" data-id="{{item.id}}" bindtap="goToDetail">瀹℃牳</button>
</view>
</view>
@@ -61,10 +69,10 @@
<view class="load-more" wx:elif="{{!hasMore}}">
<text>娌℃湁鏇村鏁版嵁</text>
</view>
- </view>
+ </block>
<view wx:else class="empty-state">
- <text class="empty-icon">馃搨</text>
+ <text class="icon empty-icon ic-list"></text>
<text class="empty-text">鏆傛棤绗﹀悎鏉′欢鐨勯」鐩�</text>
<text class="empty-desc">灏濊瘯璋冩暣绛涢�夋潯浠舵垨鎼滅储鍏朵粬鍏抽敭璇�</text>
</view>
--
Gitblit v1.8.0