|
@@ -113,7 +113,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="four_2">
|
|
<div class="four_2">
|
|
<div class="list" v-for="(item, index) in friendList" :key="index">
|
|
<div class="list" v-for="(item, index) in friendList" :key="index">
|
|
- <el-image class="image" :src="getUrl(item.url, 'array')" fit="fill"></el-image>
|
|
|
|
|
|
+ <el-image class="image" :src="getUrl(item.file, 'array')" fit="fill"></el-image>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -153,9 +153,11 @@ const user = computed(() => userStore.user)
|
|
import { NewsStore } from '@/store/api/platform/news'
|
|
import { NewsStore } from '@/store/api/platform/news'
|
|
import { MatchStore } from '@/store/api/platform/match'
|
|
import { MatchStore } from '@/store/api/platform/match'
|
|
import { DesignStore } from '@/store/api/platform/design'
|
|
import { DesignStore } from '@/store/api/platform/design'
|
|
|
|
+import { FriendStore } from '@/store/api/platform/friend'
|
|
const newsStore = NewsStore()
|
|
const newsStore = NewsStore()
|
|
const matchStore = MatchStore()
|
|
const matchStore = MatchStore()
|
|
const designStore = DesignStore()
|
|
const designStore = DesignStore()
|
|
|
|
+const friendStore = FriendStore()
|
|
// 加载中
|
|
// 加载中
|
|
const loading = ref(false)
|
|
const loading = ref(false)
|
|
// 路由
|
|
// 路由
|
|
@@ -186,11 +188,13 @@ const searchOther = async () => {
|
|
// 政策新闻
|
|
// 政策新闻
|
|
res = await newsStore.query({ ...info })
|
|
res = await newsStore.query({ ...info })
|
|
if (res.errcode == '0') newsList.value = res.data
|
|
if (res.errcode == '0') newsList.value = res.data
|
|
|
|
+ // 合作伙伴
|
|
|
|
+ res = await friendStore.list({ is_use: '0' })
|
|
|
|
+ if (res.errcode == '0') friendList.value = res.data
|
|
// 基础设置
|
|
// 基础设置
|
|
res = await designStore.query({})
|
|
res = await designStore.query({})
|
|
if ($checkRes(res)) {
|
|
if ($checkRes(res)) {
|
|
carouselList.value = res.data[0].carouselUrl || []
|
|
carouselList.value = res.data[0].carouselUrl || []
|
|
- friendList.value = res.data[0].friend || []
|
|
|
|
const friendship = res.data[0].friendship || []
|
|
const friendship = res.data[0].friendship || []
|
|
for (const val of friendship) {
|
|
for (const val of friendship) {
|
|
for (const tag of typeList.value) {
|
|
for (const tag of typeList.value) {
|