From 23fa268f56dcd99c8dcd46f50f3ffcaa4cdcbc49 Mon Sep 17 00:00:00 2001 From: wwf <1971391498@qq.com> Date: 星期五, 10 十月 2025 17:25:53 +0800 Subject: [PATCH] 功能完善 --- entry/src/main/ets/pages/home/BannerDetail.ets | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/entry/src/main/ets/pages/home/BannerDetail.ets b/entry/src/main/ets/pages/home/BannerDetail.ets index 832260e..3515a22 100644 --- a/entry/src/main/ets/pages/home/BannerDetail.ets +++ b/entry/src/main/ets/pages/home/BannerDetail.ets @@ -2,6 +2,7 @@ import { http } from "@kit.NetworkKit"; import { HttpResponseResult } from "../../data/HttpResponse"; import { LvMarkdownIn } from "@luvi/lv-markdown-in" +import { ROMAIN } from "../../utils/config"; class BannerInfo { pic: string = '' @@ -30,15 +31,9 @@ } getDetail() { - interface PostData { - bannerId: string, - } - let postData: PostData = { - bannerId: this.bannerId - } let httpRequest = http.createHttp(); httpRequest.request( - `http://192.168.20.70:8080/quiz-community/public/v1.0/home/slideshows/details?bannerId=${this.bannerId}`, + `${ROMAIN}/quiz-community/public/v1.0/home/slideshows/details?bannerId=${this.bannerId}`, { method: http.RequestMethod.GET, header: { 'Content-Type': 'application/json', 'x-jwt-token': `Bearer ${AppStorage.get('x-jwt-token')}` }, @@ -83,6 +78,7 @@ LvMarkdownIn({ text: this.bannerInfo.content.toString() }) .width('100%') .height(560) + .padding({ left: 10, right: 10 }) } .width('100%') -- Gitblit v1.8.0