From e33e9eb2acbc884e47fb0fa7782be84576109b28 Mon Sep 17 00:00:00 2001 From: gaohui Date: Fri, 24 Sep 2021 15:01:42 +0800 Subject: [PATCH 1/2] Bug Fix ECG Signed-off-by: gaohui --- common/ECG/build.gradle | 11 +++ .../src/main/js/default/pages/index/index.css | 67 ++++++++++++++----- .../src/main/js/default/pages/index/index.hml | 34 ++++++---- 3 files changed, 83 insertions(+), 29 deletions(-) diff --git a/common/ECG/build.gradle b/common/ECG/build.gradle index 729c646b74..ecf92dbd0f 100644 --- a/common/ECG/build.gradle +++ b/common/ECG/build.gradle @@ -16,6 +16,17 @@ apply plugin: 'com.huawei.ohos.app' ohos { + signingConfigs { + release { + storeFile file('D:\\chart\\Application.p12') + storePassword '0000001B6C8B758DC841FD17F8B78EE4B7A5B4B59737E8FE8B788F370F716BAA7F40248255E0A105E0880E' + keyAlias = 'Application' + keyPassword '0000001BDBCF72A30EBA96E17BF39B9932231EE66E19537FDB97B2DF5C997667D1DBC92AD6B5DB7190F091' + signAlg = 'SHA256withECDSA' + profile file('D:\\chart\\ECG.p7b') + certpath file('D:\\chart\\Application.cer') + } + } compileSdkVersion 6 defaultConfig { compatibleSdkVersion 6 diff --git a/common/ECG/entry/src/main/js/default/pages/index/index.css b/common/ECG/entry/src/main/js/default/pages/index/index.css index a217329696..6d63fdd27f 100644 --- a/common/ECG/entry/src/main/js/default/pages/index/index.css +++ b/common/ECG/entry/src/main/js/default/pages/index/index.css @@ -12,42 +12,79 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -.stackMain { +.main { width: 100%; height: 100%; flex-direction: column; background-color: black; } -.chart_t_l { + +.div_top { + width: 100%; + height: 20%; + top: 0px; + flex-direction: row; + align-items: center; +} + +.chat_t_l { width: 110px; height: 110px; - object-fit: cover; - top: 8%; - left: 10px; + object-fit: contain; + display: flex; + flex-shrink: 1; + flex-basis: 110px; } + .numberImg { width: 32px; height: 66px; - top: 10%; + object-fit: scale-down; + display: flex; + flex-shrink: 1; } .hundredImg { - left: 140px; + left: 80px; + object-fit: scale-down; + display: flex; + flex-shrink: 1; } .chart_t_r { width: 80px; height: 40px; - top: 12%; color: #a6a6a6; } -.chartBg { +.stack_main { width: 100%; - height: 50%; - top: 20%; + height: 60%; + flex-direction: column; + justify-content: center; } -.chartTime { +.chart_bg { width: 100%; - top: 70%; - font-size: 38px; + height: 100%; +} +.chart { + width: 100%; + height: 171px; +} +.chart_time { text-align: center; color: white; -} \ No newline at end of file +} +font_size { + font-size: 38px; +} +.div_bottom { + width: 100%; + height: 20%; + align-items: center; + justify-content: center; +} + +@media screen and (device-type: phone) and (orientation: landscape) { + .font_size { + font-size: 28px; + } +} + diff --git a/common/ECG/entry/src/main/js/default/pages/index/index.hml b/common/ECG/entry/src/main/js/default/pages/index/index.hml index 2d7fb723bd..458d991303 100644 --- a/common/ECG/entry/src/main/js/default/pages/index/index.hml +++ b/common/ECG/entry/src/main/js/default/pages/index/index.hml @@ -12,17 +12,23 @@ See the License for the specific language governing permissions and limitations under the License. --> - - - - - - - - - {{ $t('strings.times_minute') }} - - - {{ chartTime }}{{ $t('strings.count_down') }} - - +
+
+ + + + + + {{ $t('strings.times_minute') }} + +
+ + + + +
+ + {{ chartTime }}{{ $t('strings.count_down') }} + +
+
\ No newline at end of file -- Gitee From 740d5098a668c96cd10788297a4d5ad44b8511a1 Mon Sep 17 00:00:00 2001 From: gaohui Date: Fri, 24 Sep 2021 15:11:20 +0800 Subject: [PATCH 2/2] Bug Fix ECG Signed-off-by: gaohui --- common/ECG/build.gradle | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/common/ECG/build.gradle b/common/ECG/build.gradle index ecf92dbd0f..729c646b74 100644 --- a/common/ECG/build.gradle +++ b/common/ECG/build.gradle @@ -16,17 +16,6 @@ apply plugin: 'com.huawei.ohos.app' ohos { - signingConfigs { - release { - storeFile file('D:\\chart\\Application.p12') - storePassword '0000001B6C8B758DC841FD17F8B78EE4B7A5B4B59737E8FE8B788F370F716BAA7F40248255E0A105E0880E' - keyAlias = 'Application' - keyPassword '0000001BDBCF72A30EBA96E17BF39B9932231EE66E19537FDB97B2DF5C997667D1DBC92AD6B5DB7190F091' - signAlg = 'SHA256withECDSA' - profile file('D:\\chart\\ECG.p7b') - certpath file('D:\\chart\\Application.cer') - } - } compileSdkVersion 6 defaultConfig { compatibleSdkVersion 6 -- Gitee