Browse Source

fix: bug修复阶段v1.5

chenpeng 19 hours ago
parent
commit
f0c8570cbb

+ 12 - 1
components/business/about/show.vue

@@ -11,6 +11,17 @@ import 'swiper/css/effect-cards'
 // import 'swiper/css/bundle'   // 全部css
 const modules = [Navigation, Pagination, EffectCards, Autoplay]
 const { openLoginModal } = useLoginModal()
+async function clickLogin() {
+  try {
+    const { status } = await openLoginModal()
+    console.log('Login status:', status)
+    // if (status)
+    // 登陆后的逻辑
+  }
+  catch (error) {
+    console.log(error)
+  }
+}
 
 const swiperVertical = ref<any>(null)
 const swiperHorizontal = ref<any>(null)
@@ -102,7 +113,7 @@ onUnmounted(() => {
                 <div class="text-#999 mt-20px lh-24px">
                   {{ item.description }}
                 </div>
-                <el-button class="!bg-#9B6CFF mt-40px !text-#fff !b-#9B6CFF w-160px !b-rd-380px text-16px fw-bold !h-40px px-20px" @click="openLoginModal">
+                <el-button class="!bg-#9B6CFF mt-40px !text-#fff !b-#9B6CFF w-160px !b-rd-380px text-16px fw-bold !h-40px px-20px" @click="clickLogin">
                   get started
                 </el-button>
               </div>

+ 12 - 1
components/business/contact/more.vue

@@ -1,5 +1,16 @@
 <script lang="ts" setup>
 const { openLoginModal } = useLoginModal()
+async function clickLogin() {
+  try {
+    const { status } = await openLoginModal()
+    console.log('Login status:', status)
+    // if (status)
+    // 登陆后的逻辑
+  }
+  catch (error) {
+    console.log(error)
+  }
+}
 </script>
 
 <template>
@@ -11,7 +22,7 @@ const { openLoginModal } = useLoginModal()
         </h2>
         <div
           class="h-40px lh-40px !mt-20px text-14px w-128px text-center text-#fff b-rd-200px bg-#0F0820 hover:bg-#9B6CFF hover:text-#fff cursor-pointer"
-          @click="openLoginModal"
+          @click="clickLogin"
         >
           <!-- <nuxt-link to="/faq"> -->
           Get started

+ 12 - 1
components/common/footer/guide.vue

@@ -2,6 +2,17 @@
 
 <script lang="ts" setup>
 const { openLoginModal } = useLoginModal()
+async function clickLogin() {
+  try {
+    const { status } = await openLoginModal()
+    console.log('Login status:', status)
+    // if (status)
+    // 登陆后的逻辑
+  }
+  catch (error) {
+    console.log(error)
+  }
+}
 </script>
 
 <template>
@@ -18,7 +29,7 @@ const { openLoginModal } = useLoginModal()
           </div>
           <div
             class="py-8px mt-30px text-14px fw-500 flex justify-center items-center w-128px text-center text-#fff b-rd-200px  bg-#0F0820 hover:bg-#9B6CFF hover:text-#fff cursor-pointer"
-            @click="openLoginModal"
+            @click="clickLogin"
           >
             <!-- <nuxt-link to="/contact" class="flex justify-center items-center"> -->
             Sign In

+ 4 - 0
components/common/loginAndDownload/comp/info/finish.vue

@@ -17,6 +17,10 @@ async function startDownload() {
   }
   else { console.error('No download catalog available') }
 }
+// 通知后台服务已经下载完成
+function downloadFinish() {
+  console.log('downloadFinish')
+}
 startDownload()
 </script>
 

+ 1 - 1
components/common/navigation/index.vue

@@ -80,7 +80,7 @@ function toCategories() {
               <svgo-arrowR class="w-14px h-14px ml-4px" />
             </div>
             <div class="grid grid-cols-2 grid-gap-x-15px grid-gap-y-10px">
-              <div v-for="(item, index) in list" :key="item.id" class="a-link-out hover:text-#9B6CFF hover:bg-#F3F4FB py-8px pl-10px b-rd-6px flex items-center cursor-pointer" @mouseover="activeItem = item.slug">
+              <div v-for="(item, index) in list" :key="item.id" class="a-link-out hover:text-#9B6CFF hover:bg-#F3F4FB py-8px pl-10px pr-5px b-rd-6px flex items-center cursor-pointer" @mouseover="activeItem = item.slug">
                 <!-- <IconGroup :icon="`${index}` + ''" :active="activeItem" /> -->
                 <NuxtLink
                   :to="`/categories/${item.slug}`"

+ 1 - 1
components/common/user-avatar/index.vue

@@ -16,7 +16,7 @@ async function clickLogin() {
     const { status } = await openLoginModal()
     console.log('Login status:', status)
     // if (status)
-    //   location.reload()
+    // 登陆后的逻辑
   }
   catch (error) {
     console.log(error)