fix(Activities): 修复无法返回时使用reLaunch跳转首页
style(RankingCard): 更新排行榜卡片背景样式
Showing
2 changed files
with
6 additions
and
5 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2025-01-09 00:00:00 | 2 | * @Date: 2025-01-09 00:00:00 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-09-11 15:40:19 | 4 | + * @LastEditTime: 2025-09-11 21:35:04 |
| 5 | * @FilePath: /lls_program/src/components/RankingCard.vue | 5 | * @FilePath: /lls_program/src/components/RankingCard.vue |
| 6 | * @Description: 排行榜卡片组件 | 6 | * @Description: 排行榜卡片组件 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | - <view class="ranking-card"> | 9 | + <view class="ranking-card bg-blue-500 bg-opacity-50"> |
| 10 | <!-- 卡片头部 --> | 10 | <!-- 卡片头部 --> |
| 11 | <view class="card-header"> | 11 | <view class="card-header"> |
| 12 | <view class="card-title">全市排行</view> | 12 | <view class="card-title">全市排行</view> |
| ... | @@ -329,7 +329,8 @@ defineExpose({ | ... | @@ -329,7 +329,8 @@ defineExpose({ |
| 329 | 329 | ||
| 330 | <style lang="less"> | 330 | <style lang="less"> |
| 331 | .ranking-card { | 331 | .ranking-card { |
| 332 | - background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color) 100%); | 332 | + // background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color) 100%); |
| 333 | + // background: var(--primary-color); | ||
| 333 | border-radius: 20rpx; | 334 | border-radius: 20rpx; |
| 334 | padding: 40rpx; | 335 | padding: 40rpx; |
| 335 | margin: 30rpx; | 336 | margin: 30rpx; | ... | ... |
| ... | @@ -99,7 +99,7 @@ const handleGoBack = () => { | ... | @@ -99,7 +99,7 @@ const handleGoBack = () => { |
| 99 | delta: 1 | 99 | delta: 1 |
| 100 | }).catch(() => { | 100 | }).catch(() => { |
| 101 | // 如果无法返回,则跳转到首页 | 101 | // 如果无法返回,则跳转到首页 |
| 102 | - Taro.switchTab({ | 102 | + Taro.reLaunch({ |
| 103 | url: '/pages/Dashboard/index' | 103 | url: '/pages/Dashboard/index' |
| 104 | }) | 104 | }) |
| 105 | }) | 105 | }) |
| ... | @@ -158,7 +158,7 @@ const initPageData = async () => { | ... | @@ -158,7 +158,7 @@ const initPageData = async () => { |
| 158 | // 显示错误状态,不使用默认URL | 158 | // 显示错误状态,不使用默认URL |
| 159 | error.value = true | 159 | error.value = true |
| 160 | loading.value = false | 160 | loading.value = false |
| 161 | - | 161 | + |
| 162 | Taro.showToast({ | 162 | Taro.showToast({ |
| 163 | title: '获取地图信息失败', | 163 | title: '获取地图信息失败', |
| 164 | icon: 'none' | 164 | icon: 'none' | ... | ... |
-
Please register or login to post a comment