return.vue 544 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view class="home">
  3. <view class="detail-area">
  4. </view>
  5. </view>
  6. </template>
  7. <script>
  8. import { getReturnDetail } from '@/api/asset.js'
  9. export default {
  10. data() {
  11. return {
  12. id:""
  13. };
  14. },
  15. methods:{
  16. init(id){
  17. getReturnDetail(id).then(res=>{
  18. console.log(res)
  19. })
  20. }
  21. },
  22. onLoad:function(option){
  23. this.id = option.id
  24. this.init(this.id)
  25. }
  26. }
  27. </script>
  28. <style lang="scss">
  29. .home{
  30. padding: 20rpx;
  31. display: flex;
  32. flex-direction: column;
  33. // height: 100vh;
  34. box-sizing: border-box;
  35. }
  36. </style>