feat 对接数据
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user