|
|
@@ -137,12 +137,14 @@
|
|
|
|
|
|
<view class="section-title" style="margin-top:20rpx">方案结构</view>
|
|
|
<view class="section-preview-list">
|
|
|
- <view v-for="(sec, i) in sectionKeys" :key="i" class="section-preview-item">
|
|
|
+ <view v-for="(sec, i) in sectionKeys" :key="i" class="section-preview-item"
|
|
|
+ hover-class="section-preview-item--hover" @click="openSectionEditor(i)">
|
|
|
<view class="sec-icon">{{ sectionIcons[i] }}</view>
|
|
|
<view class="sec-info">
|
|
|
<text class="sec-title">{{ sectionTitles[i] }}</text>
|
|
|
<text class="sec-status" :class="{ done: sections[sec].confirmed }">{{ sections[sec].confirmed ? '已确认' : '待确认' }}</text>
|
|
|
</view>
|
|
|
+ <text class="sec-arrow">›</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -1144,6 +1146,14 @@ selectedMembers: function() {
|
|
|
this.editing = true
|
|
|
this.sectionFeedback = ''
|
|
|
},
|
|
|
+ // 点击预览板块 → 直接打开该板块编辑(R1:方案预览板块可点击进入编辑)
|
|
|
+ openSectionEditor: function(i) {
|
|
|
+ var idx = Number(i)
|
|
|
+ if (isNaN(idx) || idx < 0 || idx >= this.sectionKeys.length) idx = 0
|
|
|
+ this.editIndex = idx
|
|
|
+ this.editing = true
|
|
|
+ this.sectionFeedback = ''
|
|
|
+ },
|
|
|
exitEditMode: function() {
|
|
|
this.editing = false
|
|
|
this.sectionFeedback = ''
|
|
|
@@ -1529,6 +1539,7 @@ selectedMembers: function() {
|
|
|
border-radius: 16rpx;
|
|
|
border: 2rpx solid $facade-hairline-2;
|
|
|
}
|
|
|
+.section-preview-item--hover { background: $facade-fill-4; }
|
|
|
.sec-icon { font-size: calc(40rpx * var(--font-scale, 1)); }
|
|
|
.sec-info { flex: 1; }
|
|
|
.sec-title { font-size: calc(28rpx * var(--font-scale, 1)); color: $facade-text-strong; font-weight: 600; display: block; }
|