ChinaUnionPayPopup.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <cwg-popup v-model:visible="visible" type="center" :mask-click="false" :showFooters="true">
  3. <view class="popup-content">
  4. <view class="des1">{{ t('news_add_field1.deposit.item64') }}</view>
  5. </view>
  6. <template #footer>
  7. <button @click="close">{{ t('Btn.Cancel') }}</button>
  8. <button type="primary" @click="close">{{ t('Btn.Confirm') }}</button>
  9. </template>
  10. </cwg-popup>
  11. </template>
  12. <script setup>
  13. import { computed } from 'vue';
  14. import { useI18n } from 'vue-i18n';
  15. const props = defineProps({
  16. visible: { type: Boolean, default: false }
  17. });
  18. const emit = defineEmits(['update:visible']);
  19. const { t } = useI18n();
  20. const visible = computed({
  21. get: () => props.visible,
  22. set: (val) => emit('update:visible', val)
  23. });
  24. const close = () => { visible.value = false; };
  25. </script>
  26. <style lang="scss" scoped>
  27. @import "@/uni.scss";
  28. .popup-content {
  29. padding: px2rpx(20);
  30. text-align: center;
  31. .des1 {
  32. font-size: px2rpx(16);
  33. line-height: 1.6;
  34. margin: px2rpx(30) 0 px2rpx(50);
  35. }
  36. }
  37. </style>