hookehuyr

feat: 在奖励分类跳转时添加分类ID参数

在RewardCategories页面跳转到Rewards页面时,将当前分类ID作为参数传递
```

```msg
refactor(MyFamily): 使用Check图标替换自定义选中标记

将自定义的选中标记替换为nutui的Check图标,提升UI一致性
...@@ -158,10 +158,11 @@ ...@@ -158,10 +158,11 @@
158 class="w-5 h-5 rounded border-2 flex items-center justify-center flex-shrink-0" 158 class="w-5 h-5 rounded border-2 flex items-center justify-center flex-shrink-0"
159 :class="selectedMembers.includes(member.id) ? 'bg-blue-500 border-blue-500' : 'border-gray-300'" 159 :class="selectedMembers.includes(member.id) ? 'bg-blue-500 border-blue-500' : 'border-gray-300'"
160 > 160 >
161 - <view 161 + <Check
162 v-if="selectedMembers.includes(member.id)" 162 v-if="selectedMembers.includes(member.id)"
163 - class="w-2 h-2 bg-white rounded-sm" 163 + size="12"
164 - ></view> 164 + color="white"
165 + />
165 </view> 166 </view>
166 167
167 <!-- 头像 --> 168 <!-- 头像 -->
...@@ -219,7 +220,7 @@ ...@@ -219,7 +220,7 @@
219 <script setup> 220 <script setup>
220 import { ref, onMounted, computed } from 'vue'; 221 import { ref, onMounted, computed } from 'vue';
221 import Taro, { useDidShow } from '@tarojs/taro'; 222 import Taro, { useDidShow } from '@tarojs/taro';
222 -import { Home } from '@nutui/icons-vue-taro'; 223 +import { Home, Check } from '@nutui/icons-vue-taro';
223 import './index.less'; 224 import './index.less';
224 // 获取接口信息 225 // 获取接口信息
225 import { getMyFamiliesAPI, switchCurrentFamilyAPI, deleteFamilyMemberAPI } from '@/api/family'; 226 import { getMyFamiliesAPI, switchCurrentFamilyAPI, deleteFamilyMemberAPI } from '@/api/family';
......
1 <!-- 1 <!--
2 * @Date: 2025-08-27 17:47:03 2 * @Date: 2025-08-27 17:47:03
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-09-05 13:48:14 4 + * @LastEditTime: 2025-09-05 14:08:51
5 * @FilePath: /lls_program/src/pages/RewardCategories/index.vue 5 * @FilePath: /lls_program/src/pages/RewardCategories/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -63,7 +63,7 @@ const categories = ref([ ...@@ -63,7 +63,7 @@ const categories = ref([
63 63
64 const goToRewards = (idx) => { 64 const goToRewards = (idx) => {
65 if (idx !== 1) { 65 if (idx !== 1) {
66 - Taro.navigateTo({ url: '/pages/Rewards/index' }); 66 + Taro.navigateTo({ url: '/pages/Rewards/index?category=' + categories.value[idx]?.id });
67 } else { 67 } else {
68 // 弹出确认提示框, 不用进行操作, 只是文本提示用户进行线下兑换 68 // 弹出确认提示框, 不用进行操作, 只是文本提示用户进行线下兑换
69 Taro.showModal({ 69 Taro.showModal({
......