Commit 1f68c6eb authored by zhangjinzhou's avatar zhangjinzhou

新增数据存储

parent e63929e1
...@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment