|
@@ -109,7 +109,7 @@
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
<a-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" :style="{ marginBottom: '8px', paddingRight: 0 }">
|
|
<a-card title="友情链接" :bordered="false" style="width:100%;height:216px">
|
|
<a-card title="友情链接" :bordered="false" style="width:100%;height:216px">
|
|
<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, 10)" :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="#" @click="openItemLink(item)">
|
|
<a href="#" @click="openItemLink(item)">
|
|
<span width="2em"> {{ item.name }}</span>
|
|
<span width="2em"> {{ item.name }}</span>
|
|
@@ -393,6 +393,7 @@ export default {
|
|
// 查询友情链接
|
|
// 查询友情链接
|
|
async getMyLinks() {
|
|
async getMyLinks() {
|
|
// params:{xx1:'',xx2:'',......}
|
|
// params:{xx1:'',xx2:'',......}
|
|
|
|
+ // isRelease为 1 已发布(渲染)
|
|
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
|