whychdw
2019-12-03 dd25e8adf7f5fac2c9c0ddd6aa1a009033e0a37a
开启首页等待框
2个文件已修改
16 ■■■■ 已修改文件
platforms/android/app/src/main/assets/www/pages/main/main.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
www/pages/main/main.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
platforms/android/app/src/main/assets/www/pages/main/main.js
@@ -86,7 +86,7 @@
                    }
                },
                setBattDiscInfo: function setBattDiscInfo(res) {
                    // console.log(res);
                    console.log(res);
                    // 对数据进行处理
                    this.tbls.discharge.data = res.data;
                    // 统计个数
@@ -99,9 +99,9 @@
                    }, 4000);
                },
                readBattCharInfo: function readBattCharInfo() {
                    //  读取放电信息
                    //  读取充电信息
                    if (typeof DeviceService != 'undefined') {
                        DeviceService.readBattDiscInfo();
                        DeviceService.readBattCharInfo();
                    } else {
                        this.setBattCharInfo({
                            code: 1,
@@ -128,7 +128,7 @@
                    }
                },
                setBattCharInfo: function setBattCharInfo(res) {
                    // console.log(res);
                    console.log(res);
                    // 对数据进行处理
                    this.tbls.charge.data = res.data;
                    // 统计个数
www/pages/main/main.js
@@ -86,7 +86,7 @@
                    }
                },
                setBattDiscInfo: function setBattDiscInfo(res) {
                    // console.log(res);
                    console.log(res);
                    // 对数据进行处理
                    this.tbls.discharge.data = res.data;
                    // 统计个数
@@ -99,9 +99,9 @@
                    }, 4000);
                },
                readBattCharInfo: function readBattCharInfo() {
                    //  读取放电信息
                    //  读取充电信息
                    if (typeof DeviceService != 'undefined') {
                        DeviceService.readBattDiscInfo();
                        DeviceService.readBattCharInfo();
                    } else {
                        this.setBattCharInfo({
                            code: 1,
@@ -128,7 +128,7 @@
                    }
                },
                setBattCharInfo: function setBattCharInfo(res) {
                    // console.log(res);
                    console.log(res);
                    // 对数据进行处理
                    this.tbls.charge.data = res.data;
                    // 统计个数