From befe56903ca496dfa9bd176a5daa3669e8965ce9 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期一, 16 六月 2025 12:39:23 +0800 Subject: [PATCH] # --- pages/login/index.vue | 24 ++++++++++-------------- pages.json | 2 +- App.vue | 5 +++++ static/family/HarmonyOS_Sans_SC_Regular.ttf | 0 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/App.vue b/App.vue index cf72960..8d00500 100644 --- a/App.vue +++ b/App.vue @@ -140,6 +140,11 @@ src: url('static/family/HarmonyOS_Sans_SC_Light.ttf') format('truetype'); } + @font-face { + font-family: a4; + src: url('static/family/HarmonyOS_Sans_SC_Regular.ttf') format('truetype'); + + } .nav-list { display: flex; flex-wrap: wrap; diff --git a/pages.json b/pages.json index ea09fde..505d8a6 100644 --- a/pages.json +++ b/pages.json @@ -1,7 +1,7 @@ { "pages": [ //pages鏁扮粍涓涓�椤硅〃绀哄簲鐢ㄥ惎鍔ㄩ〉锛屽弬鑰冿細https://uniapp.dcloud.io/collocation/pages { - "path": "pages/login/login", + "path": "pages/login/index", "style": { "navigationBarTitleText": "%page.login%" } diff --git a/pages/login/index.vue b/pages/login/index.vue index ea0b748..5f168da 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -1,12 +1,12 @@ <template> <view class="bodyView"> <view class="topView"> - <cover-image src="/static/img/login_top.png"> - </cover-image> + <image src="/static/img/login_top.png" mode="aspectFill"> + </image> </view> <view class="logoView"> - <cover-image src="/static/img/newLogo.png"> - </cover-image> + <image src="/static/img/newLogo.png" mode="aspectFit"> + </image> </view> <view class="bottomView"> <view class="itemView" style="margin-bottom: 40px;"> @@ -188,7 +188,7 @@ color: #ababab; } .textType3{ - font-family: a3; + font-family: a4; } .bodyView{ display: flex; @@ -203,11 +203,8 @@ .topView{ flex: 7; } - .topView cover-image{ + .topView image{ width: 100%; - height: 100%; - - object-fit: cover; } .logoView{ flex: 1; @@ -216,10 +213,9 @@ align-items: center; } - .logoView cover-image{ - width: 33%; - height: 35px; - object-fit: cover; + .logoView image{ + width: 33%; + height: 50px; margin-right: 20px; } .bottomView{ @@ -297,7 +293,7 @@ } .loadingButton{ background-color: #ffda1e; - + font-family: a1; } .check { diff --git a/static/family/HarmonyOS_Sans_SC_Regular.ttf b/static/family/HarmonyOS_Sans_SC_Regular.ttf new file mode 100644 index 0000000..aff150a --- /dev/null +++ b/static/family/HarmonyOS_Sans_SC_Regular.ttf Binary files differ -- Gitblit v1.9.1