|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="container" :style="{ '--font-scale': fontScale }">
|
|
|
<!-- 通用登录浮层 -->
|
|
|
- <login-sheet ref="loginSheet" @success="onSheetLoginSuccess" />
|
|
|
+ <login-sheet ref="loginSheet" @success="onSheetLoginSuccess" @open="onLoginSheetOpen" @close="onLoginSheetClose" />
|
|
|
<block v-if="!isLoggedIn">
|
|
|
<!-- 品牌定位语 -->
|
|
|
<view class="brand-strap"><text class="brand-strap-text">科学管理全家健康数据</text></view>
|
|
|
@@ -33,12 +33,15 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <RadarChart :dimensions="demoBodyDims" :scores="demoBodyScores" :fillColor="bodyColor" childName="示例" width="560" height="460" />
|
|
|
- <view class="demo-chart-title-row">
|
|
|
- <text class="demo-chart-name">🧠 认知雷达</text>
|
|
|
- <text class="demo-chart-tag">示例</text>
|
|
|
+ <!-- 演示雷达(登录浮层打开时隐藏:原生 canvas 会盖在浮层之上) -->
|
|
|
+ <view v-if="!loginSheetVisible">
|
|
|
+ <RadarChart :dimensions="demoBodyDims" :scores="demoBodyScores" :fillColor="bodyColor" childName="示例" width="560" height="460" />
|
|
|
+ <view class="demo-chart-title-row">
|
|
|
+ <text class="demo-chart-name">🧠 认知雷达</text>
|
|
|
+ <text class="demo-chart-tag">示例</text>
|
|
|
+ </view>
|
|
|
+ <RadarChart :dimensions="demoCogDims" :scores="demoCogScores" :fillColor="wisdomColor" childName="示例" width="560" height="460" />
|
|
|
</view>
|
|
|
- <RadarChart :dimensions="demoCogDims" :scores="demoCogScores" :fillColor="wisdomColor" childName="示例" width="560" height="460" />
|
|
|
<!-- 五维健康体系 -->
|
|
|
<view class="wuxing-section">
|
|
|
<view class="wuxing-title">身·心·智·行·富 · 看得见的健康闭环</view>
|
|
|
@@ -302,7 +305,9 @@ export default {
|
|
|
energySandbox: null,
|
|
|
wealthDetail: null,
|
|
|
childrenList: [],
|
|
|
- relationshipEmpty: false
|
|
|
+ relationshipEmpty: false,
|
|
|
+ // 登录浮层打开标志(打开期间隐藏演示雷达,避免原生 canvas 盖在浮层之上)
|
|
|
+ loginSheetVisible: false
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -479,6 +484,9 @@ export default {
|
|
|
},
|
|
|
switchTab: function(code) { this.currentTab = code },
|
|
|
goPage: function(url) { uni.navigateTo({ url: url }) },
|
|
|
+ // 登录浮层打开/关闭(隐藏演示雷达,规避原生 canvas 层级高于浮层的问题)
|
|
|
+ onLoginSheetOpen: function() { this.loginSheetVisible = true },
|
|
|
+ onLoginSheetClose: function() { this.loginSheetVisible = false },
|
|
|
// 登录成功:刷新登录态数据(镜像 onShow 已登录分支)
|
|
|
onLoginSuccess: function() {
|
|
|
// 未登录点击「15题五维健康自检」→ 登录成功后续接跳转调研问卷
|