ZZJ
2022-04-22 fc17d4b6114ac373b28570837865998f5189e3a6
图片url
8个文件已修改
52 ■■■■■ 已修改文件
src/components/subComponents/ImageShow.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hashrate/AlgManage/index.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/index/components/banner.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/index/components/rightColumn.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/index/components/rightRrid.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/product/components/productCard.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productDetail/components/PayCard.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/trialCenter/components/SdkItem.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/subComponents/ImageShow.vue
@@ -1,5 +1,5 @@
<template>
  <img :src="url" alt="" />
  <img class="a111" :src="url" alt="" />
</template>
<script>
@@ -9,8 +9,12 @@
  },
  computed: {
    url() {
      if (this.src.indexOf("http://apps.smartai.com/httpImage/") === -1) {
        return "httpImage" + this.src;
      if (
        this.src &&
        this.src.indexOf("http://apps.smartai.com/httpImage/") === -1 &&
        this.src.indexOf("/images") !== 0
      ) {
        return "/httpImage/" + this.src;
      } else {
        return this.src;
      }
src/views/hashrate/AlgManage/index.vue
@@ -168,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 {
src/views/index/components/banner.vue
@@ -12,7 +12,7 @@
          class="banner_content"
          :style="{
            // backgroundImage: 'url(' + baseImg + ')',
            backgroundImage: 'url(' + (item.pic ? item.pic : baseImg) + ')',
            backgroundImage: 'url(' + getUrl(item.pic) + ')',
            backgroundSize: '100% 100%',
            backgroundRepeat: 'no-repeat',
          }"
@@ -40,6 +40,17 @@
    toggleBanner(i) {
      this.$refs["banner"].setActiveItem(i);
    },
    getUrl(url) {
      if (!url) {
        return this.baseImg;
      } else if (
        url.indexOf("http://apps.smartai.com/httpImage/") === -1 &&
        url.indexOf("/images") !== 0
      ) {
        return "/httpImage/" + url;
      }
      return url;
    },
  },
};
</script>
src/views/index/components/rightColumn.vue
@@ -2,7 +2,7 @@
  <div class="rightColumn">
    <div class="columnItem" v-for="(item, index) in product" :key="index">
      <div class="title">
        <img :src="'/httpImage/' + item.logoUrl" alt="" />
        <ImageShow :src="item.logoUrl"></ImageShow>
        {{ item.modelName }}
      </div>
      <div class="des limitRow2">
src/views/index/components/rightRrid.vue
@@ -2,7 +2,7 @@
  <div class="rightRrid">
    <div class="gridItem" v-for="(item, index) in product" :key="index">
      <div class="title">
        <img :src="'/httpImage/' + item.logoUrl" alt="" />
        <ImageShow :src="item.logoUrl"></ImageShow>
        {{ item.modelName }}
      </div>
      <div class="des limitRow2">
src/views/product/components/productCard.vue
@@ -1,15 +1,11 @@
<template>
  <div class="productCard">
    <div class="image">
      <img
        v-if="data.pics[0]"
        :src="'/httpImage/' + data.pics[0].url"
        class="cursor-pointer"
      />
      <ImageShow v-if="data.pics[0]" :src="data.pics[0].url"></ImageShow>
    </div>
    <div class="info">
      <img :src="'/httpImage/' + data.logoUrl" alt />
      <ImageShow v-if="data.pics[0]" :src="data.logoUrl"></ImageShow>
      <div class="right">
        <div class="name">{{ data.productName }}</div>
        <div class="tagList">
src/views/productDetail/components/PayCard.vue
@@ -1,16 +1,16 @@
<template>
  <div class="PayCard">
    <div class="imageArea" v-if="data.pics.length">
      <img class="activeImg" :src="'/httpImage/' + activeImg.url" />
      <ImageShow class="activeImg" :src="activeImg.url" />
      <div class="imgList">
        <img
        <ImageShow
          v-for="(item, index) in data.pics"
          class="preImg"
          :src="'/httpImage/' + item.url"
          :src="item.url"
          :key="index"
          alt=""
          :class="{ active: activeImg.index == index }"
          @click="selectImg(index, item.url)"
          @click.native="selectImg(index, item.url)"
        />
      </div>
    </div>
src/views/trialCenter/components/SdkItem.vue
@@ -1,7 +1,7 @@
<template>
  <div class="SdkItem">
    <div class="icon">
      <img :src="'/httpImage/' + sdk.logoUrl" alt="" />
      <ImageShow :src="sdk.logoUrl" alt="" />
    </div>
    <div class="title">{{ sdk.productName }}</div>
    <div class="des limitRow2">