初始化黄果短剧 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
+97
View File
@@ -0,0 +1,97 @@
<template>
<div class="recommend-card" @click="jumpPage('/moviePlay?page=1&vid=' + itemData.id)">
<DecryptImg class="cover" :src="itemData.cover" />
<div class="described">
<p class="name ellipsis2">{{ itemData.title }}</p>
<p class="tags">
<span v-for="(item, index) in itemData.tags.slice(0,3)" :key="index">{{ item.name }}</span>
</p>
<!-- <div class="time-view">
<div class="time">
<img src="@/assets/images/pc/time.png" alt="">
{{ fromNowTime(itemData.createdAt) }}
</div>
<div class="view">
<img src="@/assets/images/pc/view.png" alt="">
{{ itemData.playCount }}
</div>
</div> -->
</div>
</div>
</template>
<script setup lang="ts">
import { fromNowTime, videoTime } from '@/utils/index';
import { useRouter } from 'vue-router';
const router = useRouter();
const props = withDefaults(
defineProps<{
itemData: any
}>(),
{
itemData: () => ({}),
},
);
const jumpPage = (path: string) => {
router.push(path)
}
</script>
<style lang="scss" scoped>
@media (min-width: 768px) {
.recommend-card {
display: flex;
cursor: pointer;
.cover {
width: 128px;
height: 71px;
border-radius: 4px;
margin-right: 9px;
}
.described {
flex: 1;
.name {
color: #ECECEC;
font-size: 14px;
font-weight: 400;
line-height: 18px;
}
.tags {
display: flex;
gap: 4px;
span {
padding: 3px 6px;
border-radius: 2px;
border: 1px solid #212121;
background: #151515;
color: rgba(255, 255, 255, 0.40);
font-size: 9px;
font-weight: 500;
cursor: pointer;
}
}
}
.time-view {
display: flex;
align-items: center;
font-size: 12px;
color: rgba(255, 255, 255, 0.40);
margin-top: 6px;
img {
width: 14px;
height: 14px;
margin-right: 4px;
}
.time,
.view {
display: flex;
align-items: center;
margin-right: 16px;
}
}
}
}
</style>