提交 56df7563 编写于 作者: guangjun.yang's avatar guangjun.yang

复制与复制

上级 d1f2578c
...@@ -142,10 +142,10 @@ ...@@ -142,10 +142,10 @@
<!-- <CardPopup :cardInfo="cardInfo" :isShow="isShowPopup" @clickOverlay="clickOverlay" @cancle="jumpToCardList()" @confirm="confirm"></CardPopup> --> <!-- <CardPopup :cardInfo="cardInfo" :isShow="isShowPopup" @clickOverlay="clickOverlay" @cancle="jumpToCardList()" @confirm="confirm"></CardPopup> -->
<Loading v-show="showLoading" /> <Loading v-show="showLoading" />
<div> <div>
<span <span ref="copyLinkBtn"
data-clipboard-action="copy" data-clipboard-action="copy"
class="cobyOrderSn" class="cobyOrderSn"
:data-clipboard-text="this.project.cardKey" :data-clipboard-text="this.testCardKey"
@click="copyLink" @click="copyLink"
></span> ></span>
</div> </div>
...@@ -229,13 +229,15 @@ export default { ...@@ -229,13 +229,15 @@ export default {
examBtnUrl: "", // 考试按钮跳转连接 examBtnUrl: "", // 考试按钮跳转连接
firstIntoExam: false, // true弹框,是否首次进入考试,用于首次跳转弹框提示,只跟项目和人员有关 firstIntoExam: false, // true弹框,是否首次进入考试,用于首次跳转弹框提示,只跟项目和人员有关
jumpToContents: false, // 是否跳转到目录 jumpToContents: false, // 是否跳转到目录
cardStatus: 0 cardStatus: 0,
cardKey: ''
// cmeType=2时不显示进度, // cmeType=2时不显示进度,
// projectNo为空时不显示项目编号, // projectNo为空时不显示项目编号,
// projectLeader为空时不显示项目负责人, // projectLeader为空时不显示项目负责人,
// inScope=0时考试按钮不显示, // inScope=0时考试按钮不显示,
// currentProgress>1时考试按钮显示并可用 // currentProgress>1时考试按钮显示并可用
}, },
testCardKey: 'sswefwfwefwef',
hasBindCard: false, // 是否绑定过学习卡或激活过 没有绑定,则显示绑定按钮 hasBindCard: false, // 是否绑定过学习卡或激活过 没有绑定,则显示绑定按钮
projectLeader: {}, projectLeader: {},
doctorList: [], doctorList: [],
...@@ -398,7 +400,6 @@ export default { ...@@ -398,7 +400,6 @@ export default {
// 复制卡密 // 复制卡密
copyLink() { copyLink() {
console.log("in copyLink");
let _this = this; let _this = this;
let clipboard = new this.clipboard(".cobyOrderSn"); let clipboard = new this.clipboard(".cobyOrderSn");
clipboard.on("success", function() { clipboard.on("success", function() {
...@@ -491,7 +492,8 @@ export default { ...@@ -491,7 +492,8 @@ export default {
return; return;
} }
// 复制卡密 // 复制卡密
this.copyLink(); this.$refs.copyLinkBtn.click();
setTimeout(() => { setTimeout(() => {
if (window.__isWeb) { if (window.__isWeb) {
return; return;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册