orderdetails.vue 593 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view>
  3. </view>
  4. </template>
  5. <script setup>
  6. import {
  7. onLoad
  8. } from '@dcloudio/uni-app'
  9. import {
  10. ref
  11. } from "vue";
  12. import {
  13. orderInfomainOrderId
  14. } from "@/api/userList.js";
  15. const listData = ref([]);//志愿者详情数据
  16. const mainOrderId = ref('');//志愿者ID
  17. // 获取传递的参数
  18. onLoad(async (options) => {
  19. mainOrderId.value = options.mainOrderId; // 存储到响应式变量
  20. const res = await orderInfomainOrderId(mainOrderId.value)
  21. console.log(res,'获取用户详情')
  22. listData.value = res.data || {};
  23. });
  24. </script>
  25. <style scoped>
  26. </style>