Commit 96b60e24 by fukai

支持15系列空栏位根据上下文添加

parent 9d71867a
...@@ -160,12 +160,21 @@ export class SWFPage extends Component ...@@ -160,12 +160,21 @@ export class SWFPage extends Component
else else
this.props.history.push("preview/1") this.props.history.push("preview/1")
} }
joinMessage(tags,arr) joinMessage(tags,arr,seqlist)
{ {
for(let item of tags) for(let item of tags)
{ {
if(item.tag) if(item.tag)
{ {
if(item.tag.indexOf('15')>-1)
{
//15系列字段
if(seqlist && this.props.extra.countMap && this.props.extra.countMap[seqlist])
{
arr.push(`:${item.tag}:`)
}
}
if(!item.tagValue) if(!item.tagValue)
continue continue
if(typeof item.tagValue =='string' && item.tagValue) if(typeof item.tagValue =='string' && item.tagValue)
...@@ -183,7 +192,7 @@ export class SWFPage extends Component ...@@ -183,7 +192,7 @@ export class SWFPage extends Component
else if(item.seqlist) else if(item.seqlist)
{ {
for(let seq of item.seqs) for(let seq of item.seqs)
this.joinMessage(seq,arr) this.joinMessage(seq,arr,item.seqlist)
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment