Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔立强
db-game-template
Commits
ae87db11
Commit
ae87db11
authored
Nov 28, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c2a15227
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
RulePanel.ts
egret/src/panels/RulePanel.ts
+6
-2
projectRule.json
mock/esports/projectRule.json
+1
-3
No files found.
egret/src/panels/RulePanel.ts
View file @
ae87db11
...
@@ -12,8 +12,12 @@ export default class RulePanel extends Panel {
...
@@ -12,8 +12,12 @@ export default class RulePanel extends Panel {
NetManager
.
ins
.
yyh_queryProjectRule
((
success
)
=>
{
NetManager
.
ins
.
yyh_queryProjectRule
((
success
)
=>
{
let
str
:
string
=
DataManager
.
ins
.
getData
(
'yyh_queryProjectRule'
).
data
;
let
str
:
string
=
DataManager
.
ins
.
getData
(
'yyh_queryProjectRule'
).
data
;
str
=
str
.
replace
(
'/<p>/g'
,
''
);
while
(
str
.
indexOf
(
'<p>'
)
!=
-
1
)
{
str
=
str
.
replace
(
'/</p>/g'
,
'<br>'
);
str
=
str
.
replace
(
'<p>'
,
''
);
}
while
(
str
.
indexOf
(
'</p>'
)
!=
-
1
)
{
str
=
str
.
replace
(
'</p>'
,
'<br>'
);
}
this
.
addRule
(
str
);
this
.
addRule
(
str
);
});
});
}
}
...
...
mock/esports/projectRule.json
View file @
ae87db11
{
{
"data"
:
"<p>111</p><p>2222</p><p>33333</p>"
,
"success"
:
true
}
"success"
:
true
\ No newline at end of file
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment