Browse Source

feature: 频道列表分包

332777428@qq.com 6 months ago
parent
commit
b50eae6a2a

+ 2 - 2
app.json

@@ -26,8 +26,8 @@
       "root": "pages/pageC/",
       "pages": [
         "aboutInfo/aboutInfo",
-        "channelDetails/channelDetails",
-        "deviceDetail/detail"
+        "deviceDetail/deviceDetail",
+        "channelDetails/channelDetails"
       ]
     },
     {

+ 1 - 1
pages/pageA/index/index.js

@@ -519,7 +519,7 @@ Page({
     ///去蓝牙连接处理
     if (index === deviceListSelect) {
       var param = '?param=' + JSON.stringify(device);
-      route_util.jumpParam('/pages/deviceDetail/detail', param);
+      route_util.jumpParam('/pages/pageC/deviceDetail/detail', param);
     } else if (device.state === "offline") {
       console.log("去连接蓝牙", device)
       device.name = device.devName;

+ 0 - 74
pages/pageC/deviceDetail/detail.wxss

@@ -1,74 +0,0 @@
-/* pages/deviceDetail/detail.wxss */
-.container {}
-
-.img_section {
-    width: 100%;
-    height: 648rpx;
-    display: flex;
-    justify-content: center;
-    align-items: center;
-}
-
-.avatar {
-    width: 470rpx;
-    height: 432rpx;
-    background: #F2F5F7;
-    border-radius: 24rpx;
-}
-
-.section {
-    margin-bottom: 20px;
-}
-
-.title {
-    font-size: 16px;
-    font-weight: bold;
-    margin-bottom: 10px;
-}
-
-.item {
-    display: flex;
-    align-items: center;
-    border-bottom: 1px solid #e0e0e0;
-    justify-content: space-between;
-    margin-inline: 32rpx;
-    height: 120rpx;
-}
-
-.left-content {
-    display: flex;
-    align-items: center;
-}
-
-.label {
-    font-size: 16px;
-    color: #333333;
-    margin-left: 32rpx;
-}
-
-.arrow {
-    width: 20px;
-    height: 20px;
-    margin-right: 16rpx;
-}
-
-.switch {
-    width: 88rpx;
-    height: 44rpx;
-    margin-right: 16rpx;
-}
-
-.red {
-    width: 10rpx;
-    height: 10rpx;
-    margin-top: -14rpx;
-    background-color: #6546A3;
-    border-radius: 50%;
-    margin-left: 12rpx;
-}
-
-.question {
-    margin-left: 8rpx;
-    width: 40rpx;
-    height: 40rpx;
-}

pages/pageC/deviceDetail/detail.js → pages/pageC/deviceDetail/deviceDetail.js


pages/pageC/deviceDetail/detail.json → pages/pageC/deviceDetail/deviceDetail.json


pages/pageC/deviceDetail/detail.wxml → pages/pageC/deviceDetail/deviceDetail.wxml


+ 71 - 0
pages/pageC/deviceDetail/deviceDetail.wxss

@@ -0,0 +1,71 @@
+.img_section {
+  width: 100%;
+  height: 648rpx;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+
+.avatar {
+  width: 470rpx;
+  height: 432rpx;
+  background: #F2F5F7;
+  border-radius: 24rpx;
+}
+
+.section {
+  margin-bottom: 20px;
+}
+
+.title {
+  font-size: 16px;
+  font-weight: bold;
+  margin-bottom: 10px;
+}
+
+.item {
+  display: flex;
+  align-items: center;
+  border-bottom: 1px solid #e0e0e0;
+  justify-content: space-between;
+  margin-inline: 32rpx;
+  height: 120rpx;
+}
+
+.left-content {
+  display: flex;
+  align-items: center;
+}
+
+.label {
+  font-size: 16px;
+  color: #333333;
+  margin-left: 32rpx;
+}
+
+.arrow {
+  width: 20px;
+  height: 20px;
+  margin-right: 16rpx;
+}
+
+.switch {
+  width: 88rpx;
+  height: 44rpx;
+  margin-right: 16rpx;
+}
+
+.red {
+  width: 10rpx;
+  height: 10rpx;
+  margin-top: -14rpx;
+  background-color: #6546A3;
+  border-radius: 50%;
+  margin-left: 12rpx;
+}
+
+.question {
+  margin-left: 8rpx;
+  width: 40rpx;
+  height: 40rpx;
+}