更新首页逻辑以支持动态标题生成,优化用户体验。调整管理后台资源文件,替换旧的 JavaScript 和 CSS 文件,提升页面性能和样式一致性。同时,更新数据库结构以支持更细粒度的推送状态。
This commit is contained in:
@@ -127,6 +127,21 @@ Page({
|
||||
|
||||
goBack() { getApp().goBackOrToHome() },
|
||||
|
||||
/** 分步向导时:齿轮 → 一页完整编辑(与「派对会员」资料同路径) */
|
||||
onOpenFullEdit() {
|
||||
if (!this.data.wizardMode) return
|
||||
wx.showModal({
|
||||
title: '切换到完整编辑',
|
||||
content: '将在一页中展示全部资料项,便于一次性填写。当前分步进度不会丢失,可随时返回。',
|
||||
confirmText: '进入完整编辑',
|
||||
cancelText: '取消',
|
||||
success: (r) => {
|
||||
if (!r.confirm) return
|
||||
wx.redirectTo({ url: '/pages/profile-edit/profile-edit?full=1&wizard=0' })
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 是否走三步向导:资料未「手机号+昵称」齐全且未标记完成,且非 full=1、非 VIP 开通页强制单页。
|
||||
* 老用户已齐全则自动写 DONE,避免重复向导。
|
||||
|
||||
@@ -3,7 +3,12 @@
|
||||
<view class="nav-bar" style="padding-top: {{statusBarHeight}}px;">
|
||||
<view class="nav-back" bindtap="goBack"><icon name="chevron-left" size="44" color="#5EEAD4" customClass="back-icon"></icon></view>
|
||||
<text class="nav-title">{{wizardMode ? '分步档案(' + wizardStep + '/3)' : '编辑资料'}}</text>
|
||||
<view class="nav-placeholder"></view>
|
||||
<view class="nav-right">
|
||||
<view wx:if="{{wizardMode}}" class="nav-gear" bindtap="onOpenFullEdit" hover-class="nav-gear-hover" aria-label="切换完整编辑">
|
||||
<icon name="setting" size="40" color="#5EEAD4" customClass="gear-icon"></icon>
|
||||
</view>
|
||||
<view wx:else class="nav-right-spacer"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: {{statusBarHeight + 44}}px;"></view>
|
||||
|
||||
|
||||
@@ -7,14 +7,22 @@
|
||||
.nav-bar {
|
||||
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
height: 44px; padding: 0 24rpx;
|
||||
height: 44px; padding: 0 16rpx 0 8rpx;
|
||||
background: rgba(5,11,20,0.9); backdrop-filter: blur(8rpx);
|
||||
border-bottom: 1rpx solid rgba(255,255,255,0.08);
|
||||
}
|
||||
.nav-back { width: 60rpx; padding: 16rpx 0; }
|
||||
.nav-back { width: 56rpx; padding: 16rpx 8rpx; flex-shrink: 0; }
|
||||
.back-icon { font-size: 44rpx; color: #5EEAD4; }
|
||||
.nav-title { font-size: 36rpx; font-weight: 600; }
|
||||
.nav-placeholder { width: 60rpx; }
|
||||
.nav-title {
|
||||
flex: 1; min-width: 0; font-size: 32rpx; font-weight: 600;
|
||||
text-align: center; padding: 0 8rpx;
|
||||
overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
|
||||
}
|
||||
.nav-right { width: 56rpx; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; }
|
||||
.nav-right-spacer { width: 100%; height: 1px; }
|
||||
.nav-gear { padding: 12rpx 8rpx; }
|
||||
.nav-gear-hover { opacity: 0.75; }
|
||||
.gear-icon { display: block; }
|
||||
|
||||
.loading { padding: 96rpx; text-align: center; color: #94A3B8; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user