plus-ui/src/views/im/components/ChatDefaultContent.vue

60 lines
1.6 KiB
Vue
Raw Normal View History

2025-05-30 17:56:05 +08:00
<template>
<div class="welcome">
<div class="welcome-title">
2025-06-07 15:51:05 +08:00
{{ TUITranslateService.t('Home.欢迎使用') }}
2025-05-30 17:56:05 +08:00
<img class="logo" src="../assets/image/logo.svg" alt="" />
2025-06-07 15:51:05 +08:00
{{ TUITranslateService.t('即时通信') }}
2025-05-30 17:56:05 +08:00
</div>
<div v-if="isOfficial" class="welcome-content">
{{
TUITranslateService.t(
2025-06-07 15:51:05 +08:00
'Home.我们为您默认提供了一位“示例好友”和一个“示例客服群”您不用额外添加好友和群聊就可完整体验腾讯云 IM 单聊、群聊的所有功能。'
2025-05-30 17:56:05 +08:00
)
}}
<br />
2025-06-07 15:51:05 +08:00
{{ TUITranslateService.t('Home.随时随地') }}
2025-05-30 17:56:05 +08:00
</div>
</div>
</template>
<script setup lang="ts">
2025-06-07 15:51:05 +08:00
import { TUITranslateService, TUIStore, StoreName } from '@tencentcloud/chat-uikit-engine';
const isOfficial = TUIStore.getData(StoreName.APP, 'isOfficial');
2025-05-30 17:56:05 +08:00
</script>
<style lang="scss" scoped>
.welcome {
width: 100%;
height: 100%;
box-sizing: border-box;
padding-left: 40px;
padding-top: 100px;
display: flex;
flex-direction: column;
2025-06-07 15:51:05 +08:00
background: url('../assets/image/login-background.png') no-repeat;
2025-05-30 17:56:05 +08:00
background-size: cover;
background-position-x: -17px;
background-position-y: 173px;
.welcome-title {
font-size: 1.75rem;
display: flex;
align-items: center;
font-family: PingFangSC-Medium;
font-weight: 500;
color: #000;
.logo {
width: 40px;
padding-left: 0.98rem;
padding-right: 0.98rem;
}
}
.welcome-content {
padding-top: 1.88rem;
max-width: 393px;
font-size: 16px;
line-height: 24px;
font-family: PingFangSC-Regular;
font-weight: 400;
color: #666;
}
}
</style>