李凌
2025-10-09 631dc512b226b346fefaebbedf1ddd79c06cab71
src/App.vue
@@ -1,16 +1,17 @@
<template>
  <div class="pt-5" >
   <van-config-provider :theme="store.state.vant.theme">
      <div class="app-container">
    <router-view />
  </div>
  <fx-footer v-if="route.meta.tarbar" />
   </van-config-provider>
</template>
<script setup>
import fxFooter from '@/components/fx-footer/index.vue'
import { authorizedLogin } from "@/service/login.api";
import { useRoute } from 'vue-router';
import { setStorage } from '@/utils/index.js'
import { setStorage, getStorage } from '@/utils/index.js'
import { onMounted } from 'vue'
import { useRouter } from 'vue-router';
@@ -19,6 +20,12 @@
import { GET_USERINFO } from '@/store/types.store'
const router = useRouter()
const route = useRoute()
// 启动时获取缓存的黑夜白天模式
const theme = getStorage('theme') || 'light'
store.commit('vant/SET_THEME', theme)
// 获取客服地址
store.dispatch('user/GET_CUSTOMER_SERVICE_URL')
const geturlkey = (name) => {
  return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null;
@@ -91,12 +98,23 @@
        console.log(res)
    })  // 确保调用的接口是异步的
};
</script>
<style lang="scss">
   @import "assets/init";
   @import "assets/mixin";
   @import "assets/css/variable.scss";
@import "assets/css/flex";
// @import "assets/css/variable.scss";
.app-container,
body,
html {
   @include themify() {
      color: themed("text_color");
      background: themed("main_background");
   }
}
   .nationList {
      .van-action-sheet {
@@ -121,7 +139,7 @@
   }
   #cryptos {
      background-color: $mainbgWhiteColor;
   // background-color: $mainbgWhiteColor;
      // 上传图片框大小设置
      .van-uploader__upload {
@@ -219,8 +237,8 @@
      .list-quatation {
         .van-cell {
            padding: 15px 0 !important;
            background: $mainbgWhiteColor;
         padding: 10px 0 !important;
         // background: $mainbgWhiteColor;
            // background: $inp-b;
            &::after {
@@ -262,7 +280,9 @@
         //}
         .bg {
            .van-cell {
               background-color: $mainTextColor;
            @include themify() {
               background-color: themed("main_background");
            }
            }
         }
      }
@@ -354,7 +374,9 @@
      }
      .van-nav-bar__title {
         color: $log-c;
      @include themify() {
         color: themed("text_color2") 1px solid;
      }
      }
      .van-hairline--top-bottom::after,