陶杰
2024-11-01 c6f83537de95f3c5e591cd2eff90f1163f38f118
sub_pages/customer/shop/shop.vue
@@ -175,12 +175,12 @@
                     <u-col span="2">
                        <view style="display: flex; justify-content: flex-start; align-items: center;padding: 5rpx;">
                           <u--image v-if="item.anonymityFalg==1 " :showLoading="true"
                           src="https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png" width="30px" height="30px"  shape="circle"></u--image>
                           src="https://hmy-flower.oss-cn-shanghai.aliyuncs.com/95/95450acd98ff4245ab998809496ba6d5niming.png" width="30px" height="30px"  shape="circle"></u--image>
                           <u--image v-else :showLoading="true" :src="item.customerCover" width="30px" height="30px"  shape="circle"></u--image>
                        </view>
                     </u-col>
                     <u-col span="10" style="font-size: 12px;">
                        <span v-if="item.anonymityFalg==1 " >匿名用户</span>
                        <span v-if="item.anonymityFalg==1 " >{{formatAnonymityName(item.customerName)}}</span>
                        <span v-else>{{item.customerName}}</span>
                     </u-col>
                  
@@ -208,15 +208,12 @@
                              
                              <!--      <image v-for="(commentImg,index2) of item.commentImagesList" :key="index2" :src="commentImg" class="comment-img" @click="previewImg(commentImg)"></image> -->
                  
                              <u-grid
                                    :border="false"
                                    @click="click"
                              >
                              <u-grid :border="false" >
                                 <u-grid-item
                                       v-for="(commentImg,index2) of item.commentImagesList"
                                       :key="index2"
                                 >
                                 <image :src="commentImg" class="comment-img" @click="previewImg(commentImg)"></image>
                                    <image :src="commentImg" class="comment-img" @click="previewImg(commentImg)"></image>
                                 </u-grid-item>
                              </u-grid>
@@ -479,6 +476,15 @@
         }
      },
      methods: {
         formatAnonymityName(name) {
            if (name.length <= 1) {
               return '**' + name + '**';
            } else {
               const firstChar = name.charAt(0);
               return '**' + firstChar + '**';
            }
         },
         
         async getCommentsStatis() {
            {
@@ -999,9 +1005,13 @@
         flex-wrap: wrap;
         .comment-img{
            margin:5rpx; 
            width:150rpx;;
            height:150rpx;
            width:170rpx;
            height:170rpx;
            border-radius: 10rpx;
            object-fit: contain;
         }
         .comment-img2{
            object-fit: cover; /* 或 contain */
         }
      }