Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
ssy003
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
ssy003
Commits
1a210fbe
Commit
1a210fbe
authored
Jul 13, 2020
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 开始点击骰子报错
parent
a25f89b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
286 additions
and
280 deletions
+286
-280
play.component.ts
src/app/play/play.component.ts
+286
-280
No files found.
src/app/play/play.component.ts
View file @
1a210fbe
...
...
@@ -66,6 +66,7 @@ export class PlayComponent implements OnInit, OnDestroy {
canTouch
=
true
;
curPic
;
private
isStart
:
boolean
;
@
HostListener
(
'
window:resize
'
,
[
'
$event
'
])
onResize
(
event
)
{
...
...
@@ -605,7 +606,7 @@ initImg() {
// this.mapScale = this.canvasHeight / this.canvasBaseH;
this
.
renderArr
=
[];
this
.
isStart
=
false
;
...
...
@@ -803,6 +804,7 @@ bgLayer
}
//点击开始按钮,骰子竖直跳下来,卡片弹出来
if
(
!
this
.
isStart
)
{
if
(
this
.
checkClickTarget
(
this
.
stn
)
&&
(
this
.
b
==
0
))
{
this
.
canTouch
=
false
;
...
...
@@ -814,8 +816,12 @@ bgLayer
},
1600
);
// return;
this
.
isStart
=
true
;
}
return
;
}
//点击重新开始按钮
if
(
this
.
checkClickTarget
(
this
.
retn
)
&&
(
this
.
b
==
1
))
{
this
.
canTouch
=
false
;
...
...
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