修复多个问题 + 更新部署配置

## 修复
1. 我的页面:简化头像/昵称UI布局
2. 提现API:增加容错处理,自动创建表
3. 找伙伴:放宽匹配条件,匹配所有注册用户

## 部署
1. 更新.cursorrules为小型宝塔配置
2. 服务器IP: 42.194.232.22
This commit is contained in:
卡若
2026-01-29 13:04:38 +08:00
parent 051f064707
commit 174253584f
5 changed files with 127 additions and 85 deletions

View File

@@ -27,28 +27,19 @@
<!-- 用户卡片 - 已登录状态 -->
<view class="user-card card-gradient" wx:else>
<view class="user-header-row">
<!-- 头像 - 使用微信原生选择头像 -->
<button class="avatar-wrapper-btn" open-type="chooseAvatar" bindchooseavatar="onChooseAvatar">
<!-- 头像 - 点击选择头像 -->
<button class="avatar-btn-simple" open-type="chooseAvatar" bindchooseavatar="onChooseAvatar">
<view class="avatar">
<image class="avatar-img" wx:if="{{userInfo.avatar}}" src="{{userInfo.avatar}}" mode="aspectFill"/>
<text class="avatar-text" wx:else>{{userInfo.nickname[0] || '微'}}</text>
</view>
<view class="avatar-edit-hint">
<text class="edit-icon">获取</text>
</view>
</button>
<!-- 用户信息 -->
<view class="user-info-block">
<view class="user-name-row">
<input
class="nickname-input"
type="nickname"
placeholder="点击获取昵称"
value="{{userInfo.nickname}}"
bindblur="onNicknameInput"
/>
<text class="edit-name-icon">获取</text>
<text class="user-name" bindtap="editNickname">{{userInfo.nickname || '点击设置昵称'}}</text>
<text class="edit-icon-small">✎</text>
</view>
<view class="user-id-row" bindtap="copyUserId">
<text class="user-id">ID: {{userIdShort}}</text>

View File

@@ -77,9 +77,8 @@
height: 120rpx;
}
/* 头像按钮样式 */
.avatar-wrapper-btn {
position: relative;
/* 头像按钮样式 - 简化版 */
.avatar-btn-simple {
flex-shrink: 0;
width: 120rpx;
height: 120rpx;
@@ -88,18 +87,26 @@
background: transparent;
border: none;
line-height: normal;
border-radius: 50%;
overflow: visible;
}
.avatar-wrapper-btn::after { border: none; }
.avatar-btn-simple::after { border: none; }
/* 昵称输入框 */
.nickname-input {
flex: 1;
/* 用户名样式 */
.user-name {
font-size: 32rpx;
font-weight: 600;
color: #fff;
background: transparent;
padding: 8rpx 0;
min-width: 0;
max-width: 300rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.edit-icon-small {
font-size: 24rpx;
color: rgba(255,255,255,0.5);
margin-left: 12rpx;
}
.avatar {