Ui修改
This commit is contained in:
@@ -1,35 +1,13 @@
|
||||
<template>
|
||||
<div class="mobilePage" @click="pageClick">
|
||||
<div class="mobilePage">
|
||||
<div class="headerBox" :class="{ isIos: isIos }">
|
||||
<div class="navBrand">
|
||||
<img class="logoBox" :src="logoHeader" alt="91短剧" />
|
||||
<img class="logoBox" :src="logoHeader" alt="黄果漫剧" />
|
||||
<div class="brandCopy">
|
||||
<p class="brandTitle">91短剧 原创基地</p>
|
||||
<p class="brandTitle">黄果漫剧 原创基地</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)"
|
||||
@@ -122,13 +100,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { landingPageClick } from "@/utils/eventTracker";
|
||||
import tabContents from "./mobile1Contents";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
os: {},
|
||||
configs: {},
|
||||
switchData: {},
|
||||
version: {
|
||||
type: String,
|
||||
@@ -151,11 +127,8 @@ export default {
|
||||
{ label: "刚满18", value: "adult" }
|
||||
],
|
||||
tabContents,
|
||||
cTg: "",
|
||||
cBusiness: "",
|
||||
cChannel: "",
|
||||
showIosTip: true,
|
||||
logoHeader: require("@/assets/images/mobile1/logoHeader.webp")
|
||||
logoHeader: require("@/assets/images/common/hgmj_logo.png")
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -163,30 +136,7 @@ export default {
|
||||
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;
|
||||
}
|
||||
});
|
||||
}
|
||||
return !!(this.isIos && this.switchData && this.switchData.iosStore);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -204,18 +154,6 @@ export default {
|
||||
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 : "推荐";
|
||||
@@ -256,7 +194,7 @@ export default {
|
||||
this.androidPromptShow = true;
|
||||
}
|
||||
},
|
||||
async getApkInfo(flag, event) {
|
||||
async getApkInfo(flag) {
|
||||
let type = this.os.isPhone ? "ios" : "android";
|
||||
if (flag === "shopIos") {
|
||||
type = "shopIos";
|
||||
@@ -267,25 +205,9 @@ export default {
|
||||
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);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -389,53 +311,6 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.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 {
|
||||
|
||||
Reference in New Issue
Block a user