hookehuyr

style(RewardCategories): 调整奖励分类页面样式和图片

- 修改分类卡片高度为380rpx
- 更新健康分类和商户分类的图片URL
- 移除图片的objectPosition内联样式
- 调整商户分类的背景图定位为底部居中
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 11:38:59 4 + * @LastEditTime: 2025-09-05 13:48:14
5 * @FilePath: /lls_program/src/pages/RewardCategories/index.vue 5 * @FilePath: /lls_program/src/pages/RewardCategories/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
11 <view class="flex-1 pb-20"> 11 <view class="flex-1 pb-20">
12 <view class="p-4 space-y-4"> 12 <view class="p-4 space-y-4">
13 <view v-for="(category, index) in categories" :key="category.id" class="rounded-lg overflow-hidden shadow-sm" @click="goToRewards(index)"> 13 <view v-for="(category, index) in categories" :key="category.id" class="rounded-lg overflow-hidden shadow-sm" @click="goToRewards(index)">
14 - <view class="relative h-40"> 14 + <view class="relative" style="height: 380rpx;">
15 <view class="absolute inset-0 bg-black bg-opacity-30 flex flex-col justify-end p-4 text-white"> 15 <view class="absolute inset-0 bg-black bg-opacity-30 flex flex-col justify-end p-4 text-white">
16 <h3 class="text-xl font-bold mb-1">{{ category.title }}</h3> 16 <h3 class="text-xl font-bold mb-1">{{ category.title }}</h3>
17 <p class="text-sm text-white text-opacity-90"> 17 <p class="text-sm text-white text-opacity-90">
18 {{ category.description }} 18 {{ category.description }}
19 </p> 19 </p>
20 </view> 20 </view>
21 - <image mode="aspectFill" :src="category.image" :alt="category.title" class="w-full h-full object-cover" :style="{ objectPosition: category.bgPosition || 'center' }" /> 21 + <image mode="aspectFill" :src="category.image" :alt="category.title" class="w-full h-full object-cover" />
22 <view v-if="category.iconUrl" class="absolute top-4 left-4 w-12 h-12 bg-white bg-opacity-90 rounded-full flex items-center justify-center"> 22 <view v-if="category.iconUrl" class="absolute top-4 left-4 w-12 h-12 bg-white bg-opacity-90 rounded-full flex items-center justify-center">
23 <image :src="category.iconUrl" alt="" class="w-8 h-8" /> 23 <image :src="category.iconUrl" alt="" class="w-8 h-8" />
24 </view> 24 </view>
...@@ -40,14 +40,14 @@ const categories = ref([ ...@@ -40,14 +40,14 @@ const categories = ref([
40 id: 'health', 40 id: 'health',
41 title: '银龄健康特色兑换区', 41 title: '银龄健康特色兑换区',
42 description: '南京商圈线下实体店消费积分兑换', 42 description: '南京商圈线下实体店消费积分兑换',
43 - image: "https://cdn.ipadbiz.cn/lls_prog/images/%E6%97%A0%E5%AD%97-%E7%A7%AF%E5%88%86%E5%95%86%E5%9F%8E.jpg", 43 + image: "https://cdn.ipadbiz.cn/lls_prog/images/%E5%8D%97%E4%BA%AC%E8%B7%AF%E5%95%86%E5%9C%88.jpeg",
44 bgPosition: 'center' 44 bgPosition: 'center'
45 }, 45 },
46 { 46 {
47 id: 'online', 47 id: 'online',
48 title: '民政领域网上商城"银龄购"', 48 title: '民政领域网上商城"银龄购"',
49 description: '线上康复健康购物积分兑换', 49 description: '线上康复健康购物积分兑换',
50 - image: 'https://images.unsplash.com/photo-1563013544-824ae1b704d3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80', 50 + image: 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%97%A0%E5%AD%97-%E9%93%B6%E9%BE%84%E8%B4%AD.jpeg',
51 bgPosition: 'center', 51 bgPosition: 'center',
52 bgColor: 'linear-gradient(135deg, #0ea5e9, #2563eb)', 52 bgColor: 'linear-gradient(135deg, #0ea5e9, #2563eb)',
53 }, 53 },
...@@ -55,8 +55,8 @@ const categories = ref([ ...@@ -55,8 +55,8 @@ const categories = ref([
55 id: 'merchants', 55 id: 'merchants',
56 title: '人驻商户多元场景广覆盖', 56 title: '人驻商户多元场景广覆盖',
57 description: '丰富商户积分兑换', 57 description: '丰富商户积分兑换',
58 - image: 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%97%A0%E5%AD%97-%E9%93%B6%E9%BE%84%E8%B4%AD.jpeg', 58 + image: 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%97%A0%E5%AD%97-%E7%A7%AF%E5%88%86%E5%95%86%E5%9F%8E.jpg',
59 - bgPosition: 'center', 59 + bgPosition: 'bottom center',
60 bgColor: 'linear-gradient(135deg, #007bff, #0056b3)', 60 bgColor: 'linear-gradient(135deg, #007bff, #0056b3)',
61 } 61 }
62 ]); 62 ]);
......