Commit 82979703 authored by WangFan's avatar WangFan

修改倒计时开始时的时间

parent 8fd07bc3
......@@ -136,7 +136,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
showTimeUpdate() {
if (!this.startTime) return;
let nowTime = new Date().getTime();
let subTime = this.targetTime - (nowTime - this.startTime) / 1000;
let subTime = this.targetTime - (nowTime - this.startTime) / 1000 + 1;
if (subTime < 0) subTime = 0;
pg.view.visible(this.time_area, true)
......
export const defaultData =
{
"recordFlag": false, "title": "", "questionText": "", "questionTextAudio": "", "questions": [
{ "text": "this is info", "time": 2 },
{ "text": "this is info", "time": 10 },
{ "text": "test some thing.", "time": 10 }], "bgAudio": "", "bgAudioName": "", "audioName": ""
}
// {
......
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