|
@@ -63,9 +63,10 @@
|
|
|
:intent="userIntent"
|
|
:intent="userIntent"
|
|
|
@action="handleJourneyAction" />
|
|
@action="handleJourneyAction" />
|
|
|
|
|
|
|
|
- <!-- 能量沙盘 — Canvas 五行星图 -->
|
|
|
|
|
|
|
+ <!-- 能量沙盘 — Canvas 五行星图(未测评时显示引导卡) -->
|
|
|
|
|
+ <GateLock v-if="sandboxLocked && sandboxLockGate" :gate="sandboxLockGate" />
|
|
|
<WuxingSandbox
|
|
<WuxingSandbox
|
|
|
- v-if="sandboxData"
|
|
|
|
|
|
|
+ v-else-if="sandboxData"
|
|
|
mode="live"
|
|
mode="live"
|
|
|
:scores="sandboxScores"
|
|
:scores="sandboxScores"
|
|
|
:overallScore="sandboxData.overallScore || 0"
|
|
:overallScore="sandboxData.overallScore || 0"
|
|
@@ -338,6 +339,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import store from '../../store/index.js'
|
|
import store from '../../store/index.js'
|
|
|
import WuxingSandbox from '../../components/wuxing-sandbox.vue'
|
|
import WuxingSandbox from '../../components/wuxing-sandbox.vue'
|
|
|
|
|
+import GateLock from '../../components/gate-lock.vue'
|
|
|
import PageBanner from '../../components/PageBanner.vue'
|
|
import PageBanner from '../../components/PageBanner.vue'
|
|
|
import FamilyFeed from '../../components/FamilyFeed.vue'
|
|
import FamilyFeed from '../../components/FamilyFeed.vue'
|
|
|
import DimensionProducts from '../../components/DimensionProducts.vue'
|
|
import DimensionProducts from '../../components/DimensionProducts.vue'
|
|
@@ -354,6 +356,7 @@ export default {
|
|
|
components: {
|
|
components: {
|
|
|
PageBanner,
|
|
PageBanner,
|
|
|
WuxingSandbox,
|
|
WuxingSandbox,
|
|
|
|
|
+ GateLock,
|
|
|
FamilyFeed,
|
|
FamilyFeed,
|
|
|
DimensionProducts,
|
|
DimensionProducts,
|
|
|
ArticleBookshelf,
|
|
ArticleBookshelf,
|
|
@@ -408,6 +411,8 @@ export default {
|
|
|
membersChecked: false,
|
|
membersChecked: false,
|
|
|
selectedMemberId: null,
|
|
selectedMemberId: null,
|
|
|
sandboxData: null,
|
|
sandboxData: null,
|
|
|
|
|
+ sandboxLocked: false,
|
|
|
|
|
+ sandboxLockGate: null,
|
|
|
articles: [],
|
|
articles: [],
|
|
|
children: [],
|
|
children: [],
|
|
|
currentChildId: null,
|
|
currentChildId: null,
|
|
@@ -561,7 +566,17 @@ export default {
|
|
|
var self = this
|
|
var self = this
|
|
|
getFamilyEnergySandbox().then(function(res) {
|
|
getFamilyEnergySandbox().then(function(res) {
|
|
|
if (res && res.data) {
|
|
if (res && res.data) {
|
|
|
- self.sandboxData = res.data
|
|
|
|
|
|
|
+ var d = res.data
|
|
|
|
|
+ if (d.locked) {
|
|
|
|
|
+ // 未解锁:显示引导卡(GateLock 渲染自检引导按钮)
|
|
|
|
|
+ self.sandboxLocked = true
|
|
|
|
|
+ self.sandboxLockGate = d.gate || null
|
|
|
|
|
+ self.sandboxData = null
|
|
|
|
|
+ } else {
|
|
|
|
|
+ self.sandboxLocked = false
|
|
|
|
|
+ self.sandboxLockGate = null
|
|
|
|
|
+ self.sandboxData = d
|
|
|
|
|
+ }
|
|
|
self._splashReady = true
|
|
self._splashReady = true
|
|
|
self._tryHideSplash()
|
|
self._tryHideSplash()
|
|
|
}
|
|
}
|