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
liyubing
2024-05-16 09:11:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
231869d5338af25f65afb94e5c5a1376e5777c51
231869d5
1 parent
ec03bf3f
feat(信息流):优化广告稿件删除功能
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
sight_harmony/features/wdBean/src/main/ets/bean/adv/CompAdvInfoBean.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvBottom.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvTop.ets
sight_harmony/features/wdComponent/src/main/ets/viewmodel/PageHelper.ets
sight_harmony/features/wdBean/src/main/ets/bean/adv/CompAdvInfoBean.ets
View file @
231869d
...
...
@@ -57,6 +57,9 @@ export class CompAdvMatInfoBean {
* 开屏样式(1:全屏样式 0:底部固定Logo)
*/
startStyle: string = ''
// 本地字段
originalPostion : number = -1 // 广告原始投放位置
}
/**
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvBottom.ets
View file @
231869d
...
...
@@ -54,7 +54,7 @@ export struct CardAdvBottom {
let currentIndex = -1
for (let i = 0; i < this.pageModel.compList.size(); i++) {
let b = this.pageModel.compList.getData(i) as CompDTO
if (a.compStyle == b.compStyle && a.matInfo.id == b.matInfo.id) {
if (a.compStyle == b.compStyle && a.matInfo.id == b.matInfo.id
&& a.matInfo.originalPostion == b.matInfo.originalPostion
) {
currentIndex = i
break;
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvTop.ets
View file @
231869d
...
...
@@ -66,7 +66,7 @@ export struct CardAdvTop {
let currentIndex = -1
for (let i = 0; i < this.pageModel.compList.size(); i++) {
let b = this.pageModel.compList.getData(i) as CompDTO
if (a.compStyle ==
= b.compStyle && a.matInfo === b.matInfo
) {
if (a.compStyle ==
b.compStyle && a.matInfo.id == b.matInfo.id && a.matInfo.originalPostion == b.matInfo.originalPostion
) {
currentIndex = i
break;
}
...
...
sight_harmony/features/wdComponent/src/main/ets/viewmodel/PageHelper.ets
View file @
231869d
...
...
@@ -282,6 +282,7 @@ export class PageHelper {
} else {
pageCompList.insert(advComp, b + layoutAdvIndex)
}
matInfo.originalPostion = pageCompList.getIndexOf(advComp)
layoutAdvIndex = layoutAdvIndex + 1;
...
...
Please
register
or
login
to post a comment