Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM_4-1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
JM_4-1
Commits
c210d69c
Commit
c210d69c
authored
Aug 03, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 结算答案文本异常
parent
ef65364d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
play.component.ts
src/app/play/play.component.ts
+7
-5
No files found.
src/app/play/play.component.ts
View file @
c210d69c
...
@@ -372,7 +372,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -372,7 +372,7 @@ export class PlayComponent implements OnInit, OnDestroy {
};
};
addOneAudio
(
'
click
'
,
this
.
rawAudios
.
get
(
'
click
'
),
0.8
);
addOneAudio
(
'
click
'
,
this
.
rawAudios
.
get
(
'
click
'
),
1
);
addOneAudio
(
'
more
'
,
this
.
rawAudios
.
get
(
'
more
'
),
0.8
);
addOneAudio
(
'
more
'
,
this
.
rawAudios
.
get
(
'
more
'
),
0.8
);
addOneAudio
(
'
submit
'
,
this
.
rawAudios
.
get
(
'
submit
'
),
0.8
);
addOneAudio
(
'
submit
'
,
this
.
rawAudios
.
get
(
'
submit
'
),
0.8
);
...
@@ -778,15 +778,17 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -778,15 +778,17 @@ export class PlayComponent implements OnInit, OnDestroy {
infoBg
.
addChild
(
infoLabel
);
infoBg
.
addChild
(
infoLabel
);
}
else
{
}
else
{
const
labelAnswer
=
new
RichText
();
const
labelAnswer
=
this
.
getFillLabel
();
labelAnswer
.
fontSize
=
48
;
labelAnswer
.
fontSize
=
48
;
labelAnswer
.
fontColor
=
'
#ffffff
'
labelAnswer
.
fontColor
=
'
#ffffff
'
labelAnswer
.
fontName
=
'
Aileron-Black
'
;
labelAnswer
.
fontName
=
'
Aileron-Black
'
;
labelAnswer
.
text
=
this
.
sentenceArr
[
i
].
answer
;
labelAnswer
.
text
=
this
.
sentenceArr
[
i
].
answer
;
labelAnswer
.
setScaleXY
(
1
);
labelAnswer
.
textAlign
=
'
center
'
;
labelAnswer
.
textAlign
=
'
center
'
;
labelAnswer
.
refreshSize
();
labelAnswer
.
x
=
colorRect
.
width
/
2
;
labelAnswer
.
x
=
colorRect
.
width
/
2
;
labelAnswer
.
y
=
-
labelAnswer
.
fontSize
/
2
;
labelAnswer
.
y
=
colorRect
.
height
/
2
;
colorRect
.
addChild
(
labelAnswer
);
colorRect
.
addChild
(
labelAnswer
);
}
}
...
@@ -1645,7 +1647,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1645,7 +1647,7 @@ export class PlayComponent implements OnInit, OnDestroy {
for
(
let
i
=
0
;
i
<
this
.
templateArr
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
templateArr
.
length
;
i
++
)
{
const
{
name
,
last_version
,
play_url
}
=
this
.
templateArr
[
i
].
template
;
const
{
name
,
last_version
,
play_url
}
=
this
.
templateArr
[
i
].
template
;
const
playUrl
=
`http://staging-teach.cdn.ireadabc.com/h5template/
${
name
}
/v
${
last_version
}
/
${
play_url
}
?key=
${
i
+
1
}
`
const
playUrl
=
`http
s
://staging-teach.cdn.ireadabc.com/h5template/
${
name
}
/v
${
last_version
}
/
${
play_url
}
?key=
${
i
+
1
}
`
this
.
templateArr
[
i
].
playUrl
=
this
.
sanitizer
.
bypassSecurityTrustResourceUrl
(
playUrl
);
this
.
templateArr
[
i
].
playUrl
=
this
.
sanitizer
.
bypassSecurityTrustResourceUrl
(
playUrl
);
console
.
log
(
'
playUrl:
'
,
playUrl
);
console
.
log
(
'
playUrl:
'
,
playUrl
);
}
}
...
...
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