1. 新增评估选择组件、本地草稿存储与新闻/金融内容服务 2. 重构页面布局与样式:调整按钮阴影、图标尺寸、导航栏样式 3. 更新启动页、报告页、消息中心等页面UI与交互逻辑 4. 替换图标资源,调整禁用态透明度 5. 补充README文档与本地数据模拟实现
21 lines
951 B
Plaintext
21 lines
951 B
Plaintext
<template>
|
|
<image class="app-icon" :class="(muted ? 'muted-icon ' : '') + (isVector ? 'vector-icon' : '')" :style="iconStyle" :src="iconSrc" mode="aspectFit"></image>
|
|
</template>
|
|
|
|
<script setup lang="uts">
|
|
const props = defineProps({ name: { type: String, default: 'sparkles' }, size: { type: Number, default: 42 }, muted: { type: Boolean, default: false } })
|
|
const isVector = computed(() => props.name == 'chevron-right' || props.name == 'arrow-right')
|
|
const iconSrc = computed(() => isVector.value ? '/static/icons/' + (props.name == 'chevron-right' ? 'chevron-circle' : 'arrow-right') + '.svg' : '/static/mobile/icons-generated/' + props.name + '.png')
|
|
const iconStyle = computed(() => 'width:' + props.size + 'rpx;height:' + props.size + 'rpx;')
|
|
</script>
|
|
|
|
<style>
|
|
.app-icon {
|
|
/* #ifndef APP */
|
|
display: block;
|
|
/* #endif */
|
|
flex-shrink: 0; transform: scale(1.2); }
|
|
.vector-icon { transform: none; }
|
|
.muted-icon { opacity: .70; }
|
|
</style>
|