Commit cbd577e0 authored by Tt's avatar Tt

修改上传数据

parent 936993f0
......@@ -84,10 +84,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 准备开始
private layout_begin: cc.Node;
private layout_question: cc.Node;
private orgData: any;
initData() {
// 所有全局变量 默认都是null
this._cantouch = true;
let data = this.data;
this.orgData = data;
this.data = this.data.questions[0]
}
initView() {
......@@ -122,9 +124,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
sendData(score) {
return new Promise(res => {
let upData: any = {
word_count: this.data.word_count,
sentence_count: this.data.sentence_count,
zi_count: this.data.zi_count,
word_count: this.orgData.word_count,
sentence_count: this.orgData.sentence_count,
zi_count: this.orgData.zi_count,
score: score,
};
let recordList = pg.hw.getRecord();
......
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