| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <template>
- <view class="page-container">
- <!-- 头部 -->
- <view class="header">
- <view class="header-left" @click="goBack">
- <u-icon name="arrow-left" size="24" color="#333"/>
- </view>
- <view class="header-title">
- 修改手机号
- </view>
- <view class="header-right"></view>
- </view>
-
- <!-- 内容区域 -->
- <view class="content">
- <text class="section-title">请验证以下信息</text>
-
- <!-- 当前手机号验证 -->
- <view class="section">
- <text class="section-subtitle">当前手机号验证</text>
- <view class="form-group">
- <view class="phone-display">18790654335</view>
- </view>
- <view class="form-group">
- <input class="input" type="text" placeholder="请输入验证码" />
- <button class="verify-btn">获取验证码</button>
- </view>
- </view>
-
- <!-- 新手机号绑定 -->
- <view class="section">
- <text class="section-subtitle">新手机号绑定</text>
- <view class="form-group">
- <input class="input" type="text" placeholder="请输入新手机号" />
- </view>
- <view class="form-group">
- <input class="input" type="text" placeholder="请输入验证码" />
- <button class="verify-btn disabled">58S</button>
- </view>
- </view>
-
- <!-- 确定按钮 -->
- <button class="confirm-btn" @click="confirmChange">确定</button>
- </view>
- </view>
- </template>
- <script setup lang="ts">
- const goBack = () => {
- uni.navigateBack();
- };
-
- const confirmChange = () => {
- uni.showToast({ title: '修改手机号成功', icon: 'success' });
- setTimeout(() => {
- uni.navigateBack();
- }, 1500);
- };
- </script>
- <style scoped>
- .page-container {
- background-color: #f5f5f5;
- min-height: 100vh;
- }
-
- .header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20rpx;
- background-color: #ffffff;
- border-bottom: 1rpx solid #f0f0f0;
- }
-
- .header-left, .header-right {
- width: 60rpx;
- }
-
- .header-title {
- font-size: 32rpx;
- font-weight: bold;
- color: #333;
- }
-
- .content {
- padding: 30rpx;
- }
-
- .section-title {
- font-size: 36rpx;
- font-weight: bold;
- color: #333;
- margin-bottom: 40rpx;
- display: block;
- }
-
- .section {
- background-color: #ffffff;
- border-radius: 16rpx;
- padding: 20rpx;
- margin-bottom: 30rpx;
- }
-
- .section-subtitle {
- font-size: 28rpx;
- color: #333;
- margin-bottom: 20rpx;
- display: block;
- }
-
- .form-group {
- display: flex;
- align-items: center;
- margin-bottom: 20rpx;
- }
-
- .form-group:last-child {
- margin-bottom: 0;
- }
-
- .phone-display {
- flex: 1;
- font-size: 28rpx;
- color: #333;
- padding: 20rpx;
- background-color: #f5f5f5;
- border-radius: 8rpx;
- }
-
- .input {
- flex: 1;
- font-size: 28rpx;
- color: #333;
- padding: 20rpx;
- background-color: #f5f5f5;
- border-radius: 8rpx;
- margin-right: 15rpx;
- }
-
- .verify-btn {
- font-size: 26rpx;
- color: #ffc107;
- padding: 15rpx 20rpx;
- border: 1rpx solid #ffc107;
- border-radius: 8rpx;
- background-color: transparent;
- }
-
- .verify-btn.disabled {
- color: #999;
- border-color: #d9d9d9;
- }
-
- .confirm-btn {
- width: 100%;
- background-color: #ffc107;
- color: #333;
- font-size: 30rpx;
- font-weight: bold;
- border-radius: 50rpx;
- padding: 20rpx;
- border: none;
- }
- </style>
|