Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
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
wildfirecode13
new_taobao
Commits
14a498b5
Commit
14a498b5
authored
Oct 15, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
b1a2be60
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
45 deletions
+51
-45
pagegamemain.js
taobao_jn/client/pages/pagegamemain/pagegamemain.js
+51
-45
No files found.
taobao_jn/client/pages/pagegamemain/pagegamemain.js
View file @
14a498b5
...
...
@@ -132,7 +132,7 @@ Page({
console
.
log
(
"新手"
,
isnew
,
query
);
let
{
end
,
gl
,
start
,
step
,
toolcd
}
=
query
;
step
=
Number
(
step
);
step
=
3
;
//
step = 3;
gameatime
=
Math
.
floor
((
Number
(
end
)
-
Number
(
start
))
/
1000
);
gtoolcd
=
Number
(
toolcd
);
let
sucgl
=
Number
(
gl
);
...
...
@@ -524,8 +524,8 @@ Page({
},
//升温
updateRolewd
(
ridx
,
rwd
)
{
let
mv
=
paples
[
ridx
-
1
]
if
(
mv
&&
rwd
)
{
let
mv
=
paples
[
ridx
-
1
]
if
(
mv
&&
rwd
)
{
mv
.
gotoAndPlay
(
1
);
}
...
...
@@ -593,8 +593,8 @@ Page({
if
(
success
)
{
const
{
total
,
invite
,
tool
,
follow
,
sign
,
collect
,
browseGoods
}
=
data
;
let
ridx
=
this
.
data
.
myidx
;
let
nwd
=
this
.
data
.
roomdata
[
ridx
-
1
][
"wd"
]
||
0
;
if
(
total
>
nwd
)
{
let
nwd
=
this
.
data
.
roomdata
[
ridx
-
1
][
"wd"
]
||
0
;
if
(
total
>
nwd
)
{
this
.
updateRolewd
(
ridx
,
total
);
}
...
...
@@ -741,7 +741,7 @@ Page({
my
.
redirectTo
({
url
:
'/pages/pagepageindex/pagepageindex'
})
},
//关闭一般弹窗
closenordia
(){
closenordia
()
{
this
.
closetool
();
this
.
closeTask
();
this
.
closeInvite
();
...
...
@@ -873,6 +873,7 @@ Page({
);
//stage初始化
let
addy
=
50
;
let
step
=
this
.
data
.
step
;
stage
.
addEventListener
(
FYGE
.
Event
.
INIT_STAGE
,
()
=>
{
SvgaParser
.
loadSvga
(
paple1
,
...
...
@@ -884,12 +885,12 @@ Page({
console
.
log
(
"svgmv"
,
mv
)
paples
[
0
]
=
mv
;
mv
.
gotoAndStop
(
1
);
mv
.
addEventListener
(
FYGE
.
Event
.
END_FRAME
,
()
=>
{
mv
.
addEventListener
(
FYGE
.
Event
.
END_FRAME
,
()
=>
{
mv
.
gotoAndStop
(
1
);
})
},
(
err
)
=>
{
console
.
log
(
"aa"
,
err
);
console
.
log
(
"aa"
,
err
);
}
)
SvgaParser
.
loadSvga
(
...
...
@@ -902,7 +903,7 @@ Page({
console
.
log
(
"svgmv"
,
mv
);
paples
[
1
]
=
mv
;
mv
.
gotoAndStop
(
1
);
mv
.
addEventListener
(
FYGE
.
Event
.
END_FRAME
,
()
=>
{
mv
.
addEventListener
(
FYGE
.
Event
.
END_FRAME
,
()
=>
{
mv
.
gotoAndStop
(
1
);
})
},
...
...
@@ -910,6 +911,8 @@ Page({
console
.
log
(
err
);
}
)
if
(
step
>
1
)
{
SvgaParser
.
loadSvga
(
paple3
,
(
v
)
=>
{
...
...
@@ -920,7 +923,7 @@ Page({
console
.
log
(
"svgmv"
,
mv
)
paples
[
2
]
=
mv
;
mv
.
gotoAndStop
(
1
);
mv
.
addEventListener
(
FYGE
.
Event
.
END_FRAME
,()
=>
{
mv
.
addEventListener
(
FYGE
.
Event
.
END_FRAME
,
()
=>
{
mv
.
gotoAndStop
(
1
);
})
},
...
...
@@ -928,6 +931,8 @@ Page({
console
.
log
(
err
);
}
)
}
if
(
step
>
2
)
{
SvgaParser
.
loadSvga
(
paple4
,
(
v
)
=>
{
...
...
@@ -938,7 +943,7 @@ Page({
console
.
log
(
"svgmv"
,
mv
)
paples
[
3
]
=
mv
;
mv
.
gotoAndStop
(
1
);
mv
.
addEventListener
(
FYGE
.
Event
.
END_FRAME
,()
=>
{
mv
.
addEventListener
(
FYGE
.
Event
.
END_FRAME
,
()
=>
{
mv
.
gotoAndStop
(
1
);
})
},
...
...
@@ -946,6 +951,7 @@ Page({
console
.
log
(
err
);
}
)
}
},
this
);
//循环
...
...
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