From 2bed3e132f4ddafbb8f3dc2d7487dd53032a7035 Mon Sep 17 00:00:00 2001 From: tx <2622874537@qq.com> Date: Fri, 27 Sep 2024 18:03:55 +0800 Subject: [PATCH] 211 --- pages.json | 9 + pages_admin/controlDevice.vue | 415 +++++++++++++++++++++++++++++++++ pages_admin/worke/bind_mac.vue | 19 +- pages_admin/worke/bind_sn.vue | 171 +++++++++----- 4 files changed, 544 insertions(+), 70 deletions(-) create mode 100644 pages_admin/controlDevice.vue diff --git a/pages.json b/pages.json index a01cfe2..5aac4e7 100644 --- a/pages.json +++ b/pages.json @@ -176,6 +176,15 @@ "navigationStyle": "custom", "enablePullDownRefresh" : false } + }, + { + "path" : "controlDevice", + "style" : + { + "navigationBarTitleText" : "", + "navigationStyle": "custom", + "enablePullDownRefresh" : false + } } diff --git a/pages_admin/controlDevice.vue b/pages_admin/controlDevice.vue new file mode 100644 index 0000000..db7dcfc --- /dev/null +++ b/pages_admin/controlDevice.vue @@ -0,0 +1,415 @@ + + + + + \ No newline at end of file diff --git a/pages_admin/worke/bind_mac.vue b/pages_admin/worke/bind_mac.vue index 1e00ead..7cd7ff2 100644 --- a/pages_admin/worke/bind_mac.vue +++ b/pages_admin/worke/bind_mac.vue @@ -238,9 +238,12 @@ duration: 2000 }); setTimeout(() => { - uni.navigateBack({ - delta: 1 // delta值为1时表示返回的页面层数 - }); + // uni.navigateBack({ + // delta: 1 // delta值为1时表示返回的页面层数 + // }); + uni.navigateTo({ + url:'/pages_admin/controlDevice?sn='+this.sn + }) }, 2000) } else { uni.showToast({ @@ -267,9 +270,12 @@ duration: 2000 }); setTimeout(() => { - uni.navigateBack({ - delta: 1 // delta值为1时表示返回的页面层数 - }); + uni.navigateTo({ + url:'/pages_admin/controlDevice?sn='+this.sn + }) + // uni.navigateBack({ + // delta: 1 // delta值为1时表示返回的页面层数 + // }); }, 2000) } else { @@ -916,6 +922,7 @@ } } + .bot_btn { position: fixed; bottom: 0; diff --git a/pages_admin/worke/bind_sn.vue b/pages_admin/worke/bind_sn.vue index c09f4bf..db7eaf0 100644 --- a/pages_admin/worke/bind_sn.vue +++ b/pages_admin/worke/bind_sn.vue @@ -4,34 +4,39 @@ height='50'> 设备列表 - + {{texts}} - + - 共享电动车 + MAC:{{item.localName.substring(5)}} + + + {{ item.isBand ? '已录入' : '未录入' }} + - MAC:{{item.localName.substring(5)}} + 蓝牙信号:{{item.RSSI}} SN:{{item.sn}} - - - 选择 + + 选择 - +