feat(withdraw): convert withdraw records modal into dedicated independent page
这个提交包含在:
@@ -320,65 +320,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 2. 系统与隐私设置弹窗 -->
|
||||
<view class="profile-edit-modal-mask" v-if="showSettingsModal" @click="showSettingsModal = false">
|
||||
<view class="profile-edit-modal settings-modal-box" @click.stop>
|
||||
<view class="modal-header">
|
||||
<text class="modal-title">系统与隐私设置</text>
|
||||
<view class="btn-close btn-active" @click="showSettingsModal = false">
|
||||
<image class="close-svg" :src="ICONS.close" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="modal-body settings-modal-body">
|
||||
<view class="settings-group">
|
||||
<text class="settings-group-title">隐私安全保护</text>
|
||||
<view class="settings-row">
|
||||
<view class="settings-label-wrap">
|
||||
<text class="settings-label">隐藏手机号与联系方式</text>
|
||||
<text class="settings-desc">开启后个人名片及组局联络中间4位自动脱敏</text>
|
||||
</view>
|
||||
<switch :checked="privacyHidePhone" color="#6366F1" @change="onToggleHidePhone" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="settings-group">
|
||||
<text class="settings-group-title">通知与订阅</text>
|
||||
<view class="settings-row">
|
||||
<view class="settings-label-wrap">
|
||||
<text class="settings-label">订单与组局动态提醒</text>
|
||||
<text class="settings-desc">接收陪玩接单、服务验收与退款仲裁即时通知</text>
|
||||
</view>
|
||||
<switch :checked="noticeSubscribe" color="#6366F1" @change="onToggleNotice" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="settings-group">
|
||||
<text class="settings-group-title">本地数据与存储</text>
|
||||
<view class="settings-row">
|
||||
<view class="settings-label-wrap">
|
||||
<text class="settings-label">清除本地缓存数据</text>
|
||||
<text class="settings-desc">当前缓存占用:{{ cacheSizeText }}</text>
|
||||
</view>
|
||||
<button class="btn-clear-cache btn-active" @click="clearLocalCache">一键清理</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="settings-group">
|
||||
<text class="settings-group-title">关于系统与合规</text>
|
||||
<view class="settings-info-row">
|
||||
<text class="info-k">软件版本</text>
|
||||
<text class="info-v">v2.6.0 正式版</text>
|
||||
</view>
|
||||
<view class="settings-info-row clickable btn-active" @click="navTo('/pages/common/protocol')">
|
||||
<text class="info-k">服务协议与用户隐私政策</text>
|
||||
<image class="info-arrow" :src="ICONS.chevronRight" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 3. 分销推广管理弹窗 -->
|
||||
<view class="profile-edit-modal-mask" v-if="showDistributionModal" @click="showDistributionModal = false">
|
||||
<view class="profile-edit-modal dist-modal-box" @click.stop>
|
||||
@@ -602,7 +543,6 @@ const favoriteList = ref([]);
|
||||
const loadingFavorites = ref(false);
|
||||
|
||||
// 系统与隐私设置
|
||||
const showSettingsModal = ref(false);
|
||||
const privacyHidePhone = ref(uni.getStorageSync('privacy_hide_phone') === '1');
|
||||
const noticeSubscribe = ref(uni.getStorageSync('notice_subscribe') !== '0');
|
||||
const cacheSizeText = ref('1.25 MB');
|
||||
@@ -824,6 +764,7 @@ onShow(() => {
|
||||
uni.hideTabBar({ animation: false, fail: () => {} });
|
||||
loadUserProfile();
|
||||
loadPlatformConfigs();
|
||||
privacyHidePhone.value = uni.getStorageSync('privacy_hide_phone') === '1';
|
||||
if (isLoggedIn.value) {
|
||||
loadFavorites();
|
||||
}
|
||||
@@ -1190,23 +1131,11 @@ const updateCacheSize = () => {
|
||||
}
|
||||
};
|
||||
|
||||
// 2. 系统与隐私设置(跳转独立设置页面)
|
||||
const openSettingsModal = () => {
|
||||
updateCacheSize();
|
||||
showSettingsModal.value = true;
|
||||
};
|
||||
|
||||
const onToggleHidePhone = (e) => {
|
||||
const val = e.detail.value;
|
||||
privacyHidePhone.value = val;
|
||||
uni.setStorageSync('privacy_hide_phone', val ? '1' : '0');
|
||||
uni.showToast({ title: val ? '已开启手机号隐藏' : '已关闭手机号隐藏', icon: 'none' });
|
||||
};
|
||||
|
||||
const onToggleNotice = (e) => {
|
||||
const val = e.detail.value;
|
||||
noticeSubscribe.value = val;
|
||||
uni.setStorageSync('notice_subscribe', val ? '1' : '0');
|
||||
uni.showToast({ title: val ? '已开启服务提醒' : '已关闭服务提醒', icon: 'none' });
|
||||
uni.navigateTo({
|
||||
url: '/pages/user/settings'
|
||||
});
|
||||
};
|
||||
|
||||
const clearLocalCache = () => {
|
||||
@@ -2610,94 +2539,6 @@ const navTo = (url) => {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
// 2. 系统设置弹窗样式
|
||||
.settings-modal-box {
|
||||
max-width: 660rpx;
|
||||
|
||||
.settings-modal-body {
|
||||
padding: 10rpx 0 24rpx;
|
||||
|
||||
.settings-group {
|
||||
margin-bottom: 28rpx;
|
||||
|
||||
.settings-group-title {
|
||||
font-size: 22rpx;
|
||||
color: #94A3B8;
|
||||
font-weight: 600;
|
||||
margin-bottom: 14rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.settings-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #0F172A;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 16rpx;
|
||||
padding: 20rpx;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
.settings-label-wrap {
|
||||
flex: 1;
|
||||
|
||||
.settings-label {
|
||||
font-size: 26rpx;
|
||||
color: #F8FAFC;
|
||||
font-weight: 500;
|
||||
display: block;
|
||||
margin-bottom: 4rpx;
|
||||
}
|
||||
|
||||
.settings-desc {
|
||||
font-size: 20rpx;
|
||||
color: #64748B;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-clear-cache {
|
||||
font-size: 22rpx;
|
||||
color: #EF4444;
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
border: 1px solid rgba(239, 68, 68, 0.3);
|
||||
border-radius: 12rpx;
|
||||
height: 56rpx;
|
||||
line-height: 54rpx;
|
||||
padding: 0 20rpx;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.settings-info-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #0F172A;
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 16rpx;
|
||||
padding: 20rpx;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
.info-k {
|
||||
font-size: 26rpx;
|
||||
color: #F8FAFC;
|
||||
}
|
||||
|
||||
.info-v {
|
||||
font-size: 22rpx;
|
||||
color: #94A3B8;
|
||||
}
|
||||
|
||||
.info-arrow {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 3. 分销管理弹窗样式
|
||||
.dist-modal-box {
|
||||
max-width: 680rpx;
|
||||
@@ -3165,17 +3006,6 @@ const navTo = (url) => {
|
||||
}
|
||||
}
|
||||
|
||||
.settings-modal-box {
|
||||
.settings-modal-body .settings-group {
|
||||
.settings-row, .settings-info-row {
|
||||
background: #FAFAF9;
|
||||
border-color: #E7E5E4;
|
||||
.settings-label-wrap .settings-label, .info-k {
|
||||
color: #1C1917;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dist-modal-box {
|
||||
.dist-summary-banner {
|
||||
|
||||
在新工单中引用
屏蔽一个用户