gx
queenwuli
2021-01-25 c4246ca910f28014efaace64ebf92f47a673a9cf
hive-app/pages/workbench/productDetail/index.vue
@@ -13,7 +13,7 @@
         duration="1500"   
         @change="swiperChange">
         <swiper-item v-for="(item,index) in banner" :key="index">
            <image class="img" :src="item.img?item.img:'../../../static/images/no-img.png'"></image>
            <image class="img" :src="item?item:'../../../static/images/no-img.png'"></image>
            <view class="indicator">
               <text>{{swiperIndex+1}}/{{banner.length}}</text>
            </view>
@@ -101,7 +101,11 @@
            this.$httpUtils.request('/api/order/findGoodsDetailById/'+id).then((res) => {
               if(res.status == 200){
                  this.productInfo = res.mapInfo.goods;
                  this.banner.push(this.productInfo.img);
                  this.banner = this.productInfo.img?this.productInfo.img.split(','):[];
                  if(this.productInfo.desc){
                     this.productInfo.desc = this.productInfo.desc.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
                  }
               }
            })
         }
@@ -163,9 +167,6 @@
      padding: 10px;
      min-height: 500rpx;
      font-size: 14px;
   }
   .product-desc img{
      max-width: 100%;
   }
   
</style>