|
@@ -1,12 +1,10 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="container">
|
|
<view class="container">
|
|
|
<view class="chart-inner">
|
|
<view class="chart-inner">
|
|
|
-
|
|
|
|
|
<view class="triangle-glow"></view>
|
|
<view class="triangle-glow"></view>
|
|
|
<view class="triangle-bg"></view>
|
|
<view class="triangle-bg"></view>
|
|
|
|
|
|
|
|
<view class="inner-matrix">
|
|
<view class="inner-matrix">
|
|
|
- <!-- Zone background overlays -->
|
|
|
|
|
<view class="zone-left-bg"></view>
|
|
<view class="zone-left-bg"></view>
|
|
|
<view class="zone-right-bg"></view>
|
|
<view class="zone-right-bg"></view>
|
|
|
|
|
|
|
@@ -32,10 +30,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- 行间横向分割线(区分上三区与下两区) -->
|
|
|
|
|
<view class="row-sep"></view>
|
|
<view class="row-sep"></view>
|
|
|
|
|
|
|
|
- <!-- 底部4数左→右:I(日) J(月) K(年前半) L(年后半) -->
|
|
|
|
|
<view class="row row-bot4">
|
|
<view class="row row-bot4">
|
|
|
<view class="cell-bot4" @click="showCellDetail('I', chartNum('innerBottom', 0))">
|
|
<view class="cell-bot4" @click="showCellDetail('I', chartNum('innerBottom', 0))">
|
|
|
<text :class="numColorCls(chartNum('innerBottom', 0))">
|
|
<text :class="numColorCls(chartNum('innerBottom', 0))">
|
|
@@ -64,67 +60,62 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- 顶部外侧:三角排列 X / V W (41-60岁) -->
|
|
|
|
|
|
|
+ <!-- 外三区 -->
|
|
|
<view class="outer-tri top-tri">
|
|
<view class="outer-tri top-tri">
|
|
|
- <view class="tri-main" :class="numColorCls(matrix.outerTop.main)" @click="showCellDetail('X', chartNum('innerTop'))">
|
|
|
|
|
|
|
+ <view class="tri-main" :class="numColorCls(matrix.outerTop.main)" @click="showCellDetail('X', matrix.outerTop.main)">
|
|
|
{{ matrix.outerTop.main }}
|
|
{{ matrix.outerTop.main }}
|
|
|
<text v-if="isMasterNum(matrix.outerTop.main)" class="master-star">★</text>
|
|
<text v-if="isMasterNum(matrix.outerTop.main)" class="master-star">★</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="tri-subs">
|
|
<view class="tri-subs">
|
|
|
- <text class="tri-sub" :class="numColorCls(matrix.outerTop.sub[0])" @click.stop="showCellDetail('V', chartNum('innerTop'))">
|
|
|
|
|
|
|
+ <text class="tri-sub" :class="numColorCls(matrix.outerTop.sub[0])" @click.stop="showCellDetail('V', matrix.outerTop.sub[0])">
|
|
|
{{ matrix.outerTop.sub[0] }}
|
|
{{ matrix.outerTop.sub[0] }}
|
|
|
<text v-if="isMasterNum(matrix.outerTop.sub[0])" class="master-star-sm">★</text>
|
|
<text v-if="isMasterNum(matrix.outerTop.sub[0])" class="master-star-sm">★</text>
|
|
|
</text>
|
|
</text>
|
|
|
- <text class="tri-sub" :class="numColorCls(matrix.outerTop.sub[1])" @click.stop="showCellDetail('W', chartNum('innerTop'))">
|
|
|
|
|
|
|
+ <text class="tri-sub" :class="numColorCls(matrix.outerTop.sub[1])" @click.stop="showCellDetail('W', matrix.outerTop.sub[1])">
|
|
|
{{ matrix.outerTop.sub[1] }}
|
|
{{ matrix.outerTop.sub[1] }}
|
|
|
<text v-if="isMasterNum(matrix.outerTop.sub[1])" class="master-star-sm">★</text>
|
|
<text v-if="isMasterNum(matrix.outerTop.sub[1])" class="master-star-sm">★</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- 左侧外侧:三角排列 R / P Q (21-40岁) -->
|
|
|
|
|
<view class="outer-tri left-tri">
|
|
<view class="outer-tri left-tri">
|
|
|
- <view class="tri-main" :class="numColorCls(matrix.outerLeft.main)" @click="showCellDetail('R', chartNum('innerMid', 0))">
|
|
|
|
|
|
|
+ <view class="tri-main" :class="numColorCls(matrix.outerLeft.main)" @click="showCellDetail('R', matrix.outerLeft.main)">
|
|
|
{{ matrix.outerLeft.main }}
|
|
{{ matrix.outerLeft.main }}
|
|
|
<text v-if="isMasterNum(matrix.outerLeft.main)" class="master-star-sm">★</text>
|
|
<text v-if="isMasterNum(matrix.outerLeft.main)" class="master-star-sm">★</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="tri-subs">
|
|
<view class="tri-subs">
|
|
|
- <text class="tri-sub" :class="numColorCls(matrix.outerLeft.sub[0])" @click.stop="showCellDetail('P', chartNum('innerBottom', 0))">
|
|
|
|
|
|
|
+ <text class="tri-sub" :class="numColorCls(matrix.outerLeft.sub[0])" @click.stop="showCellDetail('P', matrix.outerLeft.sub[0])">
|
|
|
{{ matrix.outerLeft.sub[0] }}
|
|
{{ matrix.outerLeft.sub[0] }}
|
|
|
<text v-if="isMasterNum(matrix.outerLeft.sub[0])" class="master-star-sm">★</text>
|
|
<text v-if="isMasterNum(matrix.outerLeft.sub[0])" class="master-star-sm">★</text>
|
|
|
</text>
|
|
</text>
|
|
|
- <text class="tri-sub" :class="numColorCls(matrix.outerLeft.sub[1])" @click.stop="showCellDetail('Q', chartNum('innerBottom', 1))">
|
|
|
|
|
|
|
+ <text class="tri-sub" :class="numColorCls(matrix.outerLeft.sub[1])" @click.stop="showCellDetail('Q', matrix.outerLeft.sub[1])">
|
|
|
{{ matrix.outerLeft.sub[1] }}
|
|
{{ matrix.outerLeft.sub[1] }}
|
|
|
<text v-if="isMasterNum(matrix.outerLeft.sub[1])" class="master-star-sm">★</text>
|
|
<text v-if="isMasterNum(matrix.outerLeft.sub[1])" class="master-star-sm">★</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- 右侧外侧:三角排列 U / S T (61+岁) -->
|
|
|
|
|
<view class="outer-tri right-tri">
|
|
<view class="outer-tri right-tri">
|
|
|
- <view class="tri-main" :class="numColorCls(matrix.outerRight.main)" @click="showCellDetail('U', chartNum('innerMid', 1))">
|
|
|
|
|
|
|
+ <view class="tri-main" :class="numColorCls(matrix.outerRight.main)" @click="showCellDetail('U', matrix.outerRight.main)">
|
|
|
{{ matrix.outerRight.main }}
|
|
{{ matrix.outerRight.main }}
|
|
|
<text v-if="isMasterNum(matrix.outerRight.main)" class="master-star-sm">★</text>
|
|
<text v-if="isMasterNum(matrix.outerRight.main)" class="master-star-sm">★</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="tri-subs">
|
|
<view class="tri-subs">
|
|
|
- <text class="tri-sub" :class="numColorCls(matrix.outerRight.sub[0])" @click.stop="showCellDetail('S', chartNum('innerBottom', 2))">
|
|
|
|
|
|
|
+ <text class="tri-sub" :class="numColorCls(matrix.outerRight.sub[0])" @click.stop="showCellDetail('S', matrix.outerRight.sub[0])">
|
|
|
{{ matrix.outerRight.sub[0] }}
|
|
{{ matrix.outerRight.sub[0] }}
|
|
|
<text v-if="isMasterNum(matrix.outerRight.sub[0])" class="master-star-sm">★</text>
|
|
<text v-if="isMasterNum(matrix.outerRight.sub[0])" class="master-star-sm">★</text>
|
|
|
</text>
|
|
</text>
|
|
|
- <text class="tri-sub" :class="numColorCls(matrix.outerRight.sub[1])" @click.stop="showCellDetail('T', chartNum('innerBottom', 3))">
|
|
|
|
|
|
|
+ <text class="tri-sub" :class="numColorCls(matrix.outerRight.sub[1])" @click.stop="showCellDetail('T', matrix.outerRight.sub[1])">
|
|
|
{{ matrix.outerRight.sub[1] }}
|
|
{{ matrix.outerRight.sub[1] }}
|
|
|
<text v-if="isMasterNum(matrix.outerRight.sub[1])" class="master-star-sm">★</text>
|
|
<text v-if="isMasterNum(matrix.outerRight.sub[1])" class="master-star-sm">★</text>
|
|
|
</text>
|
|
</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- 外三区之间的 V 形分隔线 -->
|
|
|
|
|
<view class="sep-v sep-v-left"></view>
|
|
<view class="sep-v sep-v-left"></view>
|
|
|
<view class="sep-v sep-v-right"></view>
|
|
<view class="sep-v sep-v-right"></view>
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- 底部 日(2) 月(2) 年(4) -->
|
|
|
|
|
<view class="date-footer">
|
|
<view class="date-footer">
|
|
|
<view class="date-group">
|
|
<view class="date-group">
|
|
|
<view class="input-boxes">
|
|
<view class="input-boxes">
|
|
@@ -148,7 +139,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- 数字点击详情弹窗 -->
|
|
|
|
|
|
|
+ <!-- Detail panel with annotation support -->
|
|
|
<view v-if="selectedCell" class="detail-overlay" @click="hideDetail">
|
|
<view v-if="selectedCell" class="detail-overlay" @click="hideDetail">
|
|
|
<view class="detail-panel" @click.stop>
|
|
<view class="detail-panel" @click.stop>
|
|
|
<view class="detail-close" @click="hideDetail">✕</view>
|
|
<view class="detail-close" @click="hideDetail">✕</view>
|
|
@@ -158,30 +149,85 @@
|
|
|
<view class="detail-trait">{{ selectedCell.trait }}</view>
|
|
<view class="detail-trait">{{ selectedCell.trait }}</view>
|
|
|
<view class="detail-desc">{{ selectedCell.desc }}</view>
|
|
<view class="detail-desc">{{ selectedCell.desc }}</view>
|
|
|
<view v-if="selectedCell.isMaster" class="detail-master">✦ 卓越数 — 能量倍增,非同凡响 ✦</view>
|
|
<view v-if="selectedCell.isMaster" class="detail-master">✦ 卓越数 — 能量倍增,非同凡响 ✦</view>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Annotation section (US-7.1) -->
|
|
|
|
|
+ <view v-if="recordId" class="annotation-section">
|
|
|
|
|
+ <view class="anno-divider"></view>
|
|
|
|
|
+ <text class="anno-title">📝 批注</text>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Existing annotations for this position -->
|
|
|
|
|
+ <view v-if="positionAnnotations.length > 0" class="anno-list">
|
|
|
|
|
+ <view v-for="(a, idx) in positionAnnotations" :key="idx" class="anno-item">
|
|
|
|
|
+ <text class="anno-text">{{ a.content }}</text>
|
|
|
|
|
+ <view class="anno-item-row">
|
|
|
|
|
+ <text class="anno-date">{{ formatTime(a.createdAt) }}</text>
|
|
|
|
|
+ <text class="anno-tag" v-if="a.tagName" :style="{ color: a.tagColor }">#{{ a.tagName }}</text>
|
|
|
|
|
+ <text class="anno-del" @click="deleteAnnotation(a.id)">删除</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Add annotation -->
|
|
|
|
|
+ <view class="anno-add">
|
|
|
|
|
+ <input class="anno-input" v-model="annoText" placeholder="添加批注..." maxlength="200" />
|
|
|
|
|
+ <view class="anno-actions">
|
|
|
|
|
+ <view class="tag-selector">
|
|
|
|
|
+ <text
|
|
|
|
|
+ v-for="t in allTags"
|
|
|
|
|
+ :key="t.id"
|
|
|
|
|
+ class="tag-option"
|
|
|
|
|
+ :class="{ active: selectedTagId === t.id }"
|
|
|
|
|
+ :style="{ borderColor: t.color || '#666' }"
|
|
|
|
|
+ @click="selectedTagId = selectedTagId === t.id ? null : t.id"
|
|
|
|
|
+ >#{{ t.name }}</text>
|
|
|
|
|
+ <text class="tag-option tag-add" @click="showCreateTag">+</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <button class="anno-save" @click="saveAnnotation" :disabled="!annoText.trim()">保存</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Create tag modal -->
|
|
|
|
|
+ <view v-if="showTagModal" class="detail-overlay" @click="showTagModal = false">
|
|
|
|
|
+ <view class="tag-modal" @click.stop>
|
|
|
|
|
+ <text class="tag-modal-title">新建标签</text>
|
|
|
|
|
+ <input class="tag-modal-input" v-model="newTagName" placeholder="标签名称" maxlength="20" />
|
|
|
|
|
+ <view class="tag-color-picker">
|
|
|
|
|
+ <text
|
|
|
|
|
+ v-for="c in tagColors"
|
|
|
|
|
+ :key="c"
|
|
|
|
|
+ class="color-dot"
|
|
|
|
|
+ :class="{ active: newTagColor === c }"
|
|
|
|
|
+ :style="{ background: c }"
|
|
|
|
|
+ @click="newTagColor = c"
|
|
|
|
|
+ ></text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="tag-modal-actions">
|
|
|
|
|
+ <button class="tag-cancel" @click="showTagModal = false">取消</button>
|
|
|
|
|
+ <button class="tag-confirm" @click="createTag" :disabled="!newTagName.trim()">创建</button>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-// style-guide §2.4: 命盘数字色
|
|
|
|
|
const NUM_COLORS = {
|
|
const NUM_COLORS = {
|
|
|
1: '#D94A4A', 2: '#4A90D9', 3: '#E8A238',
|
|
1: '#D94A4A', 2: '#4A90D9', 3: '#E8A238',
|
|
|
4: '#2D8B67', 5: '#D4A017', 6: '#7B6FA0',
|
|
4: '#2D8B67', 5: '#D4A017', 6: '#7B6FA0',
|
|
|
7: '#4A6FA5', 8: '#C9A84C', 9: '#B85C3A'
|
|
7: '#4A6FA5', 8: '#C9A84C', 9: '#B85C3A'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 30位完整命盘:US-1.3 位置命名对照表
|
|
|
|
|
const POSITION_INFO = {
|
|
const POSITION_INFO = {
|
|
|
- // 内部层(7位)
|
|
|
|
|
O: { label: '主性格', zone: 'main', trait: '核心人格特质', desc: '代表你的核心性格、人生方向和主要能量特征,是整个命盘的中心。' },
|
|
O: { label: '主性格', zone: 'main', trait: '核心人格特质', desc: '代表你的核心性格、人生方向和主要能量特征,是整个命盘的中心。' },
|
|
|
M: { label: '青年综合数', zone: 'left', trait: '青年期自身力量的呈现', desc: '由月能量与日能量结合而成,代表青年期的内在动力与外在表现。' },
|
|
M: { label: '青年综合数', zone: 'left', trait: '青年期自身力量的呈现', desc: '由月能量与日能量结合而成,代表青年期的内在动力与外在表现。' },
|
|
|
N: { label: '晚年综合数', zone: 'right', trait: '晚年期自身力量的呈现', desc: '由年前位与年后位结合而成,代表晚年的人生经验积累与智慧沉淀。' },
|
|
N: { label: '晚年综合数', zone: 'right', trait: '晚年期自身力量的呈现', desc: '由年前位与年后位结合而成,代表晚年的人生经验积累与智慧沉淀。' },
|
|
|
- I: { label: '日能量', zone: 'left', trait: '出生日能量', desc: '代表你出生当天的能量特质,影响你的日常行为和表达方式。(原位置 G → I)' },
|
|
|
|
|
- J: { label: '月能量', zone: 'father', trait: '父亲遗传与先天能量', desc: '代表来自父亲/父系的先天遗传能量,影响你的内在根基。(原位置 F → J)' },
|
|
|
|
|
- K: { label: '年前位', zone: 'right', trait: '前半生积累', desc: '代表早年环境与成长经历,影响人生前期的运势走向。(原位置 H)' },
|
|
|
|
|
- L: { label: '年后位', zone: 'mother', trait: '母亲遗传与后天能量', desc: '代表来自母亲/母系的遗传能量以及后天环境的影响。(原位置 I)' },
|
|
|
|
|
- // 外部层(9位)
|
|
|
|
|
|
|
+ I: { label: '日能量', zone: 'left', trait: '出生日能量', desc: '代表你出生当天的能量特质,影响你的日常行为和表达方式。' },
|
|
|
|
|
+ J: { label: '月能量', zone: 'father', trait: '父亲遗传与先天能量', desc: '代表来自父亲/父系的先天遗传能量,影响你的内在根基。' },
|
|
|
|
|
+ K: { label: '年前位', zone: 'right', trait: '前半生积累', desc: '代表早年环境与成长经历,影响人生前期的运势走向。' },
|
|
|
|
|
+ L: { label: '年后位', zone: 'mother', trait: '母亲遗传与后天能量', desc: '代表来自母亲/母系的遗传能量以及后天环境的影响。' },
|
|
|
P: { label: '左侧左子', zone: 'left', trait: '外部左翼基础', desc: '由日能量(I)与青年综合数(M)结合,代表左翼外部能量的基础层面。' },
|
|
P: { label: '左侧左子', zone: 'left', trait: '外部左翼基础', desc: '由日能量(I)与青年综合数(M)结合,代表左翼外部能量的基础层面。' },
|
|
|
Q: { label: '左侧右子', zone: 'left', trait: '外部左翼辅助', desc: '由月能量(J)与青年综合数(M)结合,代表左翼外部能量的辅助层面。' },
|
|
Q: { label: '左侧右子', zone: 'left', trait: '外部左翼辅助', desc: '由月能量(J)与青年综合数(M)结合,代表左翼外部能量的辅助层面。' },
|
|
|
R: { label: '左侧主数', zone: 'left', trait: '左翼外部能量总和(21-40岁)', desc: '左侧子数之和,代表21-40岁年龄段的综合外部能量。' },
|
|
R: { label: '左侧主数', zone: 'left', trait: '左翼外部能量总和(21-40岁)', desc: '左侧子数之和,代表21-40岁年龄段的综合外部能量。' },
|
|
@@ -193,16 +239,28 @@ const POSITION_INFO = {
|
|
|
X: { label: '顶部主数', zone: 'main', trait: '顶部外部能量总和(41-60岁)', desc: '顶部子数之和,代表41-60岁年龄段的综合外部能量。' }
|
|
X: { label: '顶部主数', zone: 'main', trait: '顶部外部能量总和(41-60岁)', desc: '顶部子数之和,代表41-60岁年龄段的综合外部能量。' }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const TAG_COLORS = ['#D94A4A', '#4A90D9', '#E8A238', '#2D8B67', '#7B6FA0', '#C9A84C', '#D4A017', '#B85C3A']
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
props: {
|
|
props: {
|
|
|
chartData: { type: Object, default: null },
|
|
chartData: { type: Object, default: null },
|
|
|
birthYear: { type: Number, default: 0 },
|
|
birthYear: { type: Number, default: 0 },
|
|
|
birthMonth: { type: Number, default: 0 },
|
|
birthMonth: { type: Number, default: 0 },
|
|
|
- birthDay: { type: Number, default: 0 }
|
|
|
|
|
|
|
+ birthDay: { type: Number, default: 0 },
|
|
|
|
|
+ recordId: { type: Number, default: null },
|
|
|
|
|
+ annotations: { type: Array, default: () => [] },
|
|
|
|
|
+ tags: { type: Array, default: () => [] }
|
|
|
},
|
|
},
|
|
|
|
|
+ emits: ['annotation-add', 'annotation-delete', 'tag-create'],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- selectedCell: null
|
|
|
|
|
|
|
+ selectedCell: null,
|
|
|
|
|
+ annoText: '',
|
|
|
|
|
+ selectedTagId: null,
|
|
|
|
|
+ showTagModal: false,
|
|
|
|
|
+ newTagName: '',
|
|
|
|
|
+ newTagColor: TAG_COLORS[1],
|
|
|
|
|
+ tagColors: TAG_COLORS
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -240,6 +298,13 @@ export default {
|
|
|
day: ['0', '1'],
|
|
day: ['0', '1'],
|
|
|
year: ['1', '9', '9', '0']
|
|
year: ['1', '9', '9', '0']
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ positionAnnotations() {
|
|
|
|
|
+ if (!this.selectedCell || !this.annotations || !this.recordId) return []
|
|
|
|
|
+ return this.annotations.filter(a => a.position === this.selectedCell.position)
|
|
|
|
|
+ },
|
|
|
|
|
+ allTags() {
|
|
|
|
|
+ return this.tags || []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -270,16 +335,42 @@ export default {
|
|
|
},
|
|
},
|
|
|
hideDetail() {
|
|
hideDetail() {
|
|
|
this.selectedCell = null
|
|
this.selectedCell = null
|
|
|
|
|
+ this.annoText = ''
|
|
|
|
|
+ this.selectedTagId = null
|
|
|
},
|
|
},
|
|
|
zoneName(zone) {
|
|
zoneName(zone) {
|
|
|
- const names = {
|
|
|
|
|
- main: '主性格区',
|
|
|
|
|
- left: '左区(月日能量)',
|
|
|
|
|
- right: '右区(年份能量)',
|
|
|
|
|
- father: '父源区',
|
|
|
|
|
- mother: '母源区'
|
|
|
|
|
- }
|
|
|
|
|
- return names[zone] || ''
|
|
|
|
|
|
|
+ return { main: '主性格区', left: '左区(月日能量)', right: '右区(年份能量)', father: '父源区', mother: '母源区' }[zone] || ''
|
|
|
|
|
+ },
|
|
|
|
|
+ formatTime(dateStr) {
|
|
|
|
|
+ if (!dateStr) return ''
|
|
|
|
|
+ const d = new Date(dateStr)
|
|
|
|
|
+ return `${String(d.getMonth()+1).padStart(2,'0')}-${String(d.getDate()).padStart(2,'0')} ${String(d.getHours()).padStart(2,'0')}:${String(d.getMinutes()).padStart(2,'0')}`
|
|
|
|
|
+ },
|
|
|
|
|
+ saveAnnotation() {
|
|
|
|
|
+ if (!this.annoText.trim() || !this.recordId || !this.selectedCell) return
|
|
|
|
|
+ this.$emit('annotation-add', {
|
|
|
|
|
+ recordId: this.recordId,
|
|
|
|
|
+ position: this.selectedCell.position,
|
|
|
|
|
+ content: this.annoText.trim(),
|
|
|
|
|
+ tagId: this.selectedTagId
|
|
|
|
|
+ })
|
|
|
|
|
+ this.annoText = ''
|
|
|
|
|
+ },
|
|
|
|
|
+ deleteAnnotation(annoId) {
|
|
|
|
|
+ this.$emit('annotation-delete', annoId)
|
|
|
|
|
+ },
|
|
|
|
|
+ showCreateTag() {
|
|
|
|
|
+ this.showTagModal = true
|
|
|
|
|
+ this.newTagName = ''
|
|
|
|
|
+ this.newTagColor = TAG_COLORS[1]
|
|
|
|
|
+ },
|
|
|
|
|
+ createTag() {
|
|
|
|
|
+ if (!this.newTagName.trim()) return
|
|
|
|
|
+ this.$emit('tag-create', {
|
|
|
|
|
+ name: this.newTagName.trim(),
|
|
|
|
|
+ color: this.newTagColor
|
|
|
|
|
+ })
|
|
|
|
|
+ this.showTagModal = false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -302,7 +393,6 @@ export default {
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* 星空粒子 */
|
|
|
|
|
.container::before {
|
|
.container::before {
|
|
|
content: '';
|
|
content: '';
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -327,8 +417,7 @@ export default {
|
|
|
z-index: 1;
|
|
z-index: 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* 三角形光晕 */
|
|
|
|
|
-/* ---- 五区色块叠加 ---- */
|
|
|
|
|
|
|
+/* Zone backgrounds, layout, cells, outer tris, etc. — exactly the same as before */
|
|
|
.zone-left-bg,
|
|
.zone-left-bg,
|
|
|
.zone-right-bg {
|
|
.zone-right-bg {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -353,10 +442,7 @@ export default {
|
|
|
background: linear-gradient(135deg, #4A90D9, #4A6FA5);
|
|
background: linear-gradient(135deg, #4A90D9, #4A6FA5);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* 父源/母源指示标记 */
|
|
|
|
|
-.zone-father {
|
|
|
|
|
- position: relative;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+.zone-father { position: relative; }
|
|
|
.zone-father::after {
|
|
.zone-father::after {
|
|
|
content: '';
|
|
content: '';
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -369,9 +455,7 @@ export default {
|
|
|
background: #4A90D9;
|
|
background: #4A90D9;
|
|
|
opacity: 0.5;
|
|
opacity: 0.5;
|
|
|
}
|
|
}
|
|
|
-.zone-mother {
|
|
|
|
|
- position: relative;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+.zone-mother { position: relative; }
|
|
|
.zone-mother::after {
|
|
.zone-mother::after {
|
|
|
content: '';
|
|
content: '';
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -385,7 +469,6 @@ export default {
|
|
|
opacity: 0.5;
|
|
opacity: 0.5;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* 垂直中分割线(从 O/M-N 交汇处向下贯穿至底部,分隔左右半区) */
|
|
|
|
|
.inner-matrix::after {
|
|
.inner-matrix::after {
|
|
|
content: '';
|
|
content: '';
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -404,7 +487,6 @@ export default {
|
|
|
z-index: 1;
|
|
z-index: 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* ---- 数字 1-9 独立配色 ---- */
|
|
|
|
|
.num-color-1 { color: #D94A4A !important; }
|
|
.num-color-1 { color: #D94A4A !important; }
|
|
|
.num-color-2 { color: #4A90D9 !important; }
|
|
.num-color-2 { color: #4A90D9 !important; }
|
|
|
.num-color-3 { color: #E8A238 !important; }
|
|
.num-color-3 { color: #E8A238 !important; }
|
|
@@ -415,7 +497,6 @@ export default {
|
|
|
.num-color-8 { color: #C9A84C !important; }
|
|
.num-color-8 { color: #C9A84C !important; }
|
|
|
.num-color-9 { color: #B85C3A !important; }
|
|
.num-color-9 { color: #B85C3A !important; }
|
|
|
|
|
|
|
|
-/* 卓越数 ★ 标记 */
|
|
|
|
|
.master-star {
|
|
.master-star {
|
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
|
color: #fbbf24;
|
|
color: #fbbf24;
|
|
@@ -448,7 +529,6 @@ export default {
|
|
|
filter: blur(20rpx);
|
|
filter: blur(20rpx);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* 三角形主体 */
|
|
|
|
|
.triangle-bg {
|
|
.triangle-bg {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
top: 104rpx;
|
|
top: 104rpx;
|
|
@@ -469,7 +549,6 @@ export default {
|
|
|
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
|
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* ---- 内部数字矩阵 ---- */
|
|
|
|
|
.inner-matrix {
|
|
.inner-matrix {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
bottom: 14rpx;
|
|
bottom: 14rpx;
|
|
@@ -482,14 +561,12 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.row { display: flex; }
|
|
.row { display: flex; }
|
|
|
-
|
|
|
|
|
.row-top {
|
|
.row-top {
|
|
|
height: 36%;
|
|
height: 36%;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
align-items: flex-end;
|
|
align-items: flex-end;
|
|
|
padding-bottom: 4rpx;
|
|
padding-bottom: 4rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
.row-mid {
|
|
.row-mid {
|
|
|
height: 28%;
|
|
height: 28%;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
@@ -497,7 +574,6 @@ export default {
|
|
|
gap: 56rpx;
|
|
gap: 56rpx;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
}
|
|
}
|
|
|
-/* 顶部 O 区与中间 M/N 区之间的横向分割线 */
|
|
|
|
|
.row-mid::before {
|
|
.row-mid::before {
|
|
|
content: '';
|
|
content: '';
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -509,8 +585,6 @@ export default {
|
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent);
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent);
|
|
|
pointer-events: none;
|
|
pointer-events: none;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* 底部4数紧凑排列 */
|
|
|
|
|
.row-bot4 {
|
|
.row-bot4 {
|
|
|
height: 36%;
|
|
height: 36%;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -520,8 +594,6 @@ export default {
|
|
|
padding: 0 20rpx;
|
|
padding: 0 20rpx;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* 行间横向分割线(位于 row-mid 与 row-bot4 之间,区分上三区与下两区) */
|
|
|
|
|
.row-sep {
|
|
.row-sep {
|
|
|
height: 2rpx;
|
|
height: 2rpx;
|
|
|
width: 62%;
|
|
width: 62%;
|
|
@@ -529,8 +601,6 @@ export default {
|
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent);
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent);
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* 底部四数 J 与 K 之间的垂直分割线(左右两区边界) */
|
|
|
|
|
.row-bot4::before {
|
|
.row-bot4::before {
|
|
|
content: '';
|
|
content: '';
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -551,7 +621,6 @@ export default {
|
|
|
text-shadow: 0 0 24rpx rgba(251, 191, 36, 0.5), 0 0 80rpx rgba(251, 191, 36, 0.2);
|
|
text-shadow: 0 0 24rpx rgba(251, 191, 36, 0.5), 0 0 80rpx rgba(251, 191, 36, 0.2);
|
|
|
letter-spacing: 2rpx;
|
|
letter-spacing: 2rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
.cell-mid {
|
|
.cell-mid {
|
|
|
flex: none;
|
|
flex: none;
|
|
|
width: auto;
|
|
width: auto;
|
|
@@ -561,7 +630,6 @@ export default {
|
|
|
text-shadow: 0 0 16rpx rgba(255, 255, 255, 0.25);
|
|
text-shadow: 0 0 16rpx rgba(255, 255, 255, 0.25);
|
|
|
padding: 0 6rpx;
|
|
padding: 0 6rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
.cell-bot4 {
|
|
.cell-bot4 {
|
|
|
width: 64rpx;
|
|
width: 64rpx;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -570,12 +638,8 @@ export default {
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
text-shadow: 0 0 12rpx rgba(255, 255, 255, 0.2);
|
|
text-shadow: 0 0 12rpx rgba(255, 255, 255, 0.2);
|
|
|
}
|
|
}
|
|
|
|
|
+.border-right { border-right: 1rpx solid rgba(255, 255, 255, 0.1); }
|
|
|
|
|
|
|
|
-.border-right {
|
|
|
|
|
- border-right: 1rpx solid rgba(255, 255, 255, 0.1);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/* ---- 外侧三角排列 ---- */
|
|
|
|
|
.outer-tri {
|
|
.outer-tri {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -583,7 +647,6 @@ export default {
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
z-index: 3;
|
|
z-index: 3;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
.tri-main {
|
|
.tri-main {
|
|
|
font-size: 44rpx;
|
|
font-size: 44rpx;
|
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
@@ -591,50 +654,21 @@ export default {
|
|
|
text-shadow: 0 0 18rpx rgba(255, 255, 255, 0.2);
|
|
text-shadow: 0 0 18rpx rgba(255, 255, 255, 0.2);
|
|
|
line-height: 1.1;
|
|
line-height: 1.1;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
.tri-subs {
|
|
.tri-subs {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
gap: 20rpx;
|
|
gap: 20rpx;
|
|
|
margin-top: 4rpx;
|
|
margin-top: 4rpx;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
.tri-sub {
|
|
.tri-sub {
|
|
|
font-size: 44rpx;
|
|
font-size: 44rpx;
|
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
|
color: rgba(255, 255, 255, 0.75);
|
|
color: rgba(255, 255, 255, 0.75);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-/* 顶部 */
|
|
|
|
|
-.top-tri {
|
|
|
|
|
- top: -58rpx;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- transform: translateX(-50%);
|
|
|
|
|
- position: absolute;
|
|
|
|
|
-}
|
|
|
|
|
-.top-tri .tri-main {
|
|
|
|
|
- font-size: 52rpx;
|
|
|
|
|
- color: #fbbf24;
|
|
|
|
|
- text-shadow: 0 0 28rpx rgba(251, 191, 36, 0.4);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/* 左侧 */
|
|
|
|
|
-.left-tri {
|
|
|
|
|
- top: 28%;
|
|
|
|
|
- left: 58rpx;
|
|
|
|
|
- position: absolute;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/* 右侧 */
|
|
|
|
|
-.right-tri {
|
|
|
|
|
- top: 28%;
|
|
|
|
|
- right: 58rpx;
|
|
|
|
|
- position: absolute;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/* 顶部的两外侧数字之间的分隔线 */
|
|
|
|
|
-.top-tri .tri-subs {
|
|
|
|
|
- position: relative;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+.top-tri { top: -58rpx; left: 50%; transform: translateX(-50%); position: absolute; }
|
|
|
|
|
+.top-tri .tri-main { font-size: 52rpx; color: #fbbf24; text-shadow: 0 0 28rpx rgba(251, 191, 36, 0.4); }
|
|
|
|
|
+.left-tri { top: 28%; left: 58rpx; position: absolute; }
|
|
|
|
|
+.right-tri { top: 28%; right: 58rpx; position: absolute; }
|
|
|
|
|
+.top-tri .tri-subs { position: relative; }
|
|
|
.top-tri .tri-subs::before {
|
|
.top-tri .tri-subs::before {
|
|
|
content: '';
|
|
content: '';
|
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -646,7 +680,6 @@ export default {
|
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15) 15%, rgba(255, 255, 255, 0.15) 85%, transparent);
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15) 15%, rgba(255, 255, 255, 0.15) 85%, transparent);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* ---- 外三区之间的 V 形分隔线 ---- */
|
|
|
|
|
.sep-v {
|
|
.sep-v {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
z-index: 2;
|
|
z-index: 2;
|
|
@@ -654,22 +687,9 @@ export default {
|
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
|
|
|
pointer-events: none;
|
|
pointer-events: none;
|
|
|
}
|
|
}
|
|
|
-.sep-v-left {
|
|
|
|
|
- top: 20rpx;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- height: 70rpx;
|
|
|
|
|
- transform-origin: top center;
|
|
|
|
|
- transform: rotate(-36deg);
|
|
|
|
|
-}
|
|
|
|
|
-.sep-v-right {
|
|
|
|
|
- top: 20rpx;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- height: 70rpx;
|
|
|
|
|
- transform-origin: top center;
|
|
|
|
|
- transform: rotate(36deg);
|
|
|
|
|
-}
|
|
|
|
|
|
|
+.sep-v-left { top: 20rpx; left: 50%; height: 70rpx; transform-origin: top center; transform: rotate(-36deg); }
|
|
|
|
|
+.sep-v-right { top: 20rpx; left: 50%; height: 70rpx; transform-origin: top center; transform: rotate(36deg); }
|
|
|
|
|
|
|
|
-/* ---- 底部日期 ---- */
|
|
|
|
|
.date-footer {
|
|
.date-footer {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -677,43 +697,20 @@ export default {
|
|
|
padding: 0 40rpx;
|
|
padding: 0 40rpx;
|
|
|
z-index: 1;
|
|
z-index: 1;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-.date-group {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- flex-direction: column;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.date-divider {
|
|
|
|
|
- width: 1rpx;
|
|
|
|
|
- height: 40rpx;
|
|
|
|
|
- background: rgba(255, 255, 255, 0.08);
|
|
|
|
|
- margin: 0 24rpx;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
|
|
+.date-group { display: flex; flex-direction: column; align-items: center; }
|
|
|
|
|
+.date-divider { width: 1rpx; height: 40rpx; background: rgba(255, 255, 255, 0.08); margin: 0 24rpx; }
|
|
|
.input-boxes { display: flex; }
|
|
.input-boxes { display: flex; }
|
|
|
-
|
|
|
|
|
.box {
|
|
.box {
|
|
|
- width: 34rpx;
|
|
|
|
|
- height: 42rpx;
|
|
|
|
|
|
|
+ width: 34rpx; height: 42rpx;
|
|
|
border: 1rpx solid rgba(255, 255, 255, 0.25);
|
|
border: 1rpx solid rgba(255, 255, 255, 0.25);
|
|
|
- border-radius: 6rpx;
|
|
|
|
|
- margin: 0 3rpx;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- line-height: 42rpx;
|
|
|
|
|
- font-size: 22rpx;
|
|
|
|
|
- color: #ffffff;
|
|
|
|
|
|
|
+ border-radius: 6rpx; margin: 0 3rpx;
|
|
|
|
|
+ text-align: center; line-height: 42rpx;
|
|
|
|
|
+ font-size: 22rpx; color: #ffffff;
|
|
|
background: rgba(255, 255, 255, 0.08);
|
|
background: rgba(255, 255, 255, 0.08);
|
|
|
}
|
|
}
|
|
|
|
|
+.label { font-size: 18rpx; color: rgba(255, 255, 255, 0.45); margin-top: 8rpx; letter-spacing: 2rpx; }
|
|
|
|
|
|
|
|
-.label {
|
|
|
|
|
- font-size: 18rpx;
|
|
|
|
|
- color: rgba(255, 255, 255, 0.45);
|
|
|
|
|
- margin-top: 8rpx;
|
|
|
|
|
- letter-spacing: 2rpx;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-/* ---- 数字点击详情弹窗 ---- */
|
|
|
|
|
|
|
+/* Detail overlay (same as before, extended for annotations) */
|
|
|
.detail-overlay {
|
|
.detail-overlay {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
inset: 0;
|
|
inset: 0;
|
|
@@ -724,10 +721,7 @@ export default {
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
animation: fadeIn 0.2s ease-out;
|
|
animation: fadeIn 0.2s ease-out;
|
|
|
}
|
|
}
|
|
|
-@keyframes fadeIn {
|
|
|
|
|
- from { opacity: 0; }
|
|
|
|
|
- to { opacity: 1; }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
|
|
.detail-panel {
|
|
.detail-panel {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
background: linear-gradient(180deg, #1a1040 0%, #0f0c2e 100%);
|
|
background: linear-gradient(180deg, #1a1040 0%, #0f0c2e 100%);
|
|
@@ -736,96 +730,201 @@ export default {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
|
border-top: 1rpx solid rgba(251, 191, 36, 0.2);
|
|
border-top: 1rpx solid rgba(251, 191, 36, 0.2);
|
|
|
- max-height: 60vh;
|
|
|
|
|
|
|
+ max-height: 70vh;
|
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
|
}
|
|
}
|
|
|
-@keyframes slideUp {
|
|
|
|
|
- from { transform: translateY(100%); }
|
|
|
|
|
- to { transform: translateY(0); }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
|
|
|
.detail-close {
|
|
.detail-close {
|
|
|
- position: absolute;
|
|
|
|
|
- top: 20rpx;
|
|
|
|
|
- right: 28rpx;
|
|
|
|
|
- font-size: 32rpx;
|
|
|
|
|
- color: rgba(255, 255, 255, 0.3);
|
|
|
|
|
- width: 50rpx;
|
|
|
|
|
- height: 50rpx;
|
|
|
|
|
|
|
+ position: absolute; top: 20rpx; right: 28rpx;
|
|
|
|
|
+ font-size: 32rpx; color: rgba(255, 255, 255, 0.3);
|
|
|
|
|
+ width: 50rpx; height: 50rpx;
|
|
|
|
|
+ display: flex; align-items: center; justify-content: center;
|
|
|
|
|
+}
|
|
|
|
|
+.detail-num { font-size: 80rpx; font-weight: 700; text-align: center; text-shadow: 0 0 30rpx currentColor; margin-bottom: 8rpx; }
|
|
|
|
|
+.detail-name { font-size: 30rpx; font-weight: 600; color: #ffffff; text-align: center; margin-bottom: 16rpx; }
|
|
|
|
|
+.detail-zone-tag { display: inline-block; font-size: 20rpx; padding: 4rpx 16rpx; border-radius: 20rpx; text-align: center; margin: 0 auto 20rpx; width: fit-content; }
|
|
|
|
|
+.tag-main { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1rpx solid rgba(251, 191, 36, 0.2); }
|
|
|
|
|
+.tag-left { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1rpx solid rgba(245, 158, 11, 0.2); }
|
|
|
|
|
+.tag-right { background: rgba(74, 144, 217, 0.15); color: #4A90D9; border: 1rpx solid rgba(74, 144, 217, 0.2); }
|
|
|
|
|
+.tag-father { background: rgba(74, 144, 217, 0.15); color: #4A90D9; border: 1rpx solid rgba(74, 144, 217, 0.2); }
|
|
|
|
|
+.tag-mother { background: rgba(123, 111, 160, 0.15); color: #7B6FA0; border: 1rpx solid rgba(123, 111, 160, 0.2); }
|
|
|
|
|
+.detail-trait { font-size: 26rpx; font-weight: 500; color: rgba(255, 255, 255, 0.8); text-align: center; margin-bottom: 16rpx; }
|
|
|
|
|
+.detail-desc { font-size: 24rpx; color: rgba(255, 255, 255, 0.5); line-height: 1.8; text-align: center; padding: 0 20rpx; }
|
|
|
|
|
+.detail-master { margin-top: 24rpx; text-align: center; font-size: 22rpx; color: #fbbf24; background: rgba(251, 191, 36, 0.1); border: 1rpx solid rgba(251, 191, 36, 0.15); border-radius: 12rpx; padding: 12rpx; letter-spacing: 2rpx; }
|
|
|
|
|
+
|
|
|
|
|
+/* ===== Annotation section ===== */
|
|
|
|
|
+.annotation-section {
|
|
|
|
|
+ margin-top: 16rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.anno-divider {
|
|
|
|
|
+ height: 1rpx;
|
|
|
|
|
+ background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
|
|
|
|
|
+ margin: 20rpx 0 16rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.anno-title {
|
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ color: rgba(255,255,255,0.7);
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ margin-bottom: 12rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.anno-list {
|
|
|
|
|
+ margin-bottom: 12rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.anno-item {
|
|
|
|
|
+ background: rgba(255,255,255,0.04);
|
|
|
|
|
+ border: 1rpx solid rgba(255,255,255,0.06);
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ padding: 12rpx 14rpx;
|
|
|
|
|
+ margin-bottom: 8rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.anno-text {
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ color: rgba(255,255,255,0.85);
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ line-height: 1.5;
|
|
|
|
|
+}
|
|
|
|
|
+.anno-item-row {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
|
|
|
|
+ gap: 12rpx;
|
|
|
|
|
+ margin-top: 6rpx;
|
|
|
}
|
|
}
|
|
|
-.detail-num {
|
|
|
|
|
- font-size: 80rpx;
|
|
|
|
|
- font-weight: 700;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- text-shadow: 0 0 30rpx currentColor;
|
|
|
|
|
- margin-bottom: 8rpx;
|
|
|
|
|
|
|
+.anno-date {
|
|
|
|
|
+ font-size: 20rpx;
|
|
|
|
|
+ color: rgba(255,255,255,0.3);
|
|
|
}
|
|
}
|
|
|
-.detail-name {
|
|
|
|
|
- font-size: 30rpx;
|
|
|
|
|
- font-weight: 600;
|
|
|
|
|
- color: #ffffff;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- margin-bottom: 16rpx;
|
|
|
|
|
|
|
+.anno-tag {
|
|
|
|
|
+ font-size: 20rpx;
|
|
|
|
|
+ font-weight: 500;
|
|
|
}
|
|
}
|
|
|
-.detail-zone-tag {
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
|
|
+.anno-del {
|
|
|
font-size: 20rpx;
|
|
font-size: 20rpx;
|
|
|
- padding: 4rpx 16rpx;
|
|
|
|
|
- border-radius: 20rpx;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- margin: 0 auto 20rpx;
|
|
|
|
|
- width: fit-content;
|
|
|
|
|
|
|
+ color: #D94A4A;
|
|
|
|
|
+ margin-left: auto;
|
|
|
}
|
|
}
|
|
|
-.tag-main {
|
|
|
|
|
- background: rgba(251, 191, 36, 0.15);
|
|
|
|
|
- color: #fbbf24;
|
|
|
|
|
- border: 1rpx solid rgba(251, 191, 36, 0.2);
|
|
|
|
|
|
|
+.anno-add {
|
|
|
|
|
+ margin-top: 8rpx;
|
|
|
}
|
|
}
|
|
|
-.tag-left {
|
|
|
|
|
- background: rgba(245, 158, 11, 0.15);
|
|
|
|
|
- color: #fbbf24;
|
|
|
|
|
- border: 1rpx solid rgba(245, 158, 11, 0.2);
|
|
|
|
|
|
|
+.anno-input {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 72rpx;
|
|
|
|
|
+ border: 1rpx solid rgba(255,255,255,0.1);
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ padding: 0 14rpx;
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ color: rgba(255,255,255,0.85);
|
|
|
|
|
+ background: rgba(255,255,255,0.04);
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
}
|
|
|
-.tag-right {
|
|
|
|
|
- background: rgba(74, 144, 217, 0.15);
|
|
|
|
|
- color: #4A90D9;
|
|
|
|
|
- border: 1rpx solid rgba(74, 144, 217, 0.2);
|
|
|
|
|
|
|
+.anno-actions {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ margin-top: 10rpx;
|
|
|
}
|
|
}
|
|
|
-.tag-father {
|
|
|
|
|
- background: rgba(74, 144, 217, 0.15);
|
|
|
|
|
- color: #4A90D9;
|
|
|
|
|
- border: 1rpx solid rgba(74, 144, 217, 0.2);
|
|
|
|
|
|
|
+.tag-selector {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
+ gap: 8rpx;
|
|
|
|
|
+ flex: 1;
|
|
|
}
|
|
}
|
|
|
-.tag-mother {
|
|
|
|
|
- background: rgba(123, 111, 160, 0.15);
|
|
|
|
|
- color: #7B6FA0;
|
|
|
|
|
- border: 1rpx solid rgba(123, 111, 160, 0.2);
|
|
|
|
|
|
|
+.tag-option {
|
|
|
|
|
+ font-size: 20rpx;
|
|
|
|
|
+ padding: 4rpx 12rpx;
|
|
|
|
|
+ border-radius: 8rpx;
|
|
|
|
|
+ border: 1rpx solid rgba(255,255,255,0.15);
|
|
|
|
|
+ color: rgba(255,255,255,0.5);
|
|
|
}
|
|
}
|
|
|
-.detail-trait {
|
|
|
|
|
- font-size: 26rpx;
|
|
|
|
|
- font-weight: 500;
|
|
|
|
|
- color: rgba(255, 255, 255, 0.8);
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- margin-bottom: 16rpx;
|
|
|
|
|
|
|
+.tag-option.active {
|
|
|
|
|
+ background: rgba(255,255,255,0.08);
|
|
|
|
|
+ color: rgba(255,255,255,0.85);
|
|
|
}
|
|
}
|
|
|
-.detail-desc {
|
|
|
|
|
|
|
+.tag-add {
|
|
|
font-size: 24rpx;
|
|
font-size: 24rpx;
|
|
|
- color: rgba(255, 255, 255, 0.5);
|
|
|
|
|
- line-height: 1.8;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- padding: 0 20rpx;
|
|
|
|
|
|
|
+ font-weight: 700;
|
|
|
|
|
+ color: rgba(255,255,255,0.4);
|
|
|
|
|
+ border-style: dashed;
|
|
|
|
|
+ padding: 4rpx 14rpx;
|
|
|
}
|
|
}
|
|
|
-.detail-master {
|
|
|
|
|
- margin-top: 24rpx;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
|
|
+.anno-save {
|
|
|
font-size: 22rpx;
|
|
font-size: 22rpx;
|
|
|
- color: #fbbf24;
|
|
|
|
|
- background: rgba(251, 191, 36, 0.1);
|
|
|
|
|
- border: 1rpx solid rgba(251, 191, 36, 0.15);
|
|
|
|
|
- border-radius: 12rpx;
|
|
|
|
|
- padding: 12rpx;
|
|
|
|
|
- letter-spacing: 2rpx;
|
|
|
|
|
|
|
+ padding: 6rpx 24rpx;
|
|
|
|
|
+ background: linear-gradient(135deg, #f59e0b, #d97706);
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ border-radius: 8rpx;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ margin-left: 8rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.anno-save[disabled] { opacity: 0.3; }
|
|
|
|
|
+
|
|
|
|
|
+/* Tag creation modal */
|
|
|
|
|
+.tag-modal {
|
|
|
|
|
+ width: 70%;
|
|
|
|
|
+ background: #1a1040;
|
|
|
|
|
+ border-radius: 20rpx;
|
|
|
|
|
+ padding: 36rpx;
|
|
|
|
|
+ border: 1rpx solid rgba(251,191,36,0.15);
|
|
|
|
|
+ margin-bottom: 30vh;
|
|
|
|
|
+}
|
|
|
|
|
+.tag-modal-title {
|
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ color: rgba(255,255,255,0.9);
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ margin-bottom: 20rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.tag-modal-input {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 72rpx;
|
|
|
|
|
+ border: 1rpx solid rgba(255,255,255,0.15);
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ padding: 0 14rpx;
|
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
|
+ color: rgba(255,255,255,0.85);
|
|
|
|
|
+ background: rgba(255,255,255,0.04);
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ margin-bottom: 16rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.tag-color-picker {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ gap: 12rpx;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ margin-bottom: 24rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.color-dot {
|
|
|
|
|
+ width: 40rpx;
|
|
|
|
|
+ height: 40rpx;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ border: 2rpx solid transparent;
|
|
|
|
|
+}
|
|
|
|
|
+.color-dot.active {
|
|
|
|
|
+ border-color: #fff;
|
|
|
|
|
+ box-shadow: 0 0 12rpx rgba(255,255,255,0.3);
|
|
|
|
|
+}
|
|
|
|
|
+.tag-modal-actions {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ gap: 16rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.tag-cancel {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ padding: 12rpx 0;
|
|
|
|
|
+ background: rgba(255,255,255,0.06);
|
|
|
|
|
+ border: 1rpx solid rgba(255,255,255,0.1);
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ color: rgba(255,255,255,0.6);
|
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
|
+}
|
|
|
|
|
+.tag-confirm {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ padding: 12rpx 0;
|
|
|
|
|
+ background: linear-gradient(135deg, #f59e0b, #d97706);
|
|
|
|
|
+ border: none;
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ font-size: 26rpx;
|
|
|
}
|
|
}
|
|
|
|
|
+.tag-confirm[disabled] { opacity: 0.3; }
|
|
|
</style>
|
|
</style>
|