feat(user-tag): 后台用户列表展示标签 + 小程序用户中心会员等级下方展示标签

后台 msh_single_admin user/list/index.vue:
- 在「分组」「推荐人」之间新增「用户标签」列,用 el-tag 渲染(多标签 ',' 切分)
- 加入默认显示项 checkedCities / columnData

后端 UserCenterResponse + UserServiceImpl:
- UserCenterResponse 新增 tagName 字段
- getUserCenter 在已注入的 userTagService 基础上回填标签名(已存在 getGroupNameInId)

小程序 pages/user/index.vue:
- 用户名 + VIP 行下方新增 .user-tags 容器,按 ',' 切分多标签
- 半透明白底胶囊,与顶部渐变橙色背景协调

附带修复:
- pages/tool/calculator-history.vue formatTime 兼容 ISO/数组/数字/旧字符串四种来源
- 解决「NaN-NaN-NaN NaN:NaN」问题(ISO 字符串里的 'T' 被替换 / 后变非法日期)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
msh-agent
2026-05-03 03:53:56 +08:00
parent 560d4de275
commit a9686c7d45
5 changed files with 66 additions and 9 deletions

View File

@@ -21,6 +21,14 @@
</view>
</view>
</view>
<!-- 用户标签在会员等级下方展示 -->
<view class="user-tags" v-if="userInfo && uid && userInfo.tagName">
<text
class="user-tag"
v-for="(tag, idx) in String(userInfo.tagName).split(',').filter(Boolean)"
:key="idx"
>{{ tag }}</text>
</view>
<view class="num" v-if="userInfo && userInfo.phone && uid">
<view class="num-txt">{{userInfo.phone}}</view>
<view class="icon">
@@ -598,6 +606,23 @@
}
}
}
/* 用户标签test-0415 后续:会员等级下方展示) */
.user-tags {
display: flex;
flex-wrap: wrap;
gap: 8rpx;
margin-top: 8rpx;
.user-tag {
padding: 2rpx 16rpx;
font-size: 20rpx;
color: #ffffff;
background: rgba(255, 255, 255, 0.18);
border: 1rpx solid rgba(255, 255, 255, 0.3);
border-radius: 18px;
line-height: 1.6;
}
}
.app_set{
position: absolute;
font-size: 36rpx;