初始提交:91 短剧落地页项目
另外新增两版「糖果短剧」logo 素材(candy_logo、candy_logo_sexy), 参考 pc/logo.webp 的构图制作,暂未在页面中引用。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,736 @@
|
||||
<template>
|
||||
<div class="mobilePage" @click="pageClick">
|
||||
<div class="headerBox" :class="{ isIos: isIos }">
|
||||
<div class="navBrand">
|
||||
<img class="logoBox" :src="logoHeader" alt="91短剧" />
|
||||
<div class="brandCopy">
|
||||
<p class="brandTitle">91短剧 原创基地</p>
|
||||
<p class="brandDesc">沉浸体验 极速观影</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rightBox" v-if="configs && configs.length">
|
||||
<div class="navItem" v-if="cTg" @click.stop="jumpUrl(cTg, $event)">
|
||||
<div class="telegram"></div>
|
||||
<span>群聊</span>
|
||||
</div>
|
||||
<div
|
||||
class="navItem"
|
||||
v-if="cBusiness"
|
||||
@click.stop="jumpUrl(cBusiness, $event)"
|
||||
>
|
||||
<div class="business"></div>
|
||||
<span>商务</span>
|
||||
</div>
|
||||
<div
|
||||
class="navItem"
|
||||
v-if="cChannel"
|
||||
@click.stop="jumpUrl(cChannel, $event)"
|
||||
>
|
||||
<div class="channel"></div>
|
||||
<span>客服</span>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="iosBanner"
|
||||
@click.stop="getApkInfo(hasShopIos ? 'shopIos' : true, $event)"
|
||||
></div>
|
||||
<div
|
||||
v-if="isIos"
|
||||
class="iosLiteBar"
|
||||
@click.stop="getApkInfo(true, $event)"
|
||||
></div>
|
||||
</div>
|
||||
|
||||
<div class="pageBody" :class="{ isIos: isIos, hasShop: hasShopIos }">
|
||||
<div class="contentPanel">
|
||||
<van-tabs
|
||||
v-model="tabActive"
|
||||
title-active-color="#ffffff"
|
||||
title-inactive-color="#ffffff"
|
||||
:ellipsis="false"
|
||||
animated
|
||||
:lazy-render="false"
|
||||
:before-change="onTabBeforeChange"
|
||||
class="vantTabs"
|
||||
>
|
||||
<van-tab
|
||||
:title="item.label"
|
||||
:name="item.value"
|
||||
v-for="item in tabs"
|
||||
:key="item.value"
|
||||
>
|
||||
<div
|
||||
class="main"
|
||||
@click.stop="getApkInfo(hasShopIos ? 'shopIos' : true, $event)"
|
||||
>
|
||||
<div
|
||||
class="contentGrid"
|
||||
:class="{ portrait: item.value === 'ai' }"
|
||||
>
|
||||
<div
|
||||
class="gridItem"
|
||||
v-for="card in tabContents[item.value]"
|
||||
:key="card.id"
|
||||
>
|
||||
<img class="gridThumb" :src="card.thumb" alt="" />
|
||||
<p class="gridText">{{ card.title }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</van-tab>
|
||||
</van-tabs>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="downloadIosAppStore"
|
||||
@click.stop="getApkInfo('shopIos', $event)"
|
||||
v-if="hasShopIos && showIosTip"
|
||||
>
|
||||
<div class="close-btn" @click.stop="showIosTip = false"></div>
|
||||
</div>
|
||||
|
||||
<div class="bottomBar" :class="{ isIos: isIos, hasShop: hasShopIos }">
|
||||
<div
|
||||
class="bottomBox"
|
||||
:class="{ ios: isIos }"
|
||||
@click.stop="getApkInfo(hasShopIos ? 'shopIos' : true, $event)"
|
||||
></div>
|
||||
</div>
|
||||
|
||||
<van-overlay :show="androidPromptShow" z-index="999" class="androidOverlay">
|
||||
<div>
|
||||
<div class="overlayContent" @click.stop>
|
||||
<div class="confirmBtnBox" @click="androidPromptShow = false"></div>
|
||||
</div>
|
||||
</div>
|
||||
</van-overlay>
|
||||
<van-overlay :show="iosPromptShow" z-index="999" class="iosOverlay">
|
||||
<div>
|
||||
<div class="overlayContent" @click.stop>
|
||||
<div class="confirmBtnBox" @click="iosPromptShow = false"></div>
|
||||
</div>
|
||||
</div>
|
||||
</van-overlay>
|
||||
<van-popup v-model="showTip" class="downTip">
|
||||
<div class="downTipTitle">温馨提示</div>
|
||||
<div class="downTipContent">请使用Safari浏览器进行下载</div>
|
||||
<div class="url">{{ currUrl }}</div>
|
||||
<div class="downTipConfirm" @click.stop="doCopy">复制链接</div>
|
||||
</van-popup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { landingPageClick } from "@/utils/eventTracker";
|
||||
import tabContents from "./mobile1Contents";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
os: {},
|
||||
configs: {},
|
||||
switchData: {},
|
||||
version: {
|
||||
type: String,
|
||||
default: "A"
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
androidPromptShow: false,
|
||||
iosPromptShow: false,
|
||||
showTip: false,
|
||||
currUrl: window.location.href,
|
||||
tabActive: "ai",
|
||||
tabTimer: null,
|
||||
tabs: [
|
||||
{ label: "AI短剧", value: "ai" },
|
||||
{ label: "推荐", value: "hot" },
|
||||
{ label: "国产", value: "country" },
|
||||
{ label: "乱伦", value: "incest" },
|
||||
{ label: "刚满18", value: "adult" }
|
||||
],
|
||||
tabContents,
|
||||
cTg: "",
|
||||
cBusiness: "",
|
||||
cChannel: "",
|
||||
showIosTip: true,
|
||||
logoHeader: require("@/assets/images/mobile1/logoHeader.webp")
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
isIos() {
|
||||
return !!(this.os && this.os.isPhone);
|
||||
},
|
||||
hasShopIos() {
|
||||
return !!(
|
||||
this.isIos &&
|
||||
this.switchData &&
|
||||
this.switchData.shopIosDownUrl
|
||||
);
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
configs: {
|
||||
immediate: true,
|
||||
handler(configs) {
|
||||
if (!configs || !configs.length) {
|
||||
return;
|
||||
}
|
||||
configs.forEach(item => {
|
||||
if (item.configType === "tg_group") {
|
||||
this.cTg = item.link;
|
||||
} else if (item.configType === "sw_cooperate") {
|
||||
this.cBusiness = item.link;
|
||||
} else if (item.configType === "qd_cooperate") {
|
||||
this.cChannel = item.link;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
let ua = this.os.userAgent.toLowerCase();
|
||||
let isSafari =
|
||||
ua.indexOf("safari") !== -1 &&
|
||||
ua.indexOf("browser") === -1 &&
|
||||
ua.indexOf("android") === -1;
|
||||
if (!isSafari && this.os.isPhone) {
|
||||
this.showTip = true;
|
||||
}
|
||||
this.startTabAutoPlay();
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.clearTabAutoPlay();
|
||||
},
|
||||
methods: {
|
||||
pageClick(event) {
|
||||
let click_coordinates_x = event.clientX;
|
||||
let click_coordinates_y = event.clientY;
|
||||
landingPageClick(this, {
|
||||
tab_key: this.tabActive,
|
||||
tab_name: this.getTabName(),
|
||||
click_coordinates_x,
|
||||
click_coordinates_y
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
});
|
||||
},
|
||||
getTabName() {
|
||||
const tab = this.tabs.find(item => item.value === this.tabActive);
|
||||
return tab ? tab.label : "推荐";
|
||||
},
|
||||
doCopy() {
|
||||
this.$copyText(this.currUrl).then(
|
||||
() => {
|
||||
this.showTip = false;
|
||||
},
|
||||
() => {
|
||||
console.log("复制失败");
|
||||
}
|
||||
);
|
||||
},
|
||||
startTabAutoPlay() {
|
||||
this.clearTabAutoPlay();
|
||||
this.tabTimer = setInterval(() => {
|
||||
const i = this.tabs.findIndex(tab => tab.value === this.tabActive);
|
||||
const next = this.tabs[(i + 1) % this.tabs.length];
|
||||
this.tabActive = next.value;
|
||||
}, 5000);
|
||||
},
|
||||
clearTabAutoPlay() {
|
||||
if (this.tabTimer) {
|
||||
clearInterval(this.tabTimer);
|
||||
this.tabTimer = null;
|
||||
}
|
||||
},
|
||||
onTabBeforeChange() {
|
||||
this.getApkInfo(this.hasShopIos ? "shopIos" : true);
|
||||
this.startTabAutoPlay();
|
||||
return false;
|
||||
},
|
||||
async showInstallTutorial(type) {
|
||||
if (type === "ios") {
|
||||
this.iosPromptShow = true;
|
||||
} else {
|
||||
this.androidPromptShow = true;
|
||||
}
|
||||
},
|
||||
async getApkInfo(flag, event) {
|
||||
let type = this.os.isPhone ? "ios" : "android";
|
||||
if (flag === "shopIos") {
|
||||
type = "shopIos";
|
||||
}
|
||||
if (flag === "androidSpare") {
|
||||
type = "androidSpare";
|
||||
}
|
||||
if (flag && flag !== "shopIos") {
|
||||
await this.showInstallTutorial(type);
|
||||
}
|
||||
this.$emit("recordClick", type);
|
||||
setTimeout(() => {
|
||||
this.$emit("getApkInfo", type);
|
||||
}, 500);
|
||||
landingPageClick(this, {
|
||||
tab_name: "下载按钮",
|
||||
tab_key: "download",
|
||||
click_coordinates_x: event ? event.clientX : 0,
|
||||
click_coordinates_y: event ? event.clientY : 0
|
||||
});
|
||||
},
|
||||
jumpUrl(url, event) {
|
||||
landingPageClick(this, {
|
||||
tab_key: this.tabActive,
|
||||
tab_name: this.getTabName(),
|
||||
click_coordinates_x: event ? event.clientX : 0,
|
||||
click_coordinates_y: event ? event.clientY : 0
|
||||
});
|
||||
window.open(url);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.mobilePage {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: linear-gradient(180deg, #0c0c0d 10.63%, #320606 100%);
|
||||
overflow: hidden;
|
||||
|
||||
.headerBox {
|
||||
position: fixed;
|
||||
z-index: 100;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 217px;
|
||||
background: transparent;
|
||||
box-sizing: border-box;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 67px;
|
||||
background: linear-gradient(187deg, #230d16 10.4%, #f3561f 201.71%);
|
||||
opacity: 0.9;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
&.isIos {
|
||||
height: 258px;
|
||||
}
|
||||
|
||||
.iosBanner {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 67px;
|
||||
width: 375px;
|
||||
height: 150px;
|
||||
z-index: 1;
|
||||
background: url("./../../../assets/images/mobile1/banner-ios.webp")
|
||||
no-repeat center center;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.iosLiteBar {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 217px;
|
||||
width: 375px;
|
||||
height: 41px;
|
||||
z-index: 1;
|
||||
background: url("./../../../assets/images/mobile1/btn-ios.webp") no-repeat
|
||||
center center;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.navBrand {
|
||||
position: absolute;
|
||||
left: 17px;
|
||||
top: 13px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
|
||||
.logoBox {
|
||||
display: block;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 12px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.brandCopy {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
.brandTitle {
|
||||
margin: 0;
|
||||
color: #f9df1b;
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
line-height: 1.4;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.brandDesc {
|
||||
margin: 0;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
line-height: 1.4;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rightBox {
|
||||
position: absolute;
|
||||
right: 16px;
|
||||
top: 13px;
|
||||
z-index: 2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
|
||||
.navItem {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
width: 28px;
|
||||
|
||||
.telegram,
|
||||
.business,
|
||||
.channel {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.telegram {
|
||||
background-image: url("./../../../assets/images/mobile1/telegram.svg");
|
||||
}
|
||||
|
||||
.business {
|
||||
background-image: url("./../../../assets/images/mobile1/business.svg");
|
||||
}
|
||||
|
||||
.channel {
|
||||
background-image: url("./../../../assets/images/mobile1/channel.svg");
|
||||
}
|
||||
|
||||
span {
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
letter-spacing: 0.8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pageBody {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 227px;
|
||||
bottom: calc(74px + env(safe-area-inset-bottom));
|
||||
padding: 0 15px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&.isIos {
|
||||
top: 268px;
|
||||
}
|
||||
|
||||
&.isIos.hasShop {
|
||||
bottom: calc(110px + env(safe-area-inset-bottom));
|
||||
}
|
||||
}
|
||||
|
||||
.contentPanel {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
background: #22030f;
|
||||
border: 1px solid #8f450c;
|
||||
border-radius: 21px;
|
||||
padding: 9px 6px 16px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.vantTabs {
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
background-color: transparent;
|
||||
|
||||
::v-deep .van-tabs__wrap {
|
||||
flex-shrink: 0;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
padding: 0 0 8px;
|
||||
box-sizing: border-box;
|
||||
background: #22030f;
|
||||
|
||||
.van-tabs__nav {
|
||||
height: 36px;
|
||||
padding: 4px;
|
||||
background: #5a170d;
|
||||
border-radius: 969px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.van-tab {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
height: 28px;
|
||||
line-height: 28px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
color: #fff;
|
||||
border-radius: 904px;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.van-tab--active {
|
||||
background: linear-gradient(180deg, #f1801f 0%, #f53d1f 100%);
|
||||
color: #fff;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.van-tab__text {
|
||||
font-size: 12px;
|
||||
line-height: 28px;
|
||||
}
|
||||
|
||||
.van-tabs__line {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .van-tabs__content {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
::v-deep .van-tabs__track,
|
||||
::v-deep .van-tab__pane-wrapper,
|
||||
::v-deep .van-tab__pane {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.main {
|
||||
height: 100%;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
.contentGrid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: 12px 0;
|
||||
padding: 0 3px;
|
||||
|
||||
.gridItem {
|
||||
width: 157px;
|
||||
|
||||
.gridThumb {
|
||||
width: 157px;
|
||||
height: 90px;
|
||||
display: block;
|
||||
border-radius: 8px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.gridText {
|
||||
margin-top: 9px;
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
line-height: 17px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
&.portrait {
|
||||
.gridItem {
|
||||
width: 157px;
|
||||
|
||||
.gridThumb {
|
||||
width: 157px;
|
||||
height: 228px;
|
||||
border-radius: 7.5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bottomBar {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
z-index: 99;
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
box-sizing: border-box;
|
||||
background: transparent;
|
||||
|
||||
&.isIos {
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
}
|
||||
|
||||
.bottomBox {
|
||||
height: 64px;
|
||||
width: 375px;
|
||||
margin: 0 auto;
|
||||
background: url("./../../../assets/images/mobile1/bottomBg.webp") no-repeat
|
||||
center center;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.shopIos {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.downloadIosAppStore {
|
||||
height: 32px;
|
||||
width: 298px;
|
||||
background: url("./../../../assets/images/mobile1/shopIos.webp") no-repeat
|
||||
center center;
|
||||
background-size: 100% 100%;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: calc(64px + 14px + env(safe-area-inset-bottom));
|
||||
z-index: 998;
|
||||
border: 0.6px solid #1f1e1c;
|
||||
border-radius: 0 16px 16px 0;
|
||||
box-sizing: border-box;
|
||||
overflow: visible;
|
||||
|
||||
.close-btn {
|
||||
height: 17px;
|
||||
width: 17px;
|
||||
background: url("./../../../assets/images/mobile1/shopClose.svg")
|
||||
no-repeat center center;
|
||||
background-size: 100% 100%;
|
||||
position: absolute;
|
||||
right: -2px;
|
||||
top: -7px;
|
||||
}
|
||||
}
|
||||
|
||||
.androidOverlay {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.overlayContent {
|
||||
width: 297px;
|
||||
height: 441px;
|
||||
background: url("./../../../assets/images/mobile1/android_tip.webp")
|
||||
no-repeat;
|
||||
background-size: 100% 100%;
|
||||
border-radius: 12px;
|
||||
padding-top: 380px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.confirmBtnBox {
|
||||
height: 36px;
|
||||
width: 140px;
|
||||
border-radius: 40px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.iosOverlay {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.overlayContent {
|
||||
width: 297px;
|
||||
height: 441px;
|
||||
background: url("./../../../assets/images/mobile1/iosTip.webp") no-repeat;
|
||||
background-size: 100% 100%;
|
||||
border-radius: 14px;
|
||||
padding-top: 382px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.confirmBtnBox {
|
||||
height: 33px;
|
||||
width: 129px;
|
||||
border-radius: 16.5px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.downTip {
|
||||
width: 297px;
|
||||
border-radius: 10px;
|
||||
padding: 18px;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
|
||||
.downTipTitle {
|
||||
font-size: 18px;
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
|
||||
.downTipContent {
|
||||
white-space: nowrap;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.url {
|
||||
font-size: 15px;
|
||||
margin-top: 16px;
|
||||
text-align: left;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.downTipConfirm {
|
||||
font-size: 15px;
|
||||
width: 160px;
|
||||
height: 30px;
|
||||
border-radius: 40px;
|
||||
margin: 32px auto 0;
|
||||
color: #fff;
|
||||
background: #f53d1f;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user