| | |
| | | <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'; |
| | |
| | | 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; |
| | |
| | | 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 { |
| | |
| | | } |
| | | |
| | | #cryptos { |
| | | background-color: $mainbgWhiteColor; |
| | | // background-color: $mainbgWhiteColor; |
| | | |
| | | // 上传图片框大小设置 |
| | | .van-uploader__upload { |
| | |
| | | |
| | | .list-quatation { |
| | | .van-cell { |
| | | padding: 15px 0 !important; |
| | | background: $mainbgWhiteColor; |
| | | padding: 10px 0 !important; |
| | | // background: $mainbgWhiteColor; |
| | | // background: $inp-b; |
| | | |
| | | &::after { |
| | |
| | | //} |
| | | .bg { |
| | | .van-cell { |
| | | background-color: $mainTextColor; |
| | | @include themify() { |
| | | background-color: themed("main_background"); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | .van-nav-bar__title { |
| | | color: $log-c; |
| | | @include themify() { |
| | | color: themed("text_color2") 1px solid; |
| | | } |
| | | } |
| | | |
| | | .van-hairline--top-bottom::after, |