|
@@ -107,7 +107,7 @@
|
|
<template #extra><a href="javascript:void(0);" @click="openMyLinks">更多</a></template>
|
|
<template #extra><a href="javascript:void(0);" @click="openMyLinks">更多</a></template>
|
|
<div v-for="item in linksList.slice(0, 8)" :key="item.id" class="links">
|
|
<div v-for="item in linksList.slice(0, 8)" :key="item.id" class="links">
|
|
<button class="itemLink">
|
|
<button class="itemLink">
|
|
- <a href="https://www.yonyou.com/" target="_blank">
|
|
|
|
|
|
+ <a href="#" @click="openItemLink(item)">
|
|
<span width="2em"> {{ item.name }}</span>
|
|
<span width="2em"> {{ item.name }}</span>
|
|
</a>
|
|
</a>
|
|
</button>
|
|
</button>
|
|
@@ -344,10 +344,16 @@ export default {
|
|
this.getAnnList()
|
|
this.getAnnList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // 获取友情链接
|
|
|
|
|
|
+ // 友情链接跳转
|
|
|
|
+ openItemLink(e) {
|
|
|
|
+ console.log('e????', e)
|
|
|
|
+ window.open(e.link, '_blank') //新窗口打开
|
|
|
|
+ console.log('e.link', e.link)
|
|
|
|
+ },
|
|
|
|
+ // 查询友情链接
|
|
async getMyLinks() {
|
|
async getMyLinks() {
|
|
// params:{xx1:'',xx2:'',......}
|
|
// params:{xx1:'',xx2:'',......}
|
|
- await linksList({isRelease:'1'}).then(res => {
|
|
|
|
|
|
+ await linksList({ isRelease: '1' }).then(res => {
|
|
console.log('友情链接后台返回结果', res)
|
|
console.log('友情链接后台返回结果', res)
|
|
this.linksList = res.result.records
|
|
this.linksList = res.result.records
|
|
console.log('this.linksList', this.linksList)
|
|
console.log('this.linksList', this.linksList)
|