Ui修改
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
<template>
|
||||
<div class="mobilePage" @click="pageClick">
|
||||
<div class="mobilePage">
|
||||
<div
|
||||
class="headerBox"
|
||||
@click.stop="
|
||||
getApkInfo(
|
||||
os.isPhone && switchData.shopIosDownUrl ? 'shopIos' : true,
|
||||
$event
|
||||
)
|
||||
getApkInfo(os.isPhone && switchData.iosStore ? 'shopIos' : true, $event)
|
||||
"
|
||||
>
|
||||
<div class="header-bg">
|
||||
@@ -21,30 +18,12 @@
|
||||
></div>
|
||||
<div class="navBox">
|
||||
<div class="navBrand">
|
||||
<img class="logoBox" :src="logoHeader" alt="海角社区" />
|
||||
<img class="logoBox" :src="logoHeader" alt="黄果漫剧" />
|
||||
<div class="brandCopy">
|
||||
<div class="brandName">海角社区</div>
|
||||
<div class="brandName">黄果漫剧</div>
|
||||
<div class="brandDesc">全球最大乱伦平台</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rightBox" v-if="configs && configs.length">
|
||||
<div class="navItem" v-if="cTg" @click.stop="jumpUrl(cTg)">
|
||||
<div class="telegram"></div>
|
||||
<span>群聊</span>
|
||||
</div>
|
||||
<div
|
||||
class="navItem"
|
||||
v-if="cBusiness"
|
||||
@click.stop="jumpUrl(cBusiness)"
|
||||
>
|
||||
<div class="business"></div>
|
||||
<span>商务</span>
|
||||
</div>
|
||||
<div class="navItem" v-if="cChannel" @click.stop="jumpUrl(cChannel)">
|
||||
<div class="channel"></div>
|
||||
<span>流量</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<van-tabs
|
||||
@@ -68,7 +47,7 @@
|
||||
class="main"
|
||||
@click.stop="
|
||||
getApkInfo(
|
||||
os.isPhone && switchData.shopIosDownUrl ? 'shopIos' : true,
|
||||
os.isPhone && switchData.iosStore ? 'shopIos' : true,
|
||||
$event
|
||||
)
|
||||
"
|
||||
@@ -105,10 +84,7 @@
|
||||
class="bottomBox ios"
|
||||
@click.stop="getApkInfo('shopIos', $event)"
|
||||
>
|
||||
<div
|
||||
class="shopBtn"
|
||||
@click.stop="getApkInfo('shopIos', $event)"
|
||||
></div>
|
||||
<div class="shopBtn" @click.stop="getApkInfo('shopIos', $event)"></div>
|
||||
</div>
|
||||
</div>
|
||||
<van-overlay :show="androidPromptShow" z-index="999" class="androidOverlay">
|
||||
@@ -135,10 +111,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { landingPageClick } from "@/utils/eventTracker";
|
||||
|
||||
export default {
|
||||
props: ["os", "configs", "switchData"],
|
||||
props: ["os", "switchData"],
|
||||
data() {
|
||||
return {
|
||||
androidPromptShow: false,
|
||||
@@ -221,30 +195,13 @@ export default {
|
||||
"【妹妹不睡我不睡,我玩游戏操亲妹!】爸妈外出后,我带妹妹玩真心话大冒险,没想到妹妹居然还穿着透明蕾丝内裤!看的我鸡巴一柱擎天!脱下裤子狂操妹妹,要不是怕妹妹怀孕,我高低要试试内射亲妹的滋味!!"
|
||||
}
|
||||
],
|
||||
cTg: "",
|
||||
cBusiness: "",
|
||||
cChannel: "",
|
||||
version: "B",
|
||||
logoHeader: require("@/assets/images/mobile2/figma-logo.png")
|
||||
logoHeader: require("@/assets/images/common/hgmj_logo.png")
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
hasShopIos() {
|
||||
return this.os && this.os.isPhone && this.switchData.shopIosDownUrl;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
configs(configs) {
|
||||
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 configs;
|
||||
return this.os && this.os.isPhone && this.switchData.iosStore;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -258,14 +215,6 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
pageClick(event) {
|
||||
landingPageClick(this, {
|
||||
tab_key: this.tabActive,
|
||||
tab_name: this.getTabName(),
|
||||
click_coordinates_x: event.clientX,
|
||||
click_coordinates_y: event.clientY
|
||||
});
|
||||
},
|
||||
getTabName() {
|
||||
const tab = this.tabs.find(item => item.value === this.tabActive);
|
||||
return tab ? tab.label : "精选";
|
||||
@@ -280,7 +229,7 @@ export default {
|
||||
},
|
||||
onTabBeforeChange() {
|
||||
this.getApkInfo(
|
||||
this.os.isPhone && this.switchData.shopIosDownUrl ? "shopIos" : true
|
||||
this.os.isPhone && this.switchData.iosStore ? "shopIos" : true
|
||||
);
|
||||
return false;
|
||||
},
|
||||
@@ -291,7 +240,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";
|
||||
@@ -302,19 +251,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) {
|
||||
window.open(url);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -390,52 +329,6 @@ export default {
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
.rightBox {
|
||||
position: absolute;
|
||||
right: 13px;
|
||||
top: 12px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 14px;
|
||||
|
||||
.navItem {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 24px;
|
||||
|
||||
span {
|
||||
margin-top: 2px;
|
||||
font-size: 10px;
|
||||
color: #fff;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
letter-spacing: 0.8px;
|
||||
}
|
||||
|
||||
.telegram,
|
||||
.business,
|
||||
.channel {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.telegram {
|
||||
background-image: url("./../../../assets/images/mobile2/figma-group.svg");
|
||||
}
|
||||
|
||||
.business {
|
||||
background-image: url("./../../../assets/images/mobile2/figma-business.svg");
|
||||
}
|
||||
|
||||
.channel {
|
||||
background-image: url("./../../../assets/images/mobile2/figma-channel.svg");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.header-bg {
|
||||
|
||||
Reference in New Issue
Block a user