|
|
@@ -181,7 +181,7 @@
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="8" style="padding-right: 20px">
|
|
|
- <div class="title">面试官评价<span><a :href="item.invite_comment_url" style="color:#409EFF" target="_blank">(点击查看评价链接)</a></span></div>
|
|
|
+ <div class="title">面试官评价<span><a :href="item.invite_comment_url" style="color:#409EFF" target="_blank">(点击查看评价链接)</a></span><span class="ma-copy" @click="copy(item.invite_comment_url)">复制</span></div>
|
|
|
|
|
|
<div>
|
|
|
<span class="sub-title">技术栈评分:</span>
|
|
|
@@ -208,7 +208,7 @@
|
|
|
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <div class="title">开发者评价<span><a :href="item.dev_comment_url" target="_blank" style="color:#409EFF">(点击查看评价链接)</a></span></div>
|
|
|
+ <div class="title">开发者评价<span><a :href="item.dev_comment_url" target="_blank" style="color:#409EFF">(点击查看评价链接)</a></span><span class="ma-copy" @click="copy(item.dev_comment_url)">复制</span></div>
|
|
|
|
|
|
<div>
|
|
|
<span class="sub-title">面试定级:</span>
|
|
|
@@ -438,6 +438,27 @@ export default {
|
|
|
}
|
|
|
this.loading = false;
|
|
|
},
|
|
|
+ copy(text){
|
|
|
+ if (navigator.clipboard) {
|
|
|
+ navigator.clipboard.writeText(text);
|
|
|
+ } else {
|
|
|
+ var textarea = document.createElement('textarea');
|
|
|
+ document.body.appendChild(textarea);
|
|
|
+ // 隐藏此输入框
|
|
|
+ textarea.style.position = 'fixed';
|
|
|
+ textarea.style.clip = 'rect(0 0 0 0)';
|
|
|
+ textarea.style.top = '10px';
|
|
|
+ // 赋值
|
|
|
+ textarea.value = text;
|
|
|
+ // 选中
|
|
|
+ textarea.select();
|
|
|
+ // 复制
|
|
|
+ document.execCommand('copy', true);
|
|
|
+ // 移除输入框
|
|
|
+ document.body.removeChild(textarea);
|
|
|
+ }
|
|
|
+ this.$message.success("复制成功")
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
@@ -480,4 +501,7 @@ export default {
|
|
|
.i-content {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
+.ma-copy{
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|