| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <template>
- <view class="container">
- <!-- 自定义头部 -->
- <view class="custom-header">
- <view class="header-left" @click="navBack">
- <image class="back-icon" src="/static/icons/chevron_right_dark.svg" style="transform: rotate(180deg);"></image>
- </view>
- <text class="header-title">账号与安全</text>
- <view class="header-right"></view>
- </view>
- <view class="header-placeholder"></view>
- <view class="section-title-security">安全设置</view>
- <view class="group-card">
- <view class="list-item" @click="changeMobile">
- <text class="item-title">手机号</text>
- <view class="item-right">
- <text class="item-value">136****5678</text>
- <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
- </view>
- </view>
- <view class="list-item">
- <text class="item-title">登录密码</text>
- <view class="item-right">
- <text class="item-value">未设置</text>
- <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
- </view>
- </view>
- </view>
- <view class="section-title-security">高级设置</view>
- <view class="group-card">
- <view class="list-item no-border" @click="deleteAccount">
- <text class="item-title">注销账号</text>
- <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {}
- },
- methods: {
- navBack() {
- uni.navigateBack({
- delta: 1
- });
- },
- changeMobile() {
- // 跳转修改手机号
- },
- deleteAccount() {
- uni.showModal({
- title: '警示',
- content: '注销账号后将无法恢复,确定要继续吗?',
- success: function (res) {
- if (res.confirm) {
- uni.showToast({ title: '已提交注销申请', icon: 'none' });
- }
- }
- });
- }
- }
- }
- </script>
- <style>
- page {
- background-color: #F8F8F8;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
- }
- .custom-header {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 88rpx;
- padding-top: var(--status-bar-height);
- background-color: #fff;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-left: 30rpx;
- padding-right: 30rpx;
- box-sizing: content-box;
- z-index: 100;
- }
- .header-placeholder {
- height: calc(88rpx + var(--status-bar-height));
- }
- .back-icon {
- width: 40rpx;
- height: 40rpx;
- }
- .header-title {
- font-size: 28rpx;
- font-weight: bold;
- color: #333;
- }
- .header-right {
- width: 40rpx;
- }
- .container {
- padding: 20rpx 30rpx;
- }
- .section-title-security {
- font-size: 24rpx;
- color: #999;
- margin-bottom: 20rpx;
- margin-top: 20rpx;
- padding-left: 10rpx;
- }
- .group-card {
- background-color: #fff;
- border-radius: 20rpx;
- padding: 0 30rpx;
- margin-bottom: 30rpx;
- }
- .list-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- height: 100rpx;
- border-bottom: 1px solid #F5F5F5;
- }
- .list-item.no-border {
- border-bottom: none;
- }
- .item-title {
- font-size: 28rpx;
- color: #333;
- }
- .item-right {
- display: flex;
- align-items: center;
- }
- .arrow-icon {
- width: 28rpx;
- height: 28rpx;
- opacity: 0.5;
- margin-left: 10rpx;
- }
- .item-value {
- font-size: 28rpx;
- color: #999;
- }
- </style>
|