ClauseNZPopup.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <cwg-popup v-model:visible="visible" type="center" :mask-click="false" :showFooters="true" custom-class="clause-popup"
  3. :title="title">
  4. <view class="popup-content">
  5. <scroll-view scroll-y class="clause-content">
  6. <view>
  7. <view class="h4"><text v-t="'news_add_field1.activitiesNZ.item8'"></text>{{ startDate }} - {{ endDate }}
  8. </view>
  9. <view class="h4" v-t="'news_add_field1.activitiesNZ.item10'"></view>
  10. <view class="list">
  11. <view class="list-item" v-for="i in 6" :key="i" v-t="`news_add_field1.activitiesNZ.item1${i}`" />
  12. <view class="list-item">
  13. <view class="table-container">
  14. <view class="table">
  15. <view class="tr">
  16. <view class="th" v-for="th in 6" :key="th" v-t="`news_add_field1.activitiesNZ.item${3 + th}1`">
  17. </view>
  18. </view>
  19. <view class="tr" v-for="r in 4" :key="r">
  20. <view class="td" v-for="c in 6" :key="c" v-t="`news_add_field1.activitiesNZ.item${3 + r}${c}`">
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="list-item" v-for="i in 6" :key="i" v-t="`news_add_field1.activitiesNZ.item${17 + i - 1}`">
  27. </view>
  28. </view>
  29. </view>
  30. </scroll-view>
  31. </view>
  32. <template #footer>
  33. <button @click="close">{{ t('Btn.Cancel') }}</button>
  34. <button type="primary" @click="close">{{ t('Btn.Confirm') }}</button>
  35. </template>
  36. </cwg-popup>
  37. </template>
  38. <script setup>
  39. import { computed } from 'vue';
  40. import { useI18n } from 'vue-i18n';
  41. const props = defineProps({
  42. visible: { type: Boolean, default: false },
  43. startDate: { type: String, default: '' },
  44. endDate: { type: String, default: '' },
  45. title: { type: String, default: '' }
  46. });
  47. const emit = defineEmits(['update:visible']);
  48. const { t } = useI18n();
  49. const visible = computed({
  50. get: () => props.visible,
  51. set: (val) => emit('update:visible', val)
  52. });
  53. const close = () => {
  54. console.log(visible.value);
  55. visible.value = false;
  56. console.log(visible.value);
  57. };
  58. </script>
  59. <style lang="scss" scoped>
  60. @import "@/uni.scss";
  61. </style>