Commit d0925085 authored by zhangjinzhou's avatar zhangjinzhou

代码暂存

parent 716457bc
...@@ -522,9 +522,17 @@ Page({ ...@@ -522,9 +522,17 @@ Page({
if (gametime < 0) { if (gametime < 0) {
gametime = 0; gametime = 0;
} }
let tooltime1 = this.data.tooltime;
tooltime1 -= passtime/1000;
if(tooltime1<0){
tooltime1 = 0;
}
this.setData({ this.setData({
gametime: gametime gametime: gametime,
}); tooltime:tooltime1
})
} }
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) {
......
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