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
Show 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{
...
@@ -140,6 +140,7 @@ p{
font-size
:
0.14rem
;
font-size
:
0.14rem
;
color
:
#E03234
;
color
:
#E03234
;
margin-left
:
1.91rem
;
margin-left
:
1.91rem
;
height
:
0.2rem
;
}
}
.img_btn
{
.img_btn
{
width
:
1.18rem
;
width
:
1.18rem
;
...
...
js/jquery.dataStatistics.js
View file @
16cde044
...
@@ -74,7 +74,8 @@ $.fn.dataStatistics = function(options){
...
@@ -74,7 +74,8 @@ $.fn.dataStatistics = function(options){
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
'.img_bg_M'
).
css
(
"background-image"
,
"url(../images/MJ_200@3x.png)"
);
$
(
'.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'
).
css
(
"color"
,
"#FFFFFF"
);
$
(
'.img_btn p'
).
html
(
'活动结束'
)
$
(
'.img_btn p'
).
html
(
'活动结束'
)
$
(
'.box_content_t'
).
hide
()
$
(
'.box_content_t'
).
hide
()
...
@@ -165,9 +166,8 @@ $.fn.dataStatistics = function(options){
...
@@ -165,9 +166,8 @@ $.fn.dataStatistics = function(options){
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
'.img_bg_M'
).
css
(
"background-image"
,
"url(../images/MJ_200@3x.png)"
);
$
(
'.img_bg_M'
).
css
(
"background-image"
,
"url(../images/MJ_200@3x.png)"
);
$
(
".img_bg_M"
).
css
(
"height"
,
"1.46rem"
);
//通过设置CSS属性来设置元素的高
$
(
'.img_bg_p1'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.use_oupon'
).
css
(
'display'
,
"none"
);
$
(
'.img_bg_p2'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_bg_M p'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_btn p'
).
css
(
"color"
,
"#FFFFFF"
);
$
(
'.img_btn p'
).
css
(
"color"
,
"#FFFFFF"
);
$
(
'.img_btn'
).
css
(
"background-color"
,
"#CCCCCC"
);
$
(
'.img_btn'
).
css
(
"background-color"
,
"#CCCCCC"
);
...
@@ -180,25 +180,18 @@ $.fn.dataStatistics = function(options){
...
@@ -180,25 +180,18 @@ $.fn.dataStatistics = function(options){
if
(
res
.
data
.
count
!=
0
){
if
(
res
.
data
.
count
!=
0
){
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
'.img_btn p'
).
html
(
res
.
data
.
redemptionPrice
+
'元抢购'
)
$
(
'.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
{
}
else
{
$
(
".received_img"
).
attr
(
"src"
,
"../images/received@3x.png"
);
$
(
".received_img"
).
attr
(
"src"
,
"../images/received@3x.png"
);
$
(
'.img_btn p'
).
html
(
'去使用'
)
$
(
'.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
{
}
else
{
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
".received_img"
).
attr
(
"src"
,
""
);
$
(
'.img_bg_M'
).
css
(
"background-image"
,
"url(../images/MJ_200@3x.png)"
);
$
(
'.img_bg_M'
).
css
(
"background-image"
,
"url(../images/MJ_200@3x.png)"
);
$
(
".img_bg_M"
).
css
(
"height"
,
"1.46rem"
);
//通过设置CSS属性来设置元素的高
$
(
'.img_bg_p1'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.use_oupon'
).
css
(
'display'
,
"none"
);
$
(
'.img_bg_p2'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_bg_M p'
).
css
(
"color"
,
"#CCCCCC"
);
$
(
'.img_btn p'
).
css
(
"color"
,
"#FFFFFF"
);
$
(
'.img_btn p'
).
css
(
"color"
,
"#FFFFFF"
);
$
(
'.img_btn p'
).
html
(
'活动结束'
)
$
(
'.img_btn p'
).
html
(
'活动结束'
)
$
(
'.box_content_t'
).
hide
()
$
(
'.box_content_t'
).
hide
()
...
...
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