front/src/views/login/components/LoginPortalSwitch.vue
zzh b178a2a35d
All checks were successful
Build and Deploy Front / deploy (push) Successful in 5m56s
feat: 支付选券、优惠入应收展示、申报产品标识编码、创建9610订单等
- 支付弹窗(PC/H5)支持选券与批量支付体验优化,运单管理复用我的订单支付弹窗;立即支付仅允许待支付订单
- 订单详情费用明细展示优惠券抵扣/会员折扣负数行与「含优惠」;价格配置与手工加费过滤抵扣费用项
- 申报明细新增产品标识编码/非标产品标识编码/标准产品标识编码(PC/H5 下单、改单、详情、开放接口文档、公式目录、Excel 模板)
- 9610 页「批量申报」改为「创建9610订单」:选运单并补充出口资质备案、电商平台
- 店铺订单批量按钮按动作独立 loading,获取面单限并发并显示进度
- 另含:国家管理、登录门户切换、监控与工作台、公告弹窗、nginx/vite 配置等改动
2026-10-19 16:34:06 +08:00

64 lines
1.4 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<a-tooltip :content="label" position="tl">
<router-link
class="login-portal-switch"
:to="to"
replace
:aria-label="label"
>
<icon-swap :size="16" />
</router-link>
</a-tooltip>
</template>
<script lang="ts" setup>
import { computed } from 'vue';
import { useI18n } from 'vue-i18n';
import { IconSwap } from '@arco-design/web-vue/es/icon';
import { ADMIN_LOGIN_PATH, CUSTOMER_LOGIN_PATH } from '@/utils/login-portal';
const props = defineProps<{
/** 当前页面对侧:admin=去管理登录;customer=去客户登录 */
target: 'admin' | 'customer';
}>();
const { t } = useI18n();
const to = computed(() =>
props.target === 'admin' ? ADMIN_LOGIN_PATH : CUSTOMER_LOGIN_PATH,
);
const label = computed(() =>
props.target === 'admin'
? t('login.switchToAdmin')
: t('login.switchToCustomer'),
);
</script>
<style lang="less" scoped>
.login-portal-switch {
position: absolute;
right: 14px;
bottom: 14px;
z-index: 2;
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 50%;
color: rgba(26, 45, 74, 0.22);
text-decoration: none;
background: transparent;
border: none;
opacity: 0.7;
transition: color 0.15s ease, opacity 0.15s ease;
&:hover {
color: rgba(26, 45, 74, 0.42);
opacity: 1;
background: transparent;
}
}
</style>