ZZJ
2022-05-05 d889eaf990af99c06970e51f2bc421ac0015489c
src/views/hashrate/AlgManage/index.vue
@@ -10,7 +10,9 @@
        <div class="algCard" v-for="(item, index) in payAlg" :key="index">
          <img :src="item.logoUrl" alt="" draggable="false" />
          <div class="name">{{ item.productName }}</div>
          <span class="button pay">购买</span>
          <span class="button pay" @click="toDetail(item.productName)"
            >购买</span
          >
        </div>
      </div>
@@ -32,7 +34,9 @@
            @dragstart="dragStart(item)"
          />
          <div class="name">{{ item.productName }}</div>
          <span class="button detail">查看详情</span>
          <span class="button detail" @click="toDetail(item.productName)"
            >查看详情</span
          >
        </div>
      </div>
    </div>
@@ -164,7 +168,12 @@
            console.log(item);
          }
          item.logoUrl = "/httpImage/" + item.logoUrl;
          if (
            item.logoUrl.indexOf("http://apps.smartai.com/httpImage/") === -1
          ) {
            item.logoUrl = "/httpImage/" + item.logoUrl;
          }
          if (item.priceBase === 0) {
            this.freeAlg.push(item);
          } else {
@@ -256,6 +265,14 @@
        });
      }
    },
    toDetail(productName) {
      this.$router.push({
        path: "/productDetail",
        query: {
          name: productName,
        },
      });
    },
  },
};
</script>