1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<template>
<a-layout>
<a-layout-content class="header-content">
<div>
<div class="header-title">
<span>支付配置</span
><DownOutlined
v-if="ShowIcon.HeaderIcon"
@click="onHearder"
></DownOutlined>
<UpOutlined v-else @click="onHearder" ></UpOutlined>
</div>
<ContentHeaders v-if="ShowIcon.HeaderIcon" :list="list" ></ContentHeaders>
</div>
</a-layout-content>
<a-layout-content class="body-content">
<div>
<div class="header-title">
<span>域名配置</span
><DownOutlined
v-if="ShowIcon.BodyIcon"
@click="onBody"
></DownOutlined>
<UpOutlined v-else @click="onBody"></UpOutlined>
</div>
<ContentBodys v-if="ShowIcon.BodyIcon"></ContentBodys>
</div>
</a-layout-content>
<a-layout-footer class="footer-content">
<div>
<div class="header-title">
<span>公众号配置</span
><DownOutlined
v-if="ShowIcon.FooterIcon"
@click="onFooter"
></DownOutlined>
<UpOutlined v-else @click="onFooter"></UpOutlined>
</div>
<ContentFooters v-if="ShowIcon.FooterIcon"></ContentFooters>
</div>
</a-layout-footer>
</a-layout>
</template>
<script lang="ts" setup>
import { defineExpose, reactive,ref,onMounted} from "vue";
import ContentHeaders from "./compoents/header/index.vue";
import { getPaySelect } from "@/api/index";
import { DownOutlined, UpOutlined } from "@ant-design/icons-vue";
interface ShowIcon {
HeaderIcon: Boolean;
BodyIcon: Boolean;
FooterIcon: Boolean;
}
let list = ref<Object>([{name:'1',num:2,status:'0',paytype:'2'},{name:'2',num:2,status:'1',paytype:'1'},{name:'3',num:2,status:'0',paytype:'3'},{name:'4',num:2,status:'0',paytype:'4'},{name:'5',num:2,status:'0',paytype:'5'}])
const ShowIcon = reactive<ShowIcon>({
HeaderIcon: true,
BodyIcon: true,
FooterIcon: true,
});
const onHearder = () => {
ShowIcon.HeaderIcon = !ShowIcon.HeaderIcon;
};
const onBody = () => {
ShowIcon.BodyIcon = !ShowIcon.BodyIcon;
};
const onFooter = () => {
ShowIcon.FooterIcon = !ShowIcon.FooterIcon;
};
onMounted(async()=>{
const data:any =await getPaySelect(1)
list = data.data
console.log(list,'list');
})
defineExpose({
ShowIcon,
list,
onHearder,
onBody,
onFooter,
});
</script>
<style lang="less" scoped>
.header-content {
background-color: white;
padding: 0px;
}
.body-content {
background-color: white;
}
.footer-content {
background-color: white;
padding: 0px;
}
.header-title {
display: flex;
align-items: center;
justify-content: space-between;
}
</style>
<style lang="less">
.ant-layout{
overflow-y: hidden;
}
</style>