diff --git a/view/templates/index/after_sale_list.html b/view/templates/index/after_sale_list.html index b3e1154..c643b4a 100644 --- a/view/templates/index/after_sale_list.html +++ b/view/templates/index/after_sale_list.html @@ -163,8 +163,10 @@ layui.use(['element', 'layer', 'util', 'table'], function(){ var clipboard = new ClipboardJS('.admin-table-td-outter-'+tid); clipboard.on('success', function(e) { layer.msg('复制成功', {time:1500}); - clipboard.destroy(); - e.clearSelection(); + if(i < (data.length-2)){ + clipboard.destroy(); + e.clearSelection(); + } }); } } diff --git a/view/templates/index/order_list.html b/view/templates/index/order_list.html index 64596d4..28c5364 100644 --- a/view/templates/index/order_list.html +++ b/view/templates/index/order_list.html @@ -153,8 +153,10 @@ layui.use(['element', 'layer', 'util', 'table'], function(){ var clipboard = new ClipboardJS('.admin-table-td-outter-'+tid); clipboard.on('success', function(e) { layer.msg('复制成功', {time:1500}); - clipboard.destroy(); - e.clearSelection(); + if(i < (data.length-2)){ + clipboard.destroy(); + e.clearSelection(); + } }); } } diff --git a/view/templates/index/wait_deliver_list.html b/view/templates/index/wait_deliver_list.html index ee80fd8..c5e207c 100644 --- a/view/templates/index/wait_deliver_list.html +++ b/view/templates/index/wait_deliver_list.html @@ -31,6 +31,7 @@
待发货列表
导出待发货列表
+
@@ -38,7 +39,6 @@
- @@ -52,6 +52,15 @@ layui.use(['element', 'layer', 'util', 'table'], function(){ ,table = layui.table ,$ = layui.$; + //示例 + var endTime = new Date(2099,1,1).getTime() //假设为结束日期 + ,serverTime = new Date().getTime(); //假设为当前服务器时间,这里采用的是本地时间,实际使用一般是取服务端的 + + util.countdown(endTime, serverTime, function(date, serverTime, timer){ + var str = (date[0]*24 + date[1]) + ':' + date[2] + ':' + date[3]; + layui.$('#test').html('倒计时:'+ str); + }); + util.event('lay-header-event', { menuLeft: function(othis){ var btn = $("#leftEnumIcon"); @@ -145,13 +154,19 @@ layui.use(['element', 'layer', 'util', 'table'], function(){ } for(var i=0; i