diff --git a/app/home/view/default/base/mall_footer.html b/app/home/view/default/base/mall_footer.html
index 2e199bcc..61ea2661 100644
--- a/app/home/view/default/base/mall_footer.html
+++ b/app/home/view/default/base/mall_footer.html
@@ -86,12 +86,12 @@
@@ -245,7 +245,33 @@
setTimeout(function() {
$(".form-wrap9").removeClass('show');
}, 100);
- })
+ })
+ $(".copy-btn-01").click(function () {
+ var copy_text = $(".copy-txt-01").text(); //需要复制的内容
+ var y = $(this).offset().top - 32,
+ x = $(this).offset().left + 45;
+ copyText(copy_text);
+ //复制成功后提示文字
+ layer.msg("Copy Succeeded");
+ });
+ $(".copy-btn-02").click(function () {
+ var copy_text = $(".copy-txt-02").text(); //需要复制的内容
+ var y = $(this).offset().top - 32,
+ x = $(this).offset().left + 45;
+ copyText(copy_text);
+ //复制成功后提示文字
+ layer.msg("Copy Succeeded");
+ });
+
+ function copyText(text) {
+ var oInput = document.createElement('input');
+ oInput.value = text;
+ document.body.appendChild(oInput);
+ oInput.select();
+ document.execCommand("Copy");
+ oInput.className = 'oInput';
+ oInput.style.display = 'none';
+ }