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

粘帖流程等

上级 5ae91b31
......@@ -383,10 +383,13 @@ export default {
_this.changeCardErrorMsg = "";
this.POST("cme/projectCard/bind", param).then(res => {
if (res.code == "000000") {
this.showChangeCard = false;
_this.getProjectParticularsV2();
if(res.data == 0) {
_this.changeCardErrorMsg = "请输入正确的激活码";
} else {
_this.showChangeCard = false;
_this.getProjectParticularsV2();
}
} else {
_this.changeCardErrorMsg = "请输入正确的激活码";
}
}).catch( e => {
_this.changeCardErrorMsg = "请输入正确的激活码";
......@@ -399,9 +402,11 @@ export default {
let _this = this;
let clipboard = new this.clipboard(".cobyOrderSn");
clipboard.on("success", function() {
console.log('success');
Toast("复制成功");
});
clipboard.on("error", function() {
console.log('error');
Toast("复制失败");
});
},
......@@ -485,34 +490,34 @@ export default {
Toast("请您下载新版本App");
return;
}
// 复制卡密
this.copyLink();
if (window.__isWeb) {
return;
} else {
let pageUrl = this.project.examBtnUrl;
let paramList = [
{
key: "pageUrl",
value: pageUrl,
type: 4,
seqNo: 1
},
// 此字段不配置,则用原来的逻辑
{
key: "needCache",
value: "1", // 0不缓存,其它值都做缓存
type: 4,
seqNo: 1
}
];
rocNative.dispatchEventByModuleCode({
modeCode: "M300",
jsonString: paramList
});
}
setTimeout(() => {
if (window.__isWeb) {
return;
} else {
let pageUrl = this.project.examBtnUrl;
let paramList = [
{
key: "pageUrl",
value: pageUrl,
type: 4,
seqNo: 1
},
// 此字段不配置,则用原来的逻辑
{
key: "needCache",
value: "1", // 0不缓存,其它值都做缓存
type: 4,
seqNo: 1
}
];
rocNative.dispatchEventByModuleCode({
modeCode: "M300",
jsonString: paramList
});
}
}, 1000);
},
// 跳转前判断是否有机构,否则使用定位信息
......@@ -923,6 +928,7 @@ export default {
this.jumpCatalogue();
}, 200);
}
_this.copyLink();
}, 200);
setTimeout(() => {
_this.showLoading = false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册