liyubing

Merge remote-tracking branch 'origin/main'

... ... @@ -2,8 +2,8 @@
"app": {
"bundleName": "com.peopledailychina.hosactivity",
"vendor": "$string:app_vendor",
"versionCode": 7390,
"versionName": "7.3.9.0",
"versionCode": 7391,
"versionName": "7.3.9.1",
"icon": "$media:app_icon",
"label": "$string:app_name"
}
... ...
... ... @@ -122,11 +122,11 @@ export struct LiveBigImage01Component {
.margin({
right: '10vp'
})
.textShadow({
radius: 2,
color: 'rgba(0,0,0,0.3)',
offsetY: 2
})
// .textShadow({
// radius: 2,
// color: 'rgba(0,0,0,0.3)',
// offsetY: 2
// })
.backgroundColor(!this.isReserved() ? $r('app.color.color_ED2800') : $r('app.color.color_F5F5F5'))
.borderRadius(3)
... ...
... ... @@ -2,7 +2,7 @@ import { ContentDetailDTO, LiveDetailsBean } from 'wdBean/Index'
import { LiveCountdownComponent } from './LiveCountdownComponent'
/**
* 非沉浸式---简介
* 非沉浸式---简介/直播间/大家聊-简介
*/
@Component
export struct TabInfoComponent {
... ... @@ -41,7 +41,7 @@ export struct TabInfoComponent {
@Builder
showLiveDetails() {
Text(this.contentDetailData.newIntroduction)
.maxLines(5)
// .maxLines(5)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.fontSize('14vp')
.fontWeight(400)
... ...
... ... @@ -112,14 +112,12 @@ struct OneKeyLoginPage {
this.loginButton()
Button("账号密码登录")
.type(ButtonType.Normal)
.align(Alignment.Center)
.foregroundColor("#666666")
.backgroundColor(Color.White)
Text("账号密码登录")
.fontColor("#666666")
.height(26)
.width(100)
.margin({top: 20})
.onClick((event) => {
.onClick(() => {
router.replaceUrl({url: WDRouterPage.loginPage.url()})
})
}
... ...
... ... @@ -36,6 +36,7 @@ export struct MultiPictureDetailPageComponent {
private contentId: string = ''
private relType: string = ''
private displayTool = display.getDefaultDisplaySync()
@State nShowDownloadTitleHeight: number = 0
@State titleHeight: number = 0
@State index: number = 0
@State currentIndex: number = 0
... ... @@ -50,6 +51,7 @@ export struct MultiPictureDetailPageComponent {
@State swiperIndex: number = 0;
@Provide followStatus: string | undefined = undefined // 关注状态
@Provide showCommentList: boolean = false
private subScroller: Scroller = new Scroller()
private scroller: Scroller = new Scroller()
@State netStatus: number | undefined = undefined // 存储网络状态用来展示缺省图
@State isOffLine: boolean = false // 存储视频下线状态用来展示缺省图
... ... @@ -63,6 +65,7 @@ export struct MultiPictureDetailPageComponent {
followUserId: string = ''
followUserName: string = ''
@State isEnableSwipe: boolean = true;
@State isScrollerTop: boolean = false;
//watch监听页码回调
onCurrentPageNumUpdated(): void {
... ... @@ -74,7 +77,8 @@ export struct MultiPictureDetailPageComponent {
async aboutToAppear() {
//获取宽高尺寸
this.titleHeight = this.displayTool.width * 178 / 375
this.titleHeight = this.displayTool.width * 227 / 375
this.nShowDownloadTitleHeight = this.displayTool.width * 311 / 375
//注册字体
// font.registerFont({
// familyName: 'BebasNeueBold',
... ... @@ -353,9 +357,7 @@ export struct MultiPictureDetailPageComponent {
@Builder
NShowDownload() {
Column() {
Row() {
Scroll(this.scroller) {
Row() {
Flex({
direction: FlexDirection.Column,
justifyContent: FlexAlign.Start
... ... @@ -381,6 +383,8 @@ export struct MultiPictureDetailPageComponent {
right: 4
})
}
List() {
ListItem(){
if (this.contentDetailData.newsTitle) {
Text(`${this.contentDetailData.newsTitle}`)
.fontColor(Color.White)
... ... @@ -396,6 +400,8 @@ export struct MultiPictureDetailPageComponent {
})
.width('92%')
}
}
ListItem(){
if (this.contentDetailData.photoList?.[this.swiperIndex].picDesc) {
Text(`${this.contentDetailData.photoList?.[this.swiperIndex].picDesc}`)
.fontColor(Color.White)
... ... @@ -415,15 +421,30 @@ export struct MultiPictureDetailPageComponent {
}
}
}
.nestedScroll(
{
scrollForward: NestedScrollMode.PARENT_FIRST,
scrollBackward: NestedScrollMode.SELF_FIRST
}
)
.constraintSize (
{
maxHeight: px2vp(this.titleHeight)
}
)
}
.width('100%')
}
.scrollable(ScrollDirection.Vertical)
.scrollBarWidth(0)
.constraintSize({
maxHeight: px2vp(this.titleHeight)
})
.align(Alignment.Bottom)
.constraintSize (
{
maxHeight: px2vp(this.nShowDownloadTitleHeight)
}
)
// .initialOffset({
// yOffset: px2vp(this.titleHeight)/2
// })
OperRowListView({
contentDetailData: this.contentDetailData,
... ...