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 @@