Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
lls_program
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-09-19 14:05:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f875a349d2a88f462e425d296401cc7a3c52ef73
f875a349
1 parent
b9b6eb77
refactor(前端): 简化奖励页面的筛选逻辑并更新欢迎页文案
移除前端对奖励项目的搜索和筛选处理,完全交由API处理 更新欢迎页创建家庭的描述,明确年龄限制
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
src/pages/Rewards/index.vue
src/pages/Welcome/index.vue
src/pages/Rewards/index.vue
View file @
f875a34
...
...
@@ -141,18 +141,9 @@ const hasMore = ref(true);
const sortedRewardItems = computed(() => {
// 确保couponList.value是数组类型
const couponArray = Array.isArray(couponList.value) ? couponList.value : [];
let items = [...couponArray];
// Filter by search query
if (searchQuery.value) {
items = items.filter(item =>
item.title && item.title.toLowerCase().includes(searchQuery.value.toLowerCase())
);
}
// 积分范围筛选现在由API处理,这里不需要前端筛选
// 排序也由API处理,这里保持原始顺序
return items;
// 搜索、积分范围筛选和排序都由API处理,前端直接返回API数据
return couponArray;
});
const toggleSortOrder = () => {
...
...
src/pages/Welcome/index.vue
View file @
f875a34
<!--
* @Date: 2025-08-27 17:43:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-1
8 17:55:04
* @LastEditTime: 2025-09-1
9 14:00:38
* @FilePath: /lls_program/src/pages/Welcome/index.vue
* @Description: 欢迎页
-->
...
...
@@ -27,7 +27,7 @@
<view>
<h3 class="font-bold">创建家庭</h3>
<p class="text-gray-600 text-sm">
家长创建家庭,设置专属口令
60岁以上
家长创建家庭,设置专属口令
</p>
</view>
</view>
...
...
Please
register
or
login
to post a comment