Commit f880511b authored by liujiaxin's avatar liujiaxin

number

parent 10565e03
...@@ -355,6 +355,12 @@ cc.Class({ ...@@ -355,6 +355,12 @@ cc.Class({
itemArr: null, itemArr: null,
isSkipItem(item) {
return !item.accompany_audio_url
|| !item.pic_url
|| !item.lrcData
|| !item.lrcData.audio_url
},
initItem() { initItem() {
this.itemArr = []; this.itemArr = [];
...@@ -369,7 +375,10 @@ cc.Class({ ...@@ -369,7 +375,10 @@ cc.Class({
let baseY = py = 80 * this._mapScaleMin; let baseY = py = 80 * this._mapScaleMin;
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
console.log(`arr[${i}]`, arr[i]);
if (this.isSkipItem(arr[i])) {
continue
}
const item = this.setOneSongItem(arr[i]); const item = this.setOneSongItem(arr[i]);
item.x = px; item.x = px;
item.y = py; item.y = py;
......
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