Browse Source

抽奖结束的异常提示处理

master
左文祺 8 years ago
parent
commit
810c8cce85
  1. 5
      src/static/js/index.js
  2. 1
      src/static/manage.js

5
src/static/js/index.js

@ -178,6 +178,11 @@ class Index {
if (resp.status === 200) { if (resp.status === 200) {
this.stopLottery(resp.data); this.stopLottery(resp.data);
this.running = false; this.running = false;
}else{
this.running=false;
this.canvas3DTagCloud.stop();
layer.alert(resp.msg);
} }
}); });
}); });

1
src/static/manage.js

@ -79,6 +79,7 @@ $(function () {
BS.fetch('/reset').then(resp => { BS.fetch('/reset').then(resp => {
if (resp.status === 200) { if (resp.status === 200) {
layer.close(index); layer.close(index);
window.location.reload(1);
} }
}); });
}); });

Loading…
Cancel
Save