From 1b8ed300551b88bd86b80b8dfa52d2d6c2b7fdb2 Mon Sep 17 00:00:00 2001
From: PC-20250623MANY\Administrator <344137771@qq.com>
Date: Sun, 24 Aug 2025 14:45:52 +0800
Subject: [PATCH] 1
---
src/App.vue | 140 +++++++++++++++++++++++++++++++++++++---------
1 files changed, 111 insertions(+), 29 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 3b9ab13..7afffd0 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -24,7 +24,9 @@
</div>
<div class="body-box">
<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>
@@ -40,19 +42,19 @@
// 引入css
import "@/assets/iconfont/iconfont.css";
import "@/assets/iconfont/iconfont.ttf";
-import { getUserInfodata } from "./axios/api";
+
+import { mapActions } from "vuex";
export default {
components: {
foot,
elalert,
- loginPopup,
+ loginPopup
},
name: "App",
created() {
- this.getUserInfo();
+ //this.setUseInfo();
this.$state.theme = "red";
- console.log(this.$state.theme, "asdasdasd");
let title = this.$route.meta.title || this.$t("hj224");
this.title = title;
if (this.$route.meta.is_Show) {
@@ -95,137 +97,206 @@
console.log("slide-right");
this.transitionName = "slide-right";
}
- },
+ }
},
data() {
return {
- title: "首页",
+ title: "Home",
hasHeader: false,
iconRight: "default",
transitionName: "",
is_Show: true,
- is_foot: true,
+ is_foot: true
};
},
methods: {
- async getUserInfo() {
- // 获取用户信息
- // let showcookie = this.getCookie('USER_TOKEN');
- let data = await getUserInfodata();
- if (data.status === 0) {
- // this.getProductSetting()
- this.$store.state.userInfo = data.data;
- } else {
- this.$store.commit("elAlertShow", {
- elAlertShow: true,
- elAlertText: data.msg,
- });
- }
- this.$store.state.user = this.user;
- },
+ ...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;
+
+/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 .van-icon {
+ color: @green;
+ font-size: 0.4rem;
+}
+
#app {
width: 100vw;
height: 100vh;
overflow: hidden;
font-family: "rubik";
+
.header-box {
width: 100%;
height: 1.4rem;
+
/deep/.mint-header {
height: 100%;
background-color: #16171d;
+
// background-color: rgba(20, 45, 55, 0.3);
.is-left {
.mintui {
font-size: 20px;
}
}
+
.mint-header-title {
font-size: 0.36rem;
color: rgba(255, 255, 255, 1);
}
}
+
button {
outline: none;
}
}
+
.body-box {
width: 100%;
height: 100%;
// height: calc(100% - 1rem);
box-sizing: border-box;
+ background: #fff;
overflow-y: auto;
}
+
&.red-theme {
background: rgb(241, 242, 246);
color: #000;
+
/deep/.mint-header {
background: none;
+
.mint-header-title {
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: #fff;
+ background: @purple;
}
+
/deep/.newDetail-tits {
color: #aaa;
}
+
/deep/.van-skeleton__row,
.van-skeleton__title {
- background-color: #fff !important;
+ // background-color: #fff !important;
}
}
+
&.black-theme {
// background: #16171d;
// background: rgb(14, 14, 15);
@@ -234,46 +305,54 @@
/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: 0.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 {
width: 0.3rem;
height: 0.3rem;
}
+
.mint-search-list {
position: relative !important;
}
+
.topLeft {
}
@@ -288,12 +367,15 @@
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;
}
--
Gitblit v1.9.3