refactor: 更新设备检查逻辑并调整错误日志位置

在 `bagCheck/index.vue` 中添加了注释以明确未完成订单的处理逻辑,确保代码更易读。同时,更新了 `vendor.js` 中的主机配置和 ID,以适配新的网络环境。错误日志的位置也从第58行调整到第60行,保持与代码变更同步。
This commit is contained in:
fuck
2025-04-08 15:48:09 +08:00
parent 40f523595b
commit aebd6c0459
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -41,10 +41,12 @@
} }
if (result.data.length != 0) { if (result.data.length != 0) {
// 如果有未完成订单,直接跳转到归还页面
uni.redirectTo({ uni.redirectTo({
url: `/pages/device/return?deviceNo=${option.deviceNo}` url: `/pages/device/return?deviceNo=${option.deviceNo}`
}); });
} else { } else {
// 如果没有未完成订单,跳转到设备详情页面进行租借
uni.redirectTo({ uni.redirectTo({
url: `/pages/device/detail?deviceNo=${option.deviceNo}` url: `/pages/device/detail?deviceNo=${option.deviceNo}`
}); });
+2 -2
View File
@@ -6874,9 +6874,9 @@ function initOnError() {
}; };
} }
function initRuntimeSocketService() { function initRuntimeSocketService() {
const hosts = "10.8.0.5,192.168.19.1,192.168.47.1,192.168.10.240,127.0.0.1"; const hosts = "192.168.1.16,192.168.19.1,192.168.47.1,127.0.0.1";
const port = "8090"; const port = "8090";
const id = "mp-weixin_kSUXuu"; const id = "mp-weixin_TE3u0h";
const lazy = typeof swan !== "undefined"; const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => { let restoreError = lazy ? () => {
} : initOnError(); } : initOnError();
+1 -1
View File
@@ -38,7 +38,7 @@ const _sfc_main = {
title: "页面加载失败,请重试", title: "页面加载失败,请重试",
icon: "none" icon: "none"
}); });
common_vendor.index.__f__("error", "at pages/serve/bagCheck/index.vue:58", "bagCheck onLoad error:", error); common_vendor.index.__f__("error", "at pages/serve/bagCheck/index.vue:60", "bagCheck onLoad error:", error);
} }
}, },
methods: {} methods: {}