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
1f68c6eb
Commit
1f68c6eb
authored
Oct 18, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增数据存储
parent
e63929e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
pagegamemain.js
taobao_jn/client/pages/pagegamemain/pagegamemain.js
+22
-3
No files found.
taobao_jn/client/pages/pagegamemain/pagegamemain.js
View file @
1f68c6eb
...
@@ -669,6 +669,7 @@ Page({
...
@@ -669,6 +669,7 @@ Page({
let
avatar4
=
this
.
data
.
avatar4
;
let
avatar4
=
this
.
data
.
avatar4
;
let
othername
=
this
.
data
.
othername
;
let
othername
=
this
.
data
.
othername
;
let
overequest
=
this
.
data
.
overequest
;
let
overequest
=
this
.
data
.
overequest
;
let
{
linvite
,
ltool
,
lfollow
,
lsign
,
lcollect
,
lbrowseGoods
}
=
this
.
data
;
let
ntime
=
Date
.
now
();
let
ntime
=
Date
.
now
();
...
@@ -688,6 +689,12 @@ Page({
...
@@ -688,6 +689,12 @@ Page({
othername
:
othername
,
othername
:
othername
,
overequest
:
overequest
,
overequest
:
overequest
,
hidetime
:
ntime
,
hidetime
:
ntime
,
linvite
:
linvite
,
ltool
:
ltool
,
lfollow
:
lfollow
,
lsign
:
lsign
,
lcollect
:
lcollect
,
lbrowseGoods
:
lbrowseGoods
}
}
})
})
},
},
...
@@ -1429,7 +1436,7 @@ Page({
...
@@ -1429,7 +1436,7 @@ Page({
async
lastgameover
(
lgamedata
,
nowTime
)
{
async
lastgameover
(
lgamedata
,
nowTime
)
{
console
.
log
(
"直接结束========》"
);
console
.
log
(
"直接结束========》"
);
let
{
let
{
roomdata
,
roomnums
,
tooltime
,
canwin
,
step
,
startime
,
endtime
,
avatar2
,
avatar3
,
avatar4
,
othername
,
overequest
,
hidetime
roomdata
,
roomnums
,
tooltime
,
canwin
,
step
,
startime
,
endtime
,
avatar2
,
avatar3
,
avatar4
,
othername
,
overequest
,
hidetime
,
linvite
,
ltool
,
lfollow
,
lsign
,
lcollect
,
lbrowseGoods
}
=
lgamedata
;
}
=
lgamedata
;
this
.
setData
({
this
.
setData
({
avatar1
:
app
.
avatar
,
avatar1
:
app
.
avatar
,
...
@@ -1446,6 +1453,12 @@ Page({
...
@@ -1446,6 +1453,12 @@ Page({
showtooltime
:
this
.
changeshowtime
(
tooltime
),
showtooltime
:
this
.
changeshowtime
(
tooltime
),
startime
:
Number
(
startime
),
startime
:
Number
(
startime
),
endtime
:
Number
(
endtime
),
endtime
:
Number
(
endtime
),
linvite
:
linvite
,
ltool
:
ltool
,
lfollow
:
lfollow
,
lsign
:
lsign
,
lcollect
:
lcollect
,
lbrowseGoods
:
lbrowseGoods
});
});
this
.
updateActInfo
(
"last"
);
this
.
updateActInfo
(
"last"
);
this
.
updateAiInfo
();
this
.
updateAiInfo
();
...
@@ -1455,7 +1468,7 @@ Page({
...
@@ -1455,7 +1468,7 @@ Page({
//恢复上局游戏
//恢复上局游戏
async
lastgamereset
(
lgamedata
,
nowTime
)
{
async
lastgamereset
(
lgamedata
,
nowTime
)
{
let
{
let
{
roomdata
,
roomnums
,
tooltime
,
canwin
,
step
,
startime
,
endtime
,
avatar2
,
avatar3
,
avatar4
,
othername
,
toolcd
,
overequest
,
hidetime
roomdata
,
roomnums
,
tooltime
,
canwin
,
step
,
startime
,
endtime
,
avatar2
,
avatar3
,
avatar4
,
othername
,
toolcd
,
overequest
,
hidetime
,
linvite
,
ltool
,
lfollow
,
lsign
,
lcollect
,
lbrowseGoods
}
=
lgamedata
;
}
=
lgamedata
;
let
gameatime
=
Math
.
floor
((
Number
(
endtime
)
-
Number
(
nowTime
))
/
1000
);
let
gameatime
=
Math
.
floor
((
Number
(
endtime
)
-
Number
(
nowTime
))
/
1000
);
...
@@ -1477,7 +1490,13 @@ Page({
...
@@ -1477,7 +1490,13 @@ Page({
endtime
:
Number
(
endtime
),
endtime
:
Number
(
endtime
),
othername
:
othername
,
othername
:
othername
,
overequest
:
overequest
,
overequest
:
overequest
,
hidetime
:
hidetime
hidetime
:
hidetime
,
linvite
:
linvite
,
ltool
:
ltool
,
lfollow
:
lfollow
,
lsign
:
lsign
,
lcollect
:
lcollect
,
lbrowseGoods
:
lbrowseGoods
});
});
this
.
updateActInfo
(
"last"
);
this
.
updateActInfo
(
"last"
);
...
...
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