All checks were successful
Build and Deploy Front / deploy (push) Successful in 4m25s
Co-authored-by: Cursor <cursoragent@cursor.com>
2053 lines
52 KiB
Vue
2053 lines
52 KiB
Vue
<template>
|
||
<div
|
||
class="h5-me-page"
|
||
:class="{
|
||
'is-enter-anim': animateEnter,
|
||
'is-pulling': pullY > 0 || (refreshing && pullArmed),
|
||
}"
|
||
:style="{ '--pull-y': `${pullY}px` }"
|
||
@touchstart.passive="onTouchStart"
|
||
@touchmove.passive="onTouchMove"
|
||
@touchend="onTouchEnd"
|
||
>
|
||
<div
|
||
v-if="isLoggedIn"
|
||
class="h5-me-pull"
|
||
:class="{ 'is-ready': pullY > 48, 'is-loading': refreshing && pullArmed }"
|
||
>
|
||
{{ pullHint }}
|
||
</div>
|
||
|
||
<template v-if="!isLoggedIn">
|
||
<section class="h5-me-hero h5-me-hero--guest h5-me-enter" style="--h5-me-delay: 0ms">
|
||
<div class="h5-me-hero__top">
|
||
<AvatarDisplay :src="avatarSrc" :size="52" class="h5-me-avatar" />
|
||
<div class="h5-me-hero__text">
|
||
<div class="h5-me-hero__name-row">
|
||
<h2 class="h5-me-name">{{ t('h5.me.guestName') }}</h2>
|
||
<span class="h5-me-greet">{{ greetText }}</span>
|
||
</div>
|
||
<p class="h5-me-guest-hint">{{ t('h5.me.guestHint') }}</p>
|
||
</div>
|
||
</div>
|
||
|
||
<p class="h5-me-section-label">{{ t('h5.me.section.guestBenefits') }}</p>
|
||
<ul class="h5-me-guest-benefits" :aria-label="t('h5.me.guestBenefitsAria')">
|
||
<li
|
||
v-for="(item, index) in guestBenefits"
|
||
:key="item.key"
|
||
class="h5-me-guest-benefit"
|
||
:class="item.toneClass"
|
||
:style="{ animationDelay: `${80 + index * 55}ms` }"
|
||
>
|
||
<span class="h5-me-guest-benefit__icon" aria-hidden="true">
|
||
<img :src="item.icon" alt="" />
|
||
</span>
|
||
<div class="h5-me-guest-benefit__body">
|
||
<div class="h5-me-guest-benefit__title-row">
|
||
<strong class="h5-me-guest-benefit__title">{{ t(item.titleKey) }}</strong>
|
||
<em v-if="item.tagKey" class="h5-me-guest-benefit__tag">{{ t(item.tagKey) }}</em>
|
||
</div>
|
||
<p class="h5-me-guest-benefit__desc">{{ t(item.descKey) }}</p>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
|
||
<H5GuestAuthCta
|
||
compact
|
||
:register-label="t('h5.me.register')"
|
||
:login-label="t('h5.me.guestLogin')"
|
||
@register="goGuestRegister"
|
||
@login="goGuestLogin"
|
||
/>
|
||
</section>
|
||
</template>
|
||
|
||
<div v-else class="h5-me-spin">
|
||
<Transition name="h5-me-fade" mode="out-in">
|
||
<div v-if="loading && !profile.id" key="skel" class="h5-me-skel">
|
||
<div class="h5-me-skel__hero" />
|
||
<div class="h5-me-skel__card" />
|
||
<div class="h5-me-skel__card h5-me-skel__card--short" />
|
||
</div>
|
||
|
||
<div v-else key="body" class="h5-me-body">
|
||
<section
|
||
class="h5-me-hero h5-me-enter"
|
||
:class="{ 'is-low': isLowBalance }"
|
||
style="--h5-me-delay: 0ms"
|
||
>
|
||
<span v-if="levelBadge" class="h5-me-vip" :class="levelToneClass" :style="levelToneStyle">
|
||
<img
|
||
v-if="memberLevel.iconUrl"
|
||
class="h5-me-vip__icon"
|
||
:src="memberLevel.iconUrl"
|
||
alt=""
|
||
draggable="false"
|
||
/>
|
||
<span
|
||
v-else-if="levelGlyphHtml"
|
||
class="h5-me-vip__icon"
|
||
aria-hidden="true"
|
||
v-html="levelGlyphHtml"
|
||
/>
|
||
<em class="h5-me-vip__name">{{ levelBadge }}</em>
|
||
</span>
|
||
|
||
<div class="h5-me-hero__top">
|
||
<AvatarDisplay :src="avatarSrc" :size="52" class="h5-me-avatar" />
|
||
<div class="h5-me-hero__text">
|
||
<div class="h5-me-hero__name-row">
|
||
<h2 class="h5-me-name">{{ displayName }}</h2>
|
||
<span class="h5-me-greet">{{ greetText }}</span>
|
||
</div>
|
||
<div class="h5-me-hero__meta">
|
||
<button
|
||
v-if="profile.customerCode"
|
||
type="button"
|
||
class="h5-me-code"
|
||
@click="copyText(profile.customerCode)"
|
||
>
|
||
{{ t('h5.me.customerCode') }} {{ profile.customerCode }}
|
||
<icon-copy />
|
||
</button>
|
||
<span v-if="profile.customerCode" class="h5-me-hero__dot" aria-hidden="true">·</span>
|
||
<span class="h5-me-balance__label">{{ t('h5.me.balance') }}</span>
|
||
<strong class="h5-me-balance__value">¥{{ formatMoney(accountBalance) }}</strong>
|
||
<button type="button" class="h5-me-recharge" @click="goRecharge">
|
||
{{ t('h5.me.recharge') }}
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div v-if="isLowBalance" class="h5-me-hero__low">
|
||
<span>{{ t('h5.me.lowBalance') }}</span>
|
||
<button type="button" class="h5-me-hero__low-cta" @click="goRecharge">
|
||
{{ t('h5.me.recharge') }}
|
||
</button>
|
||
</div>
|
||
|
||
<button
|
||
v-if="memberOverview"
|
||
type="button"
|
||
class="h5-me-hero__points"
|
||
@click="openMemberPoints"
|
||
>
|
||
<div class="h5-me-hero__points-head">
|
||
<span class="h5-me-hero__points-now">
|
||
{{ t('h5.me.points') }}
|
||
<strong>{{ formatPoints(totalPoints) }}</strong>
|
||
</span>
|
||
<span class="h5-me-hero__points-next">
|
||
{{ pointsNextText }}
|
||
<icon-right class="h5-me-hero__points-arrow" />
|
||
</span>
|
||
</div>
|
||
<div class="h5-me-hero__points-bar" aria-hidden="true">
|
||
<i class="h5-me-hero__points-fill" :style="{ width: `${pointsProgress}%` }" />
|
||
</div>
|
||
</button>
|
||
|
||
<button type="button" class="h5-me-hero__pickup" @click="openPickup">
|
||
<span class="h5-me-hero__pickup-icon" aria-hidden="true">
|
||
<img :src="iconOrderPickup" alt="" width="32" height="32" draggable="false" />
|
||
</span>
|
||
<span class="h5-me-hero__pickup-body">
|
||
<strong>{{ t('h5.me.pickupTitle') }}</strong>
|
||
<span>{{ pickupSummary }}</span>
|
||
</span>
|
||
<span class="h5-me-hero__pickup-go">
|
||
{{ t('h5.me.pickupGo') }}
|
||
<icon-right />
|
||
</span>
|
||
</button>
|
||
</section>
|
||
|
||
<div
|
||
v-if="notifyNudgeVisible"
|
||
class="h5-me-notify-nudge h5-me-enter"
|
||
style="--h5-me-delay: 40ms"
|
||
>
|
||
<div class="h5-me-notify-nudge__text">
|
||
<strong>{{ t('h5.me.notifyNudge.title') }}</strong>
|
||
<p>{{ t('h5.me.notifyNudge.desc') }}</p>
|
||
</div>
|
||
<div class="h5-me-notify-nudge__actions">
|
||
<button type="button" class="h5-me-notify-nudge__dismiss" @click="dismissNotifyNudge">
|
||
{{ t('h5.me.notifyNudge.dismiss') }}
|
||
</button>
|
||
<button type="button" class="h5-me-notify-nudge__go" @click="openNotifyFromNudge">
|
||
{{ t('h5.me.notifyNudge.action') }}
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<p
|
||
class="h5-me-section-label h5-me-enter"
|
||
style="--h5-me-delay: 60ms"
|
||
>{{ t('h5.me.section.services') }}</p>
|
||
<section
|
||
class="h5-me-services">
|
||
<button
|
||
v-for="(item, index) in quickItems"
|
||
:key="item.path"
|
||
type="button"
|
||
class="h5-me-services__item"
|
||
:class="`is-${item.tone}`"
|
||
:style="{ '--h5-me-item-delay': `${90 + index * 40}ms` }"
|
||
@click="onServiceClick(item)"
|
||
>
|
||
<span class="h5-me-services__row">
|
||
<span class="h5-me-services__icon">
|
||
<img :src="item.icon" alt="" width="36" height="36" draggable="false" />
|
||
<i v-if="item.badge" class="h5-me-services__badge">
|
||
{{ item.badge > 99 ? '99+' : item.badge }}
|
||
</i>
|
||
</span>
|
||
<strong class="h5-me-services__label">{{ t(item.labelKey) }}</strong>
|
||
</span>
|
||
<em class="h5-me-services__desc">{{ item.desc }}</em>
|
||
</button>
|
||
</section>
|
||
|
||
<H5JourneyGuide
|
||
v-if="journeyReady"
|
||
:default-expanded="orderTotalCount === 0"
|
||
/>
|
||
|
||
<p
|
||
class="h5-me-section-label h5-me-enter"
|
||
style="--h5-me-delay: 200ms"
|
||
>{{ t('h5.me.section.security') }}</p>
|
||
<section
|
||
class="h5-me-list h5-me-enter"
|
||
style="--h5-me-delay: 220ms"
|
||
>
|
||
<button type="button" class="h5-me-list__item" @click="openEditProfile">
|
||
<span class="h5-me-list__left">
|
||
<icon-edit class="h5-me-list__icon" />
|
||
{{ t('h5.me.editProfile') }}
|
||
</span>
|
||
<icon-right />
|
||
</button>
|
||
<button type="button" class="h5-me-list__item" @click="openAddress">
|
||
<span class="h5-me-list__left">
|
||
<icon-location class="h5-me-list__icon" />
|
||
{{ t('h5.me.addressManage') }}
|
||
</span>
|
||
<icon-right />
|
||
</button>
|
||
<button type="button" class="h5-me-list__item" @click="openPassword">
|
||
<span class="h5-me-list__left">
|
||
<icon-lock class="h5-me-list__icon" />
|
||
{{ t('h5.me.resetPassword') }}
|
||
</span>
|
||
<icon-right />
|
||
</button>
|
||
<button
|
||
v-if="isMainCustomer"
|
||
type="button"
|
||
class="h5-me-list__item"
|
||
@click="openOpenApi"
|
||
>
|
||
<span class="h5-me-list__left">
|
||
<icon-code class="h5-me-list__icon" />
|
||
{{ t('h5.me.openapi') }}
|
||
</span>
|
||
<icon-right />
|
||
</button>
|
||
</section>
|
||
|
||
<p
|
||
class="h5-me-section-label h5-me-enter"
|
||
style="--h5-me-delay: 260ms"
|
||
>{{ t('h5.me.section.more') }}</p>
|
||
<section
|
||
class="h5-me-list h5-me-enter"
|
||
style="--h5-me-delay: 280ms"
|
||
>
|
||
<button type="button" class="h5-me-list__item" @click="goInvoice">
|
||
<span class="h5-me-list__left">
|
||
<icon-file class="h5-me-list__icon" />
|
||
{{ t('h5.me.invoice') }}
|
||
</span>
|
||
<icon-right />
|
||
</button>
|
||
<button type="button" class="h5-me-list__item" @click="toggleLocale">
|
||
<span class="h5-me-list__left">
|
||
<icon-language class="h5-me-list__icon" />
|
||
{{ t('h5.me.language') }}
|
||
</span>
|
||
<span class="h5-me-list__value">
|
||
{{ localeDisplay }}
|
||
<icon-right />
|
||
</span>
|
||
</button>
|
||
<button type="button" class="h5-me-list__item" @click="openOnlineKf">
|
||
<span class="h5-me-list__left">
|
||
<icon-customer-service class="h5-me-list__icon" />
|
||
{{ t('h5.me.onlineKf') }}
|
||
</span>
|
||
<icon-right />
|
||
</button>
|
||
<button type="button" class="h5-me-list__item" @click="bindWechat">
|
||
<span class="h5-me-list__left">
|
||
<icon-wechat class="h5-me-list__icon" />
|
||
{{ t('h5.me.bindWechat') }}
|
||
</span>
|
||
<icon-right />
|
||
</button>
|
||
<button type="button" class="h5-me-list__item" @click="openFollowOfficial">
|
||
<span class="h5-me-list__left">
|
||
<icon-wechat class="h5-me-list__icon" />
|
||
{{ t('h5.me.followOfficial') }}
|
||
</span>
|
||
<icon-right />
|
||
</button>
|
||
<button type="button" class="h5-me-list__item" @click="openWechatNotify">
|
||
<span class="h5-me-list__left">
|
||
<icon-notification class="h5-me-list__icon" />
|
||
{{ t('h5.me.wechatNotify') }}
|
||
</span>
|
||
<icon-right />
|
||
</button>
|
||
</section>
|
||
|
||
<button
|
||
type="button"
|
||
class="h5-me-logout h5-me-enter"
|
||
style="--h5-me-delay: 320ms"
|
||
@click="handleLogout"
|
||
>
|
||
{{ t('h5.me.logout') }}
|
||
</button>
|
||
</div>
|
||
</Transition>
|
||
|
||
<H5CreateOrderFlow v-if="sheetHost.placeOrder" v-model:visible="placeOrderVisible" />
|
||
<H5RechargeSheet v-if="sheetHost.recharge" v-model:visible="rechargeVisible" />
|
||
<H5CouponsSheet
|
||
v-if="sheetHost.coupons"
|
||
v-model:visible="couponsVisible"
|
||
@use="onCouponUse"
|
||
/>
|
||
<H5InviteSheet v-if="sheetHost.invite" v-model:visible="inviteVisible" />
|
||
<H5CommissionSheet v-if="sheetHost.commission" v-model:visible="commissionVisible" />
|
||
<H5EditProfileSheet
|
||
v-if="sheetHost.edit"
|
||
v-model:visible="editVisible"
|
||
:customer-id="profile.id"
|
||
:initial="editInitial"
|
||
@success="onProfileSaved"
|
||
/>
|
||
<H5PasswordSheet
|
||
v-if="sheetHost.password"
|
||
v-model:visible="pwdVisible"
|
||
@success="onPasswordChanged"
|
||
/>
|
||
<H5OpenApiCredentialSheet
|
||
v-if="sheetHost.openapi"
|
||
v-model:visible="openapiVisible"
|
||
/>
|
||
<H5AddressSheet v-if="sheetHost.address" v-model:visible="addressVisible" />
|
||
<H5PickupOrdersSheet
|
||
v-if="sheetHost.pickup"
|
||
v-model:visible="pickupVisible"
|
||
@loaded="onPickupLoaded"
|
||
/>
|
||
<H5FollowOfficialModal
|
||
v-if="sheetHost.follow"
|
||
ref="followOfficialModalRef"
|
||
manual-only
|
||
/>
|
||
<H5MemberPointsSheet
|
||
v-if="sheetHost.member"
|
||
v-model:visible="memberVisible"
|
||
:level-name="levelBadge || ''"
|
||
:total-points="totalPoints"
|
||
:next-tip="pointsNextText"
|
||
:progress="pointsProgress"
|
||
/>
|
||
<H5WechatNotifySheet
|
||
v-if="sheetHost.wechatNotify"
|
||
v-model:visible="wechatNotifyVisible"
|
||
:guide-key-events="notifyGuideKeyEvents"
|
||
@bind="bindWechat"
|
||
@saved="onWechatNotifySaved"
|
||
/>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script lang="ts" setup>
|
||
import {
|
||
computed,
|
||
defineAsyncComponent,
|
||
nextTick,
|
||
onActivated,
|
||
onMounted,
|
||
reactive,
|
||
ref,
|
||
} from 'vue';
|
||
import { useRouter } from 'vue-router';
|
||
import { useI18n } from 'vue-i18n';
|
||
import { Message, Modal } from '@arco-design/web-vue';
|
||
import {
|
||
IconCopy,
|
||
IconRight,
|
||
IconEdit,
|
||
IconLock,
|
||
IconCode,
|
||
IconLocation,
|
||
IconLanguage,
|
||
IconWechat,
|
||
IconCustomerService,
|
||
IconNotification,
|
||
IconFile,
|
||
} from '@arco-design/web-vue/es/icon';
|
||
import type { CustomerDto } from '@/api/customer';
|
||
import {
|
||
clearCurrentCustomerCache,
|
||
peekCachedCurrentCustomer,
|
||
resolveCurrentCustomer,
|
||
} from '@/api/customer/resolve';
|
||
import { getPickupOrderList } from '@/api/order/pickupOrder';
|
||
import { getOrderStatusCounts } from '@/api/order';
|
||
import { getMyCoupons, getMemberOverview } from '@/api/marketing/portal';
|
||
import {
|
||
getMemberLevelTone,
|
||
pickMemberLevelFromOverview,
|
||
renderMemberLevelGlyphSvg,
|
||
} from '@/utils/memberLevelIcon';
|
||
import { isLogin } from '@/utils/auth';
|
||
import { hasCustomAvatarUrl } from '@/utils/avatar';
|
||
import AvatarDisplay from '@/components/AvatarDisplay/index.vue';
|
||
import { getMapIdFromAccessToken } from '@/utils/jwt';
|
||
import { h5Navigate, isWeChatBrowser } from '@/utils/device';
|
||
import { openWecomKf } from '@/utils/wecomKf';
|
||
import { redirectToWeChatOAuth } from '@/utils/wechatOAuth';
|
||
import { startH5WeChatRegister } from '../composables/useH5WeChatRegister';
|
||
import H5GuestAuthCta from '../components/H5GuestAuthCta.vue';
|
||
import { useUserStore } from '@/store';
|
||
import { useRbacUserStore } from '@/store/modules/rbac-user';
|
||
import useLocale from '@/hooks/locale';
|
||
import iconServiceCoupon from '@/assets/icons/h5/service-coupon.svg?url';
|
||
import iconServiceInvite from '@/assets/icons/h5/service-invite.svg?url';
|
||
import iconServiceCommission from '@/assets/icons/h5/service-commission.svg?url';
|
||
import iconServiceStoreOrder from '@/assets/icons/h5/service-store-order.svg?url';
|
||
import iconOrderPickup from '@/assets/icons/h5/order-pickup.svg?url';
|
||
import iconTabMe from '@/assets/icons/h5/tab-me.svg?url';
|
||
import { useH5TabEnterOnce } from '@/views/h5/composables/useH5TabEnterOnce';
|
||
import { useH5PullRefresh } from '@/views/h5/composables/useH5PullRefresh';
|
||
|
||
defineOptions({ name: 'H5Me' });
|
||
|
||
const { animateEnter } = useH5TabEnterOnce();
|
||
|
||
const H5JourneyGuide = defineAsyncComponent(() => import('../components/H5JourneyGuide.vue'));
|
||
const H5CreateOrderFlow = defineAsyncComponent(
|
||
() => import('../components/H5CreateOrderFlow.vue'),
|
||
);
|
||
const H5RechargeSheet = defineAsyncComponent(() => import('../components/H5RechargeSheet.vue'));
|
||
const H5CouponsSheet = defineAsyncComponent(() => import('../components/H5CouponsSheet.vue'));
|
||
const H5InviteSheet = defineAsyncComponent(() => import('../components/H5InviteSheet.vue'));
|
||
const H5CommissionSheet = defineAsyncComponent(
|
||
() => import('../components/H5CommissionSheet.vue'),
|
||
);
|
||
const H5EditProfileSheet = defineAsyncComponent(
|
||
() => import('../components/H5EditProfileSheet.vue'),
|
||
);
|
||
const H5PasswordSheet = defineAsyncComponent(() => import('../components/H5PasswordSheet.vue'));
|
||
const H5OpenApiCredentialSheet = defineAsyncComponent(
|
||
() => import('../components/H5OpenApiCredentialSheet.vue'),
|
||
);
|
||
const H5AddressSheet = defineAsyncComponent(() => import('../components/H5AddressSheet.vue'));
|
||
const H5PickupOrdersSheet = defineAsyncComponent(
|
||
() => import('../components/H5PickupOrdersSheet.vue'),
|
||
);
|
||
const H5FollowOfficialModal = defineAsyncComponent(
|
||
() => import('../components/H5FollowOfficialModal.vue'),
|
||
);
|
||
const H5MemberPointsSheet = defineAsyncComponent(
|
||
() => import('../components/H5MemberPointsSheet.vue'),
|
||
);
|
||
const H5WechatNotifySheet = defineAsyncComponent(
|
||
() => import('../components/H5WechatNotifySheet.vue'),
|
||
);
|
||
|
||
type SheetKey =
|
||
| 'placeOrder'
|
||
| 'recharge'
|
||
| 'coupons'
|
||
| 'invite'
|
||
| 'commission'
|
||
| 'edit'
|
||
| 'password'
|
||
| 'openapi'
|
||
| 'address'
|
||
| 'pickup'
|
||
| 'follow'
|
||
| 'member'
|
||
| 'wechatNotify';
|
||
|
||
const sheetLoaders: Record<SheetKey, () => Promise<unknown>> = {
|
||
placeOrder: () => import('../components/H5CreateOrderFlow.vue'),
|
||
recharge: () => import('../components/H5RechargeSheet.vue'),
|
||
coupons: () => import('../components/H5CouponsSheet.vue'),
|
||
invite: () => import('../components/H5InviteSheet.vue'),
|
||
commission: () => import('../components/H5CommissionSheet.vue'),
|
||
edit: () => import('../components/H5EditProfileSheet.vue'),
|
||
password: () => import('../components/H5PasswordSheet.vue'),
|
||
openapi: () => import('../components/H5OpenApiCredentialSheet.vue'),
|
||
address: () => import('../components/H5AddressSheet.vue'),
|
||
pickup: () => import('../components/H5PickupOrdersSheet.vue'),
|
||
follow: () => import('../components/H5FollowOfficialModal.vue'),
|
||
member: () => import('../components/H5MemberPointsSheet.vue'),
|
||
wechatNotify: () => import('../components/H5WechatNotifySheet.vue'),
|
||
};
|
||
|
||
const LOW_BALANCE_THRESHOLD = 100;
|
||
|
||
const { t, locale } = useI18n();
|
||
const { changeLocale } = useLocale();
|
||
const router = useRouter();
|
||
const userStore = useUserStore();
|
||
const rbacUserStore = useRbacUserStore();
|
||
|
||
const loading = ref(false);
|
||
const profile = ref<CustomerDto>({});
|
||
const couponCount = ref(0);
|
||
|
||
const placeOrderVisible = ref(false);
|
||
const rechargeVisible = ref(false);
|
||
const couponsVisible = ref(false);
|
||
const inviteVisible = ref(false);
|
||
const commissionVisible = ref(false);
|
||
const editVisible = ref(false);
|
||
const pwdVisible = ref(false);
|
||
const openapiVisible = ref(false);
|
||
const addressVisible = ref(false);
|
||
const pickupVisible = ref(false);
|
||
const pickupCount = ref(0);
|
||
const orderTotalCount = ref(0);
|
||
const memberOverview = ref<Record<string, unknown> | null>(null);
|
||
const memberVisible = ref(false);
|
||
const wechatNotifyVisible = ref(false);
|
||
const notifyGuideKeyEvents = ref(false);
|
||
const notifyNudgeVisible = ref(false);
|
||
const NOTIFY_NUDGE_DISMISS_KEY = 'h5_me_notify_nudge_dismissed';
|
||
const followOfficialModalRef = ref<{ open: () => void } | null>(null);
|
||
const journeyReady = ref(false);
|
||
const sheetOpening = ref(false);
|
||
const refreshing = ref(false);
|
||
let didMountLoad = false;
|
||
let softRefreshing = false;
|
||
/** 点击后再挂载对应弹层,挂上后保留,二次打开秒开 */
|
||
const sheetHost = reactive<Record<SheetKey, boolean>>({
|
||
placeOrder: false,
|
||
recharge: false,
|
||
coupons: false,
|
||
invite: false,
|
||
commission: false,
|
||
edit: false,
|
||
password: false,
|
||
openapi: false,
|
||
address: false,
|
||
pickup: false,
|
||
follow: false,
|
||
member: false,
|
||
wechatNotify: false,
|
||
});
|
||
|
||
async function openSheet(key: SheetKey, visibleRef?: { value: boolean }) {
|
||
if (sheetOpening.value) return;
|
||
sheetOpening.value = true;
|
||
const needFetch = !sheetHost[key];
|
||
let loadingMsg: { close: () => void } | null = null;
|
||
if (needFetch) {
|
||
loadingMsg = Message.loading({ content: t('h5.me.opening'), duration: 0 });
|
||
}
|
||
try {
|
||
if (needFetch) {
|
||
await sheetLoaders[key]();
|
||
sheetHost[key] = true;
|
||
await nextTick();
|
||
}
|
||
if (visibleRef) {
|
||
visibleRef.value = true;
|
||
await nextTick();
|
||
}
|
||
} catch (e: any) {
|
||
Message.error(e?.message || t('h5.me.openFailed'));
|
||
} finally {
|
||
loadingMsg?.close();
|
||
sheetOpening.value = false;
|
||
}
|
||
}
|
||
|
||
const editInitial = computed(() => ({
|
||
customerName: profile.value.customerName || '',
|
||
phone: profile.value.phone || '',
|
||
email: profile.value.email || '',
|
||
}));
|
||
|
||
const pickupSummary = computed(() => {
|
||
if (pickupCount.value > 0) {
|
||
return t('h5.me.pickupSummary', { count: pickupCount.value });
|
||
}
|
||
return t('h5.me.pickupEmpty');
|
||
});
|
||
|
||
const avatarSrc = computed(() => {
|
||
const raw = profile.value.wechatAvatarUrl ?? profile.value.wechatAvatar;
|
||
return hasCustomAvatarUrl(raw) ? String(raw).trim() : '';
|
||
});
|
||
const displayName = computed(
|
||
() => profile.value.customerName || profile.value.wechatNickname || t('h5.me.defaultName'),
|
||
);
|
||
const isMainCustomer = computed(() => profile.value.parentCustomerId == null);
|
||
const accountBalance = computed(() =>
|
||
Number(profile.value.accountBalance ?? profile.value.balance ?? 0),
|
||
);
|
||
const isLowBalance = computed(
|
||
() => Number.isFinite(accountBalance.value) && accountBalance.value < LOW_BALANCE_THRESHOLD,
|
||
);
|
||
const customerGroupLabel = computed(() => {
|
||
const g = profile.value.customerGroup;
|
||
if (g == null) return '';
|
||
const key = `user.customer.group.${['normal', 'vip1', 'vip2', 'vip3', 'vip4', 'vip5'][g] || ''}`;
|
||
const label = t(key);
|
||
return label !== key ? label : '';
|
||
});
|
||
|
||
const memberLevel = computed(() => pickMemberLevelFromOverview(memberOverview.value));
|
||
const memberLevelName = computed(() => memberLevel.value.name);
|
||
const levelBadge = computed(() => memberLevelName.value || customerGroupLabel.value);
|
||
const levelTone = computed(() =>
|
||
getMemberLevelTone(memberLevel.value.code, levelBadge.value),
|
||
);
|
||
const levelToneClass = computed(() => (levelTone.value ? `is-${levelTone.value.key}` : ''));
|
||
const levelToneStyle = computed(() => {
|
||
if (!levelTone.value) return undefined;
|
||
const c = levelTone.value.color;
|
||
return {
|
||
'--me-vip-accent': c,
|
||
'--me-vip-from': `color-mix(in srgb, ${c} 78%, #1a1a1a)`,
|
||
'--me-vip-to': c,
|
||
'--me-vip-glow': `color-mix(in srgb, ${c} 35%, transparent)`,
|
||
} as Record<string, string>;
|
||
});
|
||
const levelGlyphHtml = computed(() =>
|
||
levelTone.value ? renderMemberLevelGlyphSvg(levelTone.value.key, 12) : '',
|
||
);
|
||
|
||
const totalPoints = computed(() =>
|
||
Number(
|
||
memberOverview.value?.rollingPoints ??
|
||
memberOverview.value?.RollingPoints ??
|
||
memberOverview.value?.totalPoints ??
|
||
memberOverview.value?.TotalPoints ??
|
||
0,
|
||
),
|
||
);
|
||
const rawNextLevelId = computed(() => {
|
||
const raw = memberOverview.value?.nextLevelId ?? memberOverview.value?.NextLevelId;
|
||
if (raw == null || raw === '') return null;
|
||
const n = Number(raw);
|
||
return Number.isFinite(n) && n > 0 ? n : null;
|
||
});
|
||
const rawNextLevelName = computed(() =>
|
||
String(memberOverview.value?.nextLevelName ?? memberOverview.value?.NextLevelName ?? '').trim(),
|
||
);
|
||
const pointsToNext = computed(() => {
|
||
const raw = memberOverview.value?.pointsToNextLevel ?? memberOverview.value?.PointsToNextLevel;
|
||
if (raw == null || raw === '') return 0;
|
||
return Math.max(0, Number(raw) || 0);
|
||
});
|
||
/** 有下一档 Id/名称,且名称不等于当前档,才算还有升级空间 */
|
||
const hasNextLevel = computed(() => {
|
||
const next = rawNextLevelName.value;
|
||
if (!rawNextLevelId.value && !next) return false;
|
||
const cur = String(memberLevelName.value || '').trim();
|
||
if (cur && next && next === cur) return false;
|
||
return Boolean(next || rawNextLevelId.value);
|
||
});
|
||
const nextLevelName = computed(() => (hasNextLevel.value ? rawNextLevelName.value : ''));
|
||
const pointsNextText = computed(() => {
|
||
if (!hasNextLevel.value) return t('h5.me.pointsTopLevel');
|
||
if (!nextLevelName.value) return t('h5.me.pointsTopLevel');
|
||
// 积分已够下一档门槛、等级尚未刷新时,不要写成「已达最高」
|
||
if (pointsToNext.value <= 0) {
|
||
return t('h5.me.pointsReadyNext', { name: nextLevelName.value });
|
||
}
|
||
return t('h5.me.pointsToNext', {
|
||
name: nextLevelName.value,
|
||
points: formatPoints(pointsToNext.value),
|
||
});
|
||
});
|
||
const pointsProgress = computed(() => {
|
||
if (!hasNextLevel.value) return 100;
|
||
if (pointsToNext.value <= 0) return 100;
|
||
const need = pointsToNext.value;
|
||
const total = totalPoints.value;
|
||
const target = total + need;
|
||
if (!target) return 100;
|
||
return Math.min(100, Math.max(0, Math.round((total / target) * 100)));
|
||
});
|
||
|
||
function formatPoints(val: number) {
|
||
return Number.isFinite(val) ? val.toLocaleString() : '0';
|
||
}
|
||
const localeDisplay = computed(() => (locale.value === 'zh-CN' ? '中文' : 'English'));
|
||
|
||
const greetText = computed(() => {
|
||
const hour = new Date().getHours();
|
||
if (hour < 6) return t('h5.me.greet.night');
|
||
if (hour < 12) return t('h5.me.greet.morning');
|
||
if (hour < 14) return t('h5.me.greet.noon');
|
||
if (hour < 18) return t('h5.me.greet.afternoon');
|
||
return t('h5.me.greet.evening');
|
||
});
|
||
|
||
const quickItems = computed(() => [
|
||
{
|
||
path: '/h5/storeOrders',
|
||
labelKey: 'h5.me.storeOrders',
|
||
desc: t('h5.me.storeOrdersDesc'),
|
||
icon: iconServiceStoreOrder,
|
||
tone: 'ink',
|
||
},
|
||
{
|
||
path: '/h5/coupons',
|
||
labelKey: 'h5.me.coupons',
|
||
desc:
|
||
couponCount.value > 0
|
||
? t('h5.me.couponsDescReady', { count: couponCount.value })
|
||
: t('h5.me.couponsDesc'),
|
||
icon: iconServiceCoupon,
|
||
tone: 'accent',
|
||
badge: couponCount.value || 0,
|
||
},
|
||
{
|
||
path: '/h5/invite',
|
||
labelKey: 'h5.me.invite',
|
||
desc: t('h5.me.inviteDesc'),
|
||
icon: iconServiceInvite,
|
||
tone: 'ink',
|
||
},
|
||
{
|
||
path: '/h5/commission',
|
||
labelKey: 'h5.me.commission',
|
||
desc: t('h5.me.commissionDesc'),
|
||
icon: iconServiceCommission,
|
||
tone: 'teal',
|
||
},
|
||
]);
|
||
|
||
async function onServiceClick(item: { path: string }) {
|
||
if (item.path === '/h5/place-order') {
|
||
await openSheet('placeOrder', placeOrderVisible);
|
||
return;
|
||
}
|
||
if (item.path === '/h5/coupons') {
|
||
await openSheet('coupons', couponsVisible);
|
||
return;
|
||
}
|
||
if (item.path === '/h5/invite') {
|
||
await openSheet('invite', inviteVisible);
|
||
return;
|
||
}
|
||
if (item.path === '/h5/commission') {
|
||
await openSheet('commission', commissionVisible);
|
||
return;
|
||
}
|
||
h5Navigate(router, item.path);
|
||
}
|
||
|
||
async function onCouponUse() {
|
||
await openSheet('placeOrder', placeOrderVisible);
|
||
}
|
||
|
||
async function goRecharge() {
|
||
await openSheet('recharge', rechargeVisible);
|
||
}
|
||
|
||
function goInvoice() {
|
||
h5Navigate(router, '/h5/invoice');
|
||
}
|
||
|
||
async function openPickup() {
|
||
await openSheet('pickup', pickupVisible);
|
||
}
|
||
|
||
async function openMemberPoints() {
|
||
await openSheet('member', memberVisible);
|
||
}
|
||
|
||
async function openEditProfile() {
|
||
await openSheet('edit', editVisible);
|
||
}
|
||
|
||
async function openAddress() {
|
||
await openSheet('address', addressVisible);
|
||
}
|
||
|
||
async function openPassword() {
|
||
await openSheet('password', pwdVisible);
|
||
}
|
||
|
||
async function openOpenApi() {
|
||
await openSheet('openapi', openapiVisible);
|
||
}
|
||
|
||
async function openFollowOfficial() {
|
||
if (!isWeChatBrowser()) {
|
||
Message.warning(t('wechat.follow.openInWechat'));
|
||
return;
|
||
}
|
||
await openSheet('follow');
|
||
followOfficialModalRef.value?.open();
|
||
}
|
||
|
||
async function openWechatNotify() {
|
||
notifyGuideKeyEvents.value = false;
|
||
await openSheet('wechatNotify', wechatNotifyVisible);
|
||
}
|
||
|
||
async function openNotifyFromNudge() {
|
||
notifyGuideKeyEvents.value = true;
|
||
dismissNotifyNudge();
|
||
await openSheet('wechatNotify', wechatNotifyVisible);
|
||
}
|
||
|
||
function dismissNotifyNudge() {
|
||
notifyNudgeVisible.value = false;
|
||
try {
|
||
localStorage.setItem(NOTIFY_NUDGE_DISMISS_KEY, '1');
|
||
} catch {
|
||
// ignore
|
||
}
|
||
}
|
||
|
||
function onWechatNotifySaved() {
|
||
notifyNudgeVisible.value = false;
|
||
try {
|
||
localStorage.setItem(NOTIFY_NUDGE_DISMISS_KEY, '1');
|
||
} catch {
|
||
// ignore
|
||
}
|
||
}
|
||
|
||
async function refreshNotifyNudge() {
|
||
if (!isLogin()) {
|
||
notifyNudgeVisible.value = false;
|
||
return;
|
||
}
|
||
try {
|
||
if (localStorage.getItem(NOTIFY_NUDGE_DISMISS_KEY) === '1') {
|
||
notifyNudgeVisible.value = false;
|
||
return;
|
||
}
|
||
} catch {
|
||
// ignore
|
||
}
|
||
try {
|
||
const { getCustomerWechatNotifyStatus } = await import('@/api/customer/wechatNotify');
|
||
const data = await getCustomerWechatNotifyStatus();
|
||
const subscribed = (data.items || []).some((x) => x.isSubscribed);
|
||
// 已绑定且尚未订阅任何事件时轻引导;未绑定也可点去开启(sheet 内引导绑微信)
|
||
notifyNudgeVisible.value = !subscribed;
|
||
} catch {
|
||
notifyNudgeVisible.value = false;
|
||
}
|
||
}
|
||
|
||
function formatMoney(val: number) {
|
||
return val.toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
||
}
|
||
|
||
async function copyText(text?: string) {
|
||
if (!text) return;
|
||
try {
|
||
await navigator.clipboard.writeText(text);
|
||
Message.success(t('h5.me.copySuccess'));
|
||
} catch {
|
||
Message.error(t('h5.orders.copyFailed'));
|
||
}
|
||
}
|
||
|
||
function onProfileSaved(payload: { customerName: string; phone: string; email: string }) {
|
||
profile.value = { ...profile.value, ...payload };
|
||
}
|
||
|
||
async function onPasswordChanged() {
|
||
clearCurrentCustomerCache();
|
||
await userStore.logout();
|
||
rbacUserStore.logout();
|
||
router.replace('/h5/login');
|
||
}
|
||
|
||
function toggleLocale() {
|
||
const next = locale.value === 'zh-CN' ? 'en-US' : 'zh-CN';
|
||
void changeLocale(next, { silent: true });
|
||
}
|
||
|
||
function bindWechat() {
|
||
if (!isWeChatBrowser()) {
|
||
Message.warning(t('h5.me.bindWechatOpenInWechat'));
|
||
return;
|
||
}
|
||
void redirectToWeChatOAuth('bind').catch((e: any) => {
|
||
Message.error(e?.message || t('h5.me.bindWechatOpenInWechat'));
|
||
});
|
||
}
|
||
|
||
function openOnlineKf() {
|
||
openWecomKf();
|
||
}
|
||
|
||
function handleLogout() {
|
||
Modal.confirm({
|
||
title: t('h5.me.logout'),
|
||
content: t('h5.me.logoutConfirm'),
|
||
onOk: async () => {
|
||
clearCurrentCustomerCache();
|
||
await userStore.logout();
|
||
rbacUserStore.logout();
|
||
router.replace('/h5/login');
|
||
},
|
||
});
|
||
}
|
||
|
||
function onPickupLoaded(total: number) {
|
||
pickupCount.value = Number(total) || 0;
|
||
}
|
||
|
||
async function loadExtras() {
|
||
const [couponsRes, overviewRes, pickupRes] = await Promise.allSettled([
|
||
getMyCoupons({ status: 1, pageIndex: 1, pageSize: 1 }),
|
||
getMemberOverview(),
|
||
getPickupOrderList({ page: 1, pageSize: 1 }),
|
||
]);
|
||
|
||
if (couponsRes.status === 'fulfilled') {
|
||
couponCount.value = Number(couponsRes.value.total) || 0;
|
||
} else {
|
||
couponCount.value = 0;
|
||
}
|
||
|
||
if (overviewRes.status === 'fulfilled') {
|
||
memberOverview.value = overviewRes.value as Record<string, unknown>;
|
||
} else {
|
||
memberOverview.value = null;
|
||
}
|
||
|
||
if (pickupRes.status === 'fulfilled') {
|
||
pickupCount.value = Number(pickupRes.value.total) || 0;
|
||
} else {
|
||
pickupCount.value = 0;
|
||
}
|
||
|
||
void refreshNotifyNudge();
|
||
void refreshOrderTotal();
|
||
}
|
||
|
||
/** 仅用于发货指引:无运单时默认展开 */
|
||
async function refreshOrderTotal() {
|
||
if (!isLogin()) {
|
||
orderTotalCount.value = 0;
|
||
return;
|
||
}
|
||
try {
|
||
const res = await getOrderStatusCounts();
|
||
const counts = res.counts || {};
|
||
orderTotalCount.value = Object.values(counts).reduce(
|
||
(s, n) => s + (Number(n) || 0),
|
||
0,
|
||
);
|
||
} catch {
|
||
orderTotalCount.value = 0;
|
||
}
|
||
}
|
||
|
||
function resolveIdentity() {
|
||
const mapId = getMapIdFromAccessToken(rbacUserStore.accessToken);
|
||
const account = rbacUserStore.userInfo?.account?.trim() || '';
|
||
return { mapId, account };
|
||
}
|
||
|
||
async function loadProfile(opts?: { silent?: boolean }) {
|
||
if (!isLogin()) return;
|
||
const identity = resolveIdentity();
|
||
const silent = Boolean(opts?.silent) && Boolean(profile.value?.id);
|
||
const cached = peekCachedCurrentCustomer(identity);
|
||
if (cached) {
|
||
profile.value = cached;
|
||
loading.value = false;
|
||
void loadExtras();
|
||
// 后台轻量刷新余额等
|
||
void resolveCurrentCustomer({ ...identity, force: true })
|
||
.then((fresh) => {
|
||
if (fresh) profile.value = fresh;
|
||
})
|
||
.catch(() => undefined);
|
||
return;
|
||
}
|
||
|
||
if (!silent) {
|
||
loading.value = true;
|
||
}
|
||
try {
|
||
profile.value = (await resolveCurrentCustomer({ ...identity, force: true })) || {};
|
||
void loadExtras();
|
||
} catch {
|
||
if (!silent) {
|
||
profile.value = {};
|
||
}
|
||
} finally {
|
||
loading.value = false;
|
||
}
|
||
}
|
||
|
||
async function softRefresh() {
|
||
if (!isLogin() || softRefreshing || loading.value || refreshing.value) return;
|
||
softRefreshing = true;
|
||
refreshing.value = true;
|
||
try {
|
||
await loadProfile({ silent: true });
|
||
} finally {
|
||
softRefreshing = false;
|
||
refreshing.value = false;
|
||
}
|
||
}
|
||
|
||
const { pullY, pullArmed, pullHint, onTouchStart, onTouchMove, onTouchEnd } = useH5PullRefresh({
|
||
scrollSelector: '.h5-center-main',
|
||
loading: refreshing,
|
||
onRefresh: async () => {
|
||
refreshing.value = true;
|
||
try {
|
||
clearCurrentCustomerCache();
|
||
await loadProfile({ silent: true });
|
||
} finally {
|
||
refreshing.value = false;
|
||
}
|
||
},
|
||
labels: () => ({
|
||
hint: t('h5.me.pull.hint'),
|
||
release: t('h5.me.pull.release'),
|
||
refreshing: t('h5.me.pull.refreshing'),
|
||
}),
|
||
});
|
||
|
||
const isLoggedIn = computed(() => isLogin());
|
||
|
||
/** 转化优先:先即时利益(券)→ 持续省钱(会员)→ 裂变(邀请) */
|
||
const guestBenefits: Array<{
|
||
key: string;
|
||
icon: string;
|
||
toneClass: string;
|
||
titleKey: string;
|
||
descKey: string;
|
||
tagKey?: string;
|
||
}> = [
|
||
{
|
||
key: 'coupon',
|
||
icon: iconServiceCoupon,
|
||
toneClass: 'is-accent',
|
||
titleKey: 'h5.me.guestBenefit.coupon.title',
|
||
descKey: 'h5.me.guestBenefit.coupon.desc',
|
||
tagKey: 'h5.me.guestBenefit.coupon.tag',
|
||
},
|
||
{
|
||
key: 'member',
|
||
icon: iconTabMe,
|
||
toneClass: 'is-teal',
|
||
titleKey: 'h5.me.guestBenefit.member.title',
|
||
descKey: 'h5.me.guestBenefit.member.desc',
|
||
tagKey: 'h5.me.guestBenefit.member.tag',
|
||
},
|
||
{
|
||
key: 'invite',
|
||
icon: iconServiceInvite,
|
||
toneClass: 'is-ink',
|
||
titleKey: 'h5.me.guestBenefit.invite.title',
|
||
descKey: 'h5.me.guestBenefit.invite.desc',
|
||
},
|
||
];
|
||
|
||
function goGuestLogin() {
|
||
h5Navigate(router, {
|
||
path: '/h5/login',
|
||
query: { redirect: '/h5/me' },
|
||
});
|
||
}
|
||
|
||
function goGuestRegister() {
|
||
startH5WeChatRegister({ redirect: '/h5/me' });
|
||
}
|
||
|
||
onMounted(() => {
|
||
// 清掉可能残留的全局 loading toast
|
||
Message.clear();
|
||
if (!isLogin()) {
|
||
loading.value = false;
|
||
didMountLoad = true;
|
||
return;
|
||
}
|
||
void loadProfile().finally(() => {
|
||
didMountLoad = true;
|
||
});
|
||
// 寄件指南不挡首屏,空闲再挂
|
||
const showJourney = () => {
|
||
journeyReady.value = true;
|
||
};
|
||
if (typeof window !== 'undefined' && 'requestIdleCallback' in window) {
|
||
window.requestIdleCallback(showJourney, { timeout: 1800 });
|
||
} else {
|
||
window.setTimeout(showJourney, 600);
|
||
}
|
||
});
|
||
|
||
onActivated(() => {
|
||
if (!didMountLoad || !isLogin()) return;
|
||
void softRefresh();
|
||
});
|
||
</script>
|
||
|
||
<style lang="less" scoped>
|
||
.h5-me-page {
|
||
--me-ink: #142637;
|
||
--me-teal: #007979;
|
||
--me-accent: #ff4d00;
|
||
|
||
min-height: 100%;
|
||
padding: 20px 16px 28px;
|
||
box-sizing: border-box;
|
||
background: #f5f6f8;
|
||
transform: translateY(var(--pull-y, 0px));
|
||
transition: transform 0.12s ease-out;
|
||
|
||
&.is-pulling {
|
||
transition: none;
|
||
}
|
||
}
|
||
|
||
.h5-me-pull {
|
||
height: 0;
|
||
overflow: hidden;
|
||
display: flex;
|
||
align-items: flex-end;
|
||
justify-content: center;
|
||
margin: 0;
|
||
padding-bottom: 0;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--h5-text-3, #86909c);
|
||
transition:
|
||
height 0.12s ease-out,
|
||
margin 0.12s ease-out,
|
||
padding-bottom 0.12s ease-out;
|
||
|
||
&.is-ready,
|
||
&.is-loading {
|
||
height: 28px;
|
||
margin: -4px -16px 8px;
|
||
padding-bottom: 8px;
|
||
color: var(--app-primary-color);
|
||
}
|
||
}
|
||
|
||
.h5-me-spin {
|
||
width: 100%;
|
||
display: block;
|
||
}
|
||
|
||
.h5-me-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.h5-me-page.is-enter-anim .h5-me-enter {
|
||
animation: h5-me-soft-in 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
|
||
animation-delay: var(--h5-me-delay, 0ms);
|
||
}
|
||
|
||
.h5-me-fade-enter-active {
|
||
transition:
|
||
opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
|
||
transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
|
||
}
|
||
|
||
.h5-me-fade-leave-active {
|
||
transition: opacity 0.14s ease;
|
||
}
|
||
|
||
.h5-me-fade-enter-from {
|
||
opacity: 0;
|
||
transform: translateY(10px);
|
||
}
|
||
|
||
.h5-me-fade-leave-to {
|
||
opacity: 0;
|
||
}
|
||
|
||
@keyframes h5-me-soft-in {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(12px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.h5-me-skel {
|
||
padding-top: 4px;
|
||
display: grid;
|
||
gap: 12px;
|
||
}
|
||
|
||
.h5-me-skel__hero,
|
||
.h5-me-skel__card {
|
||
border-radius: 16px;
|
||
background: linear-gradient(90deg, #eef0f3 25%, #f7f8fa 37%, #eef0f3 63%);
|
||
background-size: 400% 100%;
|
||
animation: h5-me-skel 1.2s ease infinite;
|
||
}
|
||
|
||
.h5-me-skel__hero {
|
||
height: 196px;
|
||
}
|
||
|
||
.h5-me-skel__card {
|
||
height: 96px;
|
||
|
||
&--short {
|
||
height: 120px;
|
||
}
|
||
}
|
||
|
||
@keyframes h5-me-skel {
|
||
0% {
|
||
background-position: 100% 0;
|
||
}
|
||
100% {
|
||
background-position: 0 0;
|
||
}
|
||
}
|
||
|
||
/* 身份 + 余额 + 积分 + 揽收 合并大卡 */
|
||
.h5-me-hero {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 0;
|
||
overflow: visible;
|
||
border-radius: 16px;
|
||
background: #fff;
|
||
box-shadow: 0 4px 16px rgba(20, 38, 55, 0.05);
|
||
margin-top: 6px;
|
||
}
|
||
|
||
.h5-me-hero--guest {
|
||
padding: 16px 14px 14px;
|
||
gap: 12px;
|
||
background: #fff;
|
||
|
||
.h5-me-hero__top {
|
||
align-items: center;
|
||
padding: 0 2px;
|
||
}
|
||
|
||
.h5-me-section-label {
|
||
margin: 4px 2px 0;
|
||
}
|
||
}
|
||
|
||
.h5-me-guest-hint {
|
||
margin: 4px 0 0;
|
||
font-size: 13px;
|
||
line-height: 1.4;
|
||
color: var(--h5-text-2, #4e5969);
|
||
}
|
||
|
||
.h5-me-guest-benefits {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
|
||
.h5-me-guest-benefit {
|
||
--benefit-tone: var(--me-teal);
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
padding: 10px 12px;
|
||
border-radius: 12px;
|
||
background: #f7f8fa;
|
||
border: none;
|
||
overflow: hidden;
|
||
|
||
.h5-me-page.is-enter-anim & {
|
||
animation: h5-me-soft-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
|
||
}
|
||
|
||
&.is-teal {
|
||
--benefit-tone: var(--me-teal);
|
||
}
|
||
|
||
&.is-accent {
|
||
--benefit-tone: var(--me-accent, #e85d4c);
|
||
background: color-mix(in srgb, var(--me-accent, #e85d4c) 6%, #f7f8fa);
|
||
}
|
||
|
||
&.is-ink {
|
||
--benefit-tone: var(--me-ink);
|
||
}
|
||
}
|
||
|
||
.h5-me-guest-benefit__icon {
|
||
flex-shrink: 0;
|
||
width: 34px;
|
||
height: 34px;
|
||
margin-top: 1px;
|
||
border-radius: 10px;
|
||
border: none;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: color-mix(in srgb, var(--benefit-tone) 12%, #fff);
|
||
|
||
img {
|
||
width: 20px;
|
||
height: 20px;
|
||
object-fit: contain;
|
||
display: block;
|
||
pointer-events: none;
|
||
-webkit-user-drag: none;
|
||
}
|
||
}
|
||
|
||
.h5-me-guest-benefit__body {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
|
||
.h5-me-guest-benefit__title-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.h5-me-guest-benefit__title {
|
||
margin: 0;
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
color: var(--me-ink);
|
||
line-height: 1.3;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
|
||
.h5-me-guest-benefit__tag {
|
||
flex-shrink: 0;
|
||
margin: 0;
|
||
padding: 1px 6px;
|
||
border-radius: 999px;
|
||
font-size: 10px;
|
||
font-style: normal;
|
||
font-weight: 650;
|
||
line-height: 1.4;
|
||
color: var(--benefit-tone);
|
||
background: color-mix(in srgb, var(--benefit-tone) 12%, #fff);
|
||
}
|
||
|
||
.h5-me-guest-benefit__desc {
|
||
margin: 0;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
line-height: 1.4;
|
||
color: #86909c;
|
||
}
|
||
|
||
/* 右上角错落等级角标:底色跟等级色走,不再被墨色冲淡 */
|
||
.h5-me-vip {
|
||
position: absolute;
|
||
z-index: 3;
|
||
top: -8px;
|
||
right: -2px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
max-width: 56%;
|
||
padding: 6px 14px 7px 10px;
|
||
border-radius: 10px 4px 4px 12px;
|
||
background: linear-gradient(
|
||
135deg,
|
||
var(--me-vip-from, var(--me-ink)) 0%,
|
||
var(--me-vip-to, var(--me-teal)) 100%
|
||
);
|
||
color: #fff;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
line-height: 1.2;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
transform: none;
|
||
box-shadow:
|
||
0 4px 12px var(--me-vip-glow, rgba(20, 38, 55, 0.2)),
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.22);
|
||
pointer-events: none;
|
||
|
||
.h5-me-vip__icon {
|
||
flex-shrink: 0;
|
||
width: 12px;
|
||
height: 12px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
object-fit: contain;
|
||
color: #fff;
|
||
filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
|
||
|
||
:deep(svg) {
|
||
display: block;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
}
|
||
|
||
.h5-me-vip__name {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
font-style: normal;
|
||
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
|
||
}
|
||
|
||
&::before {
|
||
content: '';
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
height: 1px;
|
||
background: linear-gradient(
|
||
90deg,
|
||
transparent,
|
||
rgba(255, 255, 255, 0.45),
|
||
transparent
|
||
);
|
||
}
|
||
}
|
||
|
||
.h5-me-hero__top {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
min-width: 0;
|
||
padding: 16px 14px 14px;
|
||
padding-right: 92px;
|
||
}
|
||
|
||
.h5-me-avatar {
|
||
flex-shrink: 0;
|
||
box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(20, 38, 55, 0.08);
|
||
}
|
||
|
||
.h5-me-hero__text {
|
||
min-width: 0;
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
.h5-me-hero__name-row {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.h5-me-name {
|
||
margin: 0;
|
||
min-width: 0;
|
||
flex-shrink: 1;
|
||
font-size: 17px;
|
||
font-weight: 700;
|
||
color: var(--me-ink);
|
||
line-height: 1.25;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.h5-me-greet {
|
||
flex-shrink: 0;
|
||
margin: 0;
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
color: #86909c;
|
||
line-height: 1.25;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.h5-me-hero__meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
gap: 4px 6px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.h5-me-code {
|
||
margin: 0;
|
||
border: none;
|
||
background: transparent;
|
||
padding: 0;
|
||
font-size: 11px;
|
||
color: #86909c;
|
||
line-height: 1.3;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
max-width: 100%;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
cursor: pointer;
|
||
|
||
:deep(.arco-icon) {
|
||
flex-shrink: 0;
|
||
color: #c9cdd4;
|
||
}
|
||
}
|
||
|
||
.h5-me-hero__dot {
|
||
color: #c9cdd4;
|
||
font-size: 11px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.h5-me-balance__label {
|
||
font-size: 11px;
|
||
color: #86909c;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
.h5-me-balance__value {
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
color: var(--me-ink);
|
||
font-variant-numeric: tabular-nums;
|
||
line-height: 1.3;
|
||
letter-spacing: -0.02em;
|
||
}
|
||
|
||
.h5-me-hero.is-low .h5-me-balance__value {
|
||
color: #f53f3f;
|
||
}
|
||
|
||
.h5-me-recharge {
|
||
margin-left: 2px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
height: 22px;
|
||
padding: 0 8px;
|
||
border: none;
|
||
border-radius: 11px;
|
||
background: color-mix(in srgb, var(--me-teal) 12%, #fff);
|
||
color: var(--me-teal);
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
|
||
&:active {
|
||
opacity: 0.8;
|
||
}
|
||
}
|
||
|
||
.h5-me-hero.is-low .h5-me-recharge {
|
||
background: color-mix(in srgb, #f53f3f 12%, #fff);
|
||
color: #f53f3f;
|
||
}
|
||
|
||
.h5-me-hero__low {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
margin: 0 14px 10px;
|
||
padding: 10px 12px;
|
||
border-radius: 10px;
|
||
background: #ffece8;
|
||
color: #f53f3f;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
line-height: 1.35;
|
||
}
|
||
|
||
.h5-me-hero__low-cta {
|
||
flex-shrink: 0;
|
||
height: 28px;
|
||
padding: 0 12px;
|
||
border: none;
|
||
border-radius: 14px;
|
||
background: #f53f3f;
|
||
color: #fff;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
-webkit-tap-highlight-color: transparent;
|
||
|
||
&:active {
|
||
opacity: 0.88;
|
||
}
|
||
}
|
||
|
||
.h5-me-hero__points {
|
||
display: block;
|
||
width: calc(100% - 28px);
|
||
margin: 0 14px 12px;
|
||
padding: 0;
|
||
border: none;
|
||
background: transparent;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
-webkit-tap-highlight-color: transparent;
|
||
|
||
&:active {
|
||
opacity: 0.88;
|
||
}
|
||
}
|
||
|
||
.h5-me-hero__points-head {
|
||
display: flex;
|
||
align-items: baseline;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.h5-me-hero__points-now {
|
||
font-size: 12px;
|
||
color: #86909c;
|
||
line-height: 1.3;
|
||
|
||
strong {
|
||
margin-left: 4px;
|
||
font-size: 15px;
|
||
font-weight: 700;
|
||
color: var(--me-ink);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
}
|
||
|
||
.h5-me-hero__points-next {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 2px;
|
||
flex-shrink: 1;
|
||
min-width: 0;
|
||
max-width: 58%;
|
||
font-size: 11px;
|
||
color: var(--me-teal);
|
||
font-weight: 600;
|
||
line-height: 1.3;
|
||
text-align: right;
|
||
}
|
||
|
||
.h5-me-hero__points-arrow {
|
||
flex-shrink: 0;
|
||
font-size: 12px;
|
||
color: #c9cdd4;
|
||
}
|
||
|
||
.h5-me-hero__points-bar {
|
||
height: 6px;
|
||
border-radius: 3px;
|
||
overflow: hidden;
|
||
background: color-mix(in srgb, var(--me-teal) 10%, #f2f3f5);
|
||
}
|
||
|
||
.h5-me-hero__points-fill {
|
||
display: block;
|
||
height: 100%;
|
||
border-radius: 3px;
|
||
background: linear-gradient(
|
||
90deg,
|
||
var(--me-teal) 0%,
|
||
color-mix(in srgb, var(--me-teal) 70%, var(--me-ink)) 100%
|
||
);
|
||
transition: width 0.35s ease;
|
||
}
|
||
|
||
.h5-me-hero__pickup {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
width: 100%;
|
||
margin: 0;
|
||
padding: 12px 14px;
|
||
border: none;
|
||
border-top: 1px solid #f2f3f5;
|
||
border-radius: 0 0 16px 16px;
|
||
background: color-mix(in srgb, var(--me-teal) 4%, #fff);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
color: var(--me-ink);
|
||
|
||
&:active {
|
||
opacity: 0.94;
|
||
}
|
||
}
|
||
|
||
.h5-me-hero__pickup-icon {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 10px;
|
||
flex-shrink: 0;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: color-mix(in srgb, var(--me-teal) 10%, #fff);
|
||
|
||
img {
|
||
width: 30px;
|
||
height: 30px;
|
||
object-fit: contain;
|
||
pointer-events: none;
|
||
-webkit-user-drag: none;
|
||
}
|
||
}
|
||
|
||
.h5-me-hero__pickup-body {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
|
||
strong {
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
span {
|
||
font-size: 12px;
|
||
color: #86909c;
|
||
line-height: 1.35;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
}
|
||
|
||
.h5-me-hero__pickup-go {
|
||
flex-shrink: 0;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 2px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--me-teal);
|
||
}
|
||
|
||
.h5-me-section-label {
|
||
margin: 16px 2px 8px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: color-mix(in srgb, var(--me-ink) 45%, #86909c);
|
||
letter-spacing: 0.02em;
|
||
}
|
||
|
||
/* 常用服务:三列一行,icon + 标题横排 */
|
||
.h5-me-services {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 8px;
|
||
}
|
||
|
||
.h5-me-services__item {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
padding: 12px 10px;
|
||
border: none;
|
||
border-radius: 14px;
|
||
background: #fff;
|
||
box-shadow: 0 4px 14px rgba(20, 38, 55, 0.045);
|
||
text-align: left;
|
||
cursor: pointer;
|
||
-webkit-tap-highlight-color: transparent;
|
||
overflow: hidden;
|
||
|
||
.h5-me-page.is-enter-anim & {
|
||
animation: h5-me-soft-in 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
|
||
animation-delay: var(--h5-me-tile-delay, 0ms);
|
||
}
|
||
|
||
&:active {
|
||
transform: scale(0.985);
|
||
}
|
||
|
||
&.is-teal {
|
||
--svc-well: color-mix(in srgb, var(--me-teal) 10%, #fff);
|
||
}
|
||
|
||
&.is-accent {
|
||
--svc-well: color-mix(in srgb, var(--me-accent) 10%, #fff);
|
||
}
|
||
|
||
&.is-ink {
|
||
--svc-well: color-mix(in srgb, var(--me-ink) 7%, #fff);
|
||
}
|
||
}
|
||
|
||
.h5-me-services__row {
|
||
position: relative;
|
||
z-index: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.h5-me-services__icon {
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 10px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: var(--svc-well, #f5f7f8);
|
||
|
||
img {
|
||
width: 32px;
|
||
height: 32px;
|
||
object-fit: contain;
|
||
pointer-events: none;
|
||
-webkit-user-drag: none;
|
||
}
|
||
}
|
||
|
||
.h5-me-services__badge {
|
||
position: absolute;
|
||
top: -4px;
|
||
right: -5px;
|
||
min-width: 14px;
|
||
height: 14px;
|
||
padding: 0 3px;
|
||
border-radius: 7px;
|
||
background: var(--me-accent);
|
||
color: #fff;
|
||
font-size: 9px;
|
||
line-height: 14px;
|
||
font-style: normal;
|
||
text-align: center;
|
||
box-shadow: 0 0 0 2px #fff;
|
||
}
|
||
|
||
.h5-me-services__label {
|
||
min-width: 0;
|
||
flex: 1;
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
color: var(--me-ink);
|
||
line-height: 1.2;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.h5-me-services__desc {
|
||
position: relative;
|
||
z-index: 1;
|
||
font-style: normal;
|
||
font-size: 10px;
|
||
font-weight: 500;
|
||
color: #86909c;
|
||
line-height: 1.3;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.h5-me-notify-nudge {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
margin: 0 0 14px;
|
||
padding: 12px 14px;
|
||
border-radius: 14px;
|
||
background: color-mix(in srgb, var(--app-primary-color) 8%, #fff);
|
||
border: 1px solid color-mix(in srgb, var(--app-primary-color) 18%, transparent);
|
||
}
|
||
|
||
.h5-me-notify-nudge__text {
|
||
strong {
|
||
display: block;
|
||
font-size: 14px;
|
||
font-weight: 700;
|
||
color: #1d2129;
|
||
}
|
||
|
||
p {
|
||
margin: 4px 0 0;
|
||
font-size: 12px;
|
||
line-height: 1.45;
|
||
color: #86909c;
|
||
}
|
||
}
|
||
|
||
.h5-me-notify-nudge__actions {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 8px;
|
||
}
|
||
|
||
.h5-me-notify-nudge__dismiss,
|
||
.h5-me-notify-nudge__go {
|
||
height: 32px;
|
||
padding: 0 12px;
|
||
border-radius: 8px;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.h5-me-notify-nudge__dismiss {
|
||
border: none;
|
||
background: transparent;
|
||
color: #86909c;
|
||
}
|
||
|
||
.h5-me-notify-nudge__go {
|
||
border: none;
|
||
background: var(--app-primary-color);
|
||
color: #fff;
|
||
}
|
||
|
||
.h5-me-list {
|
||
background: #fff;
|
||
border-radius: 14px;
|
||
overflow: hidden;
|
||
box-shadow: 0 4px 14px rgba(20, 38, 55, 0.04);
|
||
}
|
||
|
||
.h5-me-list__item {
|
||
width: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 13px 14px;
|
||
border: none;
|
||
border-bottom: 1px solid rgba(242, 243, 245, 0.9);
|
||
background: transparent;
|
||
font-size: 14px;
|
||
color: color-mix(in srgb, var(--me-ink) 55%, #86909c);
|
||
cursor: pointer;
|
||
text-align: left;
|
||
|
||
&:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
&--danger {
|
||
color: var(--me-accent);
|
||
justify-content: center;
|
||
font-weight: 500;
|
||
}
|
||
|
||
:deep(.arco-icon) {
|
||
color: #c9cdd4;
|
||
font-size: 14px;
|
||
}
|
||
}
|
||
|
||
.h5-me-list__left {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
.h5-me-list__value {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
font-size: 13px;
|
||
color: #86909c;
|
||
}
|
||
|
||
.h5-me-list__icon {
|
||
color: #c9cdd4;
|
||
font-size: 16px;
|
||
}
|
||
|
||
.h5-me-logout {
|
||
margin-top: 10px;
|
||
width: 100%;
|
||
height: 46px;
|
||
border: none;
|
||
border-radius: 14px;
|
||
background: #fff;
|
||
color: var(--me-accent, #ff4d00);
|
||
font-size: 15px;
|
||
font-weight: 650;
|
||
box-shadow:
|
||
inset 0 2px 8px rgba(15, 23, 42, 0.07),
|
||
inset 0 1px 1px rgba(15, 23, 42, 0.04);
|
||
cursor: pointer;
|
||
-webkit-tap-highlight-color: transparent;
|
||
|
||
&:active {
|
||
transform: scale(0.985);
|
||
}
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.h5-me-skel__hero,
|
||
.h5-me-skel__card,
|
||
.h5-me-page.is-enter-anim .h5-me-enter,
|
||
.h5-me-page.is-enter-anim .h5-me-services__item,
|
||
.h5-me-page.is-enter-anim .h5-me-guest-benefit {
|
||
animation: none;
|
||
}
|
||
|
||
.h5-me-fade-enter-active,
|
||
.h5-me-fade-leave-active {
|
||
transition: none;
|
||
}
|
||
|
||
.h5-me-fade-enter-from,
|
||
.h5-me-fade-leave-to {
|
||
opacity: 1;
|
||
transform: none;
|
||
}
|
||
}
|
||
</style>
|