confirm_position.vue 690 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <div>
  3. <van-dialog
  4. use-slot
  5. title="确认打卡"
  6. :show="show"
  7. show-cancel-button
  8. confirm-button-open-type="getUserInfo"
  9. @close="onClose"
  10. @getuserinfo="getUserInfo"
  11. >
  12. <div>走访目标位置:你家</div>
  13. <div>当前位置:我家</div>
  14. 老大,你真的要在这打卡吗?
  15. </van-dialog>
  16. </div>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. show: false,
  23. };
  24. },
  25. methods: {
  26. setVisible() {
  27. this.show = true;
  28. },
  29. getUserInfo(event) {
  30. console.log(event.detail);
  31. },
  32. onClose() {
  33. this.show = false;
  34. },
  35. },
  36. };
  37. </script>
  38. <style>
  39. </style>