fix: userInfo position

This commit is contained in:
zzc
2026-02-01 17:38:40 +08:00
parent 32b3605884
commit 068f18a708

View File

@@ -24,6 +24,10 @@
<!-- 预览卡片 -->
<view class="card-preview">
<view class="premium-tag">
<uni-icons type="info" size="12" color="#fff"></uni-icons>
<text>分享或保存即可去除水印</text>
</view>
<image
class="card-bg"
:src="currentTemplate?.imageUrl"
@@ -86,7 +90,6 @@
<uni-icons type="hand-up" size="14" color="#ff3b30"></uni-icons>
<text>点击标题或个人信息可拖动双指可缩放标题</text>
</view>
<text>分享或保存即可去除水印</text>
</view>
<!-- 底部固定按钮 -->
@@ -1273,6 +1276,24 @@ function drawRoundRect(ctx, x, y, w, h, r, color) {
position: relative;
box-shadow: 0 16rpx 40rpx rgba(0, 0, 0, 0.12);
}
.premium-tag {
position: absolute;
top: 20rpx;
right: -20rpx;
background: linear-gradient(90deg, #ff8d42, #ff3b30);
color: #fff;
font-size: 20rpx;
padding: 8rpx 30rpx 8rpx 20rpx;
border-radius: 20rpx 0 0 20rpx;
z-index: 10;
display: flex;
align-items: center;
gap: 6rpx;
box-shadow: 0 4rpx 12rpx rgba(255, 59, 48, 0.3);
transform: translateX(10rpx);
}
.card-bg {
width: 100%;
height: 100%;