|
@@ -231,25 +231,28 @@
|
|
|
:class="getActive(i.type)"
|
|
:class="getActive(i.type)"
|
|
|
@click.stop="hanlderButtons(i, i.type)"
|
|
@click.stop="hanlderButtons(i, i.type)"
|
|
|
v-for="(i, index) in mobileTopBtns"
|
|
v-for="(i, index) in mobileTopBtns"
|
|
|
- v-show="mode == 'dollhouse' ? ['model', 'realMap'].includes(i.type) : !['model', 'realMap'].includes(i.type)"
|
|
|
|
|
|
|
+ v-show="mode == 'dollhouse' ? ['model', 'realMap'].includes(i.type) : openType === 'immersive' ? ['immersive'].includes(i.type) : !['model', 'realMap'].includes(i.type)"
|
|
|
>
|
|
>
|
|
|
<img class="normal" :src="i.normalIcon" alt="" />
|
|
<img class="normal" :src="i.normalIcon" alt="" />
|
|
|
<img class="active" :src="i.activeIcon" alt="" />
|
|
<img class="active" :src="i.activeIcon" alt="" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="mobile-bottom-button" :class="{ center: openType == 'immersive', ['show-guide']: showGuide && !isCollapse }">
|
|
<div class="mobile-bottom-button" :class="{ center: openType == 'immersive', ['show-guide']: showGuide && !isCollapse }">
|
|
|
- <div
|
|
|
|
|
- class="button-item"
|
|
|
|
|
- :class="`${getBottomActive(i.type)} ${i.action === 'play' && guideIsPlay && 'active pause'}`"
|
|
|
|
|
- :style="`display:${i.type == 'hots' && openType == 'immersive' ? 'none' : 'block'};`"
|
|
|
|
|
- @click.stop="hanlderButtons(i, i.type)"
|
|
|
|
|
|
|
+ <template
|
|
|
v-for="(i, index) in mobileBottomBtns"
|
|
v-for="(i, index) in mobileBottomBtns"
|
|
|
- v-if="kanzhanBtnVisible ? i.type == 'controls' : i.type !== 'controls'"
|
|
|
|
|
- v-show="i.type == 'model' || i.type == 'music' || mode == 'panorama'"
|
|
|
|
|
>
|
|
>
|
|
|
- <img class="normal" :src="i.normalIcon" alt="" />
|
|
|
|
|
- <img class="active" :src="i.activeIcon" alt="" />
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="kanzhanBtnVisible ? i.type == 'controls' : i.type !== 'controls'"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ class="button-item"
|
|
|
|
|
+ :class="`${getBottomActive(i.type)} ${i.action === 'play' && guideIsPlay && 'active pause'}`"
|
|
|
|
|
+ :style="`display:${(['hots', 'route'].includes(i.type) && openType == 'immersive') || mode === 'dollhouse' ? 'none' : 'block'};`"
|
|
|
|
|
+ @click.stop="hanlderButtons(i, i.type)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <img class="normal" :src="i.normalIcon" alt="" />
|
|
|
|
|
+ <img class="active" :src="i.activeIcon" alt="" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 音乐按钮 -->
|
|
<!-- 音乐按钮 -->
|
|
@@ -600,6 +603,9 @@ export default {
|
|
|
this.setData({ showGuide: false, guideIsPlay: false });
|
|
this.setData({ showGuide: false, guideIsPlay: false });
|
|
|
},
|
|
},
|
|
|
hanlderButtons(item, type) {
|
|
hanlderButtons(item, type) {
|
|
|
|
|
+ // 飞入飞出中
|
|
|
|
|
+ if (player.flying) return;
|
|
|
|
|
+
|
|
|
if (item.handler) {
|
|
if (item.handler) {
|
|
|
item.handler()
|
|
item.handler()
|
|
|
return
|
|
return
|