|
@@ -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>
|