From 68b96b56c3324b7458e7921bd1087357cb649318 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期五, 10 六月 2022 16:04:50 +0800 Subject: [PATCH] 应用中心激活 --- src/pages/ai/index/detail.vue | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/pages/ai/index/detail.vue b/src/pages/ai/index/detail.vue index 72c4606..9e80e23 100644 --- a/src/pages/ai/index/detail.vue +++ b/src/pages/ai/index/detail.vue @@ -311,6 +311,7 @@ type: String, }, detailPrice: {}, + isSdk: {}, }, directives: { focus: { @@ -615,9 +616,9 @@ }); return; } - if (this.actType == "sdk") { + if (this.isSdk) { //婵�娲荤畻娉� - actPageAlg(this.actId, this.activeCode) + actPageAlg(this.detailProductID, this.activeCode) .then((res) => { if (res.data.isSuccess) { this.productDetailVisible = false; @@ -634,11 +635,14 @@ } }) .catch((e) => { - console.log(e); + this.$notify({ + type: "error", + message: e.msg, + }); }); - } else if (this.actType == "app") { + } else { //婵�娲诲簲鐢� - actApp(this.actId, this.activeCode) + actApp(this.detailProductID, this.activeCode) .then((res) => { if (res.data.isSuccess) { this.productDetailVisible = false; @@ -655,7 +659,10 @@ } }) .catch((e) => { - console.log(e); + this.$notify({ + type: "error", + message: e.msg, + }); }); } }, -- Gitblit v1.8.0