@@ -105,6 +105,9 @@
+
+
+
@@ -141,7 +144,8 @@
const circles = ref([]); //圆
let oMap = null;
-
+
+ const showTools=ref(true);
const oUser = uni.getStorageSync("wechat_user");
const showMess = ref(uni.getStorageSync("kbike-mess"));
const hasOrder = ref(false); //是否有订单
@@ -161,6 +165,7 @@
};
let orderTimer = null;
const orderState = ref(0);
+ const showOrderPay=ref(false);
//车辆
@@ -178,12 +183,12 @@
longitude
} = res;
location.value = {
- longitude: 103.975457,
- latitude: 30.633199
+ latitude,
+ longitude
};
const params = {
- longitude: 103.975457,
- latitude: 30.633199
+ latitude,
+ longitude
};
callOrdereApi("userOrders/bikeList", params, "post").then(res => {
console.log("11111111111111111", "userOrders/bikeList", res);
@@ -212,7 +217,6 @@
true);
})
markers.value = arrData;
-
})
},
@@ -298,8 +302,9 @@
}
}
//显示订单
- function showOrderInfo() {
- showOrder.value = true;
+ function openOrderPay() {
+ showTools.value=false;
+ showOrderPay.value=true;
}
//获取订单
@@ -339,6 +344,7 @@
if (status == 2) {
completeRiding();
hasOrder.value = true;
+ getTracking();
return;
} else if (status != 0) {
completeRiding();
@@ -346,7 +352,6 @@
}
showOrder.value = true;
if (!orderTimer) {
- console.log("5555555555555555555555555555555");
orderTimer = setInterval(getTracking, 10000);
}
})
@@ -362,8 +367,7 @@
} = orderData;
const params = {
ebikeCode: bikeCode,
- //startTime: createdAt
- startTime: '2025-04-02 09:00:00'
+ startTime: createdAt
}
callOperateApi("ebikeTracking/query", params, "post").then(res => {
const {
@@ -468,19 +472,26 @@
}
//查看车辆信息
- function openBikeInfo() {
+ function openBikeInfo(e) {
showModelMessage("该功能暂未实现!");
+ if(!oUser){
+ tologin();
+ }
+ console.log("33333333333333333",e);
showBikeInfo.value = true;
+ showTools.value=false;
}
//关闭车辆信息
function closeBikeInfo(){
showBikeInfo.value =false;
+ showTools.value=true;
}
getLoalcationData();
onMounted(() => {
+ console.log("7777777777777777777777",oUser)
const instance = getCurrentInstance();
oMap = uni.createMapContext("mapRef", {
this: instance.proxy
diff --git a/ebike-maintenance/static/iconfont.css b/ebike-maintenance/static/iconfont.css
index 306b80f..bdba0da 100644
--- a/ebike-maintenance/static/iconfont.css
+++ b/ebike-maintenance/static/iconfont.css
@@ -1,6 +1,6 @@
@font-face {
font-family: "iconfont"; /* Project id 4868066 */
- src: url('iconfont.ttf?t=1744624163365') format('truetype');
+ src: url('iconfont.ttf?t=1744696432017') format('truetype');
}
.iconfont {
@@ -11,6 +11,10 @@
-moz-osx-font-smoothing: grayscale;
}
+.icon-ebikeweixin:before {
+ content: "\e608";
+}
+
.icon-ebikeditu2:before {
content: "\e620";
}
diff --git a/ebike-maintenance/static/iconfont.ttf b/ebike-maintenance/static/iconfont.ttf
index 6c88f51..a1ccf56 100644
Binary files a/ebike-maintenance/static/iconfont.ttf and b/ebike-maintenance/static/iconfont.ttf differ