1
PC-20250623MANY\Administrator
2026-01-02 5a999ad0ca2a36158b8d36a6a11d6a8995044578
src/App.vue
@@ -1,12 +1,20 @@
<template>
  <div id="app" :class="`${$state.theme === 'red' ? 'red-theme' : 'black-theme'}`">
  <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>
        <div v-if="!is_Show">
          <template v-if="iconRight == 'search'">
            <img slot="right" class="search-right" src="./assets/ico/fangdajing.png" alt />
            <img
              slot="right"
              class="search-right"
              src="./assets/ico/fangdajing.png"
              alt
            />
          </template>
          <template v-else>
            <mt-button icon="more" slot="right"></mt-button>
@@ -17,7 +25,7 @@
    <div class="body-box">
      <transition :name="transitionName">
        <!-- <keep-alive include="TradingList"> -->
          <router-view></router-view>
        <router-view></router-view>
        <!-- </keep-alive> -->
      </transition>
    </div>
@@ -41,12 +49,12 @@
  components: {
    foot,
    elalert,
    loginPopup,
    loginPopup
  },
  name: "App",
  created() {
    this.setUseInfo();
    this.$state.theme = "red";
    //this.setUseInfo();
    this.$state.theme = "black";
    let title = this.$route.meta.title || this.$t("hj224");
    this.title = title;
    if (this.$route.meta.is_Show) {
@@ -89,7 +97,7 @@
        console.log("slide-right");
        this.transitionName = "slide-right";
      }
    },
    }
  },
  data() {
    return {
@@ -98,7 +106,7 @@
      iconRight: "default",
      transitionName: "",
      is_Show: true,
      is_foot: true,
      is_foot: true
    };
  },
  methods: {
@@ -109,12 +117,69 @@
    },
    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;
}
@@ -122,12 +187,41 @@
/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%;
@@ -145,7 +239,7 @@
      }
      .mint-header-title {
        font-size: 0.36rem;
        font-size: 0.46rem;
        color: rgba(255, 255, 255, 1);
      }
    }
@@ -160,6 +254,7 @@
    height: 100%;
    // height: calc(100% - 1rem);
    box-sizing: border-box;
    // background: #fff;
    overflow-y: auto;
  }
@@ -219,38 +314,32 @@
    }
    /deep/.footCss {
      background: #fff;
      background: @Black1;
    }
    /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);
    background: #13161e;
    color: #fff;
    /deep/.navs_content {
      background: #272733;
      background: #13161e;
    }
    /deep/.fo_content {
      background: #272733;
      background: #13161e;
    }
    /deep/.news-tab {
      background: #272733;
      background: #13161e;
    }
    /deep/.mint-navbar {
      background: #272733;
      background: #13161e;
    }
    /deep/.mint-tab-item-label {
@@ -262,18 +351,12 @@
      color: #000;
    }
    /deep/.mint-tab-container {}
    /deep/.mint-tab-item {
      background: #272733;
      background: #13161e;
    }
    /deep/.van-swipe-item {
      color: #000;
    }
    /deep/.footCss {
      background: rgb(33, 33, 43);
    }
    /deep/.newDetail-tits {
@@ -290,8 +373,6 @@
.mint-search-list {
  position: relative !important;
}
.topLeft {}
/deep/.el-alert {
  width: 75% !important;