zhangzengfei
2022-04-26 ba5f0a22558ce40300fa1668d98ea74ad56fd1e3
src/pages/ai/index/App.vue
@@ -144,6 +144,9 @@
                  v-for="(item, index) in tempList"
                  :key="index"
                  @click="checkDetail(item)"
                  :class="{
                    disabled: activeName == '应用中心' && !item.canUpOrIns,
                  }"
                >
                  <div class="icon-img">
                    <span class="icon iconfont" v-if="item.isUpgrade"
@@ -618,7 +621,11 @@
        this.tempDarkList = [];
      }
    },
    checkDetail(item, typ) {
    checkDetail(item) {
      /* if (!item.canUpOrIns && typ == "Appcenter") {
        return false;
      } */
      this.inDetail = true;
      this.detailProductID = item.id;
      this.detailPrice = item.price;
@@ -688,7 +695,7 @@
          }
        })
        .catch((e) => {
          _this.$notify.warning(e.data);
          _this.$notify.warning(e.msg);
          clearInterval(timer);
          app.upgradeLoading = false;
        });
@@ -794,6 +801,10 @@
      });
    },
    actived(item) {
      if (!item.canUpOrIns) {
        return false;
      }
      let _this = this;
      if (this.activeTab == "sdk") {
        actPageAlg(item.id, "")
@@ -1324,6 +1335,10 @@
            height: 76px;
            border-radius: 4px;
            /*  &.disabled {
              cursor: default;
            } */
            .icon-img {
              width: 58px;
              height: 58px;