From cf0d36bbe155ecdfd8bca429666405e830d0dc7a Mon Sep 17 00:00:00 2001
From: XIGUASSR <623844246@qq.com>
Date: Sat, 12 Nov 2022 04:22:49 +0800
Subject: [PATCH] 最新
---
src/App.vue | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 109 insertions(+), 8 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 565493a..2e6466a 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,14 +1,18 @@
<template>
<div id="app" :class="`${$state.theme === 'red' ? 'red-theme' : 'black-theme'}`">
- <div :class="`header-box`" v-if="hasHeader && title !== '新登录'">
+ <div :class="`header-box`" v-if="hasHeader && title !== '用户登录'">
<mt-header :title="title">
<mt-button icon="back" slot="left" @click="$router.go(-1)"></mt-button>
- <template v-if="iconRight == 'search'">
+
+ <div v-if="!is_Show">
+ <template v-if="iconRight == 'search'">
<img slot="right" class="search-right" src="./assets/ico/fangdajing.png" alt />
</template>
<template v-else>
<mt-button icon="more" slot="right"></mt-button>
</template>
+ </div>
+
</mt-header>
</div>
<div class="body-box">
@@ -18,16 +22,30 @@
<router-view></router-view>
</transition>
</div>
+ <foot v-if="$route.meta.show !== true"></foot>
+ <elalert></elalert>
</div>
</template>
<script>
+import elalert from "@/components/elalert.vue";
+import foot from "@/components/foot.vue";
export default {
+ components: {
+ foot,
+ elalert
+ },
name: "App",
created() {
+ this.$state.theme="red";
+ console.log(this.$state.theme,"asdasdasd")
let title = this.$route.meta.title || "首页";
this.title = title;
-
+ if(this.$route.meta.is_Show){
+ this.is_Show = this.$route.meta.is_Show;
+ }else{
+ this.is_Show = true;
+ }
if (this.$route.meta.hasHeader) {
this.hasHeader = true;
} else {
@@ -42,6 +60,7 @@
},
watch: {
$route(to, from) {
+
let title = to.meta.title || "首页";
this.title = title;
if (to.meta.iconRight) {
@@ -54,6 +73,7 @@
} else {
this.hasHeader = false;
}
+
if (to.meta.index > from.meta.index) {
console.log("slide-left");
//设置动画名称
@@ -69,7 +89,9 @@
title: "首页",
hasHeader: false,
iconRight: "default",
- transitionName: ''
+ transitionName: '',
+ is_Show:true,
+ is_foot:true,
};
}
};
@@ -83,7 +105,7 @@
font-family: "rubik";
.header-box {
width: 100%;
- height: 1rem;
+ height: 1.4rem;
/deep/.mint-header {
height: 100%;
background-color: #16171d;
@@ -104,27 +126,103 @@
}
.body-box {
width: 100%;
- height: calc(100% - 1rem);
+ height: 100%;
+ // height: calc(100% - 1rem);
box-sizing: border-box;
overflow-y: auto;
}
&.red-theme {
- background: #e9e9e9;
+ background: rgb(241,242,246);
+ color:#000;
/deep/.mint-header {
background: none;
.mint-header-title {
- font-size: 0.36rem;
+ font-size: 0.42rem;
color: #212121;
}
.mintui {
color: #212121;
}
}
+ /deep/.van-swipe-item {
+ color: #000;
+ }
+ /deep/.navs_content {
+ background: #fff!important;
+ }
+ /deep/.fo_content {
+ background: #fff;
+ }
+ /deep/.news-tab{
+ background: #fff;
+ }
+ /deep/.mint-tab-item-label {
+ color: #000;
+ font-size: .26rem;
+
+ }
+ /deep/.top_title{
+ color: #000;
+ }
+ /deep/.titContent{
+ color:#000;
+ }
+ /deep/.mint-navbar {
+ background: #fff;
+ }
+ /deep/.mint-tab-item {
+ background: #fff;
+ border: none;
+ }
+ /deep/.footCss{
+ background: #fff;
+ }
+ /deep/.newDetail-tits{
+ color: #aaa;
+ }
+ /deep/.van-skeleton__row, .van-skeleton__title{
+ background-color: #fff!important;
+ }
}
&.black-theme {
// background: #16171d;
// background: rgb(14, 14, 15);
background: rgb(33, 33, 43);
+
+ /deep/.navs_content {
+ background: #272733;
+ }
+ /deep/.fo_content {
+ background: #272733;
+ }
+ /deep/.news-tab{
+ background: #272733;
+ }
+ /deep/.mint-navbar {
+ background: #272733;
+ }
+ /deep/.mint-tab-item-label {
+ color: #fff;
+ font-size: .26rem;
+
+ }
+ /deep/.titContent{
+ color:#000;
+ }
+ /deep/.mint-tab-container {}
+
+ /deep/.mint-tab-item {
+ background: #272733;
+ }
+ /deep/.van-swipe-item {
+ color: #000;
+ }
+ /deep/.footCss{
+ background: rgb(33, 33, 43);
+ }
+ /deep/.newDetail-tits{
+ color: #999;
+ }
}
}
.search-right {
@@ -134,4 +232,7 @@
.mint-search-list {
position: relative !important;
}
+.topLeft{
+
+}
</style>
--
Gitblit v1.9.3