hookehuyr

fix(Activities): 修复无法返回时使用reLaunch跳转首页

style(RankingCard): 更新排行榜卡片背景样式
<!--
* @Date: 2025-01-09 00:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-11 15:40:19
* @LastEditTime: 2025-09-11 21:35:04
* @FilePath: /lls_program/src/components/RankingCard.vue
* @Description: 排行榜卡片组件
-->
<template>
<view class="ranking-card">
<view class="ranking-card bg-blue-500 bg-opacity-50">
<!-- 卡片头部 -->
<view class="card-header">
<view class="card-title">全市排行</view>
......@@ -329,7 +329,8 @@ defineExpose({
<style lang="less">
.ranking-card {
background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color) 100%);
// background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-color) 100%);
// background: var(--primary-color);
border-radius: 20rpx;
padding: 40rpx;
margin: 30rpx;
......
......@@ -99,7 +99,7 @@ const handleGoBack = () => {
delta: 1
}).catch(() => {
// 如果无法返回,则跳转到首页
Taro.switchTab({
Taro.reLaunch({
url: '/pages/Dashboard/index'
})
})
......