gemercheung 1 rok temu
rodzic
commit
8cdffcedd4

+ 3 - 1
src/components/showCase.vue

@@ -86,7 +86,9 @@ const containerRef = ref();
 const type = ref("model");
 const defaultType = ref(["model", "video", "audio", "gallery"]);
 
-const iframeURL = ref("https://www.4dmodel.com/SuperTwo/index.html?m=TEST");
+// const iframeURL = ref("https://www.4dmodel.com/SuperTwo/index.html?m=TEST");
+const iframeURL = ref("https://model3d.4dage.com/model/showModel.html?m=d558c919-a001-4aef-a719-18af4ed2bd82");
+
 
 const isModel = computed(() => type.value === "model");
 const isVideo = computed(() => type.value === "video");

+ 3 - 3
src/components/surveyBox.vue

@@ -47,9 +47,9 @@ const handleDetail = () => {
 
 <style lang="scss" scoped>
 .n-card.survey-box {
-  --n-title-font-weight: 600 !important;
-  --n-title-font-size: 1.75rem !important;
-  --n-padding-top: 1.875rem !important;
+  --n-title-font-weight: 600;
+  --n-title-font-size: 1.75rem;
+  --n-padding-top: 1.875rem;
   border-radius: 1.875rem;
   background-repeat: no-repeat;
   border: none;

+ 8 - 6
src/views/exhibition-detail.vue

@@ -9,8 +9,8 @@
             <div class="go-back">
               <img :src="exBack" @click="$router.go(-1)" />
             </div>
-            <div class="vr-btn-container">
-              <img :src="vrBtn" @click="handleVRButton" />
+            <div class="vr-btn-container" v-if="detail.link">
+              <img :src="vrBtn" @click="handleVRButton(detail.link)" />
             </div>
           </div>
 
@@ -22,7 +22,7 @@
               <div class="label-list">
                 <span v-if="detail.address">{{ detail.address }}</span>
                 <span v-if="detail.type">{{ typeLabel(detail.type) }}</span>
-                <span v-if="detail.publishDate" >{{ detail.publishDate }}</span>
+                <span v-if="detail.publishDate">{{ detail.publishDate }}</span>
               </div>
             </div>
 
@@ -49,8 +49,10 @@ const router = useRouter();
 const detail = computed(() => exhibitionStore.detail);
 // const domain = ref(import.meta.env.VITE_DOMAIN_URL);
 
-const topBannerUrl = computed(
-  () =>detail.value.thumb? `url(${import.meta.env.VITE_DOMAIN_URL + detail.value.thumb})`:''
+const topBannerUrl = computed(() =>
+  detail.value.thumb
+    ? `url(${import.meta.env.VITE_DOMAIN_URL + detail.value.thumb})`
+    : ""
 );
 
 const typeLabel = computed(() => (type) => {
@@ -66,7 +68,7 @@ const typeLabel = computed(() => (type) => {
 
 const handleVRButton = (id) => {
   // const url = `https://sit-qiushoubwg.4dage.com/scene/index.html#/?m=1196`;
-  router.push(`/model-viewer/1196`);
+  const id = router.push(`/model-viewer/1196`);
 };
 const props = defineProps({
   id: {

+ 0 - 7
src/views/exhibition.vue

@@ -151,11 +151,4 @@ const onLoadMore = useThrottleFn(async () => {
     border-radius: 1.875rem !important;
   }
 }
-// .tab-content {
-//   width: calc(100% - 12rem);
-//   margin: 0 auto;
-//   &::-webkit-scrollbar {
-//     display: none;
-//   }
-// }
 </style>