From d38321ec69a55fadfbfb9af3e8e8b23376d4bbd0 Mon Sep 17 00:00:00 2001
From: Double-_-Z <2492419643@qq.com>
Date: Fri, 8 Aug 2025 11:14:30 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
aircraft/server/equipment/equipment.vue | 29 ++++++++++++-------
aircraft/server/equipment/equipmentDetail.vue | 2 +-
aircraft/server/route/route.vue | 23 ++++++++++-----
3 files changed, 34 insertions(+), 20 deletions(-)
diff --git a/aircraft/server/equipment/equipment.vue b/aircraft/server/equipment/equipment.vue
index 3d50fe2..09ea2af 100644
--- a/aircraft/server/equipment/equipment.vue
+++ b/aircraft/server/equipment/equipment.vue
@@ -5,15 +5,14 @@
我的设备
-
{{ item.name }}
{{ item.model }}
-
+ 查看详情
@@ -136,6 +135,9 @@
background: #f3f3f3;
border-radius: 12rpx;
border: 2rpx solid #cccccc;
+ &::v-deep .u-image__image{
+ border-radius: 12rpx !important;
+ }
}
.device-info {
@@ -162,13 +164,18 @@
}
.detail-btn {
- border: none;
- background: #fee547;
- border-radius: 12rpx;
- font-family: Source Han Sans SC;
- font-weight: bold;
- font-size: 30rpx;
- color: #333333;
+ &::v-deep .u-btn--warning{
+ border: none;
+ background: #fee547;
+ border-radius: 12rpx;
+ font-family: Source Han Sans SC;
+ font-weight: bold;
+ font-size: 30rpx;
+ color: #333333;
+ height: 72rpx !important;
+ line-height: 72rpx !important;
+ padding: 0 22rpx !important;
+ }
}
}
diff --git a/aircraft/server/equipment/equipmentDetail.vue b/aircraft/server/equipment/equipmentDetail.vue
index 187e621..3dc5518 100644
--- a/aircraft/server/equipment/equipmentDetail.vue
+++ b/aircraft/server/equipment/equipmentDetail.vue
@@ -216,7 +216,7 @@ export default {
}));
} else {
this.equipmentImages = [{
- image: "/static/drone.png",
+ image: this.fileUrl+"drone.png",
title: "默认图片"
}];
}
diff --git a/aircraft/server/route/route.vue b/aircraft/server/route/route.vue
index 93d358a..ba23ef2 100644
--- a/aircraft/server/route/route.vue
+++ b/aircraft/server/route/route.vue
@@ -1,14 +1,14 @@
-
- 路线
-
+
路线
-
+
@@ -41,7 +41,7 @@
src="/static/empty.png" icon-size="300" font-size="40"
margin-top="250">
- -->
+
@@ -88,14 +88,14 @@ export default {
size: 10,
// 是否结束——loadmore加载更多,loading加载中,nomore无更多
isFinish: 'nomore',
- routeId: ''
+ scenicId: ''
},
}
},
methods:{
// 初始化
async init(){
- this.form = {size: 10,current: 1,isFinish: 'nomore',routeId: ''};
+ this.form = {size: 10,current: 1,isFinish: 'nomore',scenicId: ''};
await this.getRouteList();
// 查询全部景区
let scenRes = await this.$api.allScenic();
@@ -106,6 +106,7 @@ export default {
// 搜索
search(){
this.form = { ...this.form, current: 1, isFinish: 'nomore' };
+ if(!this.query) this.form.scenicId = '';
this.getRouteList();
},
// 查询订单列表
@@ -130,7 +131,8 @@ export default {
},
// 搜索
handleSearchSelect(e){
- console.log('触发搜索:',e.id);
+ this.form.scenicId = e.id;
+ this.search();
},
// 查看详情
showDetail(item){
@@ -177,6 +179,11 @@ export default {
.triangle{
animation: spinBack 0.1s linear;
}
+ &-icon{
+ &:active{
+ opacity: 0.7;
+ }
+ }
}
.route-item{
margin-top: 26rpx;