Commit 16cde044 authored by Mac's avatar Mac

修改样式

parent a0d56b9f
...@@ -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;
......
...@@ -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()
...@@ -224,7 +217,7 @@ $.fn.dataStatistics = function(options){ ...@@ -224,7 +217,7 @@ $.fn.dataStatistics = function(options){
},(difference+5)*1000) //5s请求一次接口 },(difference+5)*1000) //5s请求一次接口
$('.img_btn').click(function () { $('.img_btn').click(function () {
if($('.img_btn p').css('color')=='rgb(224, 50, 52)'){ //判断按钮是否可以点击 if($('.img_btn p').css('color')=='rgb(224, 50, 52)'){ //判断按钮是否可以点击
if( options.count !=0){ //判断是可以抢购 if( options.count !=0){ //判断是可以抢购
if(options.platform == 'App'){ if(options.platform == 'App'){
...@@ -253,7 +246,7 @@ $.fn.dataStatistics = function(options){ ...@@ -253,7 +246,7 @@ $.fn.dataStatistics = function(options){
clearInterval(timer3) //2,执行动画之后清除timer3 clearInterval(timer3) //2,执行动画之后清除timer3
},difference*1000) },difference*1000)
let title ='200元' + $('.img_bg_p1').html(); let title ='200元' + $('.img_bg_p1').html();
let data = { let data = {
'action' : 'jump', // showToast->一个提示信息 showHud->一个黑色的loading 'action' : 'jump', // showToast->一个提示信息 showHud->一个黑色的loading
......
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