2025-04-23 18:03:49 +08:00

75 lines
1.1 KiB
Vue

<template>
<view class="container">
<view class="cu-btn bg-blue" @click="getInfoList">
调度
</view>
</view>
</template>
<script setup>
import {
ref
} from 'vue';
import * as api from '@/utils/api.js';
import {onLoad} from '@dcloudio/uni-app';
const orderId=ref("");
onLoad((options)=>{
debugger;
orderId.value=options.orderId;;
})
const getInfoList =()=>{
debugger;
api.callEbikeInfo("getDispatchVehicleByOrderId?orderId="+orderId.value, {}, "get").then(
res => {
if (res.code == 200) {
debugger;
}
})
}
</script>
<style scoped>
.dispatch-container {
text-align: center;
margin-top: 20px;
}
.dispatch-button {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
.dispatch-button:hover {
background-color: #45a049;
}
.loading {
margin-top: 10px;
font-size: 18px;
color: #888;
}
.data-display {
margin-top: 20px;
background-color: #f4f4f4;
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.error-message {
margin-top: 10px;
color: red;
}
</style>