From bcfb05f5e7782ef23e4deb1b38a1ca4b4085181a Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期六, 11 十月 2025 17:09:47 +0800
Subject: [PATCH] test
---
pages/index/connect.vue | 26 ++++++++++----------------
1 files changed, 10 insertions(+), 16 deletions(-)
diff --git a/pages/index/connect.vue b/pages/index/connect.vue
index f7ff7a2..9fddb1c 100644
--- a/pages/index/connect.vue
+++ b/pages/index/connect.vue
@@ -11,14 +11,14 @@
<view class="content" v-else-if="connectState == 2">
<view class="title">杩炴帴鎴愬姛</view>
<view class="content2">
- <image class="img" src="/images/Frame 178.svg" alt=" 鍥剧墖" />
+ <image class="img" src="/images/Frame_178.svg" alt=" 鍥剧墖" />
<view>銆恵{connectedDevice}}銆戣繛鎺ユ垚鍔�/view>
</view>
</view>
<view class="content" v-else-if="connectState == 3">
<view class="title">杩炴帴澶辫触</view>
<view class="content2">
- <image class="img" src="/images/Frame 179.svg" alt=" 鍥剧墖" />
+ <image class="img" src="/images/Frame_179.svg" alt=" 鍥剧墖" />
<view class="title">鏃犳硶杩炴帴璁惧</view>
<view>璇风‘淇濊溅杈嗗紑鏈轰笖鏈笌鍏朵粬缁堢閰嶅</view>
</view>
@@ -29,7 +29,7 @@
<view>1銆佽灏嗘墜鏈鸿繛鎺ュ埌鈥榹{ip}}鈥欑殑Wifi缃戠粶</view>
<view>2銆佽繛鎺ュ悗鍥炲埌鏈簲鐢�/view>
- <image class="img-2" src="/images/Frame 180.svg" alt=" 鍥剧墖" />
+ <image class="img-2" src="/images/Frame_180.svg" alt=" 鍥剧墖" />
</view>
</view>
<view class="content" v-else>
@@ -56,7 +56,9 @@
import {
session,
showToast,
- showModal
+ showModal,
+ showError,
+ showInfo
} from "@/comm/utils.js"
import {
Button
@@ -143,7 +145,7 @@
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
checkConnectStatus() {
@@ -181,11 +183,11 @@
const result = res.result || ""
const arCode = result.split(";")
if (arCode.length != 3) {
- this.showError("鏃犳晥鐨勪簩缁寸爜锛�)
+ showInfo("鏃犳晥鐨勪簩缁寸爜锛�)
return
}
if (!arCode[0].trim() || !arCode[0].trim()) {
- this.showError("鏃犳晥鐨勪簩缁寸爜锛�)
+ showInfo("鏃犳晥鐨勪簩缁寸爜锛�)
return
}
that.ip = arCode[0]
@@ -291,7 +293,7 @@
} catch (ex) {
console.log("connectVehicle faile",this.ip,ex)
this.connectState = 3
- // this.showError(ex)
+ // showError(ex)
}
},
@@ -360,14 +362,6 @@
}, 2000)
})
},
- showError(ex) {
- let exStr = JSON.stringify(ex)
- if (exStr == "{}")
- exStr = ex
- let tip = typeof ex.msg == "string" ? ex.msg : exStr
- showModal(tip, "閿欒", false,"纭畾")
- },
-
}
}
</script>
--
Gitblit v1.9.1