| | |
| | | <view class="from-item" wx:if="{{editType == 'phone'}}"> |
| | | <view class="label"> 手机号: </view> |
| | | <view class="item-content"> |
| | | <view class="inputBox1"> |
| | | <t-input placeholder="输入手机号码" borderless value="{{userInfoForm.phone}}" type="number" tips="{{phoneError ? '手机号输入不正确' : ''}}" bindchange="onPhoneInput" /> |
| | | <view class="outsideInputBox1"> |
| | | |
| | | <view class="inputBox1"> |
| | | <t-input placeholder="输入手机号码" borderless value="{{userInfoForm.phone}}" type="number" bindchange="onPhoneInput" /> |
| | | </view> |
| | | <view wx:if="{{phoneError}}" style="font-size: 24rpx; color: red;">手机号输入不正确</view> |
| | | |
| | | |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | <view class="from-item" wx:if="{{editType == 'email'}}"> |
| | | <view class=" label"> 邮箱: </view> |
| | | <view class="item-content"> |
| | | <view class="inputBox1"> |
| | | <t-input placeholder="输入邮箱" borderless value="{{userInfoForm.email}}" tips="{{emailError ? '邮箱输入不正确' : ''}}" bindchange="onEmailInput" /> |
| | | <view class="outsideInputBox1"> |
| | | <view class="inputBox1"> |
| | | <t-input placeholder="输入邮箱" borderless value="{{userInfoForm.email}}" bindchange="onEmailInput" /> |
| | | |
| | | </view> |
| | | <view wx:if="{{emailError}}" style="font-size: 24rpx; color: red;">邮箱输入不正确</view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | <view class="from-item" wx:if="{{editType !== 'nickName'}}"> |
| | |
| | | <t-input placeholder="输入短信验证码" borderless value="{{userInfoForm.code}}" type="number" bindchange="onCodeInput" /> |
| | | </view> |
| | | <view class="code"> |
| | | <button class="btn" bindtap="getPhoneCode">{{countDown > 0 ? '验证码(' + countDown + 's)' : '获取短信验证码'}}</button> |
| | | <button class="{{countDown > 0 ? ' disabled' : 'btn'}}" bindtap="getPhoneCode">{{countDown > 0 ? '验证码(' + countDown + 's)' : '获取短信验证码'}}</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <t-input placeholder="输入邮箱验证码" borderless value="{{userInfoForm.code}}" type="number" bindchange="onCodeInput" /> |
| | | </view> |
| | | <view class="code"> |
| | | <button class="btn" bindtap="getEmailCode">获取邮箱验证码</button> |
| | | <button class="{{mailCountDown > 0 ? ' disabled' : 'btn'}}" bindtap="getEmailCode"> {{mailCountDown > 0 ? '验证码(' + mailCountDown + 's)' : '获取邮箱验证码'}}</button> |
| | | </view> |
| | | </view> |
| | | </view> |