From c6f83537de95f3c5e591cd2eff90f1163f38f118 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期五, 01 十一月 2024 10:55:33 +0800
Subject: [PATCH] 1.钱包
---
sub_pages/customer/shop/shop.vue | 28 +++++++++++++++++++---------
1 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/sub_pages/customer/shop/shop.vue b/sub_pages/customer/shop/shop.vue
index 832538a..3c5f7f2 100644
--- a/sub_pages/customer/shop/shop.vue
+++ b/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 */
}
}
--
Gitblit v1.9.3