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-05 11:40:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
25fb7aa10f16765734be32cefbcf6a3cf439dd42
25fb7aa1
1 parent
47355d84
fix(RewardCategories): 修复奖励分类页面图片显示问题并恢复文字覆盖层
恢复被注释的文字覆盖层并更新部分图片URL 修改图片显示模式为aspectFill以更好展示
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
src/pages/RewardCategories/index.vue
src/pages/RewardCategories/index.vue
View file @
25fb7aa
<!--
* @Date: 2025-08-27 17:47:03
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-05 1
0:38:16
* @LastEditTime: 2025-09-05 1
1:38:59
* @FilePath: /lls_program/src/pages/RewardCategories/index.vue
* @Description: 文件描述
-->
...
...
@@ -12,13 +12,13 @@
<view class="p-4 space-y-4">
<view v-for="(category, index) in categories" :key="category.id" class="rounded-lg overflow-hidden shadow-sm" @click="goToRewards(index)">
<view class="relative h-40">
<
!-- <
view class="absolute inset-0 bg-black bg-opacity-30 flex flex-col justify-end p-4 text-white">
<view class="absolute inset-0 bg-black bg-opacity-30 flex flex-col justify-end p-4 text-white">
<h3 class="text-xl font-bold mb-1">{{ category.title }}</h3>
<p class="text-sm text-white text-opacity-90">
{{ category.description }}
</p>
</view>
-->
<image :src="category.image" :alt="category.title" class="w-full h-full object-cover" :style="{ objectPosition: category.bgPosition || 'center' }" />
</view>
<image
mode="aspectFill"
:src="category.image" :alt="category.title" class="w-full h-full object-cover" :style="{ objectPosition: category.bgPosition || 'center' }" />
<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">
<image :src="category.iconUrl" alt="" class="w-8 h-8" />
</view>
...
...
@@ -40,7 +40,7 @@ const categories = ref([
id: 'health',
title: '银龄健康特色兑换区',
description: '南京商圈线下实体店消费积分兑换',
image: "https://cdn.ipadbiz.cn/lls_prog/images/%E6%97%A0
logo%E7%A7%AF%E5%88%86%E5%85%91%E6%8D%A2%E5%95%86%E5%9F%8E.pn
g",
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.jp
g",
bgPosition: 'center'
},
{
...
...
@@ -55,7 +55,7 @@ const categories = ref([
id: 'merchants',
title: '人驻商户多元场景广覆盖',
description: '丰富商户积分兑换',
image: 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%97%A0
logo%E9%93%B6%E9%BE%84%E8%B4%AD%E6%B5%B7%E6%8A%A5.pn
g',
image: 'https://cdn.ipadbiz.cn/lls_prog/images/%E6%97%A0
%E5%AD%97-%E9%93%B6%E9%BE%84%E8%B4%AD.jpe
g',
bgPosition: 'center',
bgColor: 'linear-gradient(135deg, #007bff, #0056b3)',
}
...
...
Please
register
or
login
to post a comment