Commit 4b78d519 authored by twj's avatar twj

twj

parent 6b99c5bc
......@@ -360,7 +360,7 @@
var data = {};
data.page = '0';
data.limit = '20';
data.limit = '200';
if (ajax_zt) {
ajax_zt = false;
......@@ -389,11 +389,11 @@
} else {
that.items = result['data']['order_list'];
}
// if ($("#downpaly").find("li").length - max_id < 5) {
// if (result['data']['order_list'].length > 0) {
// that.items = that.items.concat(result['data']['order_list']);
// }
// }
if ($("#downpaly").find("li").length - max_id < 5) {
if (result['data']['order_list'].length > 0) {
that.items = that.items.concat(result['data']['order_list']);
}
}
}, error: function () {
ajax_zt = true;
}
......@@ -415,14 +415,14 @@
get_sou = false;
}
},
mounted() {
// for (var i = 0; i < 20; i++) {
// $("#downpaly").find("li[a_id='" + i + "']").show();
// mounted() {
// // for (var i = 0; i < 20; i++) {
// // $("#downpaly").find("li[a_id='" + i + "']").show();
// // }
// },
// beforeDestroy() {
// clearInterval(this.timer);
// }
},
beforeDestroy() {
clearInterval(this.timer);
}
})
......@@ -439,7 +439,7 @@
function init(o) {
this.id = o.id;
this.at = o.auto ? o.auto : 1;
this.at = o.auto ? o.auto : 10;
this.o = 0;
this.pos();
......@@ -531,10 +531,10 @@
}
return init;
}();
function range(min, max) {
return 1
//return parseInt(Math.random() * (max - min + 1) + min)
}
// function range(min, max) {
// return 1
// //return parseInt(Math.random() * (max - min + 1) + min)
// }
new downpaly({
id: 'downpaly'
});
......
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