From fbb956aecff6ddafce7f2f53d32739d6d09dbfd3 Mon Sep 17 00:00:00 2001
From: Sliverber <2622874537@qq.com>
Date: Fri, 21 Jun 2024 18:03:21 +0800
Subject: [PATCH] 11
---
common/http.interceptor.js | 6 +-
components/tab-bar/tab-bar.vue | 14 +-
manifest.json | 2 +-
page_fix/fix_index.vue | 75 +++-
page_fix/repair/repair_detail.vue | 408 ++++++++++++++++++++
page_user/good_list.vue | 3 +-
page_user/xcjs.vue | 73 +++-
pages/index/index.vue | 114 +++---
pages/my.vue | 17 +-
pages_admin/admin_index.vue | 143 ++++---
pages_admin/admin_order.vue | 205 +++++-----
pages_admin/order/device_detail.vue | 527 +++++++++++++++++++++++++-
pages_admin/order/order_detail.vue | 207 ++++++++--
pages_admin/worke/woke_deviceMgmt.vue | 16 +-
14 files changed, 1523 insertions(+), 287 deletions(-)
diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index ef3583b..1dfae6c 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -21,10 +21,10 @@ const install = (Vue, vm) => {
// });
Vue.prototype.$u.http.setConfig({
// baseUrl: 'http://61.174.243.28:15861',
- // baseUrl: 'http://192.168.2.6:8080',
+ // baseUrl: 'http://192.168.2.14:8080',
// baseUrl: 'http://124.221.246.124:2289',
- // baseUrl: 'https://dianche.chuantewulian.cn/prod-api',
- baseUrl: 'https://dche.ccttiot.com/prod-api',
+ baseUrl: 'https://dianche.chuantewulian.cn/prod-api',
+ // baseUrl: 'https://dche.ccttiot.com/prod-api',
loadingText: '努力加载中~',
// loadingTime: 2000,
// 设置自定义头部content-type
diff --git a/components/tab-bar/tab-bar.vue b/components/tab-bar/tab-bar.vue
index 2ae89bc..bfffae2 100644
--- a/components/tab-bar/tab-bar.vue
+++ b/components/tab-bar/tab-bar.vue
@@ -48,6 +48,7 @@
},
methods:{
changeTabbar(index) {
+ let that =this
if (this.currentTabbarIndex === index) return
// this._switchTabbarPage(index)
@@ -57,7 +58,7 @@
url:'/pages_admin/admin_worke',
routeType: 'wx://modal',
success() {
- this.currentTabbarIndex = index
+ that.currentTabbarIndex = index
}
})
console.log('点击了',index);
@@ -66,7 +67,7 @@
url:'/pages_admin/admin_index',
routeType: 'wx://modal',
success() {
- this.currentTabbarIndex = index
+ that.currentTabbarIndex = index
}
})
}else if(index==2){
@@ -74,7 +75,7 @@
url:'/pages_admin/admin_order',
routeType: 'wx://modal',
success() {
- this.currentTabbarIndex = index
+ that.currentTabbarIndex = index
}
})
}
@@ -96,16 +97,17 @@
}
.cont {
+ padding: 15rpx 0 30rpx;
position: fixed;
// left: 60rpx;
bottom: 0rpx;
width: 750rpx;
- height: 150rpx;
+ height: 130rpx;
background: #FFFFFF;
box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(53, 140, 255, 0.1);
// border-radius: 60rpx;
display: flex;
- align-items: center;
+ // align-items: center;
justify-content: space-around;
border-top: 2rpx solid #95989D;
.tab{
@@ -120,7 +122,7 @@
.txt{
text-align: center;
width: 100%;
- margin-top: 10rpx;
+ margin-top: 4rpx;
font-size: 20rpx;
font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
font-weight: 400;
diff --git a/manifest.json b/manifest.json
index cad1f86..8d15cb5 100644
--- a/manifest.json
+++ b/manifest.json
@@ -51,7 +51,7 @@
/* 小程序特有相关 */
"mp-weixin" : {
"libVersion" : "latest",
- "appid" : "wx3428c498d5061192",
+ "appid" : "wx4d178f8c80348214",
"setting" : {
"urlCheck" : false
},
diff --git a/page_fix/fix_index.vue b/page_fix/fix_index.vue
index b39991c..384a6a4 100644
--- a/page_fix/fix_index.vue
+++ b/page_fix/fix_index.vue
@@ -87,7 +87,7 @@
});
},
getmarks() {
- this.$u.get(`/appVerify/adminOrder/list?adminId=` + 2).then((res) => {
+ this.$u.get(`/appVerify/adminOrder/list?adminId=` + this.userId).then((res) => {
if (res.code == 200) {
console.log('调用了');
this.listData = res.rows;
@@ -287,24 +287,61 @@
// console.log(this.polyline);
res.rows.forEach(item => {
- this.markers.push({
- id: parseFloat(item.parkingId),
- latitude: parseFloat(item.latitude),
- longitude: parseFloat(item.longitude),
- // title: item.deviceName,
- width: 20,
- height: 40,
- iconPath: 'https://lxnapi.ccttiot.com/bike/img/static/u9yz0bKCWKyev0JYpTne',
- callout: {
- content: item.parkingName, // 修改为你想要显示的文字内容
- color: '#ffffff', // 修改为文字颜色
- fontSize: 14, // 修改为文字大小
- borderRadius: 10, // 修改为气泡圆角大小
- bgColor: '#000000', // 修改为气泡背景颜色
- padding: 6, // 修改为气泡内边距
- display: 'ALWAYS', // 修改为气泡的显示策略
- }
- })
+ if(item.type==1){
+ this.markers.push({
+ id: parseFloat(item.parkingId),
+ latitude: parseFloat(item.latitude),
+ longitude: parseFloat(item.longitude),
+ width: 20,
+ height: 40,
+ iconPath: 'https://lxnapi.ccttiot.com/bike/img/static/u9yz0bKCWKyev0JYpTne',
+ callout: {
+ content: item.parkingName, // 修改为你想要显示的文字内容
+ color: '#ffffff', // 修改为文字颜色
+ fontSize: 14, // 修改为文字大小
+ borderRadius: 10, // 修改为气泡圆角大小
+ bgColor: '#3A7EDB', // 修改为气泡背景颜色
+ padding: 6, // 修改为气泡内边距
+ display: 'ALWAYS' // 修改为气泡的显示策略
+ }
+ });
+ }else if(item.type==2){
+ this.markers.push({
+ id: parseFloat(item.parkingId),
+ latitude: parseFloat(item.latitude),
+ longitude: parseFloat(item.longitude),
+ width: 20,
+ height: 40,
+ iconPath: 'https://lxnapi.ccttiot.com/bike/img/static/u9yz0bKCWKyev0JYpTne',
+ callout: {
+ content: item.parkingName, // 修改为你想要显示的文字内容
+ color: '#ffffff', // 修改为文字颜色
+ fontSize: 14, // 修改为文字大小
+ borderRadius: 10, // 修改为气泡圆角大小
+ bgColor: '#FFC107', // 修改为气泡背景颜色
+ padding: 6, // 修改为气泡内边距
+ display: 'ALWAYS' // 修改为气泡的显示策略
+ }
+ });
+ }else if(item.type==3){
+ this.markers.push({
+ id: parseFloat(item.parkingId),
+ latitude: parseFloat(item.latitude),
+ longitude: parseFloat(item.longitude),
+ width: 20,
+ height: 40,
+ iconPath: 'https://lxnapi.ccttiot.com/bike/img/static/u9yz0bKCWKyev0JYpTne',
+ callout: {
+ content: item.parkingName, // 修改为你想要显示的文字内容
+ color: '#ffffff', // 修改为文字颜色
+ fontSize: 14, // 修改为文字大小
+ borderRadius: 10, // 修改为气泡圆角大小
+ bgColor: '#FF473E', // 修改为气泡背景颜色
+ padding: 6, // 修改为气泡内边距
+ display: 'ALWAYS' // 修改为气泡的显示策略
+ }
+ });
+ }
})
setTimeout(()=>{
diff --git a/page_fix/repair/repair_detail.vue b/page_fix/repair/repair_detail.vue
index 1a475db..32fcf82 100644
--- a/page_fix/repair/repair_detail.vue
+++ b/page_fix/repair/repair_detail.vue
@@ -241,6 +241,18 @@
响铃寻车
+
+ 蓝牙链接
+
+
+ 蓝牙开锁
+
+
+ 蓝牙关锁
+
+
+ 设备重启
+
维修处理
@@ -290,9 +302,39 @@