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

已经成功复制激活码

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