Files
dvcp_v2_webapp/ui/packages/layout/AiPage.vue
aixianling 045449331f feat(xumu): 完善认证材料页面并优化相关功能
- 新增认证材料页面,支持查看和审核用户提交的认证信息- 优化 axios 配置,修复 URL 替换逻辑
- 更新表格操作按钮,根据认证状态显示不同选项
- 重构页面布局组件,增加返回按钮和内容字符串属性
2024-12-19 18:04:12 +08:00

68 lines
1.3 KiB
Vue

<script>
import AiTitle from "../basic/AiTitle.vue";
export default {
name: "AiPage",
components: {AiTitle},
props: {
contentString: {default: "card"},
showBack: Boolean
}
}
</script>
<template>
<section class="AiPage">
<slot v-if="$slots.title" name="title"/>
<ai-title v-else-if="$attrs.title" :title="$attrs.title" isShowBottomBorder :isShowBack="showBack" @onBackClick="$router.push({})"/>
<div class="fill main">
<div v-if="$slots.left" class="left">
<slot name="left"/>
</div>
<div class="fill" :class="[contentString]">
<slot/>
</div>
</div>
</section>
</template>
<style scoped lang="scss">
.AiPage {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
padding: 0 20px;
overflow: hidden;
background: #f3f6f9;
.main {
display: flex;
padding: 20px 0;
gap: 10px;
overflow: hidden;
height: 100%;
& > .fill {
&.card {
padding: 12px 16px 12px;
background: #FFFFFF;
border-radius: 2px;
box-shadow: 0 4px 6px -2px rgba(15, 15, 21, 0.15);
}
&.detail {
margin-left: 50%;
transform: translateX(-50%);
max-width: 1200px;
}
}
}
.left {
max-width: 50%;
width: auto;
}
}
</style>