|
|
@@ -508,14 +508,20 @@ export default {
|
|
|
interval = 0
|
|
|
if (carCount < 240) {
|
|
|
carCount++
|
|
|
- // if (carCount % 40 === 0 && dataCount < 6) {
|
|
|
- // self.$emit('returndata', self.data[dataCount++])
|
|
|
- // }
|
|
|
self.car.offsetX = carCount * -1
|
|
|
self.beam.offsetX = carCount * -1
|
|
|
+ if (carCount % 40 === 0 && dataCount < 6) {
|
|
|
+ if (self.data.length > dataCount) {
|
|
|
+ self.$emit('returndata', self.data[dataCount++])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // if ((carCount + 1) % (240 / staticData.length) === 0) {
|
|
|
+ // self.$emit('returndata', self.data[dataCount])
|
|
|
+ // dataCount
|
|
|
+ // }
|
|
|
} else {
|
|
|
if (bhookLinesCount < 22) {
|
|
|
- if (bhookLinesCount % 22 === 0 && dataCount < 8) {
|
|
|
+ if (bhookLinesCount % 11 === 0 && dataCount < 9) {
|
|
|
if (self.data.length > dataCount) {
|
|
|
self.$emit('returndata', self.data[dataCount++])
|
|
|
}
|
|
|
@@ -529,7 +535,7 @@ export default {
|
|
|
child[3].attrs.points[1] = 139 + bhookLinesCount
|
|
|
} else {
|
|
|
if (bhooksCount < 200) {
|
|
|
- if (bhooksCount % 80 === 0 && dataCount < 10) {
|
|
|
+ if (bhooksCount % 20 === 0 && dataCount < 20) {
|
|
|
if (self.data.length > dataCount) {
|
|
|
self.$emit('returndata', self.data[dataCount++])
|
|
|
}
|
|
|
@@ -539,7 +545,7 @@ export default {
|
|
|
self.beam.offsetX = self.beam.offsetX - 1
|
|
|
} else {
|
|
|
if (fhookLinesCount < 22) {
|
|
|
- if (fhookLinesCount % 22 === 0 && dataCount < 12) {
|
|
|
+ if (fhookLinesCount % 11 === 0 && dataCount < 30) {
|
|
|
if (self.data.length > dataCount) {
|
|
|
self.$emit('returndata', self.data[dataCount++])
|
|
|
}
|
|
|
@@ -553,7 +559,7 @@ export default {
|
|
|
child1[3].attrs.points[1] = 139 + fhookLinesCount
|
|
|
} else {
|
|
|
if (hookCount < 204) {
|
|
|
- if (hookCount % 50 === 0 && dataCount < 15) {
|
|
|
+ if (hookCount % 20 === 0 && dataCount < 40) {
|
|
|
if (self.data.length > dataCount) {
|
|
|
self.$emit('returndata', self.data[dataCount++])
|
|
|
}
|
|
|
@@ -565,7 +571,7 @@ export default {
|
|
|
self.car.offsetX += 1
|
|
|
} else {
|
|
|
if (returnhookCount < 70) {
|
|
|
- if (hookCount % 70 === 0 && dataCount < 17) {
|
|
|
+ if (hookCount % 10 === 0 && dataCount < 50) {
|
|
|
if (self.data.length > dataCount) {
|
|
|
self.$emit('returndata', self.data[dataCount++])
|
|
|
}
|