hookehuyr

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

为TotalPointsDisplay和PointsCollector组件添加临时背景图,等待正式背景图替换
调整Dashboard页面中PointsCollector和TotalPointsDisplay组件的高度
注释掉AdOverlay组件中的页面跳转逻辑
...@@ -122,15 +122,15 @@ const handleAdClick = () => { ...@@ -122,15 +122,15 @@ const handleAdClick = () => {
122 hide() 122 hide()
123 123
124 // 跳转到目标页面 124 // 跳转到目标页面
125 - Taro.navigateTo({ 125 + // Taro.navigateTo({
126 - url: props.targetPage 126 + // url: props.targetPage
127 - }).catch(error => { 127 + // }).catch(error => {
128 - console.error('页面跳转失败:', error) 128 + // console.error('页面跳转失败:', error)
129 - Taro.showToast({ 129 + // Taro.showToast({
130 - title: '页面跳转失败', 130 + // title: '页面跳转失败',
131 - icon: 'none' 131 + // icon: 'none'
132 - }) 132 + // })
133 - }) 133 + // })
134 134
135 // 触发点击事件 135 // 触发点击事件
136 emit('click', props.targetPage) 136 emit('click', props.targetPage)
......
...@@ -459,6 +459,10 @@ const handleGoToRewards = () => { ...@@ -459,6 +459,10 @@ const handleGoToRewards = () => {
459 width: 100%; 459 width: 100%;
460 height: 100vh; 460 height: 100vh;
461 // background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 461 // background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
462 + // TODO: 等待正式背景图
463 + background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/bg-test-2.png');
464 + background-size: cover;
465 + background-position: center bottom;
462 overflow: hidden; 466 overflow: hidden;
463 } 467 }
464 468
......
...@@ -153,6 +153,10 @@ const handleGoToPointsRule = () => { ...@@ -153,6 +153,10 @@ const handleGoToPointsRule = () => {
153 display: flex; 153 display: flex;
154 justify-content: center; 154 justify-content: center;
155 align-items: center; 155 align-items: center;
156 + // TODO: 等待正式背景图
157 + background-image: url('https://cdn.ipadbiz.cn/lls_prog/images/bg-test-2.png');
158 + background-size: cover;
159 + background-position: center bottom;
156 } 160 }
157 161
158 // .points-rule-tip { 162 // .points-rule-tip {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
26 <template v-if="!showTotalPointsOnly"> 26 <template v-if="!showTotalPointsOnly">
27 <PointsCollector 27 <PointsCollector
28 ref="pointsCollectorRef" 28 ref="pointsCollectorRef"
29 - height="25vh" 29 + height="30vh"
30 :total-points="finalTotalPoints" 30 :total-points="finalTotalPoints"
31 :pending-points="pendingPoints" 31 :pending-points="pendingPoints"
32 :family-id="family_id" 32 :family-id="family_id"
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
73 <TotalPointsDisplay 73 <TotalPointsDisplay
74 :total-points="finalTotalPoints" 74 :total-points="finalTotalPoints"
75 :is-owner="familyOwner" 75 :is-owner="familyOwner"
76 - height="15vh" 76 + height="20vh"
77 > 77 >
78 <!-- 头部:今日步数 --> 78 <!-- 头部:今日步数 -->
79 <template #header> 79 <template #header>
......