对接后端 hgmjapi.mfcg.me: - 接口解密 key 更新为 resKey360 - 登录 sysType 使用原生 getDevType(后端已放开 pc/android) - 修正榜单接口路径 /vid/rangking → /vid/ranking,方法改为 GET Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
76 lines
1.7 KiB
Vue
76 lines
1.7 KiB
Vue
<template>
|
|
<div class="contact">
|
|
<div class="title">商务合作</div>
|
|
<div class="contact-list">
|
|
<div class="item" v-for="(item, index) in state.contactInfo" :key="index" @click="openPage(item.officialUrl)">
|
|
<lazyImg class="connectImg" :src="item.officialImg" />
|
|
<div class="text">
|
|
<p class="name">{{ item.officialName }}</p>
|
|
<p class="described">{{ item.officialDesc }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import { reactive } from 'vue';
|
|
import AppApi from '@/service/app';
|
|
const state = reactive({
|
|
contactInfo: <any>[],
|
|
});
|
|
const queryContactInfo = async () => {
|
|
try {
|
|
let req = {
|
|
type: 3,
|
|
};
|
|
const res: any = await AppApi.getBusiness(req);
|
|
state.contactInfo = res || [];
|
|
} catch (error) {
|
|
}
|
|
};
|
|
queryContactInfo();
|
|
const openPage = (url: string) => {
|
|
window.open(url);
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
@media (min-width: 768px) {
|
|
.contact {
|
|
color: #fff;
|
|
width: 1104px;
|
|
margin: 112px auto 0;
|
|
padding-bottom: 70px;
|
|
.title {
|
|
color: #FFF;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
line-height: 41px;
|
|
}
|
|
.contact-list {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-top: 61px;
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
}
|
|
.connectImg {
|
|
width: 86px;
|
|
height: 86px;
|
|
border-radius: 50%;
|
|
margin-right: 17px;
|
|
}
|
|
.name {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
.described {
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |