feat: 完成项目基础功能搭建与样式优化
1. 新增评估选择组件、本地草稿存储与新闻/金融内容服务 2. 重构页面布局与样式:调整按钮阴影、图标尺寸、导航栏样式 3. 更新启动页、报告页、消息中心等页面UI与交互逻辑 4. 替换图标资源,调整禁用态透明度 5. 补充README文档与本地数据模拟实现
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<view class="header-wrap">
|
||||
<view class="status-bar" :style="statusStyle(0)"></view>
|
||||
<view class="app-header">
|
||||
<view class="header-side" @click="handleBack"><AppIcon v-if="back" name="chevron-right" :size="34" class="back-icon" /></view>
|
||||
<view class="header-side" @click="handleBack"><AppIcon v-if="back" name="chevron-right" :size="48" class="back-icon" /></view>
|
||||
<text class="header-title">{{ title }}</text>
|
||||
<view class="header-side header-right"><slot></slot></view>
|
||||
</view>
|
||||
@@ -13,9 +13,11 @@
|
||||
import { usePageLayout } from '@/services/layout.uts'
|
||||
const { statusStyle } = usePageLayout()
|
||||
import AppIcon from '@/components/AppIcon.uvue'
|
||||
const props = defineProps({ title: { type: String, default: '' }, back: { type: Boolean, default: true } })
|
||||
const props = defineProps({ title: { type: String, default: '' }, back: { type: Boolean, default: true }, customBack: { type: Boolean, default: false } })
|
||||
const emit = defineEmits(['back'])
|
||||
const handleBack = () => {
|
||||
if (!props.back) return
|
||||
if (props.customBack) { emit('back'); return }
|
||||
const pages = getCurrentPages()
|
||||
if (pages.length > 1) uni.navigateBack({ delta: 1 })
|
||||
else uni.reLaunch({ url: '/pages/home/home' })
|
||||
@@ -26,7 +28,7 @@
|
||||
.header-wrap { background-color: #ffffff; }
|
||||
.status-bar { }
|
||||
.app-header { height: 96rpx; padding: 0 24rpx; flex-direction: row; align-items: center; justify-content: space-between; border-bottom: 1rpx solid #edf1f7; }
|
||||
.header-side { width: 100rpx; height: 96rpx; align-items: flex-start; justify-content: center; }
|
||||
.header-side { width: 88rpx; height: 96rpx; align-items: flex-start; justify-content: center; flex-shrink: 0; }
|
||||
.header-right { align-items: flex-end; }
|
||||
.back-icon { transform: rotate(180deg); margin-top: 0; }
|
||||
.header-title { font-size: 34rpx; font-weight: 700; color: #111d35; }
|
||||
|
||||
Reference in New Issue
Block a user