提交 4d1b2b64 编写于 作者: guangjun.yang's avatar guangjun.yang

已经成功复制激活码

上级 56df7563
......@@ -145,7 +145,7 @@
<span ref="copyLinkBtn"
data-clipboard-action="copy"
class="cobyOrderSn"
:data-clipboard-text="this.testCardKey"
:data-clipboard-text="this.project.cardKey"
@click="copyLink"
></span>
</div>
......@@ -237,7 +237,6 @@ export default {
// inScope=0时考试按钮不显示,
// currentProgress>1时考试按钮显示并可用
},
testCardKey: 'sswefwfwefwef',
hasBindCard: false, // 是否绑定过学习卡或激活过 没有绑定,则显示绑定按钮
projectLeader: {},
doctorList: [],
......@@ -373,8 +372,6 @@ export default {
// 激活 返回值:0绑定失败,1绑定成功
changeCardAction(cardKey) {
console.log("cardKey", cardKey);
console.log("in changeCard");
let _this = this;
let param = {
cardKey: cardKey,
......@@ -403,12 +400,10 @@ export default {
let _this = this;
let clipboard = new this.clipboard(".cobyOrderSn");
clipboard.on("success", function() {
console.log('success');
Toast("复制成功");
Toast("已成功复制激活码");
});
clipboard.on("error", function() {
console.log('error');
Toast("复制失败");
Toast("复制激活码失败");
});
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册