Commit 3b5e0333 by 肖康

x

parent 96c4e2f9
Showing with 9 additions and 4 deletions
......@@ -380,6 +380,11 @@
var daily_order_list = data.daily_order || []
var daily_search_list = data.daily_search || []
charts.rankData(daily_search_list, daily_order_list)
$("#plat_sku_sum").text(data.plat_sku_sum)
$("#plat_supply_sum").text(data.plat_supply_sum)
$("#supply_brand_num").text(data.supply_brand_num)
$("#supply_class_num").text(data.supply_class_num)
}
});
......@@ -387,11 +392,11 @@
//随机动画
randomAnimate() {
var comma_separator_number_step = $.animateNumber.numberStepFactories.separator(',');
console.log(1)
var radm_num = Math.floor(Math.random() * ($(".row li .t1").length - 0)) + 0;
var radm_num = Math.floor(Math.random() * ($(".data-top .row li .t1").length - 0)) + 0;
var num_=Number($($(".row li .t1")[radm_num]).attr("numbers"))
if(num_>0){
$($(".row li .t1")[radm_num]).prop('number', Math.ceil(num_ / 2)).animateNumber({
$($(".data-top .row li .t1")[radm_num]).prop('number', Math.ceil(num_ / 2)).animateNumber({
number: num_,
numberStep: comma_separator_number_step
},500);
......@@ -430,7 +435,7 @@
},
numberScroll: function (data) {
var comma_separator_number_step = $.animateNumber.numberStepFactories.separator(',');
$(".row li .t1").each(function () {
$(".data-top .row li .t1").each(function () {
var id_name = $(this).attr("id");
if ($(this).text() != data[id_name]) {
$(this).attr("numbers", data[id_name]).prop('number', $(this).text()).animateNumber({
......
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 sign in to comment