Browse Source

联系我们修改

gcz 1 tuần trước cách đây
mục cha
commit
029717213b
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      src/pages/contact/Index.vue

+ 8 - 2
src/pages/contact/Index.vue

@@ -66,7 +66,7 @@
 
             <!-- 下半部分:地图 -->
             <div class="map-section">
-              <img :src="imgHost + companyInfo.addressImg" alt="公司位置地图" class="map-image" />
+              <img :src="imgHost + companyInfo.addressImg" alt="公司位置地图" class="map-image" @click="openMap" />
               <!-- <iframe style="width: 100%;;height: 350px;border-radius: 10px;" src="https://j.map.baidu.com/ef/0c9k" frameborder="0"></iframe> -->
             </div>
           </div>
@@ -215,6 +215,10 @@ export default {
       }
     }
 
+    const openMap = () =>{
+      window.open('https://j.map.baidu.com/ef/0c9k','_blank')
+    }
+
     onMounted(async () => {
       handleGetCompanyInfo()
     })
@@ -227,7 +231,8 @@ export default {
       handleGetCompanyInfo,
       companyInfo,
       getContactTypeLabel,
-      businessCooperationEmail
+      businessCooperationEmail,
+      openMap
     }
   }
 }
@@ -415,6 +420,7 @@ export default {
     height: 300px;
     object-fit: cover;
     border-radius: 8px;
+    cursor: pointer;
   }
 }