Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main
* 'main' of http://192.168.1.42/developOne/harmonyPool: fix(17703):直播间点赞样式调整 国殇实例创建修改
Showing
8 changed files
with
28 additions
and
18 deletions
| @@ -78,25 +78,28 @@ export struct LiveLikeComponent { | @@ -78,25 +78,28 @@ export struct LiveLikeComponent { | ||
| 78 | transLikeStyle(): ILikeStyleResp { | 78 | transLikeStyle(): ILikeStyleResp { |
| 79 | if (this.likesStyle === 'love' || this.likesStyle === 'thumb') { | 79 | if (this.likesStyle === 'love' || this.likesStyle === 'thumb') { |
| 80 | return { | 80 | return { |
| 81 | - url: this.likeStatus ? $r(`app.media.ic_like_check`) : | ||
| 82 | - this.styleType == 1 ? $r('app.media.icon_like_default') : $r(`app.media.ic_like_uncheck`), | 81 | + url: this.likeStatus ? $r('app.media.ic_like_check') : |
| 82 | + this.styleType == 1 ? $r('app.media.icon_like_default') : $r('app.media.ic_like_uncheck'), | ||
| 83 | name: '赞' | 83 | name: '赞' |
| 84 | } | 84 | } |
| 85 | } else if (this.likesStyle === 'pray') { | 85 | } else if (this.likesStyle === 'pray') { |
| 86 | return { | 86 | return { |
| 87 | - url: this.likeStatus ? $r(`app.media.ic_thub_check`) : $r(`app.media.ic_thub_uncheck`), | 87 | + url: this.likeStatus ? $r('app.media.ic_thub_check') : |
| 88 | + this.styleType == 1 ? $r('app.media.icon_like_unselect_light_pray') : | ||
| 89 | + $r('app.media.icon_like_unselect_night_pray'), | ||
| 88 | name: '祈祷' | 90 | name: '祈祷' |
| 89 | } | 91 | } |
| 90 | } else if (this.likesStyle === 'mourning') { | 92 | } else if (this.likesStyle === 'mourning') { |
| 91 | return { | 93 | return { |
| 92 | - url: this.likeStatus ? $r(`app.media.ic_candle_check`) : | ||
| 93 | - $r(`app.media.ic_candle_uncheck`), | 94 | + url: this.likeStatus ? $r('app.media.ic_candle_check') : |
| 95 | + this.styleType == 1 ? $r('app.media.icon_like_unselect_light_candle') : | ||
| 96 | + $r('app.media.icon_like_unselect_night_candle'), | ||
| 94 | name: '默哀' | 97 | name: '默哀' |
| 95 | } | 98 | } |
| 96 | } | 99 | } |
| 97 | return { | 100 | return { |
| 98 | - url: this.likeStatus ? $r(`app.media.ic_like_check`) : | ||
| 99 | - this.styleType == 1 ? $r('app.media.icon_like_default') : $r(`app.media.ic_like_uncheck`), | 101 | + url: this.likeStatus ? $r('app.media.ic_like_check') : |
| 102 | + this.styleType == 1 ? $r('app.media.icon_like_default') : $r('app.media.ic_like_uncheck'), | ||
| 100 | name: '点赞' | 103 | name: '点赞' |
| 101 | } | 104 | } |
| 102 | } | 105 | } |
| @@ -106,8 +109,8 @@ export struct LiveLikeComponent { | @@ -106,8 +109,8 @@ export struct LiveLikeComponent { | ||
| 106 | Stack({ alignContent: Alignment.TopEnd }) { | 109 | Stack({ alignContent: Alignment.TopEnd }) { |
| 107 | Column() { | 110 | Column() { |
| 108 | Image(this.transLikeStyle().url) | 111 | Image(this.transLikeStyle().url) |
| 109 | - .width(24) | ||
| 110 | - .height(24) | 112 | + .width(((this.likesStyle === 'mourning'||this.likesStyle === 'pray')&& !this.likeStatus) ?36:24) |
| 113 | + .height(((this.likesStyle === 'mourning'||this.likesStyle === 'pray')&& !this.likeStatus)?36:24) | ||
| 111 | } | 114 | } |
| 112 | .justifyContent(FlexAlign.Center) | 115 | .justifyContent(FlexAlign.Center) |
| 113 | .width(36) | 116 | .width(36) |
| @@ -252,7 +252,7 @@ export struct LiveOperRowListView { | @@ -252,7 +252,7 @@ export struct LiveOperRowListView { | ||
| 252 | }) | 252 | }) |
| 253 | } | 253 | } |
| 254 | .width(48) | 254 | .width(48) |
| 255 | - .margin({left:this.isLlive?0:10}) | 255 | + .margin({left:this.isLlive?0:5}) |
| 256 | .visibility(this.likesStyle == 4 || this.likesStyle == 'empty' || !this.openLikes ? Visibility.None : Visibility.Visible) | 256 | .visibility(this.likesStyle == 4 || this.likesStyle == 'empty' || !this.openLikes ? Visibility.None : Visibility.Visible) |
| 257 | } | 257 | } |
| 258 | 258 |
sight_harmony/features/wdComponent/src/main/resources/base/media/icon_like_unselect_light_candle.png
0 → 100644
1.14 KB
sight_harmony/features/wdComponent/src/main/resources/base/media/icon_like_unselect_light_pray.png
0 → 100644
1.41 KB
sight_harmony/features/wdComponent/src/main/resources/base/media/icon_like_unselect_night_candle.png
0 → 100644
1.25 KB
sight_harmony/features/wdComponent/src/main/resources/base/media/icon_like_unselect_night_pray.png
0 → 100644
1.53 KB
| 1 | import { LogoutViewModel } from 'wdComponent'; | 1 | import { LogoutViewModel } from 'wdComponent'; |
| 2 | -import { BreakpointConstants } from 'wdConstant'; | 2 | +import { GrayManageModel, mournsInfoModel } from 'wdComponent/src/main/ets/viewmodel/GrayManageModel' |
| 3 | +import { BreakpointConstants, SpConstants } from 'wdConstant'; | ||
| 3 | 4 | ||
| 4 | -import { BreakpointSystem, EmitterEventId, EmitterUtils, Logger, MpaasUpgradeCheck, WindowModel } from 'wdKit'; | 5 | +import { BreakpointSystem, EmitterEventId, EmitterUtils, Logger, MpaasUpgradeCheck, |
| 6 | + SPHelper, | ||
| 7 | + WindowModel } from 'wdKit'; | ||
| 5 | import { promptAction, window } from '@kit.ArkUI'; | 8 | import { promptAction, window } from '@kit.ArkUI'; |
| 6 | import { UpgradeTipDialog } from "./upgradePage/UpgradeTipDialog" | 9 | import { UpgradeTipDialog } from "./upgradePage/UpgradeTipDialog" |
| 7 | import { ProcessUtils } from 'wdRouter/Index'; | 10 | import { ProcessUtils } from 'wdRouter/Index'; |
| 8 | import { StartupManager } from '../startupmanager/StartupManager'; | 11 | import { StartupManager } from '../startupmanager/StartupManager'; |
| 9 | import { BusinessError } from '@kit.BasicServicesKit'; | 12 | import { BusinessError } from '@kit.BasicServicesKit'; |
| 10 | import { BottomNavigationComponent } from './view/BottomNavigationComponent'; | 13 | import { BottomNavigationComponent } from './view/BottomNavigationComponent'; |
| 14 | +import LaunchDataModel from './viewModel/LaunchDataModel'; | ||
| 11 | 15 | ||
| 12 | const TAG = 'MainPage'; | 16 | const TAG = 'MainPage'; |
| 13 | 17 | ||
| @@ -36,6 +40,15 @@ struct MainPage { | @@ -36,6 +40,15 @@ struct MainPage { | ||
| 36 | EmitterUtils.receiveEvent(EmitterEventId.FORCE_USER_LOGIN_OUT, () => { | 40 | EmitterUtils.receiveEvent(EmitterEventId.FORCE_USER_LOGIN_OUT, () => { |
| 37 | LogoutViewModel.clearLoginInfo() | 41 | LogoutViewModel.clearLoginInfo() |
| 38 | }) | 42 | }) |
| 43 | + | ||
| 44 | + let dataModelStr : string = SPHelper.default.getSync(SpConstants.APP_LAUNCH_PAGE_DATA_MODEL,'') as string | ||
| 45 | + let dataModel : LaunchDataModel = JSON.parse(dataModelStr) | ||
| 46 | + console.log(dataModelStr) | ||
| 47 | + // 处理国殇模式数据 | ||
| 48 | + let mourns: mournsInfoModel = dataModel.mourns as mournsInfoModel | ||
| 49 | + let GrayManage = new GrayManageModel() | ||
| 50 | + GrayManage.setMourning(mourns) | ||
| 51 | + AppStorage.setOrCreate('GrayManage', GrayManage) | ||
| 39 | } | 52 | } |
| 40 | 53 | ||
| 41 | pageTransition() { | 54 | pageTransition() { |
| @@ -15,7 +15,6 @@ import { Logger, SPHelper, UmengStats } from 'wdKit/Index'; | @@ -15,7 +15,6 @@ import { Logger, SPHelper, UmengStats } from 'wdKit/Index'; | ||
| 15 | import { SpConstants } from 'wdConstant/Index'; | 15 | import { SpConstants } from 'wdConstant/Index'; |
| 16 | import { TrackingModule } from 'wdTracking/Index' | 16 | import { TrackingModule } from 'wdTracking/Index' |
| 17 | import { StartupManager } from '../../startupmanager/StartupManager' | 17 | import { StartupManager } from '../../startupmanager/StartupManager' |
| 18 | -import { GrayManageModel, mournsInfoModel } from 'wdComponent/src/main/ets/viewmodel/GrayManageModel' | ||
| 19 | 18 | ||
| 20 | @Entry | 19 | @Entry |
| 21 | @Component | 20 | @Component |
| @@ -113,11 +112,6 @@ struct LaunchPage { | @@ -113,11 +112,6 @@ struct LaunchPage { | ||
| 113 | 112 | ||
| 114 | let dataModel : LaunchDataModel = JSON.parse(dataModelStr) | 113 | let dataModel : LaunchDataModel = JSON.parse(dataModelStr) |
| 115 | console.log(dataModelStr) | 114 | console.log(dataModelStr) |
| 116 | - // 处理国殇模式数据 | ||
| 117 | - let mourns: mournsInfoModel = dataModel.mourns as mournsInfoModel | ||
| 118 | - let GrayManage = new GrayManageModel() | ||
| 119 | - GrayManage.setMourning(mourns) | ||
| 120 | - AppStorage.setOrCreate('GrayManage', GrayManage) | ||
| 121 | 115 | ||
| 122 | if (dataModel.launchPageInfo || dataModel.launchAdInfo.length) { | 116 | if (dataModel.launchPageInfo || dataModel.launchAdInfo.length) { |
| 123 | //跳转广告页 | 117 | //跳转广告页 |
-
Please register or login to post a comment