Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
yuzhilin
2024-05-09 14:36:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
368674033f325102780f120383139ad1e5ae162e
36867403
1 parent
4a9a311f
fix
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
5 deletions
sight_harmony/commons/wdNetwork/src/main/ets/http/HttpUrlUtils.ets
sight_harmony/features/wdBean/Index.ets
sight_harmony/features/wdBean/src/main/ets/bean/navigation/BottomNavDTO.ets
sight_harmony/features/wdBean/src/main/ets/bean/navigation/NavigationBodyDTO.ets
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextWebComponent.ets
sight_harmony/commons/wdNetwork/src/main/ets/http/HttpUrlUtils.ets
View file @
3686740
...
...
@@ -9,6 +9,10 @@ export class HttpUrlUtils {
*/
static readonly BOTTOM_NAV_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup";
/**
* 底导详情接口
*/
static readonly BOTTOM_NAV_DETAIL_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup/detail";
/**
* 展现pageInfo接口
*/
static readonly PAGE_INFO_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/pageInfo";
...
...
sight_harmony/features/wdBean/Index.ets
View file @
3686740
// navigation
export { NavigationBodyDTO } from './src/main/ets/bean/navigation/NavigationBodyDTO';
export { NavigationBodyDTO
, NavigationDetailDTO
} from './src/main/ets/bean/navigation/NavigationBodyDTO';
export { BottomNavDTO } from './src/main/ets/bean/navigation/BottomNavDTO';
...
...
sight_harmony/features/wdBean/src/main/ets/bean/navigation/BottomNavDTO.ets
View file @
3686740
...
...
@@ -40,3 +40,20 @@ export interface BottomNavDTO {
fmorningAndEveningUrl: string; // 迭代四:早晚报背景框
dropDownAnimationColor: string; // 下拉加载动画颜色,1白色,2灰色。未配置值是null
}
export interface BottomNavCompDTO {
id: string;
navId: string;
compType: string;
compStyle: string;
extraData: string;
leftIconUrl: string;
leftObjectId: string;
leftRelId: string;
leftObjectType: string; //0:不跳转 1:点播,2:直播,3:活动,4:广告,5:专题,6:链接,7:榜单,8:图文,9:组图,10:H5新闻,11:频道,12:组件,13:音频,14动态图文,15动态视频
leftObjectLevel: string; // 对象分类;频道(1:一级频道,2:二级频道),专题(21:文章专题,22:音频专题,23:直播专题,24:话题专题)
leftObjectPageId: string; //leftObjectType=5,11;返回对应页面id
leftLinkUrl: string;
rightIconUrl: string;
immersiveRightIconUrl: string;
}
\ No newline at end of file
...
...
sight_harmony/features/wdBean/src/main/ets/bean/navigation/NavigationBodyDTO.ets
View file @
3686740
import { BottomNavDTO } from './BottomNavDTO';
import { BottomNavDTO, BottomNavCompDTO } from './BottomNavDTO';
import { TopNavDTO } from './TopNavDTO';
/**
* 导航Body数据
...
...
@@ -11,3 +12,9 @@ export interface NavigationBodyDTO {
immersiveBackgroundColor: string; // 迭代二新增-底部导航背景色(沉浸式频道)
nightBackgroundColor: string; // 迭代三新增-底部导航背景色(夜间模式)
}
export interface NavigationDetailDTO {
id: string; // 迭代二新增-底部导航背景色(信息流频道)
bottomNavCompList: BottomNavCompDTO[];
topNavChannelList: TopNavDTO[];
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextPageComponent.ets
View file @
3686740
...
...
@@ -61,7 +61,7 @@ export struct ImageAndTextPageComponent {
.height(28)
Text(this.publishTime)
.fontColor($r('app.color.color_B0B0B0'))
.fontSize(
$r('app.float.font_size_13')
)
.fontSize(
13
)
}
.width(CommonConstants.FULL_WIDTH)
.height(32)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextWebComponent.ets
View file @
3686740
...
...
@@ -64,8 +64,8 @@ export struct ImageAndTextWebComponent {
creatorId: creatorId,
cnsTraceId: '',
isLogin: isLogin,
loadImageOnlyWifiSwitch: loadImageOnlyWifiSwitch ? '2' : '1',
networkStatus: Number(NetworkUtil.isNetConnected()),
loadImageOnlyWifiSwitch: loadImageOnlyWifiSwitch ? '1' : '2',
networkStatus: Number(NetworkUtil.getNetworkType()),
darkMode: 'light',
fontSizes: 'small'
...
...
Please
register
or
login
to post a comment