From 5a999ad0ca2a36158b8d36a6a11d6a8995044578 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Fri, 02 Jan 2026 20:53:42 +0800
Subject: [PATCH] 1

---
 src/App.vue |  338 ++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 303 insertions(+), 35 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 5c49152..cc61a39 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,38 +1,67 @@
 <template>
-  <div id="app" :class="`${$state.theme === 'red' ? 'red-theme' : 'black-theme'}`">
-    <div :class="`header-box`" v-if="hasHeader && title !== '新登录'">
+  <div
+    id="app"
+    :class="`${$state.theme === 'red' ? 'red-theme' : 'black-theme'}`"
+  >
+    <div :class="`header-box`" v-if="hasHeader && title !== $t('hj248')">
       <mt-header :title="title">
         <mt-button icon="back" slot="left" @click="$router.go(-1)"></mt-button>
-        <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 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">
-      <transition
-        :duration="1000"
-        mode="out-in"
-        appear
-        enter-active-class="animated fadeInRight"
-        leave-active-class="animated fadeOut"
-        appear-active-class="animated zoomInDown"
-      >
+      <transition :name="transitionName">
+        <!-- <keep-alive include="TradingList"> -->
         <router-view></router-view>
+        <!-- </keep-alive> -->
       </transition>
     </div>
+    <foot v-if="$route.meta.show !== true" @close="footColse"></foot>
+    <elalert></elalert>
+    <loginPopup @close="dialogClose" />
   </div>
 </template>
 
 <script>
+import elalert from "@/components/elalert.vue";
+import foot from "@/components/foot.vue";
+import loginPopup from "@/components/loginDialog.vue";
+// 引入css
+import "@/assets/iconfont/iconfont.css";
+import "@/assets/iconfont/iconfont.ttf";
+
+import { mapActions } from "vuex";
+
 export default {
+  components: {
+    foot,
+    elalert,
+    loginPopup
+  },
   name: "App",
   created() {
-    let title = this.$route.meta.title || "首页";
+    //this.setUseInfo();
+    this.$state.theme = "black";
+    let title = this.$route.meta.title || this.$t("hj224");
     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 {
@@ -46,87 +75,326 @@
     // this.$store.state.className = window.localStorage.getItem('styleName')?window.localStorage.getItem('styleName'):'red'
   },
   watch: {
-    $route(val) {
-      let title = val.meta.title || "首页";
+    $route(to, from) {
+      let title = to.meta.title || this.$t("hj224");
       this.title = title;
-
-      if (val.meta.iconRight) {
-        this.iconRight = val.meta.iconRight;
+      if (to.meta.iconRight) {
+        this.iconRight = to.meta.iconRight;
       } else {
         this.iconRight = "default";
       }
-      if (val.meta.hasHeader) {
+      if (to.meta.hasHeader) {
         this.hasHeader = true;
       } else {
         this.hasHeader = false;
+      }
+
+      if (to.meta.index > from.meta.index) {
+        console.log("slide-left");
+        // 设置动画名称
+        this.transitionName = "slide-left";
+      } else {
+        console.log("slide-right");
+        this.transitionName = "slide-right";
       }
     }
   },
   data() {
     return {
-      title: "首页",
+      title: "Home",
       hasHeader: false,
-      iconRight: "default"
+      iconRight: "default",
+      transitionName: "",
+      is_Show: true,
+      is_foot: true
     };
+  },
+  methods: {
+    ...mapActions(["setUseInfo"]),
+
+    footColse() {
+      this.$store.commit("dialogVisible", true);
+    },
+    dialogClose() {
+      this.$store.commit("dialogVisible", false);
+    }
   }
 };
 </script>
 
 <style lang="less" scoped>
+@white: #fff;
+@black: #000;
+@green: #c4d600;
+@purple: #3d1152;
+@dark_green: #07c160;
+@red: #ee0a24;
+@brown: #ff976a;
+@grey: #dddddd;
+@Black1: #13161e;
+
+/deep/ .van-field__control {
+  color: #fff;
+  font-size: 1.4em;
+}
+/deep/ .no_data {
+  width: 100%;
+  padding-top: 2em;
+  img {
+    width: 50%;
+  }
+}
+/deep/ .line-one {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+/deep/ .flex-center {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+
+/deep/ .flex-between {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+}
+
+/deep/ .flex-between-start {
+  display: flex;
+  justify-content: space-between;
+  align-items: start;
+}
+
+/deep/ .flex-start {
+  display: flex;
+  justify-content: flex-start;
+  align-items: center;
+}
+
+/deep/ .flex-end {
+  display: flex;
+  justify-content: flex-end;
+  align-items: center;
+}
+
+/deep/ .van-list__finished-text {
+  line-height: 1.925926rem !important;
+}
+
+/deep/ .van-list__error-text {
+  line-height: 1.925926rem !important;
+}
+/deep/ .van-nav-bar {
+  background-color: @Black1;
+  .van-icon {
+    color: @white;
+    font-size: 0.4rem;
+  }
+}
+/deep/ .van-nav-bar__title {
+  font-family: "DINPro";
+  width: 100%;
+  height: 1.17333rem;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  font-style: normal;
+  font-weight: 500;
+  font-size: 0.48rem;
+  color: #fff !important;
+}
+/deep/ .more-news {
+  padding: 0.35rem 0;
+  text-align: center;
+  span {
+    font-size: 0.4rem;
+    line-height: 1.2rem;
+    color: #898a8e;
+  }
+}
+
 #app {
   width: 100vw;
-  height: 100vh;
+  min-height: 100vh;
   overflow: hidden;
   font-family: "rubik";
+  color: #fff;
+
   .header-box {
     width: 100%;
-    height: 1rem;
+    height: 1.4rem;
+
     /deep/.mint-header {
       height: 100%;
-      background-color: rgba(20, 45, 55, 0.3);
+      background-color: #16171d;
+
+      // background-color: rgba(20, 45, 55, 0.3);
       .is-left {
         .mintui {
           font-size: 20px;
         }
       }
+
       .mint-header-title {
-        font-size: 0.36rem;
+        font-size: 0.46rem;
         color: rgba(255, 255, 255, 1);
       }
     }
+
     button {
       outline: none;
     }
   }
+
   .body-box {
     width: 100%;
-    height: calc(100% - 1rem);
+    height: 100%;
+    // height: calc(100% - 1rem);
     box-sizing: border-box;
+    // background: #fff;
     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: 0.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: @Black1;
+    }
+
+    /deep/.newDetail-tits {
+      color: #aaa;
+    }
   }
+
   &.black-theme {
-    // background: #16171d;
-    background: rgb(14, 14, 15);
+    background: #13161e;
+    color: #fff;
+
+    /deep/.navs_content {
+      background: #13161e;
+    }
+
+    /deep/.fo_content {
+      background: #13161e;
+    }
+
+    /deep/.news-tab {
+      background: #13161e;
+    }
+
+    /deep/.mint-navbar {
+      background: #13161e;
+    }
+
+    /deep/.mint-tab-item-label {
+      color: #fff;
+      font-size: 0.26rem;
+    }
+
+    /deep/.titContent {
+      color: #000;
+    }
+
+    /deep/.mint-tab-item {
+      background: #13161e;
+    }
+
+    /deep/.van-swipe-item {
+      color: #000;
+    }
+
+    /deep/.newDetail-tits {
+      color: #999;
+    }
   }
 }
+
 .search-right {
   width: 0.3rem;
   height: 0.3rem;
 }
+
 .mint-search-list {
   position: relative !important;
 }
+
+/deep/.el-alert {
+  width: 75% !important;
+  height: 1.1rem !important;
+  position: absolute !important;
+  top: 0 !important;
+  bottom: 0 !important;
+  left: 0 !important;
+  right: 0 !important;
+  margin: auto !important;
+  font-size: 0.36rem !important;
+}
+
+/deep/.el-alert__title {
+  font-size: 0.36rem !important;
+}
+
+/deep/.el-icon-close::before {
+  display: none;
+}
+
+/deep/.icon-icon_A::before {
+  font-size: 0.6rem !important;
+}
 </style>

--
Gitblit v1.9.3