rating detail
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user