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
| <template>
| <div class="share-qrcode-view">
| <qrcode-vue :value="link" :size="size"></qrcode-vue>
| </div>
| </template>
|
| <script setup lang="ts">
| import QrcodeVue from 'qrcode.vue';
| import { useLifeRechargeContext } from '@life-payment/core-vue';
| import { computed } from 'vue';
|
| defineOptions({
| name: 'ShareQrcodeView',
| });
|
| type Props = {
| channlesNum?: string;
| size?: number;
| };
|
| const props = withDefaults(defineProps<Props>(), {
| size: 200,
| });
|
| const { blLifeRecharge } = useLifeRechargeContext();
|
| const link = computed(() => `${CLIENT_ORIGIN}?channelId=${props.channlesNum}`);
| </script>
|
|