diff --git a/templates/index.html b/templates/index.html
index e02c17e..1b049cd 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -29,14 +29,16 @@
border-radius: 20px;
}
-
+ .el-card {
+ border-radius: 20px;
+ }
-
+
-
-
-
+
+
+
@@ -107,7 +109,6 @@
-
+
+
+
@@ -187,7 +191,10 @@
${ file.name }
- 取件码:${ file.code }
+ 取件码:
+
+ ${ file.code }
+
@@ -292,6 +299,21 @@
})
})
},
+ copyCode: function (value) {
+ const input = document.createElement('input');
+ input.setAttribute('readonly', 'readonly');
+ input.setAttribute('value', `我在${window.location.href}分享了给你文件,取件码:${value}`);
+ document.body.appendChild(input);
+ input.select();
+ if (document.execCommand('copy')) {
+ document.execCommand('copy');
+ this.$message({
+ message: '复制成功,快去分享给你的朋友吧',
+ type: 'success'
+ });
+ }
+ document.body.removeChild(input);
+ },
getFile: function () {
const that = this;
this.http('post', `?code=${that.code}`).then(res => {