WMS_PDA/pages/work/storage/gBWaveStrategy.vue
2026-06-04 21:20:49 +08:00

1053 lines
28 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>
<view class="group-wave-page">
<view class="normar_container">
<page-nav :title="title">
</page-nav>
<view class="content-layout">
<view v-if="loading" class="empty-wrap">
<text class="empty-text">加载中...</text>
</view>
<view v-else-if="strategyList.length === 0" class="empty-wrap">
<text class="empty-text">暂无策略</text>
</view>
<template v-else>
<view class="top-module">
<view class="content-card content-card--detail">
<view class="card-title">{{ currentStrategy.strategyName }}</view>
<view class="card-row"><text class="label">创建人:</text><text class="value">{{ currentStrategy.creatorName }}</text></view>
<view class="card-row"><text class="label">匹配订单:</text><text class="value">{{ currentStrategy.matchedOrderCountFiltered }}</text></view>
<view class="card-row"><text class="label">SKU区间:</text><text class="value">{{ currentStrategy.orderMinSku }} - {{ currentStrategy.orderMaxSku }}</text></view>
<view class="card-row"><text class="label">件数区间:</text><text class="value">{{ currentStrategy.orderMinQty }} - {{ currentStrategy.orderMaxQty }}</text></view>
<view class="card-row"><text class="label">同结构区间:</text><text class="value">{{ currentStrategy.minSameStructure }} - {{ currentStrategy.maxSameStructure }}</text></view>
<view class="card-row"><text class="label">策略类型:</text><text class="value">{{ currentStrategy.strategyTypeText }}</text></view>
<view class="card-row card-row--inline-tag">
<text class="label">分批模式:</text>
<view v-if="currentStrategy.batchModeText" class="batch-mode-tag">{{ currentStrategy.batchModeText }}</view>
<text v-else class="value">{{ currentStrategy.batchMode }}</text>
</view>
<view class="card-grid">
<view class="group-item">
<text class="label">货主限制:</text>
<view class="limit-brief" :class="{ 'limit-brief--disabled': !hasLimitList(currentStrategy.ownerLimitList) }" @click="openLimitPopup('货主限制', currentStrategy.ownerLimitList)">
<text class="value limit-brief__text">{{ getLimitFirst(currentStrategy.ownerLimitList) }}</text>
<text v-if="hasLimitList(currentStrategy.ownerLimitList)" class="limit-brief__plus">+</text>
</view>
</view>
<view class="group-item">
<text class="label">订单快递限制:</text>
<view class="limit-brief" :class="{ 'limit-brief--disabled': !hasLimitList(currentStrategy.expressLimitList) }" @click="openLimitPopup('订单快递限制', currentStrategy.expressLimitList)">
<text class="value limit-brief__text">{{ getLimitFirst(currentStrategy.expressLimitList) }}</text>
<text v-if="hasLimitList(currentStrategy.expressLimitList)" class="limit-brief__plus">+</text>
</view>
</view>
<view class="group-item">
<text class="label">省份限制:</text>
<view class="limit-brief" :class="{ 'limit-brief--disabled': !hasLimitList(currentStrategy.provinceLimitList) }" @click="openLimitPopup('省份限制', currentStrategy.provinceLimitList)">
<text class="value limit-brief__text">{{ getLimitFirst(currentStrategy.provinceLimitList) }}</text>
<text v-if="hasLimitList(currentStrategy.provinceLimitList)" class="limit-brief__plus">+</text>
</view>
</view>
<view class="group-item">
<text class="label">订单平台限制:</text>
<view class="limit-brief" :class="{ 'limit-brief--disabled': !hasLimitList(currentStrategy.platformLimitList) }" @click="openLimitPopup('订单平台限制', currentStrategy.platformLimitList)">
<text class="value limit-brief__text">{{ getLimitFirst(currentStrategy.platformLimitList) }}</text>
<text v-if="hasLimitList(currentStrategy.platformLimitList)" class="limit-brief__plus">+</text>
</view>
</view>
<view class="group-item"><text class="label">按货主分组:</text><text class="value">{{ currentStrategy.groupByOwnerText }}</text></view>
<view class="group-item"><text class="label">按快递分组:</text><text class="value">{{ currentStrategy.groupByExpressText }}</text></view>
</view>
</view>
</view>
<view class="bottom-module">
<view class="strategy-grid-container">
<view class="strategy-grid-wrapper" @touchstart="handleGridTouchStart" @touchmove="handleGridTouchMove" @touchend="handleGridTouchEnd" @touchcancel="handleGridTouchEnd">
<view class="grid-wrap">
<view v-for="slot in currentPageSlots" :key="slot.key" class="pick-slot">
<view
v-if="slot.item"
class="pick-card"
:class="{ 'pick-card--active': currentStrategyId === slot.item.id }"
@click="selectStrategy(slot.item)"
>
<view class="pick-card__top">
<view class="pick-card__title-marquee">
<u-notice-bar
:text="slot.item.strategyName || '--'"
mode="horizontal"
bg-color="#19be6b"
color="#ffffff"
:volume-icon="false"
:more-icon="false"
:speed="60"
:padding="0"
:radius="0"
:autoplay="true"
></u-notice-bar>
</view>
</view>
<view class="pick-card__main">
<text class="pick-card__num">{{ slot.item.matchedOrderCountFiltered }}</text>
</view>
<view class="pick-card__bottom">抓:{{ slot.item.nextFetchOrderCount }}</view>
</view>
<view v-else class="pick-card pick-card--empty"></view>
</view>
</view>
</view>
</view>
<view class="pagination-bar">
<view class="pagination-btn" :class="{ 'pagination-btn--disabled': currentPage === 1 }" @click="prevPage">上一页</view>
<view class="pagination-current">{{ currentPage }}/{{ totalPages }}</view>
<input
v-model="pageJumpInput"
class="pagination-input"
type="number"
placeholder="页码"
confirm-type="go"
@confirm="jumpToPage"
/>
<view class="pagination-btn pagination-btn--primary" @click="jumpToPage">跳转</view>
<view class="pagination-btn" :class="{ 'pagination-btn--disabled': currentPage === totalPages }" @click="nextPage">下一页</view>
</view>
</view>
</template>
</view>
<view class="bottom-action-bar">
<u-button @click="handleRefresh">刷新</u-button>
<u-button type="primary" :loading="creatingTask" :disabled="creatingTask" :customStyle="{ backgroundColor: '#2979ff', borderColor: '#2979ff' }" @click="handleGrabScatter">抓取团购</u-button>
</view>
<view v-if="limitPopup.visible" class="limit-popup-mask" @click="closeLimitPopup">
<view class="limit-popup-panel" @click.stop>
<view class="limit-popup-title">{{ limitPopup.title }}</view>
<scroll-view class="limit-popup-list" scroll-y>
<view v-for="(item, index) in limitPopup.items" :key="`${limitPopup.title}-${index}`" class="limit-popup-item">{{ item }}</view>
<view v-if="!limitPopup.items.length" class="limit-popup-empty">暂无数据</view>
</scroll-view>
<view class="limit-popup-footer">
<u-button size="mini" @click="closeLimitPopup">关闭</u-button>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: '团购拣货策略',
paginationTotal: null,
loading: false,
creatingTask: false,
currentPage: 1,
pageJumpInput: '',
pageSize: 8,
gridGesture: {
startX: 0,
startY: 0,
deltaX: 0,
deltaY: 0
},
limitPopup: {
visible: false,
title: '',
items: []
},
currentStrategyId: '',
strategyList: []
};
},
computed: {
currentStrategy() {
return this.strategyList.find(item => String(item.id) === String(this.currentStrategyId)) || this.strategyList[0] || {};
},
totalPages() {
const total = Number(this.paginationTotal || 0);
const pageSize = Number(this.pageSize || 8);
return Math.max(1, Math.ceil(total / pageSize));
},
currentPageSlots() {
return Array.from({ length: this.pageSize }, (_, index) => {
const item = this.strategyList[index] || null;
return {
index,
item,
key: item ? `strategy-${item.id}` : `empty-${this.currentPage}-${index}`
};
});
}
},
onLoad() {
this.loadStrategyList();
},
methods: {
normalizeLimitList(value) {
if (Array.isArray(value)) {
return value
.map(item => String(item || '').trim())
.filter(Boolean);
}
if (value == null || value === '') {
return [];
}
if (typeof value === 'string') {
const text = value.trim();
if (!text || text === '--') {
return [];
}
if (text.includes('、')) {
return text.split('、').map(item => item.trim()).filter(Boolean);
}
return [text];
}
return [String(value)];
},
hasLimitList(value) {
return this.normalizeLimitList(value).length > 0;
},
getLimitFirst(value) {
const list = this.normalizeLimitList(value);
return list.length ? list[0] : '--';
},
openLimitPopup(title, value) {
const list = this.normalizeLimitList(value);
if (!list.length) {
return;
}
this.limitPopup = {
visible: true,
title,
items: list
};
},
closeLimitPopup() {
this.limitPopup.visible = false;
},
syncPageJumpInput() {
this.pageJumpInput = String(this.currentPage || 1);
},
ensureCurrentPageInRange() {
if (this.currentPage > this.totalPages) {
this.currentPage = this.totalPages;
}
if (this.currentPage < 1) {
this.currentPage = 1;
}
this.syncPageJumpInput();
},
prevPage() {
if (this.currentPage > 1) {
this.currentPage -= 1;
this.loadStrategyList();
}
this.syncPageJumpInput();
},
nextPage() {
if (this.currentPage < this.totalPages) {
this.currentPage += 1;
this.loadStrategyList();
}
this.syncPageJumpInput();
},
jumpToPage() {
const targetPage = Number(this.pageJumpInput);
if (!Number.isInteger(targetPage) || targetPage < 1) {
this.syncPageJumpInput();
return;
}
this.currentPage = Math.min(targetPage, this.totalPages);
this.loadStrategyList();
this.syncPageJumpInput();
},
handleGridTouchStart(event) {
const touch = event?.changedTouches?.[0] || event?.touches?.[0];
if (!touch) {
return;
}
this.gridGesture.startX = touch.clientX;
this.gridGesture.startY = touch.clientY;
this.gridGesture.deltaX = 0;
this.gridGesture.deltaY = 0;
},
handleGridTouchMove(event) {
const touch = event?.changedTouches?.[0] || event?.touches?.[0];
if (!touch) {
return;
}
this.gridGesture.deltaX = touch.clientX - this.gridGesture.startX;
this.gridGesture.deltaY = touch.clientY - this.gridGesture.startY;
},
handleGridTouchEnd() {
const absX = Math.abs(this.gridGesture.deltaX);
const absY = Math.abs(this.gridGesture.deltaY);
if (absX > 60 && absX > absY) {
if (this.gridGesture.deltaX > 0) {
this.prevPage();
} else {
this.nextPage();
}
}
this.gridGesture.deltaX = 0;
this.gridGesture.deltaY = 0;
},
getApiErrorMessage(error, fallback = '请求失败') {
const message = error?.message || error?.msg || error?.errMsg || error?.data?.message;
return String(message || fallback);
},
extractFetchTaskPayload(response) {
const candidates = [
response?.data?.data,
response?.data,
response?.result,
response
];
for (let i = 0; i < candidates.length; i += 1) {
const current = candidates[i];
if (current && typeof current === 'object' && !Array.isArray(current)) {
return current;
}
}
return {};
},
buildFetchTaskErrorMessage(payload, fallback = '创建抓取任务失败') {
const validationErrors = Array.isArray(payload?.validation_errors) ? payload.validation_errors : [];
if (validationErrors.length) {
const firstError = validationErrors[0] || {};
const field = String(firstError.field || '').trim();
const message = String(firstError.message || '').trim();
if (field && message) {
return `${field}: ${message}`;
}
if (message) {
return message;
}
}
const rawMessage = payload?.message || payload?.msg || payload?.error_message || payload?.error;
return String(rawMessage || fallback);
},
buildFetchTaskParams() {
const strategyId = Number(this.currentStrategy?.id || 0);
return {
strategy_id: strategyId,
source: 'pda'
};
},
buildPickingRouteParams(payload) {
const taskId = payload?.task_id ?? payload?.taskId;
const params = [];
if (taskId != null && taskId !== '') {
params.push(`taskId=${encodeURIComponent(String(taskId))}`);
}
return params;
},
routeToPickingPage(payload) {
const params = this.buildPickingRouteParams(payload);
const query = params.length ? `?${params.join('&')}` : '';
this.$tools.routerTo(`/pages/work/order/picking${query}`);
},
buildWaveStrategyListParams() {
return {
calculate_next_fetch_order_count: 1,
where: {
strategy_type: 2
},
pagination: {
page: Number(this.currentPage || 1),
pageSize: Number(this.pageSize || 8)
}
};
},
extractPagination(payload, response) {
return payload?.pagination || payload?.page || response?.data?.pagination || response?.pagination || null;
},
extractWaveStrategyPayload(response) {
const candidates = [
response?.data?.data,
response?.data,
response?.result,
response
];
for (let i = 0; i < candidates.length; i += 1) {
const current = candidates[i];
if (current && typeof current === 'object' && !Array.isArray(current)) {
return current;
}
}
return {};
},
extractWaveStrategyList(payload, response) {
const candidates = [
payload?.list,
payload?.rows,
payload?.items,
payload?.data?.list,
response?.data?.list,
response?.data?.data?.list,
response?.list
];
for (let i = 0; i < candidates.length; i += 1) {
if (Array.isArray(candidates[i])) {
return candidates[i];
}
}
return [];
},
normalizeBooleanText(value) {
const normalized = Number(value) === 1 || value === true;
return normalized ? '是' : '否';
},
normalizeStrategyTypeText(value) {
const type = Number(value);
if (type === 1) {
return '散单';
}
if (type === 2) {
return '团购';
}
return '--';
},
normalizeBatchModeText(value) {
const map = {
0: '团购',
1: '单品单件',
2: '先拣后分',
3: '边拣边分',
4: '边拣边分H型',
5: '播种墙',
6: '流利架'
};
if (value == null || value === '') {
return '--';
}
return map[Number(value)] ?? String(value);
},
normalizeLimitText(value) {
if (Array.isArray(value)) {
return value.length ? value.join('、') : '--';
}
if (value == null || value === '') {
return '--';
}
if (typeof value === 'string') {
return value.trim() ? value : '--';
}
return String(value);
},
normalizeWaveStrategyItem(item) {
const source = item && typeof item === 'object' ? item : {};
const ownerLimitList = this.normalizeLimitList(source.allowed_owners);
const expressLimitList = this.normalizeLimitList(source.allowed_expresses);
const provinceLimitList = this.normalizeLimitList(source.allowed_provinces);
const platformLimitList = this.normalizeLimitList(source.allowed_platforms);
return {
id: source.id ?? '',
strategyName: source.strategy_name || '',
strategyType: source.strategy_type ?? '--',
strategyTypeText: this.normalizeStrategyTypeText(source.strategy_type),
batchMode: source.batch_mode ?? '--',
batchModeText: this.normalizeBatchModeText(source.batch_mode),
creatorName: source.creator_name || '--',
ownerLimitList,
expressLimitList,
provinceLimitList,
platformLimitList,
ownerText: ownerLimitList.length ? ownerLimitList.join('、') : '--',
orderMaxSku: Number(source.order_max_sku || 0),
orderMinSku: Number(source.order_min_sku || 0),
orderMaxQty: Number(source.order_max_qty || 0),
orderMinQty: Number(source.order_min_qty || 0),
minSameStructure: Number(source.min_same_structure || 0),
maxSameStructure: Number(source.max_same_structure || 0),
matchedOrderCountFiltered: Number(source.matched_order_count_filtered || 0),
nextFetchOrderCount: Number(source.next_fetch_order_count || 0),
expressLimitText: expressLimitList.length ? expressLimitList.join('、') : '--',
provinceLimitText: provinceLimitList.length ? provinceLimitList.join('、') : '--',
platformLimitText: platformLimitList.length ? platformLimitList.join('、') : '--',
groupByOwnerText: this.normalizeBooleanText(source.allow_cross_owner),
groupByExpressText: this.normalizeBooleanText(source.require_same_express)
};
},
parseWaveStrategyResponse(response) {
const payload = this.extractWaveStrategyPayload(response);
const list = this.extractWaveStrategyList(payload, response);
return list.map(item => this.normalizeWaveStrategyItem(item));
},
selectStrategy(item) {
if (!item || typeof item !== 'object') {
return;
}
this.currentStrategyId = item.id;
},
handleRefresh() {
this.loadStrategyList();
},
async handleGrabScatter() {
if (!this.currentStrategy || !this.currentStrategy.id) {
uni.showToast({
title: '请先选择策略',
icon: 'none'
});
return;
}
if (this.creatingTask) {
return;
}
this.creatingTask = true;
try {
const fetchParams = this.buildFetchTaskParams();
const response = await this.$http('order.wave.waveStrategyFetchPda', fetchParams);
const payload = this.extractFetchTaskPayload(response);
const taskId = payload?.task_id ?? payload?.taskId;
const state = String(payload?.state || '').toLowerCase();
if (taskId != null && taskId !== '') {
this.routeToPickingPage(payload);
return;
}
if (state === 'created') {
this.routeToPickingPage(payload);
return;
}
if (payload?.can_enter_pick_flow === true || payload?.canEnterPickFlow === true) {
this.routeToPickingPage(payload);
return;
}
if (state !== 'created') {
uni.showToast({
title: this.buildFetchTaskErrorMessage(payload, '创建抓取任务失败'),
icon: 'none'
});
return;
}
this.routeToPickingPage(payload);
} catch (error) {
uni.showToast({
title: this.getApiErrorMessage(error, '创建抓取任务失败'),
icon: 'none'
});
} finally {
this.creatingTask = false;
}
},
async loadStrategyList() {
this.loading = true;
try {
const params = this.buildWaveStrategyListParams();
const response = await this.$http('order.wave.waveStrategyList', params);
const payload = this.extractWaveStrategyPayload(response);
const pagination = this.extractPagination(payload, response);
const parsedList = this.parseWaveStrategyResponse(response);
this.paginationTotal = Number(pagination?.total ?? parsedList.length ?? 0);
this.currentPage = Number((pagination?.page ?? this.currentPage) || 1);
this.pageSize = Number((pagination?.pageSize ?? this.pageSize) || 8);
this.strategyList = parsedList;
this.currentStrategyId = this.strategyList[0]?.id || '';
this.ensureCurrentPageInRange();
this.syncPageJumpInput();
} catch (error) {
this.paginationTotal = null;
this.currentStrategyId = '';
this.strategyList = [];
this.currentPage = 1;
this.syncPageJumpInput();
uni.showToast({
title: this.getApiErrorMessage(error, '策略加载失败'),
icon: 'none'
});
} finally {
this.loading = false;
}
}
}
};
</script>
<style lang="scss" scoped>
.group-wave-page {
min-height: 100vh;
background: #f8f9fa;
position: relative;
}
.normar_container {
position: relative;
}
::v-deep .nav-title .right {
width: auto;
min-width: 170rpx;
display: flex;
justify-content: flex-end;
}
.nav-right-pending {
font-size: 32rpx;
line-height: 36rpx;
color: #ffffff;
padding: 8rpx 18rpx;
border-radius: 6rpx;
background: #2979ff;
}
.content-layout {
height: calc(100vh - 170rpx - env(safe-area-inset-bottom));
display: flex;
flex-direction: column;
padding: 20rpx 24rpx 124rpx;
background: #f3f4f6;
box-sizing: border-box;
}
.summary-strip {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
column-gap: 12rpx;
margin-bottom: 12rpx;
}
.summary-item {
background: #ffffff;
border-radius: 12rpx;
padding: 10rpx 12rpx;
display: flex;
flex-direction: column;
gap: 4rpx;
}
.summary-item__label {
font-size: 22rpx;
color: #909399;
line-height: 1.2;
}
.summary-item__value {
font-size: 34rpx;
line-height: 1.1;
font-weight: 600;
color: #1f2d3d;
}
.top-module,
.bottom-module {
flex: 1;
min-height: 0;
}
.top-module {
padding-bottom: 8rpx;
flex: 0 0 50%;
}
.bottom-module {
padding-top: 8rpx;
flex: 0 0 50%;
display: flex;
flex-direction: column;
}
.strategy-grid-container {
flex: 1;
min-height: 0;
display: flex;
align-items: center;
}
.strategy-grid-wrapper {
flex: 1;
height: 100%;
background: #ffffff;
border-radius: 14rpx;
padding: 10rpx;
box-sizing: border-box;
}
.grid-wrap {
display: flex;
flex-wrap: wrap;
height: 100%;
align-content: flex-start;
}
.pick-slot {
width: 25%;
height: 50%;
padding: 4rpx;
box-sizing: border-box;
}
.content-card {
margin: 0;
padding: 16rpx;
background: #fff;
border-radius: 14rpx;
box-sizing: border-box;
height: 100%;
overflow: hidden;
}
.content-card--detail {
overflow-y: auto;
}
.card-title {
font-size: 34rpx;
font-weight: 600;
color: #303133;
margin-bottom: 14rpx;
}
.card-row {
display: flex;
align-items: flex-start;
font-size: 32rpx;
line-height: 48rpx;
}
.card-row--inline-tag {
align-items: center;
}
.card-row--inline-group {
justify-content: space-between;
}
.group-item {
min-width: 0;
display: flex;
align-items: flex-start;
background: #f7f8fa;
border-radius: 10rpx;
padding: 8rpx 10rpx;
}
.limit-brief {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 2rpx 0;
}
.limit-brief--disabled {
opacity: 0.7;
}
.limit-brief__text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-right: 8rpx;
}
.limit-brief__plus {
flex: 0 0 auto;
width: 28rpx;
height: 28rpx;
line-height: 28rpx;
text-align: center;
border-radius: 50%;
background: #2979ff;
color: #ffffff;
font-size: 24rpx;
font-weight: 600;
}
.card-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8rpx;
margin-top: 8rpx;
}
.group-item .label {
flex: 0 0 auto;
white-space: nowrap;
margin-right: 6rpx;
}
.label {
width: auto;
white-space: nowrap;
margin-right: 6rpx;
color: #909399;
}
.value {
flex: 1;
min-width: 0;
color: #303133;
}
.batch-mode-tag {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 14rpx;
height: 40rpx;
border-radius: 20rpx;
background: #f0f2f5;
color: #606266;
font-size: 24rpx;
line-height: 1;
flex: 0 0 auto;
}
.pick-card {
width: 100%;
height: 100%;
background: #fff;
border-radius: 14rpx;
padding: 8rpx;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: space-between;
border: 2rpx solid transparent;
position: relative;
overflow: hidden;
}
.pick-card--active {
border-color: transparent;
box-shadow: inset 0 0 0 6rpx #2979ff, 0 10rpx 24rpx rgba(41, 121, 255, 0.2);
}
.pick-card--empty {
background: #f8f9fb;
border: 1rpx dashed #e7eaf0;
box-shadow: none;
}
.pick-card__top {
display: flex;
justify-content: space-between;
align-items: center;
min-height: 34rpx;
}
.pick-card__title-marquee {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 40rpx;
padding: 0 8rpx;
box-sizing: border-box;
background: #19be6b;
border-bottom-right-radius: 12rpx;
}
::v-deep .pick-card__title-marquee .u-notice-bar {
height: 40rpx;
line-height: 40rpx;
padding: 0;
}
::v-deep .pick-card__title-marquee .u-notice__content__text {
font-size: 22rpx;
}
::v-deep .pick-card__title-marquee .u-notice__left-icon,
::v-deep .pick-card__title-marquee .u-notice__right-icon {
display: none !important;
}
.pick-card__main {
display: flex;
align-items: flex-end;
justify-content: center;
margin-top: 6rpx;
}
.pick-card__num {
font-size: 36rpx;
line-height: 1;
font-weight: 700;
color: #303133;
}
.pick-card__unit {
margin-left: 4rpx;
font-size: 18rpx;
line-height: 24rpx;
color: #606266;
}
.pick-card__sub {
text-align: center;
font-size: 18rpx;
line-height: 24rpx;
color: #909399;
}
.pick-card__bottom {
margin-top: 6rpx;
background: #2979ff;
color: #fff;
text-align: center;
border-radius: 10rpx;
font-size: 32rpx;
line-height: 44rpx;
padding: 2rpx 6rpx;
}
.pagination-bar {
display: flex;
align-items: center;
justify-content: space-between;
column-gap: 10rpx;
margin-top: 10rpx;
padding-top: 12rpx;
}
.pagination-btn {
min-width: 104rpx;
height: 56rpx;
padding: 0 16rpx;
border-radius: 28rpx;
background: #eef2f7;
color: #3b4a5a;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
box-sizing: border-box;
}
.pagination-btn--primary {
background: #2979ff;
color: #ffffff;
}
.pagination-btn--disabled {
opacity: 0.45;
}
.pagination-current {
min-width: 92rpx;
text-align: center;
font-size: 26rpx;
color: #606266;
}
.pagination-input {
width: 96rpx;
height: 56rpx;
background: #ffffff;
border: 1rpx solid #dcdfe6;
border-radius: 28rpx;
text-align: center;
font-size: 24rpx;
color: #303133;
box-sizing: border-box;
}
.empty-wrap {
min-height: 460rpx;
display: flex;
align-items: center;
justify-content: center;
background: #fff;
border-radius: 14rpx;
}
.empty-text {
font-size: 26rpx;
color: #909399;
}
.bottom-action-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 12rpx;
padding: 12rpx 24rpx calc(12rpx + env(safe-area-inset-bottom));
background: #fff;
border-top: 1rpx solid #f0f0f0;
box-sizing: border-box;
}
.limit-popup-mask {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.45);
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
padding: 32rpx;
box-sizing: border-box;
}
.limit-popup-panel {
width: 100%;
max-width: 640rpx;
max-height: 70vh;
background: #ffffff;
border-radius: 16rpx;
display: flex;
flex-direction: column;
overflow: hidden;
}
.limit-popup-title {
padding: 22rpx 24rpx;
font-size: 30rpx;
font-weight: 600;
color: #303133;
border-bottom: 1rpx solid #f0f2f5;
}
.limit-popup-list {
max-height: 52vh;
padding: 8rpx 0;
box-sizing: border-box;
}
.limit-popup-item {
padding: 16rpx 24rpx;
font-size: 28rpx;
line-height: 40rpx;
color: #303133;
border-bottom: 1rpx solid #f7f7f8;
}
.limit-popup-empty {
padding: 36rpx 24rpx;
text-align: center;
font-size: 26rpx;
color: #909399;
}
.limit-popup-footer {
padding: 16rpx 24rpx 20rpx;
border-top: 1rpx solid #f0f2f5;
display: flex;
justify-content: flex-end;
}
@media (min-width: 960px) {
.top-module {
flex-basis: 42%;
}
.bottom-module {
flex-basis: 48%;
}
}
</style>