| | |
| | | <view class="card"> |
| | | <view class="card-title">个人信息</view> |
| | | |
| | | <!-- 头像 --> |
| | | <view class="form-item" bindtap="onChooseAvatar"> |
| | | <!-- 头像(按需求隐藏) --> |
| | | <view wx:if="{{false}}" class="form-item" bindtap="onChooseAvatar"> |
| | | <text class="label">照片</text> |
| | | <view class="input-wrapper avatar-wrapper"> |
| | | <image |
| | | class="avatar-image" |
| | | src="{{localAvatarPath || formData.avatarUrl || '../../images/default-avatar.png'}}" |
| | | src="{{localAvatarPath || formData.avatarUrl || '../../images/default-avatar.svg'}}" |
| | | mode="aspectFill" |
| | | /> |
| | | <text></text> |
| | |
| | | <text wx:if="{{errors.phone}}" class="error-text">{{errors.phone}}</text> |
| | | </view> |
| | | |
| | | <!-- 性别 --> |
| | | <view class="form-item {{errors.gender ? 'error' : ''}}"> |
| | | <text class="label required">性别</text> |
| | | <!-- 性别(按需求隐藏) --> |
| | | <view wx:if="{{false}}" class="form-item {{errors.gender ? 'error' : ''}}"> |
| | | <text class="label">性别</text> |
| | | <view class="input-wrapper"> |
| | | <picker |
| | | class="picker" |
| | |
| | | <text wx:if="{{errors.gender}}" class="error-text">{{errors.gender}}</text> |
| | | </view> |
| | | |
| | | <!-- 生日 --> |
| | | <view class="form-item {{errors.birthDate ? 'error' : ''}}"> |
| | | <!-- 生日(按需求隐藏) --> |
| | | <view wx:if="{{false}}" class="form-item {{errors.birthDate ? 'error' : ''}}"> |
| | | <text class="label">生日</text> |
| | | <view class="input-wrapper"> |
| | | <picker |
| | |
| | | <text wx:if="{{errors.birthDate}}" class="error-text">{{errors.birthDate}}</text> |
| | | </view> |
| | | |
| | | <!-- 所在区域 --> |
| | | <!-- 所属区域 --> |
| | | <view class="form-item {{errors.regionId ? 'error' : ''}}"> |
| | | <text class="label">所在区域</text> |
| | | <text class="label">所属区域</text> |
| | | <view class="input-wrapper"> |
| | | <picker |
| | | class="picker" |
| | |
| | | bindchange="onRegionChange" |
| | | > |
| | | <view class="picker-text {{formData.regionId === null ? 'placeholder' : ''}}"> |
| | | {{formData.regionId !== null && regionIndex >= 0 ? regions[regionIndex].name : '请选择所在区域'}} |
| | | {{formData.regionId !== null && regionIndex >= 0 ? regions[regionIndex].name : '请选择所属区域'}} |
| | | </view> |
| | | </picker> |
| | | </view> |
| | | <text wx:if="{{errors.regionId}}" class="error-text">{{errors.regionId}}</text> |
| | | </view> |
| | | |
| | | <!-- 教育背景 --> |
| | | <view class="form-item {{errors.education ? 'error' : ''}}"> |
| | | <!-- 教育背景(按需求隐藏) --> |
| | | <view wx:if="{{false}}" class="form-item {{errors.education ? 'error' : ''}}"> |
| | | <text class="label">教育背景</text> |
| | | <view class="input-wrapper"> |
| | | <picker |
| | |
| | | <text wx:if="{{errors.education}}" class="error-text">{{errors.education}}</text> |
| | | </view> |
| | | |
| | | <!-- 简介 --> |
| | | <view class="form-item vertical-layout {{errors.introduction ? 'error' : ''}}"> |
| | | <!-- 简介(按需求隐藏) --> |
| | | <view wx:if="{{false}}" class="form-item vertical-layout {{errors.introduction ? 'error' : ''}}"> |
| | | <text class="label">简介</text> |
| | | <view class="input-wrapper"> |
| | | <textarea |
| | |
| | | </view> |
| | | <text wx:if="{{errors.projectName}}" class="error-text">{{errors.projectName}}</text> |
| | | </view> |
| | | |
| | | <!-- 项目描述 --> |
| | | <view class="form-item vertical-layout {{errors.description ? 'error' : ''}}"> |
| | | <text class="label required">项目描述</text> |
| | | <view class="input-wrapper"> |
| | | <textarea |
| | | class="textarea" |
| | | placeholder-class="placeholder-class" |
| | | placeholder="请详细描述您的项目内容、目标和特色" |
| | | value="{{formData.description}}" |
| | | data-field="description" |
| | | bindinput="onInputChange" |
| | | maxlength="1000" |
| | | /> |
| | | </view> |
| | | <text wx:if="{{errors.description}}" class="error-text">{{errors.description}}</text> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 附件资料卡片 --> |
| | |
| | | <view class="upload-icon">📎</view> |
| | | <text class="upload-text">添加附件</text> |
| | | <view class="upload-hint"> |
| | | 支持视频/图片/PDF/Word等,最多{{maxAttachments}}个 |
| | | 支持视频/图片/PDF/Word/PPT等,最多{{maxAttachments}}个 |
| | | </view> |
| | | </view> |
| | | </view> |