<template>
|
<MainCell :title="title" class="online-result">
|
<template #icon>
|
<img :src="icon" class="icon-main" />
|
</template>
|
<div :class="['online-sign-result-content-title', status]">{{ contentTitle }}</div>
|
<div class="online-sign-result-content">
|
<div class="online-sign-result-content-item" v-for="(text, index) in items" :key="index">
|
{{ text }}
|
</div>
|
</div>
|
<slot name="actions"></slot>
|
</MainCell>
|
</template>
|
|
<script setup lang="ts">
|
defineOptions({
|
name: 'OnlineResult',
|
});
|
|
type Props = {
|
icon?: string;
|
title?: string;
|
contentTitle?: string;
|
items?: string[];
|
status?: 'primary' | 'error';
|
};
|
|
const props = withDefaults(defineProps<Props>(), {
|
status: 'primary',
|
});
|
</script>
|
|
<style lang="scss" scoped>
|
@use '@/style/common.scss' as *;
|
|
.online-result {
|
.icon-main {
|
margin-bottom: 20px;
|
width: 201px;
|
height: 180px;
|
}
|
|
.online-sign-result-content-title {
|
margin-bottom: 8px;
|
font-size: 16px;
|
font-weight: 600;
|
text-align: center;
|
color: getCssVar('color', 'primary');
|
line-height: 24px;
|
|
&.error {
|
color: #ff3e28;
|
}
|
}
|
|
.online-sign-result-content {
|
margin-bottom: 50px;
|
|
.online-sign-result-content-item {
|
font-size: 14px;
|
font-weight: 500;
|
text-align: center;
|
color: getCssVar('text-color', 'primary');
|
line-height: 22px;
|
}
|
}
|
}
|
</style>
|