Commit e6c488a3 authored by tyyin lan's avatar tyyin lan

chore: 充值企业版联系布局调整

parent 57d647cd
<script setup lang="ts"> <script setup lang="ts">
import { fetchCreateEquityOrder, fetchGetEquityPayQrCode, fetchGetPayStatus } from '@/apis/equity' import { fetchCreateEquityOrder, fetchGetEquityPayQrCode, fetchGetPayStatus } from '@/apis/equity'
import { useSystemLanguageStore } from '@/store/modules/system-language'
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
import { computed, onMounted, ref, watch } from 'vue' import { computed, onMounted, ref, watch } from 'vue'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
...@@ -11,6 +12,7 @@ const currentSelectVersion = defineModel<VersionName>('currentSelectVersion', { ...@@ -11,6 +12,7 @@ const currentSelectVersion = defineModel<VersionName>('currentSelectVersion', {
const { t } = useI18n() const { t } = useI18n()
const userStore = useUserStore() const userStore = useUserStore()
const systemLanguageStore = useSystemLanguageStore()
const packageList = ref({ const packageList = ref({
ProfessionalVersion: { ProfessionalVersion: {
...@@ -54,6 +56,8 @@ const currentPackageInfo = computed(() => { ...@@ -54,6 +56,8 @@ const currentPackageInfo = computed(() => {
return null return null
}) })
const isEnglishLanguage = computed(() => systemLanguageStore.currentLanguageInfo.key === 'en')
watch(currentSelectVersion, (newVal) => { watch(currentSelectVersion, (newVal) => {
if ((!newVal && payStatusTimer !== null) || !isShowPayQrCode.value) { if ((!newVal && payStatusTimer !== null) || !isShowPayQrCode.value) {
clearPayStatusTimer() clearPayStatusTimer()
...@@ -378,7 +382,7 @@ function handlePayQrCodeRefresh() { ...@@ -378,7 +382,7 @@ function handlePayQrCodeRefresh() {
</div> </div>
</div> </div>
<div class="mt-[24px] text-center text-[14px] text-[#999]"> <div class="mt-[24px] flex justify-center px-[16px] text-start text-[14px] text-[#999]">
{{ t('equity_module.for_details_please_scan_code_to_add_enterprise_wechat') }} {{ t('equity_module.for_details_please_scan_code_to_add_enterprise_wechat') }}
</div> </div>
...@@ -389,15 +393,21 @@ function handlePayQrCodeRefresh() { ...@@ -389,15 +393,21 @@ function handlePayQrCodeRefresh() {
/> />
<div class="flex-center mt-[30px] flex"> <div class="flex-center mt-[30px] flex">
<span class="inline-block w-[60px] border-t-[2px] border-dashed border-[#F5F5F5]"></span> <span
class="inline-block border-t-[2px] border-dashed border-[#F5F5F5]"
:class="isEnglishLanguage ? 'w-[30px]' : 'w-[60px]'"
></span>
<span class="mx-[16px] text-[12px] text-[#999]"> <span class="mx-[16px] text-[12px] text-[#999]">
{{ t('equity_module.add_me_to_receive_the_following_benefits') }} {{ t('equity_module.add_me_to_receive_the_following_benefits') }}
</span> </span>
<span class="inline-block w-[60px] border-t-[2px] border-dashed border-[#F5F5F5]"></span> <span
class="inline-block border-t-[2px] border-dashed border-[#F5F5F5]"
:class="isEnglishLanguage ? 'w-[30px]' : 'w-[60px]'"
></span>
</div> </div>
<ul class="mt-[29px]"> <ul class="mt-[29px] self-start px-[20px]">
<li class="flex items-center"> <li :class="isEnglishLanguage ? '' : 'flex items-center'">
<div class="flex items-center"> <div class="flex items-center">
<div class="flex-center flex h-[26px] w-[26px] rounded-full bg-[#F2F4F7]"> <div class="flex-center flex h-[26px] w-[26px] rounded-full bg-[#F2F4F7]">
<img class="h-[16px] w-[16px] object-cover" src="@/assets/images/equity/consult.png" alt="consult" /> <img class="h-[16px] w-[16px] object-cover" src="@/assets/images/equity/consult.png" alt="consult" />
...@@ -405,7 +415,7 @@ function handlePayQrCodeRefresh() { ...@@ -405,7 +415,7 @@ function handlePayQrCodeRefresh() {
<span class="ml-[15px] text-[14px]">{{ t('equity_module.business_online_consulting') }}</span> <span class="ml-[15px] text-[14px]">{{ t('equity_module.business_online_consulting') }}</span>
</div> </div>
<div class="ml-[25px] flex items-center"> <div class="flex items-center" :class="isEnglishLanguage ? 'mt-[14px]' : 'ml-[25px]'">
<div class="flex-center flex h-[26px] w-[26px] rounded-full bg-[#F2F4F7]"> <div class="flex-center flex h-[26px] w-[26px] rounded-full bg-[#F2F4F7]">
<img class="h-[16px] w-[16px] object-cover" src="@/assets/images/equity/programme.png" alt="programme" /> <img class="h-[16px] w-[16px] object-cover" src="@/assets/images/equity/programme.png" alt="programme" />
</div> </div>
...@@ -413,7 +423,7 @@ function handlePayQrCodeRefresh() { ...@@ -413,7 +423,7 @@ function handlePayQrCodeRefresh() {
</div> </div>
</li> </li>
<li class="mt-[14px] flex items-center"> <li class="mt-[14px]" :class="isEnglishLanguage ? '' : 'flex items-center'">
<div class="flex items-center"> <div class="flex items-center">
<div class="flex-center flex h-[26px] w-[26px] rounded-full bg-[#F2F4F7]"> <div class="flex-center flex h-[26px] w-[26px] rounded-full bg-[#F2F4F7]">
<img class="h-[16px] w-[16px] object-cover" src="@/assets/images/equity/equity.png" alt="equity" /> <img class="h-[16px] w-[16px] object-cover" src="@/assets/images/equity/equity.png" alt="equity" />
...@@ -421,7 +431,7 @@ function handlePayQrCodeRefresh() { ...@@ -421,7 +431,7 @@ function handlePayQrCodeRefresh() {
<span class="ml-[15px] text-[14px]">{{ t('equity_module.exclusive_preferential_interest') }}</span> <span class="ml-[15px] text-[14px]">{{ t('equity_module.exclusive_preferential_interest') }}</span>
</div> </div>
<div class="ml-[25px] flex items-center"> <div class="flex items-center" :class="isEnglishLanguage ? 'mt-[14px]' : 'ml-[25px]'">
<div class="flex-center flex h-[26px] w-[26px] rounded-full bg-[#F2F4F7]"> <div class="flex-center flex h-[26px] w-[26px] rounded-full bg-[#F2F4F7]">
<img class="h-[16px] w-[16px] object-cover" src="@/assets/images/equity/gift2.png" alt="gift" /> <img class="h-[16px] w-[16px] object-cover" src="@/assets/images/equity/gift2.png" alt="gift" />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment