Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SURPRISED
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
华国豪
SURPRISED
Commits
16cde044
Commit
16cde044
authored
Nov 13, 2019
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改样式
parent
a0d56b9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
16 deletions
+10
-16
GT_activities.css
css/GT_activities.css
+1
-0
jquery.dataStatistics.js
js/jquery.dataStatistics.js
+9
-16
No files found.
css/GT_activities.css
View file @
16cde044
...
...
@@ -140,6 +140,7 @@ p{
font-size
:
0.14rem
;
color
:
#E03234
;
margin-left
:
1.91rem
;
height
:
0.2rem
;
}
.img_btn
{
width
:
1.18rem
;
...
...
js/jquery.dataStatistics.js
View file @
16cde044
...
...
@@ -74,7 +74,8 @@ $.fn.dataStatistics = function(options){
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
'.img_bg_M'
).
css
(
"background-image"
,
"url(../images/MJ_200@3x.png)"
);
$
(
'.img_bg_M p'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_bg_p1'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_bg_p2'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_btn p'
).
css
(
"color"
,
"#FFFFFF"
);
$
(
'.img_btn p'
).
html
(
'活动结束'
)
$
(
'.box_content_t'
).
hide
()
...
...
@@ -165,9 +166,8 @@ $.fn.dataStatistics = function(options){
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
'.img_bg_M'
).
css
(
"background-image"
,
"url(../images/MJ_200@3x.png)"
);
$
(
".img_bg_M"
).
css
(
"height"
,
"1.46rem"
);
//通过设置CSS属性来设置元素的高
$
(
'.use_oupon'
).
css
(
'display'
,
"none"
);
$
(
'.img_bg_M p'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_bg_p1'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_bg_p2'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_btn p'
).
css
(
"color"
,
"#FFFFFF"
);
$
(
'.img_btn'
).
css
(
"background-color"
,
"#CCCCCC"
);
...
...
@@ -180,25 +180,18 @@ $.fn.dataStatistics = function(options){
if
(
res
.
data
.
count
!=
0
){
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
'.img_btn p'
).
html
(
res
.
data
.
redemptionPrice
+
'元抢购'
)
$
(
".img_bg_M"
).
css
(
"background-image"
,
"url(../images/M_200@3x.png)"
);
$
(
".img_bg_M"
).
css
(
"height"
,
"1.46rem"
);
//通过设置CSS属性来设置元素的高
$
(
'.use_oupon'
).
css
(
'display'
,
"none"
);
}
else
{
$
(
".received_img"
).
attr
(
"src"
,
"../images/received@3x.png"
);
$
(
'.img_btn p'
).
html
(
'去使用'
)
$
(
".img_bg_M"
).
css
(
"background-image"
,
"url(../images/M_200_2.png)"
);
$
(
".img_bg_M"
).
css
(
"height"
,
"2.14rem"
);
//通过设置CSS属性来设置元素的高
$
(
'.use_oupon'
).
css
(
'display'
,
"flex"
);
}
}
else
{
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
'.img_bg_M'
).
css
(
"background-image"
,
"url(../images/MJ_200@3x.png)"
);
$
(
".img_bg_M"
).
css
(
"height"
,
"1.46rem"
);
//通过设置CSS属性来设置元素的高
$
(
'.use_oupon'
).
css
(
'display'
,
"none"
);
$
(
'.img_bg_M p'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_bg_p1'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_bg_p2'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_btn p'
).
css
(
"color"
,
"#FFFFFF"
);
$
(
'.img_btn p'
).
html
(
'活动结束'
)
$
(
'.box_content_t'
).
hide
()
...
...
@@ -224,7 +217,7 @@ $.fn.dataStatistics = function(options){
},(
difference
+
5
)
*
1000
)
//5s请求一次接口
$
(
'.img_btn'
).
click
(
function
()
{
if
(
$
(
'.img_btn p'
).
css
(
'color'
)
==
'rgb(224, 50, 52)'
){
//判断按钮是否可以点击
if
(
options
.
count
!=
0
){
//判断是可以抢购
if
(
options
.
platform
==
'App'
){
...
...
@@ -253,7 +246,7 @@ $.fn.dataStatistics = function(options){
clearInterval
(
timer3
)
//2,执行动画之后清除timer3
},
difference
*
1000
)
let
title
=
'200元'
+
$
(
'.img_bg_p1'
).
html
();
let
title
=
'200元'
+
$
(
'.img_bg_p1'
).
html
();
let
data
=
{
'action'
:
'jump'
,
// showToast->一个提示信息 showHud->一个黑色的loading
...
...
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