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
| <template>
| <nut-noticebar :left-icon="false" :text="text" v-if="!!text" />
| </template>
|
| <script setup lang="ts">
| import { BlLifeRecharge } from '@life-payment/core-vue';
| import { useShowingLifePayAnnouncement } from '@/hooks';
|
| defineOptions({
| name: 'NormalAnnouncement',
| });
|
| // type Props = {};
|
| // const props = withDefaults(defineProps<Props>(), {});
|
| const text = ref('');
|
| useShowingLifePayAnnouncement({
| params: {
| announcementType: BlLifeRecharge.constants.AnnouncementTypeEnum.Normal,
| },
| onSuccess(data) {
| text.value = data.announcementContent;
| },
| });
| </script>
|
| <style lang="scss">
| @import '@/styles/common.scss';
| </style>
|
|