This commit is contained in:
徐哼唧L
2023-06-07 09:22:26 +08:00
parent d20483d6e2
commit 186cc1b552
24 changed files with 3062 additions and 345 deletions

View File

@@ -103,6 +103,24 @@
v-if="this.coreTable.g_author==''">Certified</el-button>
</div>
</div>
<div v-if="this.coreTable.code!=''">
<div class="expTit">
Invitation code
<!-- <el-popover placement="top-start" width="300" trigger="hover"
content="If you invite users to submit, please fill in your invitation code.">
<span slot="reference">
<i class="el-icon-info" style="color: #ef8429;font-size: 18px;cursor: pointer;"></i>
</span>
</el-popover> -->
:
</div>
<div class="expInde" style="display: flex;">
<p style="font-weight: bold;color: #006699;margin-right: 10px;">{{this.coreTable.code}}</p>
<!-- <p style="margin: 0 0 0 10px;">(56)</p> -->
<el-button type="primary" @click="codeCopy" icon="el-icon-copy-document" size="mini" plain
style="padding: 4px 8px;">Copy</el-button>
</div>
</div>
</div>
</el-col>
@@ -182,22 +200,6 @@
</div>
</div> -->
<!-- <div>
<div class="expTit">
Invitation code
<el-popover placement="top-start" width="300" trigger="hover"
content="If you invite users to submit, please fill in your invitation code.">
<span slot="reference">
<i class="el-icon-info" style="color: #e7d219;font-size: 18px;cursor: pointer;"></i>
</span>
</el-popover>
:
</div>
<div class="expInde" style="display: flex;">
<p style="font-weight: bold;color: #006699;">dfsfsd56789</p>
<p style="margin: 0 0 0 10px;">(56)</p>
</div>
</div> -->
</div>
</el-col>
@@ -1641,6 +1643,17 @@
});
},
// 复制邀请码
codeCopy() {
var input = document.createElement("input"); // 创建input对象
input.value = this.coreTable.code; // 设置复制内容
document.body.appendChild(input); // 添加临时实例
input.select(); // 选择实例内容
document.execCommand("Copy"); // 执行复制
document.body.removeChild(input); // 删除临时实例
this.$message.success('Invitation code copied successfully!');
},
// 个人信息弹出框
openCoreHand() {
this.coreForm = JSON.parse(JSON.stringify(this.coreTable))