Explorar el Código

新增配置家具时雷达的位置

wangming hace 1 mes
padre
commit
d6c02f22e5

+ 1 - 1
src/components/js_sdk/index.js

@@ -7,7 +7,7 @@ http.setConfig(config => {
         if (!selectedService || selectedService == 'aloneServe') {
             config.baseUrl = "https://api.radar-power.asia:4443/portal-service-server/";
         }
-        // config.baseUrl = "https://radar-power.cn/portal-service-server/";
+        config.baseUrl = "https://radar-power.cn/portal-service-server/";
     }
     if (__wxConfig.envVersion == 'trial') {
         let selectedService = uni.getStorageSync("sercviceChoice")

+ 24 - 1
src/pagesA/deviceDetail/deviceDetail.vue

@@ -72,6 +72,20 @@
                     />
                 </template>
             </view>
+
+            <!-- <image
+                class="redar-pic"
+                src="../../static/rander.png"
+                mode=""
+                :style="{
+                    transform:
+                        'translate(' +
+                        -xOffset / 100 +
+                        'rpx,' +
+                        -yOffset / 100 +
+                        'rpx)',
+                }"
+            /> -->
         </view>
 
         <view class="switchBox">
@@ -489,6 +503,7 @@ export default {
                         this.statusLight = this.devInfo.statusLight;
                     }
                 })
+
                 .catch((err) => {});
         },
         getdevRoomInfo(devId) {
@@ -981,10 +996,18 @@ export default {
         }
 
         .action-icon-M {
-            position: absolute;
+            // position: absolute;
             width: 50rpx;
             height: 50rpx;
         }
+        .redar-pic {
+            position: absolute;
+            left: 50%;
+            top: 50%;
+            width: 40rpx;
+            height: 40rpx;
+            transform: translate(-50%, -50%); /* 先居中 */
+        }
     }
 
     .switchBox {

+ 23 - 2
src/pagesA/roomSetting/roomSetting.vue

@@ -20,8 +20,8 @@
             <view
                 class="airCantInfo"
                 :style="{
-                    width: `${length / 200}px`,
-                    height: `${width / 200}px`,
+                    width: `${length / 150}px`,
+                    height: `${width / 150}px`,
                 }"
             >
                 <view
@@ -49,6 +49,19 @@
                             mode=""
                         />
                     </view>
+                    <image
+                        class="redar-pic"
+                        src="../../static/rander.png"
+                        mode=""
+                        :style="{
+                            transform:
+                                'translate(' +
+                                -xOffset / 100 +
+                                'rpx,' +
+                                -yOffset / 100 +
+                                'rpx)',
+                        }"
+                    />
                 </view>
             </view>
             <view class="airbody">
@@ -757,6 +770,14 @@ export default {
             .module-content > view {
                 position: absolute;
             }
+            .redar-pic {
+                position: absolute;
+                left: 50%;
+                top: 50%;
+                width: 40rpx;
+                height: 40rpx;
+                transform: translate(-50%, -50%); /* 先居中 */
+            }
         }
         .airbody {
             margin: 80rpx auto 0 auto;

BIN
src/static/rander.png