初始化黄果短剧 H5 客户端

对接后端 hgmjapi.mfcg.me:
- 接口解密 key 更新为 resKey360
- 登录 sysType 使用原生 getDevType(后端已放开 pc/android)
- 修正榜单接口路径 /vid/rangking → /vid/ranking,方法改为 GET

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
谢宇宁
2026-10-08 19:41:43 +07:00
co-authored by Claude Opus 4.8
commit c957b45bad
633 changed files with 51497 additions and 0 deletions
+155
View File
@@ -0,0 +1,155 @@
<template>
<div class="mobileBottom">
<div class="contactInfo">
<div class="address" @click="jumpPage('/releaseAddress')">地址發布</div>
<div class="contactBox">
<lazyImg
class="contactItem"
:src="item.officialImg"
v-for="(item, index) in contactInfo"
:key="index"
@click="openPage(item.officialUrl)"
/>
<!-- <lazyImg class="contactItem" :src="'cf230705/image/95/29p/5i/39/92cf6fd5189cedaf2e0756b98520b7cd.gif'" />
<lazyImg class="contactItem" :src="'cf230705/image/95/29p/5i/39/92cf6fd5189cedaf2e0756b98520b7cd.gif'" /> -->
</div>
</div>
<div class="gridAdvBox" @touchstart.stop @touchmove.stop @touchend.stop>
<lazyImg class="gridAdv" :src="i.cover" v-for="i in state.advList" :key="i.id" @click="openAdv(i)" />
</div>
<div class="tip">
我们使用Cookies来改善您的使用体验。如您继续使用我们的网站,即表示你同意我们使用Cookies。阅读
<span @click="jumpPage('/mobilePrivacyPolicy')">隐私政策</span>
</div>
<div class="version">
CopyCopyright ©
<span @click="openPage(configStore?.appConfig?.officialUrl)">{{ configStore?.appConfig?.officialUrl }}</span>
since 2025
</div>
</div>
</template>
<script lang="ts" setup>
import { reactive, computed } from 'vue';
import { useRouter } from 'vue-router';
import { useConfigStore } from '@/stores/config';
import { getAdItem } from '@/utils/getConfig';
import { AdType } from '@/enums/app';
import { jumpAdv } from '@/utils/index';
const router = useRouter();
const configStore = useConfigStore();
const state = reactive({
advList: <any>[],
});
const init = () => {
state.advList = getAdItem(AdType.BOTTOMGRIDADV);
};
init();
const jumpPage = (path: string) => {
router.push(path);
};
const openPage = (url: string) => {
window.open(url);
};
const openAdv = (item: any) => {
jumpAdv(item);
};
const contactInfo = computed(() => {
return configStore.contactInfo;
// return route.query.tid ? homeStore.homeData[0];
});
</script>
<style lang="scss" scoped>
.mobileBottom {
margin-top: 24px;
.contactInfo {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 0 9px;
margin: 0 16px 17.5px;
border-bottom: 0.5px solid #2d2f34;
// margin-bottom: 17.5px;
.address {
display: flex;
width: 72px;
padding: 6.178px 11.699px;
justify-content: center;
align-items: center;
border-radius: 3.089px;
border: 1px solid #fff;
color: #fff;
font-family: 'PingFang SC';
font-size: 11px;
font-style: normal;
font-weight: 500;
line-height: normal;
}
.contactBox {
display: flex;
align-items: center;
.contactItem {
width: 30px;
height: 30px;
margin-left: 20px;
// :deep(img) {
// object-fit: fill !important;
// }
}
}
}
.gridAdvBox {
display: flex;
align-items: center;
margin: 0 0 22px 16px;
flex-wrap: nowrap;
overflow-x: auto;
.gridAdv {
width: 60px;
height: 60px;
flex-shrink: 0;
margin-right: 8px;
border-radius: 14px;
overflow: hidden;
:deep(img) {
border-radius: 14px;
}
}
}
.tip {
color: #9b9b9b;
text-align: center;
font-family: Roboto;
font-size: 9px;
font-style: normal;
font-weight: 300;
line-height: 16px; /* 177.778% */
span {
color: #fff;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-skip-ink: auto;
text-decoration-thickness: auto;
text-underline-offset: auto;
text-underline-position: from-font;
}
}
.version {
color: #9b9b9b;
text-align: center;
font-family: Roboto;
font-size: 9px;
font-style: normal;
font-weight: 300;
line-height: 16px; /* 177.778% */
margin-bottom: 120px;
span {
color: #3185f4;
}
}
}
</style>