ZZJ
2022-06-10 68b96b56c3324b7458e7921bd1087357cb649318
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,
            });
          });
      }
    },