Commit e1512fb6 authored by Edwise's avatar Edwise 🍷

Merge remote-tracking branch 'refs/remotes/origin/jiaoneiqunuan' into jiaoneiqunuan

parents 11c766c5 b8debddb
...@@ -115,10 +115,14 @@ Page({ ...@@ -115,10 +115,14 @@ Page({
hidetime: 0, hidetime: 0,
othername: [], othername: [],
overequest: false, overequest: false,
laststat: "" laststat: "",
firstin: true,
}, },
onLoad(query) { onLoad(query) {
console.log("onLoad========>", query); console.log("onLoad========>", query);
this.setData({
fistin: true
});
if (query && query.laststat) { if (query && query.laststat) {
let laststat = query.laststat; let laststat = query.laststat;
this.setData({ this.setData({
...@@ -272,7 +276,7 @@ Page({ ...@@ -272,7 +276,7 @@ Page({
this.addAttionTxt(attiontxt1); this.addAttionTxt(attiontxt1);
this.updateAct(); this.updateAct();
setTimeout(() => { setTimeout(() => {
this.newAiControl("task", 1,2); this.newAiControl("task", 1, 2);
this.hideSetData(); this.hideSetData();
}, 4000); }, 4000);
}, },
...@@ -583,7 +587,8 @@ Page({ ...@@ -583,7 +587,8 @@ Page({
}, },
onShow() { onShow() {
let laststat = this.data.laststat; let laststat = this.data.laststat;
if (laststat == "normal") { let firstin = this.data.firstin;
if (!firstin) {//laststat == "normal"
let ntime = Date.now(); let ntime = Date.now();
let hidetime = this.data.hidetime; let hidetime = this.data.hidetime;
if (hidetime) { if (hidetime) {
...@@ -606,6 +611,9 @@ Page({ ...@@ -606,6 +611,9 @@ Page({
}) })
} }
} }
this.setData({
firstin: false
});
let ngametime = this.data.gametime; 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) {
...@@ -615,6 +623,7 @@ Page({ ...@@ -615,6 +623,7 @@ Page({
}, },
onHide() { onHide() {
this.hideSetData(); this.hideSetData();
let ntime = Date.now();
this.setData({ this.setData({
hidetime: ntime hidetime: ntime
}); });
......
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