|
|
@@ -261,14 +261,24 @@
|
|
|
<!-- ===== Phase 1.2: 心理告警横幅 ===== -->
|
|
|
<PsychCrisisBanner v-if="isLoggedIn" :childId="currentChildId" source="screening" />
|
|
|
|
|
|
- <!-- ===== 底部:功能入口 Grid(通用) ===== -->
|
|
|
+ <!-- ===== 底部:功能入口 Grid(通用,两行) ===== -->
|
|
|
<view class="func-section" v-if="sectionVisible('func_entries')">
|
|
|
<view class="func-grid">
|
|
|
- <view class="func-item" v-for="item in funcList" :key="item.label" @click="onFuncClick(item)">
|
|
|
- <view class="func-icon-wrap">
|
|
|
- <text class="func-icon">{{ item.icon }}</text>
|
|
|
+ <view class="func-row">
|
|
|
+ <view class="func-item" v-for="item in funcListRow1" :key="item.label" @click="onFuncClick(item)">
|
|
|
+ <view class="func-icon-wrap">
|
|
|
+ <text class="func-icon">{{ item.icon }}</text>
|
|
|
+ </view>
|
|
|
+ <text class="func-label">{{ item.label }}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="func-row">
|
|
|
+ <view class="func-item" v-for="item in funcListRow2" :key="item.label" @click="onFuncClick(item)">
|
|
|
+ <view class="func-icon-wrap">
|
|
|
+ <text class="func-icon">{{ item.icon }}</text>
|
|
|
+ </view>
|
|
|
+ <text class="func-label">{{ item.label }}</text>
|
|
|
</view>
|
|
|
- <text class="func-label">{{ item.label }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -437,6 +447,12 @@ export default {
|
|
|
},
|
|
|
currentDimensionCode: function() {
|
|
|
return 'mind'
|
|
|
+ },
|
|
|
+ funcListRow1: function() {
|
|
|
+ return this.funcList.slice(0, 4)
|
|
|
+ },
|
|
|
+ funcListRow2: function() {
|
|
|
+ return this.funcList.slice(4)
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
@@ -1279,13 +1295,18 @@ export default {
|
|
|
}
|
|
|
.func-grid {
|
|
|
display: flex;
|
|
|
- flex-direction: row;
|
|
|
- justify-content: space-between;
|
|
|
+ flex-direction: column;
|
|
|
+ gap: 16rpx;
|
|
|
background: #fff;
|
|
|
border-radius: 20rpx;
|
|
|
padding: 24rpx 16rpx;
|
|
|
box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
|
|
|
}
|
|
|
+.func-row {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
.func-item {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|