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
5040cb22
Commit
5040cb22
authored
Oct 15, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
b52620cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
pagegamemain.js
taobao_jn/client/pages/pagegamemain/pagegamemain.js
+9
-6
No files found.
taobao_jn/client/pages/pagegamemain/pagegamemain.js
View file @
5040cb22
...
...
@@ -267,7 +267,7 @@ Page({
if
(
havechao
)
{
//已经有超过的了,可操作
let
math1
=
Math
.
random
();
// console.log("已经有超过得了,可选使用", math1);
if
(
math1
<
0.8
&&
type
!=
"tool"
)
{
if
(
math1
<
0.8
&&
type
!=
"tool"
)
{
idoact
=
false
;
}
}
else
{
//必操作
...
...
@@ -277,7 +277,7 @@ Page({
if
(
idoact
)
{
if
(
type
==
"tool"
)
{
// if (chawd + toolwarm > 0) {
bido
.
push
([
"tool"
,
1
]);
bido
.
push
([
"tool"
,
1
]);
// }
}
if
(
type
==
"task"
)
{
...
...
@@ -474,7 +474,7 @@ Page({
},
onShow
()
{
let
ngametime
=
this
.
data
.
gametime
;
if
((
this
.
data
.
isnew
>
0
&&
this
.
data
.
isnew
<
7
)
||
this
.
data
.
show_v
!=
2
||
ngametime
<=
0
)
{
if
((
this
.
data
.
isnew
>
0
&&
this
.
data
.
isnew
<
7
)
||
this
.
data
.
show_v
!=
2
||
ngametime
<=
0
)
{
return
;
}
this
.
updateActInfo
();
...
...
@@ -669,11 +669,14 @@ Page({
},
//升温
updateRolewd
(
ridx
,
rwd
)
{
let
mv
=
paples
[
ridx
-
1
]
if
(
mv
&&
rwd
)
{
mv
.
gotoAndPlay
(
1
);
for
(
let
i
=
0
;
i
<
paples
.
length
;
i
++
)
{
let
mv
=
paples
[
i
]
if
(
mv
&&
rwd
)
{
mv
.
gotoAndPlay
(
1
);
}
}
this
.
data
.
roomdata
[
ridx
-
1
][
"wd"
]
=
rwd
;
let
ndata
=
this
.
data
.
roomdata
;
this
.
setData
({
...
...
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