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
王士厅
2024-07-02 16:34:44 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dfd3f9f30d36874eea7b97edf93fcdc44ba9ed04
dfd3f9f3
1 parent
3f678f13
国殇修改判断条件不判断未登录
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
sight_harmony/features/wdComponent/src/main/ets/viewmodel/GrayManageModel.ets
sight_harmony/features/wdComponent/src/main/ets/viewmodel/GrayManageModel.ets
View file @
dfd3f9f
...
...
@@ -85,8 +85,8 @@ export class GrayManageModel {
// 国殇模式开启
public isMourning(): boolean {
// 基础条件:用户已登录且国殇模式主开关开启
if (!this.user_id || !this.switchOpen) {
// 基础条件:国殇模式主开关开启
if (!this.switchOpen) {
return false;
}
...
...
@@ -102,7 +102,6 @@ export class GrayManageModel {
// 国殇模式开启 底导国殇模式开启
public isBottomNavMourning(): boolean {
return (
!!this.user_id && // 确保用户已登录
this.switchOpen && // 国殇模式总开关开启
this.bottomNavOpen && // 底部导航国殇模式开关开启
(
...
...
@@ -115,7 +114,7 @@ export class GrayManageModel {
// 国殇模式开启 新闻频道国殇模式开启 一键全选: true-全选, false-非全选
public isNewsMourning(channelId: string): boolean {
// 检查最基本的前提条件
if (!this.
user_id || !this.
switchOpen) {
if (!this.switchOpen) {
return false;
}
...
...
@@ -132,7 +131,7 @@ export class GrayManageModel {
// 国殇模式开启 人民号频道国殇模式开启 一键全选: true-全选, false-非全选
public isRmhMourning(channelId: string): boolean {
// 检查最基本的前提条件
if (!this.
user_id || !this.
switchOpen) {
if (!this.switchOpen) {
return false;
}
...
...
@@ -149,7 +148,7 @@ export class GrayManageModel {
// 国殇模式开启 视频频道频道国殇模式开启 一键全选: true-全选, false-非全选
public isVideoMourning(channelId: string): boolean {
// 检查最基本的前提条件
if (!this.
user_id || !this.
switchOpen) {
if (!this.switchOpen) {
return false;
}
...
...
@@ -165,7 +164,7 @@ export class GrayManageModel {
// 国殇模式开启 视频频道频道国殇模式开启 一键全选: true-全选, false-非全选
public isServerMourning(channelId: string): boolean {
// 检查最基本的前提条件
if (!this.
user_id || !this.
switchOpen) {
if (!this.switchOpen) {
return false;
}
...
...
Please
register
or
login
to post a comment