|
@@ -26,6 +26,8 @@
|
|
|
import BaseDialog from '/@/components/chatRoom/dialog/base.vue';
|
|
|
import PasswordDialog from '/@/components/chatRoom/dialog/password.vue';
|
|
|
import { useRoom, roomId, currentSceneIndex } from './hooks/useRoom';
|
|
|
+ import dayjs from 'dayjs';
|
|
|
+ import Dialog from './components/basic/dialog';
|
|
|
|
|
|
const { createTourPlayer } = useTourPlayer();
|
|
|
const showDebug = ref(Number(import.meta.env.VITE_SHOW_DEBUGPANEL) === 1);
|
|
@@ -56,7 +58,7 @@
|
|
|
// const isJoined = computed(() => rtcStore.isJoined);
|
|
|
const isLoaded = computed(() => appStore.isLoaded);
|
|
|
const showPasswordDialog = ref(false);
|
|
|
-
|
|
|
+ // const connectStatus = computed(() => rtcStore.connectStatus);
|
|
|
const controls = computed(() => {
|
|
|
return metadata.value.controls;
|
|
|
});
|
|
@@ -285,6 +287,16 @@
|
|
|
if (unref(isTourMode)) {
|
|
|
const { room, currentSceneIndex, firstNum } = useRoom();
|
|
|
console.log('room', room);
|
|
|
+ //设置自由模式并时间未到
|
|
|
+
|
|
|
+ if (unref(room)?.useEndTime) {
|
|
|
+ const now = dayjs();
|
|
|
+ const isNotEnd = dayjs(unref(room)?.useEndTime).diff(now, 'second');
|
|
|
+ if (isNotEnd > 0) {
|
|
|
+ console.log('存在带看有效存活', isNotEnd);
|
|
|
+ Dialog.toast({ content: t('action.endUpRoom'), type: 'error' });
|
|
|
+ }
|
|
|
+ }
|
|
|
if (unref(room)?.takeLookLock === 1) {
|
|
|
if (unref(currentSceneIndex) > 0) {
|
|
|
const hasInput = localStorage.getItem(`${roomId}-${unref(firstNum)}`);
|
|
@@ -311,10 +323,11 @@
|
|
|
{{ maxNumber }}
|
|
|
</span> -->
|
|
|
<span>
|
|
|
- {{ t('base.debuginfo') }}:公告,测试1.1.0-0412-05,角色:{{ rtcStore.role }} rId:{{
|
|
|
+ {{ t('base.debuginfo') }}:公告,测试1.1.0-0423-01,角色:{{ rtcStore.role }} rId:{{
|
|
|
rtcStore.roomId || browser.getURLParam('roomId')
|
|
|
}}
|
|
|
- sceneIndex:{{ currentSceneIndex }}
|
|
|
+ sceneIndex:{{ currentSceneIndex }} uid::
|
|
|
+ {{ rtcStore.userId || browser.getURLParam('vruserId') }}
|
|
|
</span>
|
|
|
<span class="close" @click.stop="showDebug = false">X</span>
|
|
|
</div>
|