hookehuyr

feat(RankingCard): 在排行榜卡片中添加助力码入口

添加点击助力码跳转至加入组织页面的功能,提升用户体验
<!--
* @Date: 2025-01-09 00:00:00
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-18 16:45:21
* @LastEditTime: 2025-09-18 17:09:27
* @FilePath: /lls_program/src/components/RankingCard.vue
* @Description: 排行榜卡片组件
-->
......@@ -41,8 +41,9 @@
<!-- 排行榜内容 -->
<view class="rank-content" :class="{ 'content-switching': isContentSwitching }">
<!-- 排行榜日期 -->
<view class="rank-date">
<view class="rank-date relative">
{{ currentDate }}
<view v-if="activeTab === 'support'" class="absolute font-bold text-white" style="right: 95rpx;" @tap="joinOrganization">助力码</view>
</view>
<!-- 前三名展示 -->
<view class="top-three">
......@@ -122,6 +123,7 @@
<script setup>
import { ref, computed, onMounted } from 'vue'
import Taro from '@tarojs/taro'
import { IconFont } from '@nutui/icons-vue-taro';
// 默认头像
const defaultAvatar = 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg'
......@@ -212,6 +214,12 @@ const supportData = ref({
}
})
const joinOrganization = () => {
Taro.navigateTo({
url: '/pages/JoinOrganization/index'
})
}
// 加载状态
const loading = ref(false)
......