xuxueyang
2024-09-19 4f5cbfb0878d0d35ce01b7c32ade1807c067fd27
sub_pages/customer/trade/detail.vue
@@ -14,7 +14,10 @@
                  </view>
               </swiper-item>
               <swiper-item v-for="(url, index) in dto.bannerList" :key="index">
                  <image class="top-img" :lazy-load="true" mode="aspectFill" @click="previewImg(url)" :src="url">
                  <image class="top-img" :lazy-load="true" mode="aspectFill" @click="()=>{
                     previewImgSign = true;
                     previewImg(url);
                  }" :src="url">
                  </image>
                  <view class="index-tag">
                     {{index+1+(dto.video&&1)}}/{{(dto.video&&1||0)+(dto.cover&&1||0)+(dto.bannerList&&dto.bannerList.length||0)}}
@@ -22,8 +25,10 @@
               </swiper-item>
               <swiper-item>
                  <image :src="dto.cover" :lazy-load="true" @click="previewImg(dto.cover)" class="top-img"
                     mode="aspectFill">
                  <image :src="dto.cover" :lazy-load="true" @click="()=>{
                     previewImgSign = true;
                     previewImg(dto.cover);
                  }" class="top-img" mode="aspectFill">
                  </image>
                  <view class="index-tag">
                     {{(dto.bannerList&&dto.bannerList.length||0)+1+(dto.video&&1||0)}}/{{(dto.video&&1||0)+(dto.cover&&1||0)+(dto.bannerList&&dto.bannerList.length||0)}}
@@ -223,13 +228,18 @@
            dto: {},
            shopnum: 0,
            sharePartnerUserId: '',
            previewImgSign: false,
         }
      },
      onShow() {
         if (!this.previewImgSign) {
         if (this.id) {
            this.getDetail()
         }
         this.refreshShopNum()
         }
         this.previewImgSign = false
      },
      async onLoad(options) {
         console.log('trade detail options', options)
@@ -562,6 +572,7 @@
      .swiper-box {
         position: relative;
         border-bottom: 1px solid #d3d4d7;
         swiper-item {
            background-color: #fff;
            border-radius: 8rpx;