hookehuyr

style(components): 添加临时背景图并调整组件高度

为TotalPointsDisplay和PointsCollector组件添加临时背景图,等待正式背景图替换
调整Dashboard页面中PointsCollector和TotalPointsDisplay组件的高度
注释掉AdOverlay组件中的页面跳转逻辑
......@@ -122,15 +122,15 @@ const handleAdClick = () => {
hide()
// 跳转到目标页面
Taro.navigateTo({
url: props.targetPage
}).catch(error => {
console.error('页面跳转失败:', error)
Taro.showToast({
title: '页面跳转失败',
icon: 'none'
})
})
// Taro.navigateTo({
// url: props.targetPage
// }).catch(error => {
// console.error('页面跳转失败:', error)
// Taro.showToast({
// title: '页面跳转失败',
// icon: 'none'
// })
// })
// 触发点击事件
emit('click', props.targetPage)
......
......@@ -459,6 +459,10 @@ const handleGoToRewards = () => {
width: 100%;
height: 100vh;
// background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
// TODO: 等待正式背景图
background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/bg-test-2.png');
background-size: cover;
background-position: center bottom;
overflow: hidden;
}
......
......@@ -153,6 +153,10 @@ const handleGoToPointsRule = () => {
display: flex;
justify-content: center;
align-items: center;
// TODO: 等待正式背景图
background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/bg-test-2.png');
background-size: cover;
background-position: center bottom;
}
// .points-rule-tip {
......
......@@ -26,7 +26,7 @@
<template v-if="!showTotalPointsOnly">
<PointsCollector
ref="pointsCollectorRef"
height="25vh"
height="30vh"
:total-points="finalTotalPoints"
:pending-points="pendingPoints"
:family-id="family_id"
......@@ -73,7 +73,7 @@
<TotalPointsDisplay
:total-points="finalTotalPoints"
:is-owner="familyOwner"
height="15vh"
height="20vh"
>
<!-- 头部:今日步数 -->
<template #header>
......