上报解析
+ADDRESS:
+BASE
- +VALUE:
+OFFSET
- +回执解析
+ADDRESS:
+VALUE
- +VALUE:
+ +结果:
+ID
+ +BASE
+ +OFFSET
+ +VALUE
+ +diff --git a/config.js b/config.js index 04a6528..12b6ee3 100644 --- a/config.js +++ b/config.js @@ -1,7 +1,6 @@ const websocketAddress = "ws://192.168.1.138:19001"; const config = { 你好: "123", - b: "1231231", }; const commonMessage = { diff --git a/index.html b/index.html index dc53ee4..83c8210 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,9 @@ padding: 0; box-sizing: border-box; } + li { + list-style: none; + } .container { display: flex; width: 100vw; @@ -26,9 +29,10 @@ display: flex; box-sizing: border-box; flex-direction: column; - flex: 0.6; padding: 24px; overflow: scroll; + width: 400px; + min-width: 400px; } .right_message { height: 100vh; @@ -78,6 +82,8 @@ } .status { padding: 4px 0; + border-bottom: solid 2px #ddd; + margin-bottom: 10px; } .tabs { margin: 20px 0; @@ -94,9 +100,9 @@ cursor: pointer; } - .active { + /* .active { border-bottom: 2px solid blue; - } + } */ .tab-panel { display: none; @@ -156,6 +162,38 @@ border-bottom: solid 1px #ddd; margin-bottom: 10px; } + + .mod-tab .tab_top { + float: left; + padding: 5px 20px; + border-top: 1px solid #ccc; + border-left: 1px solid #ccc; + background-color: #ddd; + } + .header .tab_top:last-child { + border-right: 1px solid #ccc; + } + .content { + border: 1px solid #ccc; + width: 100%; + height: 100%; + } + .header::after { + content: ""; + display: block; + clear: both; + } + + .mod-tab .header .active { + background-color: #fff; + } + + .mod-tab .content .panel { + display: none; + } + .mod-tab .content .active { + display: block; + }
@@ -166,83 +204,106 @@当前状态: 未连接
-上报解析
-ADDRESS:
- -VALUE:
- -回执解析
-ADDRESS:
- +VALUE:
- -结果:
- -ID
- +上报解析
+ADDRESS:
+BASE
- +VALUE:
+OFFSET
- +回执解析
+ADDRESS:
+VALUE
- +VALUE:
+ +结果:
+ID
+ +BASE
+ +OFFSET
+ +VALUE
+ +