12345678910111213141516171819202122232425262728293031 |
- <template>
- <view>
- </view>
- </template>
- <script setup>
- import {
- onLoad
- } from '@dcloudio/uni-app'
- import {
- ref
- } from "vue";
- import {
- orderInfomainOrderId
- } from "@/api/userList.js";
-
- const listData = ref([]);//志愿者详情数据
- const mainOrderId = ref('');//志愿者ID
- // 获取传递的参数
- onLoad(async (options) => {
- mainOrderId.value = options.mainOrderId; // 存储到响应式变量
- const res = await orderInfomainOrderId(mainOrderId.value)
- console.log(res,'获取用户详情')
- listData.value = res.data || {};
- });
- </script>
- <style scoped>
- </style>
|