test.vue 604 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <view class="">
  3. <hTimeAlert
  4. title="自取时间"
  5. rangeStartTime="8:00:00"
  6. rangeEndTime="22:00:00"
  7. intervalTime="30"
  8. dayStartIntTime="15"
  9. rangeDay="1"
  10. :isNow="true"
  11. :isShow="isShow"
  12. @closeAlert="handelClose">
  13. </hTimeAlert>
  14. </view>
  15. </template>
  16. <script>
  17. import hTimeAlert from "../comps/h-time-alert.vue"
  18. export default {
  19. components: {
  20. hTimeAlert
  21. },
  22. data() {
  23. return {
  24. isShow: true,
  25. };
  26. },
  27. methods:{
  28. handelClose(data) {
  29. this.isShow = false;
  30. console.log(data);
  31. }
  32. }
  33. };
  34. </script>
  35. <style lang="scss" scoped>
  36. </style>