From 925541ab99276c19f08819a60b3a0becd40bc320 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Thu, 27 Nov 2025 13:38:30 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/mainPage/signUp/index.vue | 97 ++++++++++++++++++++----- src/views/Register.vue | 17 ++++- 2 files changed, 94 insertions(+), 20 deletions(-) diff --git a/src/component/mainPage/signUp/index.vue b/src/component/mainPage/signUp/index.vue index a6ec741c..66e41479 100644 --- a/src/component/mainPage/signUp/index.vue +++ b/src/component/mainPage/signUp/index.vue @@ -22,7 +22,8 @@ :class="[ { recommended: item.recommended }, { monthly: monthlyOrYearly === 'monthly' }, - { yearly: monthlyOrYearly === 'yearl' } + { yearly: monthlyOrYearly === 'yearl' }, + { academic: item.type === 'academic' } ]" >
@@ -33,7 +34,12 @@
{{ item?.price }}
- + {{ item?.detail }}
@@ -43,18 +49,25 @@ - @@ -317,7 +330,7 @@ export default defineComponent({ { title: 'Free', img: CChargeIcon, - type: 'personal', + type: 'free', info: 'Your AI Fashion Design Assistant', price: 'HK$0', detail: '5 days · 50 credits', @@ -661,7 +674,7 @@ export default defineComponent({ } @media (max-width: 767px) { font-size: 1.25rem; - margin-bottom: 1.25rem; + // margin-bottom: 1.25rem; } } .price { @@ -761,13 +774,10 @@ export default defineComponent({ // margin-bottom: 0.3rem; font-size: 1.3rem; font-weight: 500; - @media (max-width: 767px) { - font-size: 1.15rem; - } - } - li:last-child { - margin-bottom: 0; } + // li:last-child { + // margin-bottom: 0; + // } } .gallery_btn { line-height: 4.6rem; @@ -777,7 +787,7 @@ export default defineComponent({ font-size: 1.7rem; font-weight: 500; background-color: #1b223c; - &:hover { + &:hover { background-color: #fff; } @media (max-width: 767px) { @@ -813,15 +823,64 @@ export default defineComponent({ .product_detail { padding-top: 3.1rem; justify-content: space-evenly; - @media (max-width: 767px) { - padding-top: 0; - justify-content: flex-end; - } - li{ + li { font-size: 1.6rem; } } } + @media (max-width: 767px) { + width: 31.9rem; + height: 41.1rem; + padding: 2.09rem 2.09rem 2.11rem; + &.academic { + height: 52rem; + } + .product_signUp_box { + .img { + width: 3.4rem; + height: 3.4rem; + } + .title { + font-size: 2.3rem; + margin-bottom: 0; + letter-spacing: 0.05rem; + } + .info { + font-size: 1.2rem; + } + .price { + margin-bottom: 0; + div { + font-size: 3.1rem; + } + span { + font-size: 1.26rem; + &.personal { + font-size: 0.95rem; + } + } + } + .product_detail { + padding-top: 2rem; + justify-content: flex-end; + margin-bottom: 0; + &.chinese{ + justify-content: space-evenly; + } + li { + font-size: 1.15rem; + } + } + .submit { + margin-top: 2rem; + } + } + } + } + .submit { + @media (max-width: 767px) { + margin-top: 2rem; + } } } } diff --git a/src/views/Register.vue b/src/views/Register.vue index 95ee5ba6..34d60a2e 100644 --- a/src/views/Register.vue +++ b/src/views/Register.vue @@ -79,7 +79,8 @@ import { nextTick, computed, onMounted, - onBeforeUnmount + onBeforeUnmount, + watch } from 'vue' import { setCookie, getCookie, WriteCookie, clonAllCookie } from '@/tool/cookie' import { Https } from '@/tool/https' @@ -131,6 +132,20 @@ export default defineComponent({ } }, 500) } + + watch( + () => data.isSelectSuccessively, + val => { + let str = '' + if (val) { + str = 'CHINESE_SIMPLIFIED' + } else { + str = 'ENGLISH' + } + localStorage.setItem('loginLanguage', str) + } + ) + onMounted(() => { updataIsMoblie() const savedLang = localStorage.getItem('loginLanguage')