You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

takePhoto.vue 998B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view>
  3. <viewfinder :phoneType="state.phoneType" @confirmReturn="confirmReturn"></viewfinder>
  4. </view>
  5. </template>
  6. <script setup lang="ts">
  7. import viewfinder from "../../components/viewfinder.vue"
  8. import {
  9. onLoad
  10. } from "@dcloudio/uni-app";
  11. import {
  12. reactive
  13. } from "vue";
  14. const state = reactive({
  15. phoneType: 1,
  16. allParams: {}
  17. })
  18. onLoad((option : any) => {
  19. state.phoneType = option.phoneType;
  20. state.allParams = option.allParams;
  21. });
  22. const confirmReturn = (val) => {
  23. // uni.navigateTo({
  24. // url: ``
  25. // })
  26. uni.navigateBack({
  27. delta: 1
  28. })
  29. console.log("val", val)
  30. }
  31. </script>
  32. <style>
  33. .content {
  34. display: flex;
  35. flex-direction: column;
  36. align-items: center;
  37. justify-content: center;
  38. }
  39. .logo {
  40. height: 200rpx;
  41. width: 200rpx;
  42. margin-top: 200rpx;
  43. margin-left: auto;
  44. margin-right: auto;
  45. margin-bottom: 50rpx;
  46. }
  47. .text-area {
  48. display: flex;
  49. justify-content: center;
  50. }
  51. .title {
  52. font-size: 36rpx;
  53. color: #8f8f94;
  54. }
  55. </style>