feat 对接数据

This commit is contained in:
Ironsp
2026-09-10 17:34:49 +08:00
parent 903019b15a
commit 9d39a48117
4 changed files with 61 additions and 12 deletions

View File

@@ -1,4 +1,13 @@
<script setup lang="ts">
import storage from '@/utils/storage'
const project = ref(storage.get('current_project'))
// 页面显示时刷新数据(从设置页返回时)
onShow(() => {
project.value = storage.get('current_project')
})
function onIconClick(name: string) {
if (name === '通知') {
uni.navigateTo({
@@ -27,10 +36,10 @@ function onIconClick(name: string) {
<image class="nav-logo" src="/static/logo.png" mode="aspectFit" @tap="onIconClick('logo')" />
<view class="nav-info">
<text class="nav-title">
G6高速改扩建测试测试项目
{{ project?.project_name || '未设置项目' }}
</text>
<text class="nav-subtitle">
K1+200-K1+800
{{ project?.stake_range || '--' }}
</text>
</view>
</view>