Răsfoiți Sursa

修改跌倒查询接口

wangming 1 lună în urmă
părinte
comite
941f973acc

+ 1 - 1
src/components/component/tenMinutes.vue

@@ -473,7 +473,7 @@ export default {
         getFallingEventsQuery() {
             this.$http
                 .get("wap/stats/fallingEventsQuery", {
-                    user_id: this.userId,
+                    userId: this.userId,
                 })
                 .then((res) => {
                     if (res.data.data) {

+ 28 - 27
src/pages/home/home.vue

@@ -242,6 +242,7 @@ export default {
                         this.warnNum = warnNum;
                         this.devDevice = res.data.data.deviceList;
                     }
+                    uni.hideLoading();
                 });
         },
         getShareNum() {
@@ -274,32 +275,32 @@ export default {
         //     });
         // },
         // 需要跟车对接一下,换一个接口
-        getWarmList() {
-            this.$http
-                .post(
-                    "wap/stats/alarmRetentionQuery",
-                    {
-                        pageNo: 1,
-                        pageSize: 20,
-                    },
-                    {
-                        header: {
-                            "Content-Type": "application/json;charset=UTF-8",
-                            token: uni.getStorageSync("tokenValue") || "",
-                        },
-                    }
-                )
-                .then((res) => {
-                    if (res.data.data) {
-                        // this.warmNum = res.data.data.total;
-                        if (res.data.data.rows.length > 0) {
-                            this.warmDetail = res.data.data.rows;
-                            this.warmList = res.data.data.rows;
-                        }
-                    }
-                });
-            uni.hideLoading();
-        },
+        // getWarmList() {
+        //     this.$http
+        //         .post(
+        //             "wap/stats/alarmRetentionQuery",
+        //             {
+        //                 pageNo: 1,
+        //                 pageSize: 20,
+        //             },
+        //             {
+        //                 header: {
+        //                     "Content-Type": "application/json;charset=UTF-8",
+        //                     token: uni.getStorageSync("tokenValue") || "",
+        //                 },
+        //             }
+        //         )
+        //         .then((res) => {
+        //             if (res.data.data) {
+        //                 // this.warmNum = res.data.data.total;
+        //                 if (res.data.data.rows.length > 0) {
+        //                     this.warmDetail = res.data.data.rows;
+        //                     this.warmList = res.data.data.rows;
+        //                 }
+        //             }
+        //         });
+        //     uni.hideLoading();
+        // },
     },
     onLoad() {},
     onShow() {
@@ -309,7 +310,7 @@ export default {
             });
             this.getperSonInfo();
             this.getShareNum();
-            this.getWarmList();
+            // this.getWarmList();
             // this.getWeather();
             this.isInitAlarm = true;
             this.isIniTenMinutes = true;

+ 33 - 2
src/pagesA/healthAlarm/healthAlarm.vue

@@ -19,7 +19,33 @@
                             />
                         </view>
                         <view class="nomalLeft">
-                            <text>23:00-06:30</text>
+                            <text>
+                                <view class="uni-list-cell-db">
+                                    <picker
+                                        mode="time"
+                                        :value="timeOne"
+                                        start="00:00"
+                                        end="23:59"
+                                        @change="bindTimeChange"
+                                    >
+                                        <view class="uni-input">{{
+                                            timeOne
+                                        }}</view>
+                                    </picker> </view
+                                >-<view class="uni-list-cell-db">
+                                    <picker
+                                        mode="time"
+                                        :value="timeOne"
+                                        start="00:00"
+                                        end="23:59"
+                                        @change="bindTimeChange"
+                                    >
+                                        <view class="uni-input">{{
+                                            timeOne
+                                        }}</view>
+                                    </picker>
+                                </view></text
+                            >
                             <image src="../../static/arrThree.png" mode="" />
                         </view>
                     </view>
@@ -126,10 +152,15 @@ export default {
             status_light: 1,
             devInfo: "",
             statusLight: 1,
+            timeOne: "23:00",
         };
     },
     computed: {},
-    methods: {},
+    methods: {
+        bindTimeChange(e) {
+            this.timeOne = e.detail.value;
+        },
+    },
     onLoad(option) {
         this.devInfo = JSON.parse(option.devInfo);
         console.log(this.devInfo, 999999);