mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-16 14:22:48 +00:00
更新秒杀列表倒计时错误
This commit is contained in:
parent
2aea69784d
commit
14e1d696e7
@ -116,9 +116,11 @@ class StoreOrder extends ModelBasic
|
|||||||
}else if($item['paid']==1 && $item['status']==1 && $item['refund_status']==0){
|
}else if($item['paid']==1 && $item['status']==1 && $item['refund_status']==0){
|
||||||
$item['status_name']='待收货';
|
$item['status_name']='待收货';
|
||||||
}else if($item['paid']==1 && $item['status']==2 && $item['refund_status']==0){
|
}else if($item['paid']==1 && $item['status']==2 && $item['refund_status']==0){
|
||||||
$item['status_name']='待评价';
|
$item['status_name']='已收货';
|
||||||
}else if($item['paid']==1 && $item['status']==3 && $item['refund_status']==0){
|
}else if($item['paid']==1 && $item['status']==3 && $item['refund_status']==0){
|
||||||
$item['status_name']='待评价';
|
$item['status_name']='待评价';
|
||||||
|
}else if($item['paid']==1 && $item['status']==4 && $item['refund_status']==0){
|
||||||
|
$item['status_name']='已完成';
|
||||||
}else if($item['paid']==1 && $item['refund_status']==1){
|
}else if($item['paid']==1 && $item['refund_status']==1){
|
||||||
$item['status_name']=<<<HTML
|
$item['status_name']=<<<HTML
|
||||||
<b style="color:#f124c7">申请退款</b><br/>
|
<b style="color:#f124c7">申请退款</b><br/>
|
||||||
|
|||||||
@ -89,6 +89,26 @@
|
|||||||
{block name="script"}
|
{block name="script"}
|
||||||
<script src="{__ADMIN_PATH}js/layuiList.js"></script>
|
<script src="{__ADMIN_PATH}js/layuiList.js"></script>
|
||||||
<script src="{__FRAME_PATH}js/content.min.js?v=1.0.0"></script>
|
<script src="{__FRAME_PATH}js/content.min.js?v=1.0.0"></script>
|
||||||
|
<script>
|
||||||
|
setTime();
|
||||||
|
function setTime() {
|
||||||
|
setTimeout(function () {
|
||||||
|
$eb.axios.get("{:Url('get_seckill_id')}").then(function(res){
|
||||||
|
$.each(res.data.count,function (index,item) {
|
||||||
|
var time = $('.count-time-'+item).attr('data-time');
|
||||||
|
if(time != ''){
|
||||||
|
$('.count-time-'+item).downCount({
|
||||||
|
date: time,
|
||||||
|
offset: +8
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}).catch(function(err){
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
},2000);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<script>
|
<script>
|
||||||
layList.form.render();
|
layList.form.render();
|
||||||
layList.tableList('seckillList',"{:Url('get_seckill_list')}",function () {
|
layList.tableList('seckillList',"{:Url('get_seckill_list')}",function () {
|
||||||
@ -106,18 +126,6 @@
|
|||||||
{field: 'right', title: '操作', width: '5%', align: 'center', toolbar: '#barDemo',unresize:true}
|
{field: 'right', title: '操作', width: '5%', align: 'center', toolbar: '#barDemo',unresize:true}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
setTime();
|
|
||||||
window.$seckillId = <?php echo json_encode($seckillId);?>;
|
|
||||||
function setTime() {
|
|
||||||
setTimeout(function () {
|
|
||||||
$.each($seckillId,function (index,item) {
|
|
||||||
$('.count-time-'+item).downCount({
|
|
||||||
date: $('.count-time-'+item).attr('data-time'),
|
|
||||||
offset: +8
|
|
||||||
});
|
|
||||||
})
|
|
||||||
},3000);
|
|
||||||
}
|
|
||||||
layList.tool(function (event,data,obj) {
|
layList.tool(function (event,data,obj) {
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case 'delstor':
|
case 'delstor':
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
<div class="page-index" id="app-index">
|
<div class="page-index" id="app-index">
|
||||||
<section ref="bsDom">
|
<section ref="bsDom">
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<!--<div class="search-wrapper">
|
<!--<div class="search-wrapper">
|
||||||
<form method="post" @submit.prevent="goSearch">
|
<form method="post" @submit.prevent="goSearch">
|
||||||
<div class="search-box flex"><input type="text" v-model="keyword" placeholder="商品搜索: 请输入商品关键词"> <a
|
<div class="search-box flex"><input type="text" v-model="keyword" placeholder="商品搜索: 请输入商品关键词"> <a
|
||||||
@ -93,6 +93,8 @@
|
|||||||
<li class="flex">
|
<li class="flex">
|
||||||
<div class="picture"><img src="{$vo.image}" alt="">
|
<div class="picture"><img src="{$vo.image}" alt="">
|
||||||
<div class="count-down flex countdown" data-time="{$vo.stop_time|date='Y/m/d H:i:s',###}">
|
<div class="count-down flex countdown" data-time="{$vo.stop_time|date='Y/m/d H:i:s',###}">
|
||||||
|
<span class="days">00</span>
|
||||||
|
<em>:</em>
|
||||||
<span class="hours">00</span>
|
<span class="hours">00</span>
|
||||||
<em>:</em>
|
<em>:</em>
|
||||||
<span class="minutes">00</span>
|
<span class="minutes">00</span>
|
||||||
|
|||||||
@ -25,6 +25,8 @@
|
|||||||
<p class="count-wrappr"><span>限量{$vo.stock}件</span> <span class="old-price">市场价:{$vo.ot_price}</span></p>
|
<p class="count-wrappr"><span>限量{$vo.stock}件</span> <span class="old-price">市场价:{$vo.ot_price}</span></p>
|
||||||
<div class="time-wrapper">
|
<div class="time-wrapper">
|
||||||
<div class="countdown" data-time="{$vo.stop_time|date='Y/m/d H:i:s',###}">
|
<div class="countdown" data-time="{$vo.stop_time|date='Y/m/d H:i:s',###}">
|
||||||
|
<span class="days" style="background-color: #ec0707; width:.40rem;">00</span>
|
||||||
|
<i>:</i>
|
||||||
<span class="hours" style="background-color: #ec0707; width:.40rem;">00</span>
|
<span class="hours" style="background-color: #ec0707; width:.40rem;">00</span>
|
||||||
<i>:</i>
|
<i>:</i>
|
||||||
<span class="minutes" style="background-color: #ec0707; width:.40rem;">00</span>
|
<span class="minutes" style="background-color: #ec0707; width:.40rem;">00</span>
|
||||||
|
|||||||
@ -981,7 +981,7 @@ label.skin-lable{position:absolute;right:.24rem;top:.33rem;z-index:2}
|
|||||||
.page-index .hotspike-list ul li .picture .count-down{position:absolute;bottom:0;left:0;width:100%;height:.5rem;background-color:rgba(238,238,238,.6);font-size:0;-webkit-box-align:center;-moz-box-align:center;-o-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-moz-box-pack:center;-o-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}
|
.page-index .hotspike-list ul li .picture .count-down{position:absolute;bottom:0;left:0;width:100%;height:.5rem;background-color:rgba(238,238,238,.6);font-size:0;-webkit-box-align:center;-moz-box-align:center;-o-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-moz-box-pack:center;-o-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}
|
||||||
.page-index .hotspike-list ul li .picture .count-down em,.page-index .hotspike-list ul li .picture .count-down span{font-size:.22rem}
|
.page-index .hotspike-list ul li .picture .count-down em,.page-index .hotspike-list ul li .picture .count-down span{font-size:.22rem}
|
||||||
.page-index .hotspike-list ul li .picture .count-down span{width:.32rem;height:.32rem;border-radius:3px;background-color:#333;color:#fff;text-align:center;line-height:.32rem}
|
.page-index .hotspike-list ul li .picture .count-down span{width:.32rem;height:.32rem;border-radius:3px;background-color:#333;color:#fff;text-align:center;line-height:.32rem}
|
||||||
.page-index .hotspike-list ul li .picture .count-down em{width:.22rem;text-align:center}
|
.page-index .hotspike-list ul li .picture .count-down em{width:.12rem;text-align:center}
|
||||||
.page-index .hotspike-list ul li .text-info{width:4.15rem;height:1.9rem;-webkit-box-orient:vertical;-moz-box-orient:vertical;-o-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-moz-box-pack:center;-o-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}
|
.page-index .hotspike-list ul li .text-info{width:4.15rem;height:1.9rem;-webkit-box-orient:vertical;-moz-box-orient:vertical;-o-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-moz-box-pack:center;-o-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}
|
||||||
.page-index .hotspike-list ul li .text-info .title{display:-webkit-box;display:-moz-box;overflow:hidden;line-height:1.5;-webkit-box-orient:vertical;-moz-box-orient:vertical;-webkit-line-clamp:2;-moz-line-clamp:2}
|
.page-index .hotspike-list ul li .text-info .title{display:-webkit-box;display:-moz-box;overflow:hidden;line-height:1.5;-webkit-box-orient:vertical;-moz-box-orient:vertical;-webkit-line-clamp:2;-moz-line-clamp:2}
|
||||||
.page-index .hotspike-list ul li .text-info .price-wrapper{margin:.2rem 0}
|
.page-index .hotspike-list ul li .text-info .price-wrapper{margin:.2rem 0}
|
||||||
@ -1136,7 +1136,7 @@ label.skin-lable{position:absolute;right:.24rem;top:.33rem;z-index:2}
|
|||||||
.page-index .search-wrapper .search-box .home-btn .count-num{position:absolute;right:-5px;top:-2px;display:block;min-width:8px;height:8px;line-height:10px;text-align:center;background-color:#fff;color:#eb2f32;font-size:10px;border-radius:10px;padding:2px}
|
.page-index .search-wrapper .search-box .home-btn .count-num{position:absolute;right:-5px;top:-2px;display:block;min-width:8px;height:8px;line-height:10px;text-align:center;background-color:#fff;color:#eb2f32;font-size:10px;border-radius:10px;padding:2px}
|
||||||
.page-index .nav{width:100%;padding-bottom:.2rem;background-repeat:no-repeat;-webkit-background-size:100% auto;-moz-background-size:100% auto;background-size:100% auto}
|
.page-index .nav{width:100%;padding-bottom:.2rem;background-repeat:no-repeat;-webkit-background-size:100% auto;-moz-background-size:100% auto;background-size:100% auto}
|
||||||
.page-index .nav ul{-webkit-box-align:center;-moz-box-align:center;-o-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;-webkit-box-lines:multiple;-moz-box-lines:multiple;-o-box-lines:multiple;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}
|
.page-index .nav ul{-webkit-box-align:center;-moz-box-align:center;-o-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;-webkit-box-lines:multiple;-moz-box-lines:multiple;-o-box-lines:multiple;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}
|
||||||
.page-index .nav li{-webkit-box-flex:1;-moz-box-flex:1;-o-box-flex:1;box-flex:1;-webkit-flex:1 25%;-ms-flex:1 25%;flex:1 25%;margin-top:.2rem;text-align:center}
|
.page-index .nav li{-webkit-box-flex:1;-moz-box-flex:1;-o-box-flex:1;box-flex:1;-webkit-flex:1 20%;-ms-flex:1 20%;flex:1 20%;margin-top:.2rem;text-align:center}
|
||||||
.page-index .nav li img{width:.96rem;height:.96rem;border-radius:50%}
|
.page-index .nav li img{width:.96rem;height:.96rem;border-radius:50%}
|
||||||
.page-index .nav li p{margin-top:.1rem;font-size:.22rem}
|
.page-index .nav li p{margin-top:.1rem;font-size:.22rem}
|
||||||
.common-slider-nav{background-color:#fff;overflow:hidden;font-size:.22rem}
|
.common-slider-nav{background-color:#fff;overflow:hidden;font-size:.22rem}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user