KycPopup.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <cwg-popup v-model:visible="visible" type="center" :mask-click="false" :showFooters="true" :showClose="false">
  3. <view class="popup-content">
  4. <view class="icon">
  5. <cwg-icon name="verified" :size="80" color="#009933" />
  6. </view>
  7. <view class="des2">{{ t('ApplicationDialog.Des11') }}</view>
  8. <QrCode :text="qrText" />
  9. </view>
  10. <template #footer>
  11. <button type="primary" @click="close">{{ t('Btn.Confirm') }}</button>
  12. </template>
  13. </cwg-popup>
  14. </template>
  15. <script setup>
  16. import { computed } from 'vue';
  17. import { useI18n } from 'vue-i18n';
  18. import QrCode from '@/components/QrCode.vue'; // 假设存在
  19. const props = defineProps({
  20. visible: { type: Boolean, default: false },
  21. qrText: { type: String, default: '' }
  22. });
  23. const emit = defineEmits(['update:visible']);
  24. const { t } = useI18n();
  25. const visible = computed({
  26. get: () => props.visible,
  27. set: (val) => emit('update:visible', val)
  28. });
  29. const close = () => { visible.value = false; };
  30. </script>
  31. <style lang="scss" scoped>
  32. @import "@/uni.scss";
  33. .popup-content {
  34. text-align: center;
  35. padding: px2rpx(20);
  36. }
  37. .icon {
  38. font-size: px2rpx(48);
  39. margin-bottom: px2rpx(16);
  40. }
  41. .des1,
  42. .des2 {
  43. font-size: px2rpx(18);
  44. font-weight: bold;
  45. margin: px2rpx(20) 0;
  46. }
  47. </style>