Compare commits

..
6 Commits
Author SHA1 Message Date
谢宇宁 2488da955d 底部广告删除 2026-10-12 14:07:56 +07:00
谢宇宁 a47cad6f8f 广告修改 2026-10-12 10:21:43 +07:00
谢宇宁 b4faa7048f PC端样式更新 2026-10-09 22:27:24 +07:00
谢宇宁 a7637f65ba 商务合作修改 2026-10-09 18:34:05 +07:00
谢宇宁 62fe4bb4d0 域名修改 2026-10-09 18:21:24 +07:00
谢宇宁 a80543e329 UI调整 2026-10-09 18:18:35 +07:00
44 changed files with 159 additions and 1419 deletions
+2
View File
@@ -7,3 +7,5 @@ VITE_PARAMETER_ENCRYPTION = 0 # 是否开启参数加密 0关闭 1开
VITE_BASE_URL= ["https://hgmjapi.mfcg.me"] VITE_BASE_URL= ["https://hgmjapi.mfcg.me"]
# VITE_BASE_URL= ["https://d2z5kdxehdlq36.cloudfront.net", "https://ajhsapp.com", "https://d27qym7qkxaiyj.cloudfront.net"] # VITE_BASE_URL= ["https://d2z5kdxehdlq36.cloudfront.net", "https://ajhsapp.com", "https://d27qym7qkxaiyj.cloudfront.net"]
# VITE_BASE_URL= ["https://d2z5kdxehdlq36.cloudfront.net", "https://ajhsapp.com", "https://d27qym7qkxaiyj.cloudfront.net"] # api选线域名,这里必须为数组 # VITE_BASE_URL= ["https://d2z5kdxehdlq36.cloudfront.net", "https://ajhsapp.com", "https://d27qym7qkxaiyj.cloudfront.net"] # api选线域名,这里必须为数组
VITE_ADV_API_URL = http://139.162.47.194:8089 # 导航站广告接口地址
VITE_ADV_APP_ID = 11 # 导航站广告接口 appId
+5 -1
View File
@@ -4,4 +4,8 @@ VITE_BUILD_SOURCEMAP = false # 是否在打包时生成 sourcemap
VITE_BUILD_DROP_CONSOLE = true # 是否在打包时删除 console 代码 VITE_BUILD_DROP_CONSOLE = true # 是否在打包时删除 console 代码
VITE_BUILD_VCONSOLE = false # 是否开启调试工具 vconsole VITE_BUILD_VCONSOLE = false # 是否开启调试工具 vconsole
VITE_PARAMETER_ENCRYPTION = 1 # 是否开启参数加密 0关闭 1开启 VITE_PARAMETER_ENCRYPTION = 1 # 是否开启参数加密 0关闭 1开启
VITE_BASE_URL= ["https://ju3w5.com", "https://d5rh4pelm4rfc.cloudfront.net", "https://d2g55f11bbjlme.cloudfront.net"] # api选线域名,这里必须为数组 VITE_BASE_URL= ["https://hgmjapi.mfcg.me"] # api选线域名,这里必须为数组
# VITE_BASE_URL= ["https://ju3w5.com", "https://d5rh4pelm4rfc.cloudfront.net", "https://d2g55f11bbjlme.cloudfront.net"] # 旧配置:前后两个域名已无法解析,中间一个未确认是否为黄果后端
# 导航站广告接口地址:留空表示请求当前站点的 /api/stat/...,由线上服务器转发到 http://139.162.47.194:8089(页面是 HTTPS,不能直连 HTTP)
VITE_ADV_API_URL =
VITE_ADV_APP_ID = 11 # 导航站广告接口 appId
+2
View File
@@ -6,3 +6,5 @@ VITE_BUILD_VCONSOLE = false # 是否开启调试工具 vconsole
VITE_PARAMETER_ENCRYPTION = 0 # 是否开启参数加密 0关闭 1开启 VITE_PARAMETER_ENCRYPTION = 0 # 是否开启参数加密 0关闭 1开启
VITE_BASE_URL= ["https://dhpht.cestalt.com"] # api选线域名,这里必须为数组 VITE_BASE_URL= ["https://dhpht.cestalt.com"] # api选线域名,这里必须为数组
# VITE_BASE_URL= ["https://d2z5kdxehdlq36.cloudfront.net", "https://ajhsapp.com", "https://d27qym7qkxaiyj.cloudfront.net"] # api选线域名,这里必须为数组 # VITE_BASE_URL= ["https://d2z5kdxehdlq36.cloudfront.net", "https://ajhsapp.com", "https://d27qym7qkxaiyj.cloudfront.net"] # api选线域名,这里必须为数组
VITE_ADV_API_URL = http://139.162.47.194:8089 # 导航站广告接口地址
VITE_ADV_APP_ID = 11 # 导航站广告接口 appId
+2 -2
View File
@@ -3,10 +3,10 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" type="image/png" href="/favicon.png?v=2" />
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover" /> content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title></title> <title>黄果导航站</title>
</head> </head>
<style> <style>
@media (min-width: 768px) { @media (min-width: 768px) {
+3 -21
View File
@@ -1,24 +1,6 @@
const autoprefixer = require('autoprefixer'); const autoprefixer = require('autoprefixer');
const px2viewport = require('postcss-px-to-viewport-8-plugin'); // 不再把 px 转成 vw:PC 和手机共用一套页面,页面限制最大宽度居中显示(见 App.vue),
// 如果按视口宽度缩放,PC 大屏上会被整体放大
const basePx2viewport = {
unitToConvert: 'px', // 需要转换的单位,默认为 px
unitPrecision: 3, // 单位转换后保留的精度(很多时候无法整除)
propList: ['*'], // 能转化为vw的属性列表,!font-size表示font-size后面的单位不会被转换
viewportUnit: 'vw', // 指定需要转换成的视口单位,建议使用 vw
fontViewportUnit: 'vw', // 字体使用的视口单位
selectorBlackList: ['.ignore', 'keep-px'],
minPixelValue: 1, // 设置最小的转换数值,这里小于或等于 1px 不转换为视口单位
mediaQuery: false, // 媒体查询里的单位是否需要转换单位
exclude: [/\/src\/views\/pc/], // 忽略某些文件夹下的文件或特定文件
// include: [/src/], // 如果设置了include,那将只有匹配到的文件才会被转换
};
module.exports = { module.exports = {
plugins: [ plugins: [autoprefixer()],
autoprefixer(),
px2viewport({
...basePx2viewport,
viewportWidth: 375,
}),
],
}; };
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

+12 -1
View File
@@ -4,4 +4,15 @@
</div> </div>
</template> </template>
<script setup lang="ts"></script> <script setup lang="ts"></script>
<style scoped lang="scss"></style> <style lang="scss">
// PC 和手机共用手机端页面:最大宽度居中,两边留空
body {
background: #141414;
}
#appView {
max-width: 480px;
height: 100%;
margin: 0 auto;
background: #000;
}
</style>
-4
View File
@@ -1,4 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="27" viewBox="0 0 26 27" fill="none">
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.62329 4.51526C4.32117 5.72764 3.24502 7.75455 2.79756 10.9472C1.93558 17.0976 3.04801 20.2357 4.44057 21.8761C5.83946 23.5239 7.76532 23.9575 9.26147 24.1317C12.2815 24.4833 13.8175 23.4783 15.4659 22.3999C15.9229 22.101 16.3885 21.7964 16.8967 21.5135C17.6917 21.071 18.4426 20.7255 19.0744 20.4427C19.1769 20.3968 19.2746 20.3533 19.3678 20.3117C19.8764 20.085 20.2499 19.9185 20.5323 19.7608C21.9856 18.9496 22.9041 17.5812 23.0864 15.7869C23.2712 13.9678 22.7003 11.6264 20.9581 8.98853C18.3431 5.44972 14.053 2.95806 10.3563 2.85132C8.54469 2.79902 6.91254 3.31487 5.62329 4.51526ZM10.4291 0.383029C15.0674 0.51695 20.0298 3.53147 22.9933 7.55934L23.0113 7.5837L23.028 7.6089C25.0033 10.589 25.8269 13.4984 25.5693 16.034C25.3086 18.6002 23.9421 20.6926 21.7584 21.9116C21.3681 22.1295 20.8686 22.3517 20.3687 22.5741C20.2799 22.6136 20.1912 22.653 20.103 22.6925C19.4878 22.9679 18.8172 23.2776 18.1202 23.6657C17.7982 23.8449 17.4523 24.0752 17.0719 24.3284C15.371 25.4606 12.9815 27.0511 8.96991 26.5841C7.29529 26.3892 4.55821 25.8538 2.52982 23.4644C0.495108 21.0675 -0.584088 17.1 0.325769 10.608C0.826168 7.03756 2.07971 4.42402 3.91324 2.71686C5.75965 0.997696 8.06911 0.314888 10.4291 0.383029Z" fill="white"/>
<path d="M15.84 14.8719C15.84 17.8502 13.4257 20.2646 10.4474 20.2646C7.46907 20.2646 5.05469 17.8502 5.05469 14.8719C5.05469 11.8936 7.46907 9.47925 10.4474 9.47925C13.4257 9.47925 15.84 11.8936 15.84 14.8719Z" fill="#FFC303"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

-122
View File
@@ -1,122 +0,0 @@
<template>
<div class="img-decypt">
<van-image :src="decyImg" class="vanImage" fit="cover" :round="round" @load="emit('load')" @error="emit('error')">
<template v-slot:loading>
<div class="loading" v-if="!isSplash" />
<div class="splash-loading-img" v-else></div>
</template>
<template v-slot:error>
<div class="loading" v-if="!isSplash" />
<div class="splash-error-img" v-else></div>
</template>
<slot></slot>
</van-image>
</div>
</template>
<script setup lang="ts">
import { Image as VanImage } from 'vant';
import { ref } from 'vue';
import { useConfigStore } from '@/stores/config';
import AppApi from '@/service/app';
const props = defineProps({
//图片地址
src: {
type: String,
required: true,
default() {
return '';
},
},
isNeedDecypt: {
//是否需要解密
type: Boolean,
required: false,
default() {
return true;
},
},
isSplash: {
//是否来自启动页
type: Boolean,
required: false,
default() {
return false;
},
},
round: {
//图片是否显示为圆形
type: Boolean,
required: false,
default() {
return false;
},
},
});
let decyImg = ref('');
const configStore = useConfigStore();
const emit = defineEmits(['load', 'error']);
const init = () => {
if (!props.src) {
return;
}
if (!props.isNeedDecypt) {
decyImg.value = props.src;
} else {
try {
let imgSrc = '';
const isHttp = new RegExp('http').test(props.src);
isHttp == true ? (imgSrc = props.src) : (imgSrc = configStore.sourceInfo.IMAGE + '/' + props.src);
AppApi.imgDecypt(imgSrc)
.then((url: any) => {
decyImg.value = url;
})
.catch(() => {
emit('error');
});
} catch (error) {
emit('error');
}
}
};
init();
</script>
<style lang="scss" scoped>
:deep(.van-image__loading) {
// background-color: #2d2d2d !important;
overflow: hidden;
width: 100%;
height: 100%;
}
.splash-loading-img,
.splash-error-img {
width: 100%;
height: 100%;
background: url('../../assets/images/png/splash.webp') no-repeat;
background-size: cover;
position: relative;
}
.img-decypt {
width: 100%;
height: 100%;
.vanImage {
width: 100%;
height: 100%;
// background-color: #2d2d2d !important;
.loading {
width: 100%;
}
:deep(.van-image__error) {
// background-color: #2d2d2d !important;
overflow: hidden;
width: 100%;
}
}
}
</style>
-93
View File
@@ -1,22 +1,5 @@
<template> <template>
<div class="mobileBottom"> <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(OFFICIAL_TG_URL)"
/>
<!-- <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"> <div class="tip">
我们使用Cookies来改善您的使用体验。如您继续使用我们的网站,即表示你同意我们使用Cookies。阅读 我们使用Cookies来改善您的使用体验。如您继续使用我们的网站,即表示你同意我们使用Cookies。阅读
<span @click="jumpPage('/mobilePrivacyPolicy')">隐私政策</span> <span @click="jumpPage('/mobilePrivacyPolicy')">隐私政策</span>
@@ -29,97 +12,21 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, computed } from 'vue';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { useConfigStore } from '@/stores/config'; import { useConfigStore } from '@/stores/config';
import { getAdItem } from '@/utils/getConfig';
import { AdType } from '@/enums/app';
import { jumpAdv, OFFICIAL_TG_URL } from '@/utils/index';
const router = useRouter(); const router = useRouter();
const configStore = useConfigStore(); const configStore = useConfigStore();
const state = reactive({
advList: <any>[],
});
const init = () => {
state.advList = getAdItem(AdType.BOTTOMGRIDADV);
};
init();
const jumpPage = (path: string) => { const jumpPage = (path: string) => {
router.push(path); router.push(path);
}; };
const openPage = (url: string) => { const openPage = (url: string) => {
window.open(url); window.open(url);
}; };
const openAdv = (item: any) => {
jumpAdv(item);
};
const contactInfo = computed(() => {
return configStore.contactInfo;
// return route.query.tid ? homeStore.homeData[0];
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.mobileBottom { .mobileBottom {
margin-top: 24px; 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 { .tip {
color: #9b9b9b; color: #9b9b9b;
text-align: center; text-align: center;
+24 -5
View File
@@ -1,18 +1,25 @@
<template> <template>
<div class="advTopOpt"> <div class="advTopOpt">
<SvgIcon name="logo" class="logo" @click="jumpPage('/home')" /> <div class="logoBox" @click="jumpPage('/home')">
<img class="logo" src="@/assets/images/logo.png" />
<span class="siteName">黄果导航站</span>
</div>
<div class="optGroup"> <div class="optGroup">
<SvgIcon name="business" class="business" @click="jumpPage('/mobileBusiness')" /> <SvgIcon name="business" class="business" @click="openTg" />
<div class="official" @click="jumpPage('/mobileConnectInfo')">联系官方</div> <div class="official" @click="openTg">联系官方</div>
</div> </div>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { OFFICIAL_TG_URL } from '@/utils/index';
const router = useRouter(); const router = useRouter();
const jumpPage = (path: string) => { const jumpPage = (path: string) => {
router.push(path); router.push(path);
}; };
const openTg = () => {
window.open(OFFICIAL_TG_URL);
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.advTopOpt { .advTopOpt {
@@ -28,8 +35,20 @@ const jumpPage = (path: string) => {
align-items: center; align-items: center;
gap: 16px; gap: 16px;
} }
.logo { .logoBox {
width: 25.6px; display: flex;
align-items: center;
.logo {
width: 28px;
height: 28px;
border-radius: 7px;
margin-right: 8px;
}
.siteName {
color: #fff;
font-size: 16px;
font-weight: 600;
}
} }
.business { .business {
width: 28px; width: 28px;
-129
View File
@@ -1,129 +0,0 @@
<template>
<div class="footer-wrap">
<div class="footer">
<div class="box1">
<div class="left" @click="jumpPage('/publishingAddress')">地址发布</div>
<div class="flex-vcenter">
<DecryptImg class="img" v-for="(item, index) in contactInfo" :key="index" :src="item.officialImg" @click="openPage(OFFICIAL_TG_URL)"/>
</div>
</div>
<div class="line"></div>
<div class="img-list">
<DecryptImg v-for="(item, index) in getAdItem(11)" class="img" :src="item.cover" @click="jumpAdv(item)" :key="index"/>
</div>
<div class="text">
我们使用Cookies来改善您的使用体验。如您继续使用我们的网站,即表示你同意我们使用Cookies。阅读
<span @click="jumpPage('/privacy')">隐私政策</span>
</div>
<div class="copyright">
CopyCopyright ©
<span @click="openPage(configStore?.appConfig?.officialUrl)">{{ configStore?.appConfig?.officialUrl }}</span>
since 2021
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { getAdItem } from '@/utils/getConfig'
import { jumpAdv, OFFICIAL_TG_URL } from '@/utils/index';
import { useRouter } from 'vue-router';
import { computed } from 'vue';
import { useConfigStore } from '@/stores/config';
const router = useRouter();
const jumpPage = (path: string) => {
router.push(path);
};
const configStore = useConfigStore();
const contactInfo = computed(() => {
return configStore.contactInfo;
});
const openPage = (url: string) => {
window.open(url);
};
</script>
<style lang="scss" scoped>
@media (min-width: 768px) {
.footer-wrap {
width: 100%;
height: 347px;
background: #0a0c0f;
margin-top: 200px;
}
.footer {
width: 1156px;
padding-top: 10px;
margin: auto;
}
.box1 {
@include flexBetween;
.left {
width: 87px;
height: 36px;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.6);
color: #fff;
font-size: 12px;
font-weight: 500;
@include flexCenter;
cursor: pointer;
}
.img {
width: 30px;
height: 30px;
margin-left: 20px;
cursor: pointer;
}
}
.line {
width: 100%;
height: 1px;
background: #333;
margin-top: 24px;
margin-bottom: 35px;
}
.img-list {
display: flex;
flex-wrap: wrap;
gap: 17px;
justify-content: center;
.img {
width: 100px;
height: 100px;
border-radius: 25px;
overflow: hidden;
cursor: pointer;
}
}
.text {
color: #9b9b9b;
text-align: center;
font-size: 12px;
font-weight: 300;
margin-top: 58px;
span {
text-decoration: underline;
color: #fff;
cursor: pointer;
}
}
.copyright {
color: #9b9b9b;
text-align: center;
font-size: 12px;
font-weight: 300;
margin-top: 11px;
span {
text-decoration: underline;
color: #3b8efc;
cursor: pointer;
}
}
}
</style>
+26 -25
View File
@@ -10,31 +10,32 @@ import 'virtual:svg-icons-register';
import svgIcon from '@/components/SvgIcon/index.vue'; import svgIcon from '@/components/SvgIcon/index.vue';
import { Lazyload } from 'vant'; import { Lazyload } from 'vant';
import qrcodeVue from 'qrcode.vue'; import qrcodeVue from 'qrcode.vue';
import * as devtoolsDetector from 'devtools-detector'; // 防调试:检测到打开开发者工具就跳转百度,暂时关闭
// import * as devtoolsDetector from 'devtools-detector';
const getQuueryVariable = (val: string) => { //
const query = window.location.search.substring(1); // const getQuueryVariable = (val: string) => {
const vars = query.split('&'); // const query = window.location.search.substring(1);
for (let i = 0; i < vars.length; i++) { // const vars = query.split('&');
const pair = vars[i].split('='); // for (let i = 0; i < vars.length; i++) {
if (pair[0] == val) { // const pair = vars[i].split('=');
return pair[1]; // if (pair[0] == val) {
} // return pair[1];
} // }
return false; // }
}; // return false;
if (getQuueryVariable('devTest')) { // };
sessionStorage.setItem('devTest', JSON.stringify(getQuueryVariable('devTest'))); // if (getQuueryVariable('devTest')) {
} // sessionStorage.setItem('devTest', JSON.stringify(getQuueryVariable('devTest')));
const devTest = getQuueryVariable('devTest') || sessionStorage.getItem('devTest'); // }
devtoolsDetector.addListener((isOpen) => { // const devTest = getQuueryVariable('devTest') || sessionStorage.getItem('devTest');
if (isOpen) { // devtoolsDetector.addListener((isOpen) => {
window.location.replace('https://www.baidu.com'); // if (isOpen) {
} // window.location.replace('https://www.baidu.com');
}); // }
if (!devTest && process.env.NODE_ENV == 'production') { // });
devtoolsDetector.launch(); // if (!devTest && process.env.NODE_ENV == 'production') {
} // devtoolsDetector.launch();
// }
const app = createApp(App); const app = createApp(App);
app.use(store); app.use(store);
+5 -29
View File
@@ -1,19 +1,19 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'; import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import Home from '@/views/home/index.vue'; import Home from '@/views/home/index.vue';
import pcRouter from './pcRouter';
import mobileRouter from './mobileRouter';
import MobilePrivacyPolicy from '@/views/mobile/privacyPolicy/index.vue'; import MobilePrivacyPolicy from '@/views/mobile/privacyPolicy/index.vue';
const routes: RouteRecordRaw[] = [ const routes: RouteRecordRaw[] = [
{ {
path: '/', path: '/',
redirect: '/home',
},
{
path: '/home',
name: 'home', name: 'home',
component: Home, component: Home,
redirect: '/home',
meta: { meta: {
title: '首页', title: '首页',
}, },
children: [...pcRouter, ...mobileRouter],
}, },
{ {
path: '/mobilePrivacyPolicy', path: '/mobilePrivacyPolicy',
@@ -23,14 +23,6 @@ const routes: RouteRecordRaw[] = [
title: '隐私政策', title: '隐私政策',
}, },
}, },
{
path: '/mobileConnectInfo',
name: 'mobileConnectInfo',
component: () => import('@/views/mobile/connectInfo/index.vue'),
meta: {
title: '联系官方',
},
},
// { // {
// path: '/mobileClassification', // path: '/mobileClassification',
// name: 'mobileClassification', // name: 'mobileClassification',
@@ -39,22 +31,6 @@ const routes: RouteRecordRaw[] = [
// title: '分类列表', // title: '分类列表',
// }, // },
// }, // },
{
path: '/releaseAddress',
name: 'releaseAddress',
component: () => import('@/views/mobile/releaseAddress/index.vue'),
meta: {
title: '发布地址',
},
},
{
path: '/mobileBusiness',
name: 'mobileBusiness',
component: () => import('@/views/mobile/mobileBusiness/index.vue'),
meta: {
title: '商务合作',
},
},
]; ];
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHistory(import.meta.env.BASE_URL),
@@ -64,7 +40,7 @@ const router = createRouter({
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
const home = document.querySelector('#home'); const home = document.querySelector('#home');
home && home.scrollTo(0, 0); home && home.scrollTo(0, 0);
document.title = '蛋黄派-' + to.meta.title; document.title = '黄果导航站';
const token = localStorage.getItem('token'); const token = localStorage.getItem('token');
if (token || to.path === '/home') { if (token || to.path === '/home') {
next(); next();
-15
View File
@@ -1,15 +0,0 @@
import { RouteRecordRaw } from 'vue-router';
// import MobilePrivacyPolicy from '@/views/mobile/privacyPolicy/index.vue';
// 手机端路由
const mobileRouter: RouteRecordRaw[] = [
// {
// path: '/mobilePrivacyPolicy',
// name: 'mobilePrivacyPolicy',
// component: MobilePrivacyPolicy,
// meta: {
// title: '隐私政策',
// },
// },
];
export default mobileRouter;
-52
View File
@@ -1,52 +0,0 @@
import { RouteRecordRaw } from 'vue-router';
import Home from '@/views/pc/home/index.vue'
import Contact from '@/views/pc/contact/index.vue'
import Privacy from '@/views/pc/privacy/index.vue'
import PublishingAddress from '@/views/pc/publishingAddress/index.vue'
import Business from '@/views/pc/business/index.vue'
// pc端路由
const pcRouter: RouteRecordRaw[] = [
{
path: '/home',
name: 'home',
component: Home,
meta: {
title: "首页"
},
},
{
path: '/contact',
name: 'contact',
component: Contact,
meta: {
title: "联系"
},
},
{
path: '/business',
name: 'business',
component: Business,
meta: {
title: "联系"
},
},
{
path: '/privacy',
name: 'privacy',
component: Privacy,
meta: {
title: "隐私"
},
},
{
path: '/publishingAddress',
name: 'publishingAddress',
component: PublishingAddress,
meta: {
title: "发布地址"
},
},
];
export default pcRouter;
+26
View File
@@ -0,0 +1,26 @@
import axios from 'axios';
export interface AdvertiseItem {
id: number;
title: string;
coverImg: string;
locId: number; // 广告位置ID
jumpType: number;
link: string;
sort: number;
}
/**
* 导航站广告接口,独立于主 API(不走 request 的选线、加密和返回码处理)
*/
export default class AdvApi {
/**
* @description 获取导航站全部广告位的广告
*/
static async getAdvertiseList(): Promise<AdvertiseItem[]> {
const res = await axios.post(`${process.env.VITE_ADV_API_URL}/api/stat/advitise/v2/get`, {
appId: Number(process.env.VITE_ADV_APP_ID),
});
return res.data?.advertiseList || [];
}
}
-8
View File
@@ -85,14 +85,6 @@ export default class AppApi {
// return request.post('/ads/click', data); // return request.post('/ads/click', data);
return request.post('/recreation/click', data); return request.post('/recreation/click', data);
} }
/**
* @description 官方联系方式
* @param data 参数
* @returns
*/
static getBusiness(data: any): Promise<any> {
return request.get('/official/list', data);
}
/** /**
* @description 福利 * @description 福利
* @param data 参数 * @param data 参数
-4
View File
@@ -25,7 +25,6 @@ export const useConfigStore = defineStore({
AUDIO: '', AUDIO: '',
Download: '', Download: '',
}, },
contactInfo: <any>[]
}; };
}, },
actions: { actions: {
@@ -33,9 +32,6 @@ export const useConfigStore = defineStore({
saveBaseUrl(url: string) { saveBaseUrl(url: string) {
this.baseUrl = url; this.baseUrl = url;
}, },
setContactInfo(list: any) {
this.contactInfo = list
},
//保存全局配置 //保存全局配置
saveAppConfig(appConfig: Types.App.ConfigInfo) { saveAppConfig(appConfig: Types.App.ConfigInfo) {
this.appConfig = appConfig; this.appConfig = appConfig;
+33 -12
View File
@@ -1,5 +1,6 @@
import { AdType } from '@/enums/app'; import { AdType } from '@/enums/app';
import { useConfigStore } from '@/stores/config'; import { useConfigStore } from '@/stores/config';
import AdvApi from '@/service/adv';
/** /**
* 获取广告 * 获取广告
@@ -21,26 +22,46 @@ export function getAdItem(type: AdType): Types.App.AdsInfoListItem[] {
return advList; return advList;
} }
// 首页主题,对应后台广告位配置(位置ID -> 名称) // 首页主题,对应导航站后台广告位配置(位置ID -> 名称)
const HOME_AD_SECTIONS = [ const HOME_AD_SECTIONS = [{ position: 1, name: '热门应用' }];
{ position: 1, name: '热门应用' },
{ position: 2, name: '推荐' }, export interface HomeAdItem {
{ position: 3, name: '全部应用' }, id: number;
]; title: string;
cover: string;
link: string;
}
export interface HomeAdSection { export interface HomeAdSection {
position: number; position: number;
name: string; name: string;
list: Types.App.AdsInfoListItem[]; list: HomeAdItem[];
} }
let homeAdSectionsPromise: Promise<HomeAdSection[]> | null = null;
/** /**
* 获取首页主题及对应广告,没有配置广告的主题不返回 * 获取首页主题及对应广告,没有配置广告的主题不返回;只请求一次,失败后下次调用会重试
*/ */
export function getHomeAdSections(): HomeAdSection[] { export function getHomeAdSections(): Promise<HomeAdSection[]> {
return HOME_AD_SECTIONS.map((section) => ({ ...section, list: getAdItem(section.position) })).filter( if (!homeAdSectionsPromise) {
(section) => section.list.length, homeAdSectionsPromise = AdvApi.getAdvertiseList()
); .then((advertiseList) =>
HOME_AD_SECTIONS.map((section) => ({
...section,
list: advertiseList
.filter((item) => item.locId === section.position)
.sort((a, b) => a.sort - b.sort)
.map((item) => ({ id: item.id, title: item.title, cover: item.coverImg, link: item.link })),
})).filter((section) => section.list.length),
)
.catch((error) => {
console.error('获取首页广告失败', error);
homeAdSectionsPromise = null;
return [];
});
}
return homeAdSectionsPromise;
} }
/** /**
-39
View File
@@ -1,39 +0,0 @@
import { getAdItem } from '@/utils/getConfig';
interface Advparams {
originArray: Array<any>; // 原数据数组
insertNum: number; // 每隔insertNum个元素插入一次
pageSize: number; // 当前页码
pageNumber: number; // 当前页
advNum: number; // 当前广告下标
}
export default function insertAdv(obj: Advparams) {
const { originArray, insertNum, pageSize, pageNumber, advNum } = obj;
if (!originArray || originArray.length === 0) {
return [];
}
let newArr = originArray;
const updateArray = [];
let advIndex = 0;
for (let i = 0; i < originArray.length; i++) {
let index = pageSize * (pageNumber - 1) + i;
// 默认数据
updateArray.push(originArray[i]);
// // 每隔insertNum个元素插入一次
if (getAdItem(advNum) && getAdItem(advNum).length> 0 && (index + 1) % insertNum === 0) {
// 如果当前位置没有广告,重置0
if (!getAdItem(advNum)[advIndex]) {
advIndex = 0;
}
const advList = getAdItem(advNum) || [];
// 当前页广告条数
const currentPageAdvCout = Math.floor((index + 1) / insertNum);
const advIdx = (currentPageAdvCout - 1) % advList.length;
// 插入广告
// isAdv 字段表示是广告
updateArray.push(Object.assign({}, getAdItem(advNum)[advIdx], { isAdv: true }));
advIndex++;
}
}
return updateArray;
}
+2 -43
View File
@@ -3,14 +3,11 @@
<div class="loadingBox" v-if="state.dataloading"> <div class="loadingBox" v-if="state.dataloading">
<van-loading class="loading" color="#fff" vertical>加载中...</van-loading> <van-loading class="loading" color="#fff" vertical>加载中...</van-loading>
</div> </div>
<div v-else> <mobile v-else />
<mobile v-if="isMobile" />
<pc v-else />
</div>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onUnmounted, reactive } from 'vue'; import { reactive } from 'vue';
import { useAppStore } from '@/stores/app'; import { useAppStore } from '@/stores/app';
import { useConfigStore } from '@/stores/config'; import { useConfigStore } from '@/stores/config';
import { useUserStore } from '@/stores/user'; import { useUserStore } from '@/stores/user';
@@ -22,9 +19,7 @@ import { AdType, SourceType } from '@/enums/app';
import axios from 'axios'; import axios from 'axios';
import AppApi from '@/service/app'; import AppApi from '@/service/app';
import mobile from './../mobile/index.vue'; import mobile from './../mobile/index.vue';
import pc from './../pc/index.vue';
const isMobile = ref(false);
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();
const appStore = useAppStore(); const appStore = useAppStore();
@@ -42,25 +37,6 @@ const state = reactive({
dataloading: true, dataloading: true,
}); });
const setDeviceType = () => {
isMobile.value = window.innerWidth <= 768;
// if (isMobile.value) {
// router.push('/home')
// } else {
// router.push('/welfare')
// }
};
setDeviceType();
// 监听屏幕大小变化
window.addEventListener('resize', () => {
setDeviceType();
});
onUnmounted(() => {
window.removeEventListener('resize', setDeviceType);
});
/** /**
* @description 如果没有用户ID就生成一个 * @description 如果没有用户ID就生成一个
*/ */
@@ -208,22 +184,6 @@ const pingErrorPop = (hosts: any) => {
} }
} }
}; };
const queryContactInfo = async () => {
try {
let req = {
type: 2,
};
const res: any = await AppApi.getBusiness(req);
useConfigStore().setContactInfo(res || []);
// console.log(res);
// contactInfo
// configStore.saveAppConfig(configList);
// initSourceInfo(configList.sourceList);
// return true;
} catch (error) {
// return false;
}
};
/** /**
* 初始化 * 初始化
*/ */
@@ -272,7 +232,6 @@ const init = async () => {
} }
} }
} }
queryContactInfo();
//获取配置信息 //获取配置信息
const configOk = await getConfig(); const configOk = await getConfig();
globalStore.setVideoRoadLine(configStore.sourceInfo.VID[0]); // 默认选择第一个线路 globalStore.setVideoRoadLine(configStore.sourceInfo.VID[0]); // 默认选择第一个线路
+11 -3
View File
@@ -5,7 +5,7 @@
<div class="topicTitle">{{ section.name }}</div> <div class="topicTitle">{{ section.name }}</div>
</div> </div>
<div class="advIconList"> <div class="advIconList">
<div class="advIconItem" v-for="adv in section.list" :key="adv.id" @click="jumpAdv(adv)"> <div class="advIconItem" v-for="adv in section.list" :key="adv.id" @click="openAdv(adv)">
<lazyImg class="advIcon" :src="adv.cover" /> <lazyImg class="advIcon" :src="adv.cover" />
<div class="advName">{{ adv.title }}</div> <div class="advName">{{ adv.title }}</div>
</div> </div>
@@ -15,10 +15,18 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { getHomeAdSections } from '@/utils/getConfig'; import { ref } from 'vue';
import { getHomeAdSections, HomeAdItem, HomeAdSection } from '@/utils/getConfig';
import { jumpAdv } from '@/utils/index'; import { jumpAdv } from '@/utils/index';
const advSections = getHomeAdSections(); const advSections = ref<HomeAdSection[]>([]);
getHomeAdSections().then((list) => {
advSections.value = list;
});
// 导航站广告只跳转,不走旧接口的点击上报
const openAdv = (adv: HomeAdItem) => {
jumpAdv({ link: adv.link });
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
-87
View File
@@ -1,87 +0,0 @@
<template>
<div class="connectInfo overflow-y-auto">
<MobileHeader class="header" />
<div class="contentBox">
<div class="subTitle">官方联系</div>
<div class="connectItem" v-for="(item, index) in contactInfo" :key="index" @click="openPage(OFFICIAL_TG_URL)">
<lazyImg class="connectImg" :src="item.officialImg" />
<div class="infoBox">
<div class="conectName">{{ item.officialName }}</div>
<div class="conectDesc">{{ item.officialDesc }}</div>
</div>
</div>
</div>
<MobileBottom />
</div>
</template>
<script lang="ts"></script>
<script lang="ts" setup>
import { computed } from 'vue';
import { useConfigStore } from '@/stores/config';
import { OFFICIAL_TG_URL } from '@/utils/index';
const configStore = useConfigStore();
const contactInfo = computed(() => {
return configStore.contactInfo;
// return route.query.tid ? homeStore.homeData[0];
});
const openPage = (url: string) => {
window.open(url);
};
</script>
<style scoped lang="scss">
.connectInfo {
height: 100vh;
.header {
position: sticky;
top: 0;
z-index: 11;
}
.contentBox {
padding: 31px 16px 90px;
.subTitle {
color: #fff;
font-family: 'PingFang SC';
font-size: 20px;
font-style: normal;
font-weight: 600;
line-height: 41px; /* 205% */
padding-bottom: 7px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 31px;
}
.connectItem {
display: flex;
align-items: center;
margin-bottom: 39.5px;
.connectImg {
width: 47.5px;
height: 47.5px;
margin-right: 9.4px;
}
.infoBox {
.conectName {
color: #fff;
font-family: 'PingFang SC';
font-size: 9.945px;
font-style: normal;
font-weight: 600;
line-height: 9.945px; /* 100% */
margin-bottom: 5.5px;
}
.conectDesc {
color: #fff;
font-family: 'PingFang SC';
font-size: 7.735px;
font-style: normal;
font-weight: 400;
line-height: 9.945px; /* 128.571% */
}
}
}
.connectItem:last-child {
margin-bottom: 0;
}
}
}
</style>
+3 -2
View File
@@ -99,10 +99,11 @@ init();
flex-direction: column; flex-direction: column;
} }
.logo { .logo {
width: 130px; width: 84px;
height: 84px; height: 84px;
background: url('../../assets/images/mobile/logo.png') no-repeat; background: url('../../assets/images/logo.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
border-radius: 20px;
margin-bottom: 25px; margin-bottom: 25px;
} }
.tipTitle { .tipTitle {
-104
View File
@@ -1,104 +0,0 @@
<template>
<div class="connectInfo overflow-y-auto">
<MobileHeader class="header" />
<div class="contentBox">
<div class="subTitle">商务合作</div>
<div
class="connectItem"
v-for="(item, index) in state.contactInfo"
:key="index"
@click="openPage(OFFICIAL_TG_URL)"
>
<lazyImg class="connectImg" :src="item.officialImg" />
<div class="conectName">{{ item.officialName }}:</div>
<div class="conectDesc">点击这里</div>
</div>
</div>
<MobileBottom />
</div>
</template>
<script lang="ts"></script>
<script lang="ts" setup>
import { reactive } from 'vue';
import AppApi from '@/service/app';
import { OFFICIAL_TG_URL } from '@/utils/index';
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) {
// return false;
}
};
queryContactInfo();
const openPage = (url: string) => {
window.open(url);
};
</script>
<style scoped lang="scss">
.connectInfo {
height: 100vh;
.header {
position: sticky;
top: 0;
z-index: 11;
}
.contentBox {
padding: 31px 16px 90px;
.subTitle {
color: #fff;
font-family: 'PingFang SC';
font-size: 20px;
font-style: normal;
font-weight: 600;
line-height: 41px; /* 205% */
padding-bottom: 7px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 31px;
}
.connectItem {
display: flex;
align-items: center;
margin-bottom: 39.5px;
.connectImg {
width: 47.5px;
height: 47.5px;
margin-right: 9.4px;
}
.conectName {
color: #fff;
text-align: center;
font-family: 'PingFang SC';
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 10.047px; /* 71.761% */
}
.conectDesc {
color: var(--Style, #ffcd3f);
font-family: 'PingFang SC';
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 10.047px;
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;
}
}
.connectItem:last-child {
margin-bottom: 0;
}
}
}
</style>
-82
View File
@@ -1,82 +0,0 @@
<template>
<div class="releaseAddress overflow-y-auto">
<MobileHeader class="header" />
<div class="contentBox">
<div class="subTitle">备用地址</div>
<div class="urlItem" v-for="(item, index) in urlList" :key="index">
<div class="urlTitle">{{ item.desc }}: </div>
<div class="url" @click="openPage(item.url)">{{ item.url }}</div>
</div>
</div>
<MobileBottom />
</div>
</template>
<script lang="ts"></script>
<script lang="ts" setup>
import { reactive, computed } from 'vue';
import { useConfigStore } from '@/stores/config';
const configStore = useConfigStore();
const state = reactive({});
const urlList: any = computed(() => {
return configStore.sourceInfo.Download;
});
const openPage = (url: string) => {
window.open(url);
};
</script>
<style scoped lang="scss">
.releaseAddress {
height: 100vh;
.header {
position: sticky;
top: 0;
z-index: 11;
}
.contentBox {
padding: 31px 16px 200px;
.subTitle {
color: #fff;
font-family: 'PingFang SC';
font-size: 20px;
font-style: normal;
font-weight: 600;
line-height: 41px; /* 205% */
padding-bottom: 7px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 60px;
}
.urlItem {
display: flex;
align-items: center;
margin-bottom: 56px;
.urlTitle {
color: #fff;
text-align: center;
font-family: 'PingFang SC';
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 10.047px; /* 71.761% */
}
.url {
color: var(--Style, #ffcd3f);
font-family: 'PingFang SC';
font-size: 14px;
font-style: normal;
font-weight: 600;
line-height: 10.047px;
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;
}
}
.urlItem:last-child {
margin-bottom: 0;
}
}
}
</style>
-77
View File
@@ -1,77 +0,0 @@
<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(OFFICIAL_TG_URL)">
<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';
import { OFFICIAL_TG_URL } from '@/utils/index';
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>
-67
View File
@@ -1,67 +0,0 @@
<template>
<div class="contact">
<div class="title">官方联系</div>
<div class="contact-list">
<div class="item" v-for="(item, index) in contactInfo" :key="index" @click="openPage(OFFICIAL_TG_URL)">
<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 { computed } from 'vue';
import { useConfigStore } from '@/stores/config';
import { OFFICIAL_TG_URL } from '@/utils/index';
const configStore = useConfigStore();
const contactInfo = computed(() => {
return configStore.contactInfo;
});
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>
-66
View File
@@ -1,66 +0,0 @@
<template>
<div class="content">
<div class="thematic" v-for="section in advSections" :key="section.position">
<div class="title">{{ section.name }}</div>
<div class="adv-icon-list">
<div class="adv-icon-item" v-for="adv in section.list" :key="adv.id" @click="jumpAdv(adv)">
<DecryptImg class="adv-icon" :src="adv.cover" />
<div class="adv-name">{{ adv.title }}</div>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { getHomeAdSections } from '@/utils/getConfig';
import { jumpAdv } from '@/utils/index';
const advSections = getHomeAdSections();
</script>
<style lang="scss" scoped>
@media (min-width: 768px) {
.content {
width: 1516px;
margin: auto;
.thematic {
.title {
width: 100%;
height: 56px;
color: #FFF;
font-size: 36px;
font-weight: 600;
padding-bottom: 28px;
padding-top: 50px;
box-sizing: content-box;
}
.adv-icon-list {
display: grid;
grid-template-columns: repeat(10, 120px);
justify-content: space-between;
row-gap: 32px;
.adv-icon-item {
width: 120px;
cursor: pointer;
.adv-icon {
position: relative;
width: 120px;
height: 120px;
border-radius: 24px;
overflow: hidden;
}
.adv-name {
margin-top: 10px;
color: #fff;
font-size: 18px;
line-height: 24px;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
}
}
}
</style>
-6
View File
@@ -1,6 +0,0 @@
<template>
<content />
</template>
<script setup lang="ts" name="home">
import content from './content.vue';
</script>
-134
View File
@@ -1,134 +0,0 @@
<template>
<div id="home">
<div class="header-wrap-box">
<div class="header-wrap">
<div class="flex-vcenter left-wrap">
<img @click="jumpPage('/home')" class="logo" src="@/assets/images/pc/logo.png" />
</div>
<div class="right-list">
<div class="item" @click="jumpPage('/business')">
<img class="search" src="@/assets/images/pc/business.png" />
<p>商务合作</p>
</div>
<div class="official" @click="jumpPage('/contact')">联系官方</div>
</div>
</div>
</div>
<router-view></router-view>
<pc-footer></pc-footer>
<!-- <Mask @closeMaskPop="setAdvPopup"/> -->
<!-- 弹窗广告 -->
<!-- v-if="isShowAdvPopup" -->
<HomePopupAdv v-if="isShowAdvPopup" :advList="getAdItem(9).reverse()" @close="closeHomePopupAdv" />
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { getAdItem } from '@/utils/getConfig'
import Mask from './mask.vue';
import { useRouter } from 'vue-router';
import { useGlobalStore } from '@/stores/global';
const globalStore = useGlobalStore();
const router = useRouter();
// const isShowAdvPopup = ref(false)
// const setAdvPopup = () => {
// isShowAdvPopup.value = !globalStore.homeAdvFirst && getAdItem(9)?.length > 0 && !!sessionStorage.getItem('maskPop');
// }
// 首页弹窗广告
const isShowAdvPopup = computed(() => {
return getAdItem(9)?.length > 0;
});
const closeHomePopupAdv = () => {
globalStore.setHomeAdvFirst();
};
const jumpPage = (path: string) => {
router.push(path)
}
</script>
<style lang="scss" scoped>
@media (min-width: 768px) {
#home {
min-width: 1280px;
height: 100vh;
overflow: auto;
background-color: #000;
}
.header-wrap-box {
position: sticky;
top: 0;
z-index: 100;
}
.header-wrap {
width: 100%;
height: 72px;
background: #1A1C22;
@include flexCenter;
.left-wrap {
min-width: 900px;
margin-right: 3vw;
}
.logo {
width: 100px;
height: 32px;
cursor: pointer;
}
.logo:hover {
transform: scale(1.02);
}
.right-list {
display: flex;
align-items: center;
.item {
color: rgba(255, 255, 255, 0.8);
font-size: 12px;
font-weight: 400;
text-align: center;
padding-left: 30px;
cursor: pointer;
white-space: nowrap;
img {
width: 32px;
height: 32px;
}
}
.item:hover {
color: #fff;
}
.official {
width: 87px;
height: 36px;
border-radius: 4px;
border: 1px solid #fff;
color: #fff;
font-size: 12px;
font-weight: 500;
@include flexCenter;
cursor: pointer;
}
.official:hover {
color: #FFC303;
}
}
}
:deep() {
.imgBox {
width: 474px !important;
height: 664px !important;
.closeIcon {
top: 23px !important;
right: 29px !important;
width: 52px !important;
height: 52px !important;
cursor: pointer;
}
}
}
}
</style>
-92
View File
@@ -1,92 +0,0 @@
<template>
<div class="mask-pop" v-if="showMask">
<div class="mask"></div>
<div class="content">
<img class="logo" src="@/assets/images/pc/logo1.png" />
<div class="title">欢迎</div>
<div class="line"></div>
<div class="text">🔞 您欲觀看的頁面包含成人內容 🔞</div>
<div class="text">本站內容均遵守本國法律規定若您是未成年者,請選擇離開。 滿 18 歲。</div>
<div class="text">請点击确认进入。</div>
<div class="btn" @click="close">确认进入</div>
</div>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
const showMask = ref(true)
const emit = defineEmits(['closeMaskPop'])
showMask.value = !sessionStorage.getItem('maskPop')
const close = () => {
showMask.value = false
sessionStorage.setItem('maskPop', 'true');
emit('closeMaskPop')
}
</script>
<style lang="scss" scoped>
@media (min-width: 768px) {
.mask-pop {
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
.mask {
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
opacity: 0.6;
background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 47.31%);
backdrop-filter: blur(250px);
}
.content {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
.logo {
width: 237.057px;
height: 153.492px;
flex-shrink: 0;
}
.title {
color: #FFF;
font-size: 30px;
font-weight: 600;
margin-top: 54px;
}
.line {
width: 213px;
height: 1px;
opacity: 0.1;
background: #FFF;
margin: 10px auto;
}
.text {
color: #FFF;
text-align: center;
font-size: 14px;
font-weight: 400;
line-height: 28px;
}
.btn {
width: 118px;
height: 50px;
text-align: center;
line-height: 50px;
border-radius: 10px;
background: #FFC400;
box-shadow: 0px -3px 8px 0px rgba(249, 255, 139, 0.60) inset, 0px 0px 8px 0px rgba(255, 196, 0, 0.50);
margin: 22px auto 0;
color: #482F28;
font-size: 18px;
cursor: pointer;
}
}
}
}
</style>
-40
View File
@@ -1,40 +0,0 @@
<template>
<div class="privacy">
<div class="title">USC 2257</div>
<div class="text">
DHP.Video 不是网站 (DHP.Video) 上任何和所有内容的制作者(主要或次要)。关于根据 18 USC 2257 记录本网站上的任何和所有内容,请将您的请求直接发送给制作内容的网站。<br/>
DHP.Video 是一个视频共享网站,允许上传、共享和观看各种类型的成人内容。虽然 DHP.Video 尽最大努力验证合规性,但它可能不是 100% 准确。<br/>
DHP.Video 遵守以下程序以确保合规:<br/>
要求所有用户必须年满 18 岁才能观看和上传视频。<br/>
上传时,用户必须核实内容;保证自己已年满 18 岁;证明自己保留了内容中模特的记录并且这些模特已年满 18 岁。<br/>
如需进一步帮助和/或信息以查找内容的原始站点,请通过支持表格联系 DHP.Video 合规部门。<br/>
DHP.Video 允许将内容标记为不当内容。如果任何内容被标记为非法、违法、骚扰、有害、冒犯或其他各种原因,DHP.Video 应立即将其从网站上删除。
</div>
</div>
</template>
<script setup lang="ts">
</script>
<style lang="scss" scoped>
@media (min-width: 768px) {
.privacy {
width: 1150px;
margin: 100px auto;
.title {
color: #FFF;
font-size: 30px;
font-weight: 600;
line-height: 41px;
padding-bottom: 41px;
}
.text {
color: #FFF;
font-family: "PingFang SC";
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 24px;
}
}
}
</style>
-53
View File
@@ -1,53 +0,0 @@
<template>
<div class="publishingAddress">
<div class="title">备用地址</div>
<div class="wrap">
<div class="list" v-for="(item, index) in urlList" :key="index">
<span class="name">{{ item.desc }} :</span>
<span class="link" @click="openPage(item.url)">{{ item.url }}</span>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { reactive, computed } from 'vue';
import { useConfigStore } from '@/stores/config';
const configStore = useConfigStore();
const state = reactive({});
const urlList: any = computed(() => {
return configStore.sourceInfo.Download;
});
const openPage = (url: string) => {
window.open(url);
};
</script>
<style lang="scss" scoped>
@media (min-width: 768px) {
.publishingAddress {
color: #fff;
width: 1104px;
margin: 112px auto 0;
padding-bottom: 70px;
.title {
color: #FFF;
font-size: 20px;
font-weight: 600;
line-height: 41px;
padding-bottom: 60px;
}
.wrap {
flex-wrap: wrap;
font-size: 18px;
.list {
margin-bottom: 30px;
}
.link {
color: #FFCD3F;
cursor: pointer;
text-decoration: underline;
}
}
}
}
</style>
+2
View File
@@ -6,6 +6,8 @@ interface ImportMetaEnv {
readonly VITE_BUILD_DROP_CONSOLE: string; readonly VITE_BUILD_DROP_CONSOLE: string;
readonly VITE_BASE_URL: string; readonly VITE_BASE_URL: string;
readonly VITE_PARAMETER_ENCRYPTION: string; readonly VITE_PARAMETER_ENCRYPTION: string;
readonly VITE_ADV_API_URL: string;
readonly VITE_ADV_APP_ID: string;
} }
interface ImportMeta { interface ImportMeta {