Commit 99c4f028 by 匡雅琴

修改

1 parent b6d076ec
<template> <template>
<div> <div>
<div v-for="(item, index) in rankingsList" :key="index" class="ranking-box-item"> <div v-for="(item, index) in rankingsList" :key="index" class="ranking-box-item" @click="goDetailPage(item)">
<div class="ranking-box-item-left"> <div class="ranking-box-item-left">
<div class="circle" :style="{ 'background-image': index < 3 ? RankColor[index] : '' }">{{ index + 1 }}</div> <div class="circle" :style="{ 'background-image': index < 3 ? RankColor[index] : '' }">{{ index + 1 }}</div>
<div class="text">{{ item.name }}</div> <div class="text">{{ item.name }}</div>
...@@ -29,7 +29,12 @@ export default { ...@@ -29,7 +29,12 @@ export default {
mounted() { mounted() {
}, },
methods: {} methods: {
// 跳转详情页面
goDetailPage(item) {
console.log(item)
}
}
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!