whychdw
2019-10-22 dec0fe8672ac910f0113fa10552ccb982aec3675
修改内容
8个文件已修改
66 ■■■■■ 已修改文件
platforms/android/app/src/main/assets/www/js/common_functions.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
platforms/android/app/src/main/assets/www/pages/batttest/batttest.js 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
platforms/android/app/src/main/assets/www/pages/index/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
platforms/android/app/src/main/assets/www/pages/testdata/testdata.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
www/js/common_functions.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
www/pages/batttest/batttest.js 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
www/pages/index/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
www/pages/testdata/testdata.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
platforms/android/app/src/main/assets/www/js/common_functions.js
@@ -106,4 +106,12 @@
        value: 4,
        text: '正在充电'
    },
];
];
// 同步Android屏
function updateAndroid(num) {
    if(typeof(JSInterface) != 'undefined') {
        // 同步后台屏幕
        JSInterface.changeAppForm(num);
    }
}
platforms/android/app/src/main/assets/www/pages/batttest/batttest.js
@@ -387,6 +387,21 @@
            }
        });
    },
    show: function() {
        var params = router.getPageParams();
        // 同步Android屏
        switch(params.name) {
            case 'discharge':
                updateAndroid(1);
            break;
            case 'charge':
                updateAndroid(2);
            break;
            default:
                updateAndroid(3);
            break;
        }
    },
    destroyed: function destroyed() {
        this.vm.$destroy();
    }
platforms/android/app/src/main/assets/www/pages/index/index.js
@@ -49,6 +49,10 @@
            destroyed: function destroyed() {}
        });
    },
    show: function() {
        // 同步Android屏
        updateAndroid(0);
    },
    destroyed: function destroyed() {
        this.vm.$destroy();
    }
platforms/android/app/src/main/assets/www/pages/testdata/testdata.js
@@ -289,6 +289,10 @@
            }
        });
    },
    show: function() {
        // 同步Android屏
        updateAndroid(7);
    },
    destroyed: function destroyed() {
        this.vm.$destroy();
    }
www/js/common_functions.js
@@ -106,4 +106,12 @@
        value: 4,
        text: '正在充电'
    },
];
];
// 同步Android屏
function updateAndroid(num) {
    if(typeof(JSInterface) != 'undefined') {
        // 同步后台屏幕
        JSInterface.changeAppForm(num);
    }
}
www/pages/batttest/batttest.js
@@ -387,6 +387,21 @@
            }
        });
    },
    show: function() {
        var params = router.getPageParams();
        // 同步Android屏
        switch(params.name) {
            case 'discharge':
                updateAndroid(1);
            break;
            case 'charge':
                updateAndroid(2);
            break;
            default:
                updateAndroid(3);
            break;
        }
    },
    destroyed: function destroyed() {
        this.vm.$destroy();
    }
www/pages/index/index.js
@@ -49,6 +49,10 @@
            destroyed: function destroyed() {}
        });
    },
    show: function() {
        // 同步Android屏
        updateAndroid(0);
    },
    destroyed: function destroyed() {
        this.vm.$destroy();
    }
www/pages/testdata/testdata.js
@@ -289,6 +289,10 @@
            }
        });
    },
    show: function() {
        // 同步Android屏
        updateAndroid(7);
    },
    destroyed: function destroyed() {
        this.vm.$destroy();
    }