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