|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="scren">
|
|
|
- <div class="noScene" v-if="false">
|
|
|
+ <div class="noScene" v-if="qrCodeUrl.show">
|
|
|
<div class="noScene-content">
|
|
|
<p>您还没有场景,请使用手机扫二维码安装App后连接相机拍摄后上传</p>
|
|
|
<div class="codelist">
|
|
@@ -170,7 +170,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, h, computed, toRefs, ref } from 'vue';
|
|
|
+import { defineComponent, h, computed, toRefs, ref, onMounted } from 'vue';
|
|
|
import Icon from '/@/components/Icon/index';
|
|
|
import dayjs from 'dayjs';
|
|
|
import { QrCode } from '/@/components/Qrcode/index';
|
|
@@ -203,6 +203,7 @@ import {
|
|
|
rebuildScene,
|
|
|
buildSceneObj,
|
|
|
sceneDetail,
|
|
|
+ sceneCount,
|
|
|
} from '/@/api/operate';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
import { usePermissionStore } from '/@/store/modules/permission';
|
|
@@ -234,6 +235,7 @@ export default defineComponent({
|
|
|
const tableType = ref<Recordable>(1); //0看看 、1看见、2深时
|
|
|
const tabList = ref<Array>(['四维看看', '四维看见', '四维深时', '四维双目Lite']);
|
|
|
const qrCodeUrl = ref({
|
|
|
+ show: false,
|
|
|
ios: 'https://sit-nanhuacs.4dage.com/web/index.html#/login',
|
|
|
android: 'https://sit-nanhuacs.4dage.com/web/index.html#/login',
|
|
|
});
|
|
@@ -610,6 +612,25 @@ export default defineComponent({
|
|
|
...record,
|
|
|
});
|
|
|
}
|
|
|
+ onMounted(() => {
|
|
|
+ sceneCount({}).then((res) => {
|
|
|
+ console.log('res', res);
|
|
|
+ if (res == 0) {
|
|
|
+ qrCodeUrl.value.show = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ fetch('http://4dkk.4dage.com/apps/customApp/udrive_preview/Android/version.json')
|
|
|
+ .then((response) => response.json())
|
|
|
+ .then((data) => {
|
|
|
+ qrCodeUrl.value.android = data.link;
|
|
|
+ });
|
|
|
+
|
|
|
+ fetch('http://4dkk.4dage.com/apps/customApp/udrive_preview/iOS/version.json')
|
|
|
+ .then((response) => response.json())
|
|
|
+ .then((data) => {
|
|
|
+ qrCodeUrl.value.ios = data.link;
|
|
|
+ });
|
|
|
+ });
|
|
|
return {
|
|
|
registerTable,
|
|
|
registerPowersModal,
|
|
@@ -649,7 +670,7 @@ export default defineComponent({
|
|
|
text-align: center;
|
|
|
&-content {
|
|
|
font-size: 14px;
|
|
|
- color: rgba(0,0,0,0.85);
|
|
|
+ color: rgba(0, 0, 0, 0.85);
|
|
|
line-height: 22px;
|
|
|
font-style: normal;
|
|
|
text-transform: none;
|
|
@@ -663,15 +684,14 @@ export default defineComponent({
|
|
|
.codediv {
|
|
|
font-weight: 400;
|
|
|
font-size: 17px;
|
|
|
- color: rgba(0,0,0,0.85);
|
|
|
+ color: rgba(0, 0, 0, 0.85);
|
|
|
line-height: 22px;
|
|
|
height: auto;
|
|
|
padding: 24px;
|
|
|
background: #fff;
|
|
|
text-align: center;
|
|
|
- .codetext{
|
|
|
+ .codetext {
|
|
|
margin-top: 10px;
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|