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
e040cab4
Commit
e040cab4
authored
Oct 18, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码暂存
parent
157d8d61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
pagegamemain.js
taobao_jn/client/pages/pagegamemain/pagegamemain.js
+9
-7
No files found.
taobao_jn/client/pages/pagegamemain/pagegamemain.js
View file @
e040cab4
...
...
@@ -238,7 +238,7 @@ Page({
roomdata
:
roomdata
,
attionlist
:
[],
showattionlist
:
[],
canwin
:
canwin
,
canwin
:
false
,
//
canwin,
isfirst
:
true
,
gametime
:
gameatime
,
tooltime
:
tooltime
,
...
...
@@ -271,9 +271,10 @@ Page({
let
attiontxt1
=
"游戏开始啦,共有"
+
this
.
data
.
roomnums
+
"名玩家加入游戏,快来升温队伍拿奖励吧。"
;
this
.
addAttionTxt
(
attiontxt1
);
this
.
updateAct
();
// setTimeout(() => {
// this.newAiControl("invite", 1);
// }, 4000);
setTimeout
(()
=>
{
this
.
newAiControl
(
"task"
,
1
,
2
);
this
.
hideSetData
();
},
4000
);
},
//新ai逻辑,tool==使用道具,task==任务,invite==邀请人
async
newAiControl
(
type
=
"tool"
,
ainum
=
1
,
aiwarm
=
0
)
{
...
...
@@ -924,8 +925,9 @@ Page({
})
if
(
success
)
{
const
{
total
,
invite
,
tool
,
follow
,
sign
,
collect
,
browseGoods
}
=
data
;
const
{
total
,
invite
,
tool
,
follow
,
sign
,
collect
Goods
,
browseGoods
}
=
data
;
let
ridx
=
this
.
data
.
myidx
;
let
collect
=
collectGoods
;
let
nwd
=
this
.
data
.
roomdata
[
ridx
-
1
][
"wd"
]
||
0
;
if
(
total
>
nwd
)
{
this
.
updateRolewd
(
ridx
,
total
);
...
...
@@ -1393,7 +1395,7 @@ Page({
step
:
step
,
roomnums
:
roomnums
,
roomdata
:
roomdata
,
canwin
:
canwin
,
canwin
:
false
,
//
canwin,
gametime
:
0
,
gametimeshow
:
this
.
changeshowtime
(
0
),
tooltime
:
tooltime
,
...
...
@@ -1422,7 +1424,7 @@ Page({
step
:
step
,
roomnums
:
roomnums
,
roomdata
:
roomdata
,
canwin
:
canwin
,
canwin
:
false
,
//
canwin,
gametime
:
gameatime
,
gametimeshow
:
this
.
changeshowtime
(
gameatime
),
tooltime
:
tooltime
,
...
...
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