Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP52
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
OP52
Commits
31fde673
Commit
31fde673
authored
Jul 12, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
cdf9b4a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
OP52.js
assets/OP52/scene/OP52.js
+11
-4
form.component.html
form/src/app/form/form.component.html
+1
-1
No files found.
assets/OP52/scene/OP52.js
View file @
31fde673
...
...
@@ -797,17 +797,24 @@ cc.Class({
},
cardAction
(
card
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
pg
.
audio
.
playAudioByUrlCall
(
card
.
data
.
audio
).
then
((
id
)
=>
{
let
time
=
cc
.
audioEngine
.
getDuration
(
id
);
if
(
card
.
data
.
audio
)
{
pg
.
audio
.
playAudioByUrlCall
(
card
.
data
.
audio
).
then
((
id
)
=>
{
let
time
=
cc
.
audioEngine
.
getDuration
(
id
);
if
(
time
<
0.5
)
time
=
0.5
;
else
if
(
time
>
1
)
time
=
1
;
cc
.
tween
(
card
).
to
(
time
/
2
,
{
scale
:
1.1
}).
to
(
time
/
2
,
{
scale
:
1
}).
call
(()
=>
{
return
resolve
(
""
)
}).
start
();
})
}
else
{
let
time
=
0.8
;
cc
.
tween
(
card
).
to
(
time
/
2
,
{
scale
:
1.1
}).
to
(
time
/
2
,
{
scale
:
1
}).
call
(()
=>
{
return
resolve
(
""
)
}).
start
();
}
);
}
});
},
showSliderAction
(
time
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
card_group
=
cc
.
find
(
"
card_group
"
,
this
.
node
);
let
slider
=
cc
.
find
(
"
slider
"
,
card_group
);
slider
.
acti
on
=
true
;
slider
.
acti
ve
=
true
;
let
handle
=
cc
.
find
(
"
Handle
"
,
slider
);
handle
.
active
=
true
;
let
sl
=
slider
.
getComponent
(
cc
.
Slider
)
...
...
form/src/app/form/form.component.html
View file @
31fde673
...
...
@@ -141,7 +141,7 @@
</div>
<div
style=
"margin:10px"
>
<span>
是否标红
</span>
<nz-radio-group
[(
ngModel
)]="
obj
.
color
"
>
<nz-radio-group
[(
ngModel
)]="
obj
.
color
"
(
ngModelChange
)="
saveItem
()"
>
<label
nz-radio
nzValue=
"1"
>
是
</label>
<label
nz-radio
nzValue=
"0"
>
否
</label>
</nz-radio-group>
...
...
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