Commit 53760b1b authored by youjie's avatar youjie

个人中心样式调整

parent 38d91410
<template> <template>
<div class="w-[977px] h-full flex flex-col flex-shrink-0" <div class="w-[977px] flex flex-col pt-[25px] h-full overflow-hidden"
:class="[current<3?'overflow-hidden':'']"> :class="[current<3?'':'']">
<a-spin :loading="loading"> <div class="flex pl-[13px]">
<div class="flex pl-[13px]"> <div v-for="(item,index) in TitleBars"
<div v-for="(item,index) in TitleBars" class="myOrder-status mr-[42px] py-[22px] cursor-pointer relative"
class="myOrder-status mr-[42px] py-[22px] cursor-pointer relative" :class="[activeMenu==item.key?'active font-medium':'font-light',index?'ml-[42px]':null]"
:class="[activeMenu==item.key?'active font-medium':'font-light',index?'ml-[42px]':null]" @click="changeStatus(item.path)">{{ item.label }}
@click="changeStatus(item.path)">{{ item.label }} <div class="myOrder-status-border absolute left-0 bottom-0 w-full flex justify-center">
<div class="myOrder-status-border absolute left-0 bottom-0 w-full flex justify-center"> <div></div>
<div></div>
</div>
</div> </div>
</div> </div>
<a-divider class="!m-[0]"/> </div>
<main class="max-h-[735px] mt-[20px] overflow-hidden"> <a-divider class="!m-[0]"/>
<router-view /> <!-- max-h-[735px] -->
</main> <main class="flex-1 mt-[20px] overflow-hidden">
</a-spin> <router-view />
</main>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
......
<template> <template>
<div class="w-full h-full overflow-auto"> <div class="w-full h-full overflow-auto">
<a-spin :loading="loading" class="w-full">
<a-space direction="vertical" class="w-full"> <a-space direction="vertical" class="w-full">
<!-- horizonta --> <!-- horizonta -->
<a-form :model="formData" :rules="rules" layout="vertical" class="w-full" <a-form :model="formData" :rules="rules" layout="vertical" class="w-full"
...@@ -181,6 +182,7 @@ ...@@ -181,6 +182,7 @@
</a-form> </a-form>
</a-space> </a-space>
</a-spin>
<!-- 图片预览 --> <!-- 图片预览 -->
<a-image-preview <a-image-preview
v-model:visible="previewVisible" v-model:visible="previewVisible"
...@@ -196,7 +198,6 @@ import { useRouter } from 'vue-router' ...@@ -196,7 +198,6 @@ import { useRouter } from 'vue-router'
import { Message } from '@arco-design/web-vue' import { Message } from '@arco-design/web-vue'
import { useSystemConfigStore } from '@/stores/index' import { useSystemConfigStore } from '@/stores/index'
import UserService from '@/services/UserService' import UserService from '@/services/UserService'
import type { setRegisterDto } from '@/services/UserService'
import CountryService from '@/services/CountryService' import CountryService from '@/services/CountryService'
import { useUserStore } from '@/stores/user' import { useUserStore } from '@/stores/user'
import UploadService from '@/services/UploadService' import UploadService from '@/services/UploadService'
...@@ -255,11 +256,7 @@ const rules = computed(() => ({ ...@@ -255,11 +256,7 @@ const rules = computed(() => ({
], ],
})) }))
const loading = ref(false) const loading = ref(true)
const codeValidateStatus = ref<'' | 'success' | 'error'>('')
const emailVerified = ref(false)
const maxSize = 2 // 2MB const maxSize = 2 // 2MB
// 预览相关 // 预览相关
...@@ -422,6 +419,8 @@ const getUserDetail = async () => { ...@@ -422,6 +419,8 @@ const getUserDetail = async () => {
} }
} catch (error) { } catch (error) {
} finally {
loading.value = false
} }
} }
......
<template> <template>
<div class="h-screen flex justify-center pt-[25px] pb-[12px]"> <div class="h-screen flex justify-center pb-[12px] max-h-[calc(100vh-120px)]">
<div class="h-full flex justify-between w-[1200px]"> <div class="h-full flex justify-between w-[1200px]">
<!-- 左侧导航栏 --> <!-- 左侧导航栏 -->
<LeftView <LeftView class="pt-[25px]"
:menu-list="menuList" :menu-list="menuList"
:active-menu="activeMenu"/> :active-menu="activeMenu"/>
<!-- 右侧页面内容 --> <!-- 右侧页面内容 -->
<main class="h-full flex-1 ml-[24px]"> <main class="flex-1 ml-[24px] overflow-hidden">
<router-view /> <router-view />
</main> </main>
</div> </div>
......
<template> <template>
<div class="w-[977px] h-full flex flex-col flex-shrink-0"> <div class="w-[977px] h-full flex flex-col flex-shrink-0 mt-[25px]">
<a-spin :loading="loading"> <a-spin :loading="loading">
<div class="myOrderData rounded-[14px] flex justify-between pt-[22px] pb-[19px] pl-[16px] relative"> <div class="myOrderData rounded-[14px] flex justify-between pt-[22px] pb-[19px] pl-[16px] relative">
<div class="flex items-center p-[20px]"> <div class="flex items-center p-[20px]">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment