diff --git a/pages/common/addBLE/LinkBle.vue b/pages/common/addBLE/LinkBle.vue
index 5a788ca..c3d225d 100644
--- a/pages/common/addBLE/LinkBle.vue
+++ b/pages/common/addBLE/LinkBle.vue
@@ -1,33 +1,227 @@
-
-
+
+
+
+
+
+
+
+ 设备名:{{device.deviceName}}
+
+
+ ID:{{device.deviceId}}
+
+
+ {{Statu.boundRemark}}
+
+
+
+ 连接
+
+
+
+ .deviceDetail {
+ margin: 200rpx auto;
+ display: flex;
+ flex-direction: column;
+ flex-wrap: nowrap;
+ align-content: center;
+ justify-content: center;
+ align-items: center;
+ }
+
+ .imgContent,
+ .titleIco {
+ width: 120rpx;
+ height: 120rpx;
+ }
+
+ .deviceId {
+ color: rgba(255, 255, 255, 0.87);
+ font-size: 32rpx;
+
+ line-height: 44rpx;
+ letter-spacing: 0.14rpx;
+ margin-top: 5rpx;
+ }
+
+ .btnLink {
+ position: fixed;
+ bottom: 30rpx;
+ left: 30rpx;
+ right: 30rpx;
+ width: calc(100% - 60rpx);
+ border-radius: 91px;
+ height: 90rpx;
+ background: rgba(187, 230, 0, 1);
+ color: rgba(35, 35, 35, 1);
+
+
+ font-size: 32rpx;
+ line-height: 90rpx;
+ letter-spacing: 12rpx;
+ text-align: center;
+ }
+
+ .bound,
+ .deviceName {
+ font-size: 32rpx;
+ font-weight: 400;
+ line-height: 44rpx;
+ letter-spacing: 0.14rpx;
+ margin-top: 5rpx;
+ }
+
+ .displayNone {
+ display: none !important;
+ }
+
+ .green {
+ color: rgba(187, 230, 0, 1);
+ }
+
+ .red {
+ color: rgba(245, 80, 80, 1);
+ }
+
\ No newline at end of file
diff --git a/pages/common/addBLE/addEquip.vue b/pages/common/addBLE/addEquip.vue
index 58571d3..e5b1d96 100644
--- a/pages/common/addBLE/addEquip.vue
+++ b/pages/common/addBLE/addEquip.vue
@@ -228,19 +228,7 @@
ble.showBlueSetting(false);
},
Link: function(item, index) {
- ble.StopSearch();
- uni.navigateTo({
- url:"/pages/common/addBLE/LinkBle",
- events:{
- Linked:function(data ){
- console.log("收到数据了",data);
- }
- },
- success(res) {
- res.eventChannel.emit('LinkItem', item)
- }
- });
- return;
+
uni.showLoading({
title: "正在连接",
mask: true
@@ -258,6 +246,15 @@
these.PairEquip.push(item);
}
+ uni.navigateTo({
+ url:"/pages/common/addBLE/LinkBle",
+ events:{
+
+ },
+ success(res) {
+ res.eventChannel.emit('LinkItem', item)
+ }
+ });
}).catch((ex) => {
console.log("ex=",ex)