fix(RewardCategories): 修复奖励分类页面图片显示问题并恢复文字覆盖层
恢复被注释的文字覆盖层并更新部分图片URL 修改图片显示模式为aspectFill以更好展示
Showing
1 changed file
with
6 additions
and
6 deletions
| 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 10:38:16 | 4 | + * @LastEditTime: 2025-09-05 11:38:59 |
| 5 | * @FilePath: /lls_program/src/pages/RewardCategories/index.vue | 5 | * @FilePath: /lls_program/src/pages/RewardCategories/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -12,13 +12,13 @@ | ... | @@ -12,13 +12,13 @@ |
| 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 h-40"> |
| 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 :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" :style="{ objectPosition: category.bgPosition || '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"> | 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,7 +40,7 @@ const categories = ref([ | ... | @@ -40,7 +40,7 @@ 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%A0logo%E7%A7%AF%E5%88%86%E5%85%91%E6%8D%A2%E5%95%86%E5%9F%8E.png", | 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", |
| 44 | bgPosition: 'center' | 44 | bgPosition: 'center' |
| 45 | }, | 45 | }, |
| 46 | { | 46 | { |
| ... | @@ -55,7 +55,7 @@ const categories = ref([ | ... | @@ -55,7 +55,7 @@ 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%A0logo%E9%93%B6%E9%BE%84%E8%B4%AD%E6%B5%B7%E6%8A%A5.png', | 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', |
| 59 | bgPosition: 'center', | 59 | bgPosition: 'center', |
| 60 | bgColor: 'linear-gradient(135deg, #007bff, #0056b3)', | 60 | bgColor: 'linear-gradient(135deg, #007bff, #0056b3)', |
| 61 | } | 61 | } | ... | ... |
-
Please register or login to post a comment