upload project

This commit is contained in:
unknown 2025-12-27 17:16:03 +08:00
commit 06961cae04
422 changed files with 110626 additions and 0 deletions

View file

@ -0,0 +1,50 @@
// pages/settingss/settingss.js
const app = getApp();
Page({
data: {
menuButtonInfo: { height: 32, width: 32, top: 0 },
statusBarHeight: 0
},
onLoad() {
this.initSystemInfo();
},
initSystemInfo() {
try {
const systemInfo = wx.getSystemInfoSync();
const menuButtonInfo = wx.getMenuButtonBoundingClientRect();
this.setData({
statusBarHeight: systemInfo.statusBarHeight || 0,
menuButtonInfo: menuButtonInfo || this.data.menuButtonInfo
});
} catch (e) {
console.error('获取系统信息失败:', e);
}
},
navigateBack() {
wx.navigateBack();
},
openFeedback() {
wx.navigateTo({ url: '/subpackages/settings/feedback/feedback' });
},
async logout() {
wx.showModal({
title: '退出登录',
content: '确定要退出当前账号吗?',
success: (res) => {
if (res.confirm) {
app.logout().then(() => {
wx.reLaunch({
url: '/pages/login/login'
});
});
}
}
});
}
});

View file

@ -0,0 +1,9 @@
{
"navigationBarTitleText": "设置",
"navigationBarBackgroundColor": "#000000",
"navigationBarTextStyle": "white",
"backgroundColor": "#000000",
"disableScroll": false,
"navigationStyle": "custom",
"pageOrientation": "portrait"
}

View file

@ -0,0 +1,44 @@
<!-- pages/settingss/settingss.wxml -->
<view class="settings-container">
<!-- 顶部导航栏 - 使用动态高度 -->
<view class="navbar" style="height: {{navbarHeight}}px; padding-top: {{statusBarHeight}}px;">
<view class="back-btn" bindtap="navigateBack" style="height: {{menuButtonInfo.height}}px; line-height: {{menuButtonInfo.height}}px;">
<text class="icon">↩</text>
</view>
<view class="title" style="line-height: {{menuButtonInfo.height}}px;">设置</view>
<view class="back-btn" style="line-height: {{menuButtonInfo.height}}px;"></view>
</view>
<!-- 页面内容 -->
<scroll-view class="settings-content"
scroll-y
style="padding-top: {{statusBarHeight + menuButtonInfo.height + 30}}px; height: calc(100vh - {{statusBarHeight + menuButtonInfo.height + 30}}px);">
<!-- 帮助与反馈卡片 -->
<view class="menu-group">
<view class="group-header">
<view class="group-icon"></view>
<text class="group-title">帮助与反馈</text>
</view>
<view class="menu-item" bindtap="openFeedback">
<view class="menu-icon feedback">💬</view>
<view class="menu-content">
<text class="menu-title">意见反馈</text>
<text class="menu-subtitle">提交故障、建议,及联系客服</text>
</view>
<view class="menu-arrow"></view>
</view>
</view>
<!-- 退出登录按钮 -->
<view class="logout-section">
<button class="logout-btn" bindtap="logout">
退出登录
</button>
</view>
<!-- 底部安全区域 -->
<view class="bottom-space"></view>
</scroll-view>
</view>

View file

@ -0,0 +1,162 @@
/* 页面容器 */
.settings-container {
width: 100%;
height: 100vh;
background: #000000;
display: flex;
flex-direction: column;
}
/* 导航栏样式 */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
z-index: 10;
box-sizing: content-box;
}
.back-btn {
width: 48px;
display: flex;
align-items: center;
justify-content: center;
}
.icon {
font-size: 20px;
color: #ffffff;
}
.title {
flex: 1;
text-align: center;
font-size: 34rpx;
font-weight: 500;
color: #ffffff;
}
/* 滚动内容区 */
.settings-content {
flex: 1;
width: 100%;
box-sizing: border-box;
padding-left: 30rpx;
padding-right: 30rpx;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
/* 菜单组样式 */
.menu-group {
background-color: #1a1a1a;
border-radius: 20rpx;
margin-bottom: 30rpx;
overflow: hidden;
}
/* 组标题 */
.group-header {
display: flex;
align-items: center;
padding: 30rpx 30rpx 20rpx;
}
.group-icon {
font-size: 36rpx;
margin-right: 20rpx;
color: #ffffff;
}
.group-title {
color: #ffffff;
font-size: 30rpx;
font-weight: 500;
}
/* 菜单项 */
.menu-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 25rpx 30rpx;
border-top: 1px solid #333333;
}
.menu-item:first-child {
border-top: none;
}
/* 菜单图标 */
.menu-icon {
font-size: 36rpx;
margin-right: 25rpx;
width: 40rpx;
text-align: center;
}
.feedback {
color: #00BCD4;
}
/* 菜单内容 */
.menu-content {
flex: 1;
min-width: 0;
}
.menu-title {
color: #ffffff;
font-size: 30rpx;
display: block;
margin-bottom: 5rpx;
}
.menu-subtitle {
color: #aaaaaa;
font-size: 24rpx;
}
/* 菜单箭头 */
.menu-arrow {
color: #666666;
font-size: 30rpx;
}
/* 退出登录按钮 */
.logout-section {
padding: 40rpx 30rpx;
}
.logout-btn {
width: 100%;
height: 90rpx;
line-height: 90rpx;
background: linear-gradient(135deg, #044db4 0%, #156301 100%);
color: #ffffff;
font-size: 32rpx;
border-radius: 45rpx;
text-align: center;
padding: 0;
border: none;
outline: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
box-shadow: 0 4px 6px -1px rgb(48, 51, 238),
inset 0 1px 0 rgb(255, 0, 0);
transition: all 0.2s ease;
}
.logout-btn:active {
transform: scale(0.98);
background: linear-gradient(135deg, #1d69d3 0%, #273140 100%);
box-shadow: 0 2px 4px -1px rgba(250, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* 底部安全区域 */
.bottom-space {
height: 60rpx;
}