rating detail

This commit is contained in:
zzc
2026-05-07 15:57:39 +08:00
parent d40cc64fa8
commit 84ae386223
3 changed files with 730 additions and 2 deletions

View File

@@ -55,7 +55,12 @@
<!-- 排行榜列表 -->
<view class="rank-list">
<view class="rank-item" v-for="(item, index) in topic.items" :key="item.id">
<view
class="rank-item"
v-for="(item, index) in topic.items"
:key="item.id"
@tap="goToRating(topic.id, item.id)"
>
<text class="rank-num" :class="'rank-' + (index + 1)">{{ index + 1 }}</text>
<image class="item-avatar" :src="item.avatar" mode="aspectFill"></image>
<text class="item-name">{{ item.name }}</text>
@@ -190,6 +195,12 @@ const mockData = [
const topicList = ref([...mockData]);
const goToRating = (topicId, itemId) => {
uni.navigateTo({
url: `/pages/rating/index?topicId=${topicId}&itemId=${itemId}`
});
};
const handleLogin = () => {
if (!userInfo.value.nickName) {
uni.$emit("show-login-popup");