From 218fe18941156a8a61d6efc461df2e9a5c44a762 Mon Sep 17 00:00:00 2001 From: lvyuanyuan Date: Tue, 30 Jul 2024 11:54:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- entry/src/main/ets/common/constants/CommonConstant.ets | 2 +- entry/src/main/ets/pages/WebIndex.ets | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a25081d..9f84adc 100755 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ 1.设备接入网络,主页会加载HarmonyOS官网登录界面。 -2.点击获取cookie,可以获取当前的cookie信息,并弹框展示。 +2.点击读取cookie,可以获取当前的cookie信息,并弹框展示。 -3.点击设置cookie,会设置cookie信息,设置成功弹出显示“设置cookie成功”,此时点击获取cookie信息,cookie信息弹窗中包含“info=测试cookie写入”的内容。 +3.点击设置cookie,会设置cookie信息,设置成功弹出显示“写入cookie成功”,此时点击读取cookie信息,cookie信息弹窗中包含“info=测试cookie写入”的内容。 4.点击验证cookie,跳转至新界面。若在首页完成登录操作,则可跳转至“账户中心>关于”界面;若未登录,则跳转至登录界面。 diff --git a/entry/src/main/ets/common/constants/CommonConstant.ets b/entry/src/main/ets/common/constants/CommonConstant.ets index b0d2798..2d2de21 100755 --- a/entry/src/main/ets/common/constants/CommonConstant.ets +++ b/entry/src/main/ets/common/constants/CommonConstant.ets @@ -48,7 +48,7 @@ export class CommonConstants { /** * Margin of divider. */ - static readonly DIVIDER_MARGIN = 12; + static readonly DIVIDER_MARGIN = 8; /** * Height of divider. diff --git a/entry/src/main/ets/pages/WebIndex.ets b/entry/src/main/ets/pages/WebIndex.ets index 95aa55b..eecdeaf 100755 --- a/entry/src/main/ets/pages/WebIndex.ets +++ b/entry/src/main/ets/pages/WebIndex.ets @@ -42,7 +42,8 @@ struct WebIndex { .fontSize(CommonConstants.TITLE_SIZE) .fontWeight(CommonConstants.FONT_WEIGHT_DEEPER) .fontColor($r('app.color.title_black')) - .width(CommonConstants.PAGE_TITLE_WIDTH) + .textAlign(TextAlign.Center) + .width(CommonConstants.WEB_WIDTH) .height(CommonConstants.PAGE_TITLE_HEIGHT) .margin({ top: $r('app.float.page_title_margin_top'), @@ -71,6 +72,7 @@ struct WebIndex { LinkButton({ buttonType: CookieOperation.DELETE_COOKIE, isNeedDivider: true }) LinkButton({ buttonType: CookieOperation.VERIFY_COOKIE, isNeedDivider: false }) } + .justifyContent(FlexAlign.SpaceBetween) .width(CommonConstants.WEB_WIDTH) } .backgroundColor($r('app.color.page_background_grey')) -- Gitee