feat(drone-dock): 接入已购套餐快照并固定首页无人机占位
准备页改用 project-info 购买快照,校验订单与项目身份,并按可用性选择已购点位和航线。首页在加载、空数据及失败时保留等高无人机卡片。同步相关测试与接口联调记录、响应和截图。 验证:iPhone 18 Pro 模拟器上 81 项相关测试通过。
This commit is contained in:
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"airports": [
|
||||
{
|
||||
"id": 61,
|
||||
"is_receive_order": 1,
|
||||
"metrics": [
|
||||
{
|
||||
"key": "battery",
|
||||
"label": "电池电量",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"label": "环境温度",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"label": "风速",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"label": "雨量",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"label": "信号状态",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"label": "搜星状态",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
}
|
||||
],
|
||||
"name": "河南嵩山",
|
||||
"online_status": 2,
|
||||
"scenic_area_id": 271,
|
||||
"sn_number": "8UUXN4200A04GF",
|
||||
"task_type": null,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线"
|
||||
},
|
||||
{
|
||||
"id": 57,
|
||||
"is_receive_order": 2,
|
||||
"metrics": [
|
||||
{
|
||||
"key": "battery",
|
||||
"label": "电池电量",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"label": "环境温度",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"label": "风速",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"label": "雨量",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"label": "信号状态",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"label": "搜星状态",
|
||||
"raw": null,
|
||||
"value": "—"
|
||||
}
|
||||
],
|
||||
"name": "那拉提M4D",
|
||||
"online_status": 2,
|
||||
"scenic_area_id": 271,
|
||||
"sn_number": "8UUXN4200A04GC",
|
||||
"task_type": null,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线"
|
||||
}
|
||||
],
|
||||
"order_number": "261023271001",
|
||||
"order_progress": {
|
||||
"order_number": "261023271001",
|
||||
"package_name": "单次航拍 · 含 1 次拍摄",
|
||||
"shot_remain": 1,
|
||||
"shot_total": 1,
|
||||
"shot_used": 0,
|
||||
"status_label": "待拍摄"
|
||||
},
|
||||
"recommend_plane": null,
|
||||
"scenic_id": 271,
|
||||
"shoot_gate": {
|
||||
"can_shoot": false,
|
||||
"code": "dock_offline",
|
||||
"message": "机巢未连接",
|
||||
"primary_action": "blocked",
|
||||
"primary_action_label": "机巢未连接"
|
||||
},
|
||||
"spots": [
|
||||
{
|
||||
"air_lines": [
|
||||
{
|
||||
"air_line_id": 301,
|
||||
"estimated_fly_time": 279,
|
||||
"fly_type": 1,
|
||||
"line_video_duration": 14,
|
||||
"name": "vue3"
|
||||
}
|
||||
],
|
||||
"distance_label": "3311.1 km",
|
||||
"distance_m": 3311086,
|
||||
"in_range": false,
|
||||
"name": "测试打卡点",
|
||||
"scenic_spot_id": 411,
|
||||
"shot_count": 0,
|
||||
"shot_status_label": "未拍摄"
|
||||
},
|
||||
{
|
||||
"air_lines": [
|
||||
{
|
||||
"air_line_id": 302,
|
||||
"estimated_fly_time": 376,
|
||||
"fly_type": 1,
|
||||
"line_video_duration": 25,
|
||||
"name": "天门寻梦"
|
||||
}
|
||||
],
|
||||
"distance_label": "3310.7 km",
|
||||
"distance_m": 3310714,
|
||||
"in_range": false,
|
||||
"name": "天门寻梦",
|
||||
"scenic_spot_id": 412,
|
||||
"shot_count": 0,
|
||||
"shot_status_label": "未拍摄"
|
||||
},
|
||||
{
|
||||
"air_lines": [
|
||||
{
|
||||
"air_line_id": 304,
|
||||
"estimated_fly_time": 426,
|
||||
"fly_type": 1,
|
||||
"line_video_duration": 39,
|
||||
"name": "天门远山"
|
||||
}
|
||||
],
|
||||
"distance_label": "3310.7 km",
|
||||
"distance_m": 3310691,
|
||||
"in_range": false,
|
||||
"name": "天门远山",
|
||||
"scenic_spot_id": 413,
|
||||
"shot_count": 0,
|
||||
"shot_status_label": "未拍摄"
|
||||
}
|
||||
],
|
||||
"tips": "每次拍摄成功后扣减 1 次,未成功不扣次数。"
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-28 14:47:44"
|
||||
}
|
||||
Reference in New Issue
Block a user