| | |
| | | type: String,
|
| | | },
|
| | | detailPrice: {},
|
| | | isSdk: {},
|
| | | },
|
| | | directives: {
|
| | | focus: {
|
| | |
| | | });
|
| | | 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;
|
| | |
| | | }
|
| | | })
|
| | | .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;
|
| | |
| | | }
|
| | | })
|
| | | .catch((e) => {
|
| | | console.log(e);
|
| | | this.$notify({
|
| | | type: "error",
|
| | | message: e.msg,
|
| | | });
|
| | | });
|
| | | }
|
| | | },
|