[update] 首页友情链接点击跳转
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<span class="right-p" @click="moreLink">更多链接<i class="iconfont icon-right"></i></span>
|
<span class="right-p" @click="moreLink">更多链接<i class="iconfont icon-right"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<div class="content-div" v-for="item in dataSource" :key="item.id">
|
<div class="content-div" v-for="item in dataSource" :key="item.id" @click="clickLink(item)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,6 +49,11 @@ export default {
|
|||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/isystem/friendshipLink'
|
path: '/isystem/friendshipLink'
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
// 点击链接
|
||||||
|
clickLink (record) {
|
||||||
|
const href = record.link
|
||||||
|
window.open(href)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -75,5 +80,6 @@ export default {
|
|||||||
color: @primary-color;
|
color: @primary-color;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-image: url('../../../assets/image/dashboardLinkBack.png');
|
background-image: url('../../../assets/image/dashboardLinkBack.png');
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user