All checks were successful
Build and Deploy Front / deploy (push) Successful in 6m37s
将站点/API 默认值收敛到配置,避免再次全局改域名;同步 H5/PC 支付充值与助手浮层交互调整。 Co-authored-by: Cursor <cursoragent@cursor.com>
775 lines
19 KiB
Vue
775 lines
19 KiB
Vue
<template>
|
||
<div class="h5-ar">
|
||
<header class="h5-ar__hero h5-enter">
|
||
<div class="h5-ar__hero-text">
|
||
<h1>{{ t('h5Admin.recharge.title') }}</h1>
|
||
<p>{{ t('h5Admin.recharge.subtitle') }}</p>
|
||
</div>
|
||
<button type="button" class="h5-ar__refresh" :disabled="loading" @click="reload">
|
||
{{ t('h5Admin.recharge.refresh') }}
|
||
</button>
|
||
</header>
|
||
|
||
<div class="h5-ar__tabs h5-enter">
|
||
<button
|
||
v-for="tab in tabs"
|
||
:key="tab.key"
|
||
type="button"
|
||
class="h5-ar__tab"
|
||
:class="{ 'is-active': statusFilter === tab.key }"
|
||
@click="setStatus(tab.key)"
|
||
>
|
||
{{ t(tab.labelKey) }}
|
||
</button>
|
||
</div>
|
||
|
||
<div class="h5-ar__search h5-enter">
|
||
<icon-search class="h5-ar__search-icon" />
|
||
<input
|
||
v-model="keyword"
|
||
class="h5-ar__search-input"
|
||
type="search"
|
||
enterkeyhint="search"
|
||
:placeholder="t('h5Admin.recharge.searchPh')"
|
||
@keyup.enter="reload"
|
||
/>
|
||
<button
|
||
v-if="keyword"
|
||
type="button"
|
||
class="h5-ar__search-clear"
|
||
aria-label="clear"
|
||
@click="keyword = ''; reload()"
|
||
>
|
||
×
|
||
</button>
|
||
<button type="button" class="h5-ar__search-btn" @click="reload">
|
||
{{ t('h5Admin.recharge.search') }}
|
||
</button>
|
||
</div>
|
||
|
||
<H5EmptyState v-if="loading && !rows.length" mode="loading" />
|
||
|
||
<a-spin :loading="loading && rows.length > 0" class="h5-ar__spin">
|
||
<H5EmptyState
|
||
v-if="!loading && !rows.length"
|
||
:icon="IconCommon"
|
||
:text="t('h5Admin.recharge.empty')"
|
||
/>
|
||
|
||
<article
|
||
v-for="(row, index) in rows"
|
||
:key="row.id || row.serialNo"
|
||
class="h5-ar__card h5-enter"
|
||
:style="{ animationDelay: `${Math.min(index, 6) * 40}ms` }"
|
||
>
|
||
<div class="h5-ar__card-top">
|
||
<div class="h5-ar__card-main">
|
||
<strong class="h5-ar__amount">¥{{ formatAmount(row.payAmount) }}</strong>
|
||
<span class="h5-ar__status" :class="`is-${statusTone(row.payStatus, row.approvalPending)}`">
|
||
{{ statusLabel(row.payStatus, row.approvalPending) }}
|
||
</span>
|
||
</div>
|
||
<span class="h5-ar__pay">
|
||
<img v-if="payIcon(row.payType)" :src="payIcon(row.payType)" alt="" />
|
||
{{ payLabel(row.payType) }}
|
||
</span>
|
||
</div>
|
||
|
||
<div class="h5-ar__meta">
|
||
<p>
|
||
<span>{{ t('h5Admin.recharge.customer') }}</span>
|
||
{{ row.customerCode || row.customerPhone || row.customerId || '—' }}
|
||
</p>
|
||
<p>
|
||
<span>{{ t('h5Admin.recharge.serialNo') }}</span>
|
||
{{ row.serialNo || '—' }}
|
||
</p>
|
||
<p>
|
||
<span>{{ t('h5Admin.recharge.time') }}</span>
|
||
{{ formatTime(row.payTime) }}
|
||
</p>
|
||
<p v-if="row.approvalInstanceNo">
|
||
<span>{{ t('h5Admin.recharge.approvalNo') }}</span>
|
||
<button
|
||
v-if="row.approvalInstanceId"
|
||
type="button"
|
||
class="h5-ar__link"
|
||
@click="goApproval(row)"
|
||
>
|
||
{{ row.approvalInstanceNo }}
|
||
</button>
|
||
<template v-else>{{ row.approvalInstanceNo }}</template>
|
||
</p>
|
||
<p v-if="row.remarks">
|
||
<span>{{ t('h5Admin.recharge.remark') }}</span>
|
||
{{ row.remarks }}
|
||
</p>
|
||
</div>
|
||
|
||
<div class="h5-ar__actions">
|
||
<button
|
||
v-if="row.payImage"
|
||
type="button"
|
||
class="h5-ar__btn is-ghost"
|
||
@click="previewImage(row.payImage)"
|
||
>
|
||
{{ t('h5Admin.recharge.viewImage') }}
|
||
</button>
|
||
<template v-if="row.payStatus === '1' && row.approvalPending">
|
||
<button
|
||
type="button"
|
||
class="h5-ar__btn is-primary"
|
||
:disabled="!row.approvalInstanceId"
|
||
@click="goApproval(row)"
|
||
>
|
||
{{ t('h5Admin.recharge.openApproval') }}
|
||
</button>
|
||
</template>
|
||
<template v-else-if="row.payStatus === '1'">
|
||
<button
|
||
type="button"
|
||
class="h5-ar__btn is-danger"
|
||
:disabled="actingId === row.id"
|
||
@click="openReject(row)"
|
||
>
|
||
{{ t('h5Admin.recharge.reject') }}
|
||
</button>
|
||
<button
|
||
v-if="row.canManualApprove !== false"
|
||
type="button"
|
||
class="h5-ar__btn is-primary"
|
||
:disabled="actingId === row.id"
|
||
@click="confirmApprove(row)"
|
||
>
|
||
{{ t('h5Admin.recharge.approve') }}
|
||
</button>
|
||
</template>
|
||
</div>
|
||
</article>
|
||
|
||
<a-button
|
||
v-if="hasMore"
|
||
long
|
||
class="h5-ar__more"
|
||
:loading="loadingMore"
|
||
@click="loadMore"
|
||
>
|
||
{{ t('h5Admin.recharge.loadMore') }}
|
||
</a-button>
|
||
</a-spin>
|
||
|
||
<a-modal
|
||
v-model:visible="imageVisible"
|
||
:title="t('h5Admin.recharge.viewImage')"
|
||
:footer="false"
|
||
unmount-on-close
|
||
width="92%"
|
||
>
|
||
<div class="h5-ar__preview">
|
||
<img v-if="previewUrl" :src="previewUrl" alt="" />
|
||
</div>
|
||
</a-modal>
|
||
|
||
<a-modal
|
||
v-model:visible="rejectVisible"
|
||
:title="t('h5Admin.recharge.rejectTitle')"
|
||
:ok-text="t('h5Admin.recharge.rejectConfirm')"
|
||
:mask-closable="false"
|
||
unmount-on-close
|
||
@before-ok="submitReject"
|
||
@cancel="rejectVisible = false"
|
||
>
|
||
<a-textarea
|
||
v-model="rejectRemark"
|
||
:placeholder="t('h5Admin.recharge.rejectRemarkPh')"
|
||
:auto-size="{ minRows: 3, maxRows: 6 }"
|
||
/>
|
||
</a-modal>
|
||
</div>
|
||
</template>
|
||
|
||
<script lang="ts" setup>
|
||
import { computed, onMounted, ref } from 'vue';
|
||
import { useRouter } from 'vue-router';
|
||
import { useI18n } from 'vue-i18n';
|
||
import dayjs from 'dayjs';
|
||
import { Message, Modal } from '@arco-design/web-vue';
|
||
import { IconCommon, IconSearch } from '@arco-design/web-vue/es/icon';
|
||
import {
|
||
approveRechargeRecord,
|
||
getRechargeRecordList,
|
||
rejectRechargeRecord,
|
||
resolveOmsAssetUrl,
|
||
} from '@/api/recharge/rechargeRecord';
|
||
import H5EmptyState from '@/views/h5/customer-center/components/H5EmptyState.vue';
|
||
import zfbIcon from '@/assets/zfb.png';
|
||
import wxIcon from '@/assets/wx.png';
|
||
|
||
defineOptions({ name: 'H5AdminRecharge' });
|
||
|
||
type StatusKey = '1' | 'all' | '2' | '3';
|
||
|
||
interface RechargeRow {
|
||
id?: number | string;
|
||
serialNo: string;
|
||
payTime: string;
|
||
payType: 'zfb' | 'wx' | 'bank' | '';
|
||
payAmount: number;
|
||
payImage?: string;
|
||
payStatus: string;
|
||
remarks?: string;
|
||
customerId?: number | string;
|
||
customerCode?: string;
|
||
customerPhone?: string;
|
||
approvalPending?: boolean;
|
||
approvalInstanceId?: number | null;
|
||
approvalInstanceNo?: string;
|
||
}
|
||
|
||
const { t } = useI18n();
|
||
const router = useRouter();
|
||
|
||
const tabs: Array<{ key: StatusKey; labelKey: string }> = [
|
||
{ key: '1', labelKey: 'h5Admin.recharge.tab.pending' },
|
||
{ key: 'all', labelKey: 'h5Admin.recharge.tab.all' },
|
||
{ key: '2', labelKey: 'h5Admin.recharge.tab.success' },
|
||
{ key: '3', labelKey: 'h5Admin.recharge.tab.failed' },
|
||
];
|
||
|
||
const statusFilter = ref<StatusKey>('1');
|
||
const keyword = ref('');
|
||
const rows = ref<RechargeRow[]>([]);
|
||
const page = ref(1);
|
||
const pageSize = 20;
|
||
const total = ref(0);
|
||
const loading = ref(false);
|
||
const loadingMore = ref(false);
|
||
const actingId = ref<number | string | null>(null);
|
||
|
||
const imageVisible = ref(false);
|
||
const previewUrl = ref('');
|
||
const rejectVisible = ref(false);
|
||
const rejectRemark = ref('');
|
||
const pendingReject = ref<RechargeRow | null>(null);
|
||
|
||
const hasMore = computed(() => rows.value.length < total.value);
|
||
|
||
function resolvePayImageUrl(raw: unknown): string | undefined {
|
||
const s = String(raw ?? '').trim();
|
||
if (!s || s === '0' || /^https?:\/\/[^/]+\/0$/i.test(s)) return undefined;
|
||
const url = resolveOmsAssetUrl(s).trim();
|
||
return url || undefined;
|
||
}
|
||
|
||
function mapRow(item: any): RechargeRow {
|
||
const pt = Number(item.payType ?? item.PayType);
|
||
return {
|
||
id: item.id ?? item.Id,
|
||
serialNo: String(item.serialNumber ?? item.SerialNumber ?? ''),
|
||
payTime: String(item.rechargeTime ?? item.RechargeTime ?? ''),
|
||
payType: pt === 2 ? 'zfb' : pt === 1 ? 'wx' : pt === 3 ? 'bank' : '',
|
||
payAmount: Number(item.rechargeAmount ?? item.RechargeAmount ?? 0) || 0,
|
||
payImage: resolvePayImageUrl(item.rechargeScreenshot ?? item.RechargeScreenshot),
|
||
payStatus: String(item.rechargeStatus ?? item.RechargeStatus ?? ''),
|
||
remarks: String(item.remark ?? item.Remark ?? '') || undefined,
|
||
customerId: item.customerId ?? item.CustomerId,
|
||
customerCode: String(item.customerCode ?? item.CustomerCode ?? '') || undefined,
|
||
customerPhone: String(item.customerPhone ?? item.CustomerPhone ?? '') || undefined,
|
||
approvalPending: Boolean(item.approvalPending ?? item.ApprovalPending),
|
||
approvalInstanceId: (() => {
|
||
const raw = item.approvalInstanceId ?? item.ApprovalInstanceId;
|
||
const n = Number(raw);
|
||
return Number.isFinite(n) && n > 0 ? n : null;
|
||
})(),
|
||
approvalInstanceNo:
|
||
String(item.approvalInstanceNo ?? item.ApprovalInstanceNo ?? '').trim() || undefined,
|
||
};
|
||
}
|
||
|
||
function goApproval(row: RechargeRow) {
|
||
const id = row.approvalInstanceId;
|
||
if (!id) {
|
||
Message.warning(t('h5Admin.recharge.approvalMissing'));
|
||
return;
|
||
}
|
||
router
|
||
.push({
|
||
path: '/h5/admin/approval',
|
||
query: { tab: 'todo', instanceId: String(id) },
|
||
})
|
||
.catch(() => undefined);
|
||
}
|
||
|
||
function formatAmount(n: number) {
|
||
return Number.isFinite(n) ? n.toFixed(2) : '0.00';
|
||
}
|
||
|
||
function formatTime(v?: string) {
|
||
if (!v) return '—';
|
||
const d = dayjs(v);
|
||
return d.isValid() ? d.format('YYYY-MM-DD HH:mm') : String(v);
|
||
}
|
||
|
||
function statusLabel(code: string, approvalPending?: boolean) {
|
||
if (code === '1' && approvalPending) return t('h5Admin.recharge.tab.pendingApproval');
|
||
if (code === '1') return t('h5Admin.recharge.tab.pending');
|
||
if (code === '2') return t('h5Admin.recharge.tab.success');
|
||
if (code === '3') return t('h5Admin.recharge.tab.failed');
|
||
return code || '—';
|
||
}
|
||
|
||
function statusTone(code: string, approvalPending?: boolean) {
|
||
if (code === '1' && approvalPending) return 'brand';
|
||
if (code === '1') return 'wait';
|
||
if (code === '2') return 'ok';
|
||
if (code === '3') return 'fail';
|
||
return 'mute';
|
||
}
|
||
|
||
function payIcon(type: RechargeRow['payType']) {
|
||
if (type === 'zfb') return zfbIcon;
|
||
if (type === 'wx') return wxIcon;
|
||
return '';
|
||
}
|
||
|
||
function payLabel(type: RechargeRow['payType']) {
|
||
if (type === 'zfb') return t('h5Admin.recharge.pay.alipay');
|
||
if (type === 'wx') return t('h5Admin.recharge.pay.wechat');
|
||
if (type === 'bank') return t('h5Admin.recharge.pay.bank');
|
||
return '—';
|
||
}
|
||
|
||
function buildParams(pageNo: number) {
|
||
const params: Record<string, any> = {
|
||
page: pageNo,
|
||
pageSize,
|
||
};
|
||
if (statusFilter.value !== 'all') {
|
||
params.rechargeStatus = Number(statusFilter.value);
|
||
}
|
||
const sn = keyword.value.trim();
|
||
if (sn) params.serialNumber = sn;
|
||
return params;
|
||
}
|
||
|
||
async function fetchPage(pageNo: number, append: boolean) {
|
||
const res = await getRechargeRecordList(buildParams(pageNo));
|
||
const list = (res.items || []).map(mapRow);
|
||
total.value = Number(res.total || 0);
|
||
rows.value = append ? [...rows.value, ...list] : list;
|
||
page.value = pageNo;
|
||
}
|
||
|
||
async function reload() {
|
||
loading.value = true;
|
||
try {
|
||
await fetchPage(1, false);
|
||
} catch (e: any) {
|
||
Message.error(e?.message || t('h5Admin.recharge.loadFailed'));
|
||
rows.value = [];
|
||
total.value = 0;
|
||
} finally {
|
||
loading.value = false;
|
||
}
|
||
}
|
||
|
||
async function loadMore() {
|
||
if (!hasMore.value || loadingMore.value) return;
|
||
loadingMore.value = true;
|
||
try {
|
||
await fetchPage(page.value + 1, true);
|
||
} catch (e: any) {
|
||
Message.error(e?.message || t('h5Admin.recharge.loadFailed'));
|
||
} finally {
|
||
loadingMore.value = false;
|
||
}
|
||
}
|
||
|
||
function setStatus(key: StatusKey) {
|
||
if (statusFilter.value === key) return;
|
||
statusFilter.value = key;
|
||
void reload();
|
||
}
|
||
|
||
function previewImage(url: string) {
|
||
previewUrl.value = url;
|
||
imageVisible.value = true;
|
||
}
|
||
|
||
function confirmApprove(row: RechargeRow) {
|
||
if (!row.id) return;
|
||
Modal.confirm({
|
||
title: t('h5Admin.recharge.approveTitle'),
|
||
content: t('h5Admin.recharge.approveConfirm', {
|
||
amount: formatAmount(row.payAmount),
|
||
customer: row.customerCode || row.customerPhone || row.serialNo || '',
|
||
}),
|
||
okText: t('h5Admin.recharge.approve'),
|
||
onOk: async () => {
|
||
actingId.value = row.id!;
|
||
try {
|
||
await approveRechargeRecord({ id: row.id! });
|
||
Message.success(t('h5Admin.recharge.approveOk'));
|
||
await reload();
|
||
} catch (e: any) {
|
||
Message.error(e?.message || t('h5Admin.recharge.approveFail'));
|
||
throw e;
|
||
} finally {
|
||
actingId.value = null;
|
||
}
|
||
},
|
||
});
|
||
}
|
||
|
||
function openReject(row: RechargeRow) {
|
||
pendingReject.value = row;
|
||
rejectRemark.value = '';
|
||
rejectVisible.value = true;
|
||
}
|
||
|
||
async function submitReject() {
|
||
const row = pendingReject.value;
|
||
if (!row?.id) {
|
||
rejectVisible.value = false;
|
||
return false;
|
||
}
|
||
actingId.value = row.id;
|
||
try {
|
||
await rejectRechargeRecord({
|
||
id: row.id,
|
||
remark: rejectRemark.value.trim() || undefined,
|
||
});
|
||
Message.success(t('h5Admin.recharge.rejectOk'));
|
||
rejectVisible.value = false;
|
||
pendingReject.value = null;
|
||
await reload();
|
||
return true;
|
||
} catch (e: any) {
|
||
Message.error(e?.message || t('h5Admin.recharge.rejectFail'));
|
||
return false;
|
||
} finally {
|
||
actingId.value = null;
|
||
}
|
||
}
|
||
|
||
onMounted(() => {
|
||
void reload();
|
||
});
|
||
</script>
|
||
|
||
<style lang="less" scoped>
|
||
.h5-ar {
|
||
padding: 12px 16px 24px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.h5-ar__hero {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.h5-ar__hero-text {
|
||
h1 {
|
||
margin: 0;
|
||
font-size: 22px;
|
||
font-weight: 700;
|
||
color: var(--h5-text, #1d2129);
|
||
}
|
||
|
||
p {
|
||
margin: 4px 0 0;
|
||
font-size: 13px;
|
||
color: var(--h5-text-3, #86909c);
|
||
}
|
||
}
|
||
|
||
.h5-ar__refresh {
|
||
flex-shrink: 0;
|
||
height: 32px;
|
||
padding: 0 12px;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--h5-border, #e5e6eb);
|
||
background: #fff;
|
||
color: var(--h5-text-2, #4e5969);
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
-webkit-tap-highlight-color: transparent;
|
||
|
||
&:disabled {
|
||
opacity: 0.55;
|
||
}
|
||
|
||
&:active:not(:disabled) {
|
||
background: #f7f8fa;
|
||
}
|
||
}
|
||
|
||
.h5-ar__tabs {
|
||
display: flex;
|
||
gap: 8px;
|
||
overflow-x: auto;
|
||
margin-bottom: 12px;
|
||
padding-bottom: 2px;
|
||
-webkit-overflow-scrolling: touch;
|
||
|
||
&::-webkit-scrollbar {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.h5-ar__tab {
|
||
flex: 0 0 auto;
|
||
height: 32px;
|
||
padding: 0 14px;
|
||
border-radius: 999px;
|
||
border: 1px solid var(--h5-border, #e5e6eb);
|
||
background: #fff;
|
||
color: var(--h5-text-2, #4e5969);
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
-webkit-tap-highlight-color: transparent;
|
||
|
||
&.is-active {
|
||
border-color: color-mix(in srgb, var(--app-primary-color) 35%, #fff);
|
||
background: color-mix(in srgb, var(--app-primary-color) 10%, #fff);
|
||
color: var(--app-primary-color);
|
||
font-weight: 600;
|
||
}
|
||
}
|
||
|
||
.h5-ar__search {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
height: 40px;
|
||
padding: 0 10px 0 12px;
|
||
margin-bottom: 14px;
|
||
border-radius: 12px;
|
||
background: #fff;
|
||
border: 1px solid var(--h5-border, #e5e6eb);
|
||
}
|
||
|
||
.h5-ar__search-icon {
|
||
color: #c9cdd4;
|
||
font-size: 16px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.h5-ar__search-input {
|
||
flex: 1;
|
||
min-width: 0;
|
||
border: none;
|
||
outline: none;
|
||
background: transparent;
|
||
font-size: 14px;
|
||
color: var(--h5-text, #1d2129);
|
||
}
|
||
|
||
.h5-ar__search-clear {
|
||
width: 24px;
|
||
height: 24px;
|
||
border: none;
|
||
border-radius: 50%;
|
||
background: #f2f3f5;
|
||
color: #86909c;
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.h5-ar__search-btn {
|
||
flex-shrink: 0;
|
||
height: 28px;
|
||
padding: 0 10px;
|
||
border: none;
|
||
border-radius: 8px;
|
||
background: var(--app-primary-color);
|
||
color: #fff;
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.h5-ar__spin {
|
||
width: 100%;
|
||
display: block;
|
||
}
|
||
|
||
.h5-ar__card {
|
||
margin-bottom: 12px;
|
||
padding: 14px;
|
||
border-radius: 16px;
|
||
background: #fff;
|
||
border: 1px solid var(--h5-border-soft, #f2f3f5);
|
||
box-shadow: var(--h5-shadow, 0 4px 16px rgba(15, 23, 42, 0.05));
|
||
}
|
||
|
||
.h5-ar__card-top {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.h5-ar__card-main {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.h5-ar__amount {
|
||
font-size: 22px;
|
||
font-weight: 700;
|
||
color: var(--h5-text, #1d2129);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.h5-ar__status {
|
||
flex-shrink: 0;
|
||
height: 22px;
|
||
padding: 0 8px;
|
||
border-radius: 6px;
|
||
font-size: 12px;
|
||
line-height: 22px;
|
||
font-weight: 600;
|
||
|
||
&.is-wait {
|
||
color: #ff7d00;
|
||
background: #fff7e8;
|
||
}
|
||
|
||
&.is-brand {
|
||
color: var(--app-primary-color, #1d7281);
|
||
background: color-mix(in srgb, var(--app-primary-color, #1d7281) 12%, #fff);
|
||
}
|
||
|
||
&.is-ok {
|
||
color: #00b42a;
|
||
background: #e8ffea;
|
||
}
|
||
|
||
&.is-fail {
|
||
color: #f53f3f;
|
||
background: #ffece8;
|
||
}
|
||
|
||
&.is-mute {
|
||
color: #86909c;
|
||
background: #f2f3f5;
|
||
}
|
||
}
|
||
|
||
.h5-ar__pay {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
font-size: 12px;
|
||
color: var(--h5-text-2, #4e5969);
|
||
|
||
img {
|
||
width: 16px;
|
||
height: 16px;
|
||
object-fit: contain;
|
||
}
|
||
}
|
||
|
||
.h5-ar__meta {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
margin-bottom: 12px;
|
||
|
||
p {
|
||
margin: 0;
|
||
font-size: 13px;
|
||
color: var(--h5-text, #1d2129);
|
||
line-height: 1.4;
|
||
word-break: break-all;
|
||
}
|
||
|
||
span {
|
||
color: var(--h5-text-3, #86909c);
|
||
margin-right: 6px;
|
||
}
|
||
}
|
||
|
||
.h5-ar__actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
justify-content: flex-end;
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
}
|
||
|
||
.h5-ar__link {
|
||
border: none;
|
||
padding: 0;
|
||
background: transparent;
|
||
color: var(--app-primary-color, #1d7281);
|
||
font-size: inherit;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
text-decoration: underline;
|
||
text-underline-offset: 2px;
|
||
}
|
||
|
||
.h5-ar__btn {
|
||
height: 36px;
|
||
padding: 0 14px;
|
||
border-radius: 10px;
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
-webkit-tap-highlight-color: transparent;
|
||
|
||
&:disabled {
|
||
opacity: 0.55;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
&.is-ghost {
|
||
border: 1px solid var(--h5-border, #e5e6eb);
|
||
background: #fff;
|
||
color: var(--h5-text-2, #4e5969);
|
||
}
|
||
|
||
&.is-primary {
|
||
border: none;
|
||
background: var(--app-primary-color);
|
||
color: #fff;
|
||
}
|
||
|
||
&.is-danger {
|
||
border: 1px solid color-mix(in srgb, #f53f3f 28%, #fff);
|
||
background: #ffece8;
|
||
color: #f53f3f;
|
||
}
|
||
|
||
&:active:not(:disabled) {
|
||
transform: scale(0.97);
|
||
}
|
||
}
|
||
|
||
.h5-ar__more {
|
||
margin-top: 4px;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.h5-ar__preview {
|
||
display: flex;
|
||
justify-content: center;
|
||
|
||
img {
|
||
max-width: 100%;
|
||
max-height: 70vh;
|
||
object-fit: contain;
|
||
border-radius: 8px;
|
||
}
|
||
}
|
||
</style>
|