Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3b5e0333
authored
May 27, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
96c4e2f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
index.html
index.html
View file @
3b5e0333
...
...
@@ -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
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment