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
1c5f67b8
Commit
1c5f67b8
authored
Dec 17, 2019
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f09048c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
workspace.xml
.idea/workspace.xml
+1
-1
HtmlTextParser.ts
egret/libs/tc/util/HtmlTextParser.ts
+1
-1
RulePanel.ts
egret/src/Panels/RulePanel/RulePanel.ts
+22
-1
No files found.
.idea/workspace.xml
View file @
1c5f67b8
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<workItem
from=
"1576573310427"
duration=
"18000"
/>
<workItem
from=
"1576573310427"
duration=
"18000"
/>
<workItem
from=
"1576573375140"
duration=
"43000"
/>
<workItem
from=
"1576573375140"
duration=
"43000"
/>
<workItem
from=
"1576582493871"
duration=
"170000"
/>
<workItem
from=
"1576582493871"
duration=
"170000"
/>
<workItem
from=
"1576582917243"
duration=
"1
210
000"
/>
<workItem
from=
"1576582917243"
duration=
"1
636
000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
...
...
egret/libs/tc/util/HtmlTextParser.ts
View file @
1c5f67b8
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
* @param htmltext
* @param htmltext
*/
*/
public
parser
(
htmltext
:
string
):
Array
<
egret
.
ITextElement
>
{
public
parser
(
htmltext
:
string
):
Array
<
egret
.
ITextElement
>
{
htmltext
=
htmltext
.
replace
(
/
\n
/g
,
''
);
//
htmltext = htmltext.replace(/\n/g,'');
htmltext
=
htmltext
.
replace
(
/<br>/g
,
''
);
htmltext
=
htmltext
.
replace
(
/<br>/g
,
''
);
var
arr
=
this
.
parse
(
htmltext
);
var
arr
=
this
.
parse
(
htmltext
);
...
...
egret/src/Panels/RulePanel/RulePanel.ts
View file @
1c5f67b8
...
@@ -25,7 +25,28 @@ export default class RulePanel extends Panel {
...
@@ -25,7 +25,28 @@ export default class RulePanel extends Panel {
}
}
private
initUI
():
void
{
private
initUI
():
void
{
let
rule
=
DataManager
.
ins
.
getData
(
NetName
.
GET_RULE
).
data
||
''
;
// let rule = DataManager.ins.getData(NetName.GET_RULE).data || '';
let
rule
=
'活动时间:
\
n'
+
'即日起-2019年12月30日
\
n'
+
'
\
n'
+
'活动对象:
\
n'
+
'工银e生活用户
\
n'
+
'
\
n'
+
'活动规则:
\
n'
+
'1.点击对应的土地,选择你想种的作物开始种植或者喂养吧!
\
n'
+
'2.浇灌或者喂养作物成长,作物成熟后可出售成欢趣豆或者兑换好礼。
\
n'
+
'
\
n'
+
'农场玩法:
\
n'
+
'1.水的用途:用以浇灌小麦/玉米等农作物;
\
n'
+
'2.饲料的用途:用以喂养鸡/牛等动物;
\
n'
+
'3.水和饲料怎么来:每天签到和首次分享可获得,完成制定任务也可获得哦;
\
n'
+
'4.作物成熟时间:作物每隔8小时就需要浇水,其中小麦/玉米等农作物需浇水3次,鸡/牛等动物需喂养4次可成熟;
\
n'
+
'5.收获食材:小麦收获后可获得4袋小麦,鸡收获后可获得4个鸡蛋,牛收获后可获得4瓶牛奶,玉米收获后可获得4袋玉米;
\
n'
+
'6.收获的食材将储存在仓库中,点击食材即可出售成欢趣豆哦~
\
n'
+
'其他说明:
\
n'
+
'1.领奖说明:中奖用户请根据中奖页面提示录入对应兑奖信息,具体兑换信息以奖品详情页为准,实物商品将在客户领取成功后15个工作日内发出;
\
n'
+
'2.用户如果违反诚实守信原则或出现违规行为(包括但不限于侵犯第三人合法权益、作弊、扰乱系统、实施网络攻击、恶意套取、批量注册、用机器注册账户、用机器模拟客户端等方式),一经发现我行有权终止该用户参与活动并取消其领奖资格;
\
n'
+
'3.本活动与苹果公司无关。'
;
this
.
ruleLabel
.
textFlow
=
new
HtmlTextParser
().
parser
(
rule
);
this
.
ruleLabel
.
textFlow
=
new
HtmlTextParser
().
parser
(
rule
);
}
}
}
}
\ 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