mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
跳转事件
This commit is contained in:
@@ -102,7 +102,8 @@
|
||||
<div class="portal-ranking ranking-bg">
|
||||
<p class="ranking-title">好评榜</p>
|
||||
<ul class="ranking-data">
|
||||
<li v-for="(item, index) in Positive" :key="index" class="title-line-ellipsis" style="cursor: pointer;margin-top:30px;line-height: 22px;">
|
||||
<li v-for="(item, index) in Positive" :key="index" class="title-line-ellipsis" style="cursor: pointer;margin-top:30px;line-height: 22px;">
|
||||
<router-link :to="'case/detail?id='+item.id">
|
||||
<span class="portal-right-text blue-one" v-if="index==0">
|
||||
<img src="/images/listblue01.png" alt="">
|
||||
</span>
|
||||
@@ -119,6 +120,7 @@
|
||||
<img src="/images/list05.png" alt="">
|
||||
</span>
|
||||
<span class="portal-title-desc" style="font-size: 14px;">{{ item.title }}</span>
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -126,6 +128,7 @@
|
||||
<p class="ranking-title">人气榜</p>
|
||||
<ul class="ranking-data">
|
||||
<li v-for="(item, index) in Popularity" :key="index" class="title-line-ellipsis" style="cursor: pointer;margin-top:30px;line-height: 22px;">
|
||||
<router-link :to="'case/detail?id='+item.id">
|
||||
<span class="portal-right-text orange-one" v-if="index==0">
|
||||
<img src="/images/list-01.png" alt="">
|
||||
</span>
|
||||
@@ -142,6 +145,7 @@
|
||||
<img src="/images/list05.png" alt="">
|
||||
</span>
|
||||
<span class="portal-title-desc" style="font-size: 14px;">{{ item.title }}</span>
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -255,6 +259,10 @@ export default {
|
||||
clearInterval(this.setTimeCase);
|
||||
},
|
||||
methods: {
|
||||
jumecase(item){
|
||||
this.$router.push({ path: './Detail.vue', query: { id: item.id } });
|
||||
|
||||
},
|
||||
couresreso(){
|
||||
let key = 'case';
|
||||
apiPlace.detail(key).then(res=>{
|
||||
@@ -591,9 +599,9 @@ export default {
|
||||
|
||||
}
|
||||
.ranking-title {
|
||||
line-height: 34px;
|
||||
font-size: 15px;
|
||||
color: #333333;
|
||||
// line-height: 34px;
|
||||
// font-size: 15px;
|
||||
// color: #333333;
|
||||
.center-titlt{
|
||||
font-size: 15px;
|
||||
color: #333333;
|
||||
|
||||
Reference in New Issue
Block a user