973 lines
25 KiB
Vue
973 lines
25 KiB
Vue
<template>
|
||
<s-layout
|
||
title="提货清单"
|
||
:showLeftButton="false"
|
||
tabbar="/pages/merchant/pickupList"
|
||
navPreset="light"
|
||
>
|
||
<template #navRight>
|
||
<modeSwitch />
|
||
</template>
|
||
<view class="page">
|
||
<view class="top-bar bg24">
|
||
<view v-if="storeList.length" class="store-row flex-center ju-between" @tap="openStoreSheet">
|
||
<view class="store-left flex-center">
|
||
<view class="store-label c_999 size24">当前网点</view>
|
||
<view class="store-name lineOne">{{ currentStoreName }}</view>
|
||
</view>
|
||
<view v-if="storeList.length > 1" class="store-arrow">
|
||
<uni-icons type="right" size="16" color="#7b8494" />
|
||
</view>
|
||
</view>
|
||
<view class="tabs">
|
||
<view
|
||
v-for="item in tabs"
|
||
:key="item.value"
|
||
class="tab"
|
||
:class="{ tabActive: currentTab === item.value }"
|
||
@tap="currentTab = item.value"
|
||
>
|
||
{{ item.label }}
|
||
</view>
|
||
</view>
|
||
<view class="search-row">
|
||
<view class="search-box flex-center">
|
||
<uni-icons type="search" size="18" color="#8a8a8a" />
|
||
<uni-easyinput
|
||
class="search-input flex1"
|
||
v-model="keyword"
|
||
placeholder="搜索订单号/商品名称"
|
||
:inputBorder="false"
|
||
:styles="{ fontSize: '28rpx' }"
|
||
/>
|
||
</view>
|
||
</view>
|
||
<view class="sort-row flex-center ju-between">
|
||
<view class="sort-label c_999 size24">下单时间排序</view>
|
||
<view class="sort-switch" @tap="toggleSort">
|
||
<view
|
||
class="sort-triangle sort-triangle--up"
|
||
:class="{ 'sort-triangle--active': sortAsc }"
|
||
></view>
|
||
<view
|
||
class="sort-triangle sort-triangle--down"
|
||
:class="{ 'sort-triangle--active': !sortAsc }"
|
||
></view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="list">
|
||
<view v-for="item in displayList" :key="item.id" class="card bg24">
|
||
<view class="card-hd flex-center ju-between">
|
||
<view class="status-wrap">
|
||
<view class="status" :class="{ statusWait: Number(item.status) === 1 }">
|
||
{{ item.statusName }}
|
||
</view>
|
||
<view v-if="getOrderItems(item).length > 1" class="goods-total">
|
||
共{{ getOrderItems(item).length }}件
|
||
</view>
|
||
</view>
|
||
<view class="time c_999 size24">
|
||
下单时间:{{ sheep.$helper.timeFormat(item.createTime, 'yyyy-mm-dd hh:MM') }}
|
||
</view>
|
||
</view>
|
||
<view v-if="getReceiverName(item) || getMaskedReceiverMobile(item)" class="buyer-top">
|
||
<view class="buyer-top__left">
|
||
<text v-if="getReceiverName(item)" class="buyer-top__name">{{ getReceiverName(item) }}</text>
|
||
<text v-if="getMaskedReceiverMobile(item)" class="buyer-top__mobile">
|
||
{{ getMaskedReceiverMobile(item) }}
|
||
</text>
|
||
</view>
|
||
</view>
|
||
<view class="card-bd flex-center al-flex-start">
|
||
<view class="goods-thumb">
|
||
<image
|
||
v-if="getItemPic(getMainItem(item))"
|
||
class="goods-thumb__img"
|
||
:src="getItemPic(getMainItem(item))"
|
||
mode="aspectFill"
|
||
/>
|
||
<view v-else class="goods-thumb__empty">暂无图片</view>
|
||
</view>
|
||
<view class="flex1">
|
||
<view class="name lineTwo">{{ getMainItem(item)?.spuName || '商品信息暂无' }}</view>
|
||
<view v-if="getItemSpec(getMainItem(item))" class="meta c_999 size24 m-t-8">
|
||
规格:{{ getItemSpec(getMainItem(item)) }}
|
||
</view>
|
||
<view class="meta c_999 size24 m-t-8">数量:x{{ getMainItem(item)?.count || 0 }}</view>
|
||
<view class="order-no-row c_999 size24 m-t-10">
|
||
<text class="order-no-row__text">订单号:{{ item.orderNo || '--' }}</text>
|
||
<view v-if="item.orderNo" class="order-no-row__copy" @tap.stop="copyOrderNo(item.orderNo)">
|
||
<image class="order-no-row__copy-icon" :src="`${$url}goods/copy2.svg`" mode="scaleToFill" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view
|
||
v-if="getReceiverMobileDigits(item) || Number(item.status) === 0 || Number(item.status) === 1"
|
||
class="actions"
|
||
>
|
||
<view v-if="getReceiverMobileDigits(item)" class="btn btnGhost" @tap.stop="callReceiver(item)">
|
||
<uni-icons type="phone" size="16" color="#2556ec" />
|
||
<text>拨打电话</text>
|
||
</view>
|
||
<view v-if="Number(item.status) === 0" class="btn btnPrimary" @tap="markPicked(item)">
|
||
标记已分拣
|
||
</view>
|
||
<view v-else-if="Number(item.status) === 1" class="btn btnOutline" @tap="goScan">
|
||
去核销
|
||
</view>
|
||
</view>
|
||
<view
|
||
v-if="getExtraItems(item).length"
|
||
class="fold-box"
|
||
:class="{ 'fold-box--active': isExpanded(item) }"
|
||
>
|
||
<view class="fold-trigger" @tap="toggleExpand(item)">
|
||
<view class="fold-trigger__left">
|
||
<view class="fold-trigger__badge">{{ getExtraItems(item).length }}</view>
|
||
<view class="fold-trigger__text">
|
||
{{ isExpanded(item) ? '收起其他商品' : `展开其他${getExtraItems(item).length}件商品` }}
|
||
</view>
|
||
</view>
|
||
<view class="fold-trigger__icon" :class="{ 'fold-trigger__icon--active': isExpanded(item) }">
|
||
<uni-icons
|
||
:type="isExpanded(item) ? 'top' : 'bottom'"
|
||
size="14"
|
||
color="#7b8494"
|
||
/>
|
||
</view>
|
||
</view>
|
||
<view v-if="isExpanded(item)" class="fold-panel">
|
||
<view
|
||
v-for="(goods, goodsIndex) in getExtraItems(item)"
|
||
:key="goods.orderItemId || goodsIndex"
|
||
class="fold-item"
|
||
>
|
||
<image
|
||
v-if="getItemPic(goods)"
|
||
class="fold-item__img"
|
||
:src="getItemPic(goods)"
|
||
mode="aspectFill"
|
||
/>
|
||
<view v-else class="fold-item__empty">暂无图片</view>
|
||
<view class="fold-item__info">
|
||
<view class="fold-item__name lineTwo">{{ goods.spuName || '商品信息暂无' }}</view>
|
||
<view v-if="getItemSpec(goods)" class="meta c_999 size24 m-t-8">
|
||
规格:{{ getItemSpec(goods) }}
|
||
</view>
|
||
<view class="meta c_999 size24 m-t-8">数量:x{{ goods.count || 0 }}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view v-if="displayList.length === 0 && !loading.value" class="empty c_999">暂无数据</view>
|
||
<view v-if="displayList.length > 0" class="load-more">
|
||
<view v-if="loadingMore" class="load-more__text c_999">加载中...</view>
|
||
<view v-else-if="finished" class="load-more__text c_999">没有更多了</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</s-layout>
|
||
</template>
|
||
|
||
<script setup>
|
||
import { computed, ref, watch } from 'vue';
|
||
import { onPullDownRefresh, onReachBottom, onShow } from '@dcloudio/uni-app';
|
||
import modeSwitch from '@/components/mode_switch/mode_switch.vue';
|
||
import sheep from '@/sheep';
|
||
import OrderStoreApi from '@/sheep/api/trade/orderStore';
|
||
import StoreApi from '@/sheep/api/trade/store';
|
||
|
||
const tabs = [
|
||
{ label: '全部', value: 'all' },
|
||
{ label: '待分拣', value: 0 },
|
||
{ label: '待取货', value: 1 },
|
||
];
|
||
|
||
const currentTab = ref('all');
|
||
const keyword = ref('');
|
||
const sortAsc = ref(false);
|
||
|
||
const list = ref([]);
|
||
const loading = ref(false);
|
||
const loadingMore = ref(false);
|
||
const finished = ref(false);
|
||
const pageNo = ref(1);
|
||
const pageSize = ref(10);
|
||
const total = ref(0);
|
||
const sum = ref(0);
|
||
const expandedMap = ref({});
|
||
const userStore = sheep.$store('user');
|
||
const storeList = ref([]);
|
||
const storeIdsKey = ref('');
|
||
const selectedStoreId = ref(0);
|
||
const storeLoading = ref(false);
|
||
const STORE_SELECTED_KEY = 'merchant.pickup.selectedStoreId';
|
||
|
||
const displayList = computed(() => list.value);
|
||
|
||
const sanitizeText = (value) => String(value || '').replace(/[`"'\s]/g, '');
|
||
|
||
const getStoreName = (store) => {
|
||
const name = String(store?.name || store?.storeName || store?.title || '').trim();
|
||
if (name) return name;
|
||
const id = Number(store?.id || 0);
|
||
return id ? `网点${id}` : '';
|
||
};
|
||
|
||
const currentStore = computed(() => {
|
||
const id = Number(selectedStoreId.value || 0);
|
||
const list = Array.isArray(storeList.value) ? storeList.value : [];
|
||
return list.find((s) => Number(s?.id || 0) === id) || list[0] || {};
|
||
});
|
||
|
||
const currentStoreName = computed(() => getStoreName(currentStore.value) || '请选择网点');
|
||
|
||
const toStoreIdsString = (raw) => {
|
||
if (raw === null || raw === undefined) return '';
|
||
if (Array.isArray(raw)) {
|
||
return raw.map((v) => String(v).trim()).filter(Boolean).join(',');
|
||
}
|
||
const s = String(raw).trim();
|
||
if (!s) return '';
|
||
if (s.includes(',')) return s.replace(/\s+/g, '');
|
||
const n = Number(s);
|
||
if (Number.isFinite(n) && n > 0) return String(n);
|
||
return s.replace(/\s+/g, '');
|
||
};
|
||
|
||
const getUserStoreIds = async () => {
|
||
const local = userStore?.userInfo || {};
|
||
const fromLocal =
|
||
local.storeIds ??
|
||
local.storeIdList ??
|
||
local.pickUpStoreIds ??
|
||
local.pickUpStoreIdList ??
|
||
local.storeId;
|
||
let storeIds = toStoreIdsString(fromLocal);
|
||
if (storeIds) return storeIds;
|
||
const fetched = await userStore.getInfo();
|
||
const fromFetched =
|
||
fetched?.storeIds ??
|
||
fetched?.storeIdList ??
|
||
fetched?.pickUpStoreIds ??
|
||
fetched?.pickUpStoreIdList ??
|
||
fetched?.storeId;
|
||
storeIds = toStoreIdsString(fromFetched);
|
||
return storeIds;
|
||
};
|
||
|
||
const ensureStoreList = async (force = false) => {
|
||
const storeIds = await getUserStoreIds();
|
||
if (!storeIds) {
|
||
storeList.value = [];
|
||
storeIdsKey.value = '';
|
||
selectedStoreId.value = 0;
|
||
return '';
|
||
}
|
||
if (storeLoading.value) return storeIds;
|
||
if (!force && storeIdsKey.value === storeIds && storeList.value.length) return storeIds;
|
||
storeLoading.value = true;
|
||
try {
|
||
const { code, data } = await StoreApi.getStoreListByStoreIds(storeIds);
|
||
if (code !== 0) return storeIds;
|
||
storeList.value = Array.isArray(data) ? data : [];
|
||
storeIdsKey.value = storeIds;
|
||
const currentSelected = Number(selectedStoreId.value || 0);
|
||
const existsSelected = storeList.value.some((s) => Number(s?.id || 0) === currentSelected);
|
||
if (!existsSelected) {
|
||
const preferred = Number(userStore?.userInfo?.storeId || 0);
|
||
const nextFromPreferred = storeList.value.find((s) => Number(s?.id || 0) === preferred);
|
||
const nextId = Number(nextFromPreferred?.id || storeList.value[0]?.id || 0);
|
||
if (nextId > 0) selectedStoreId.value = nextId;
|
||
}
|
||
return storeIds;
|
||
} finally {
|
||
storeLoading.value = false;
|
||
}
|
||
};
|
||
|
||
const ensurePickUpStoreId = async () => {
|
||
await ensureStoreList();
|
||
return Number(selectedStoreId.value || 0);
|
||
};
|
||
|
||
const resetPagination = () => {
|
||
pageNo.value = 1;
|
||
list.value = [];
|
||
finished.value = false;
|
||
total.value = 0;
|
||
sum.value = 0;
|
||
};
|
||
|
||
const buildParams = (storeId) => {
|
||
const params = {
|
||
pickUpStoreId: storeId,
|
||
pageNo: pageNo.value,
|
||
pageSize: pageSize.value,
|
||
sortAsc: sortAsc.value,
|
||
};
|
||
if (currentTab.value !== 'all') params.status = currentTab.value;
|
||
const k = String(keyword.value || '').trim();
|
||
if (k) params.keyword = k;
|
||
return params;
|
||
};
|
||
|
||
const toggleSort = () => {
|
||
sortAsc.value = !sortAsc.value;
|
||
resetPagination();
|
||
getList();
|
||
};
|
||
|
||
const getList = async (force = false, isLoadMore = false) => {
|
||
while (force && (loading.value || loadingMore.value)) {
|
||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||
}
|
||
if (!isLoadMore && loading.value) return;
|
||
if (isLoadMore && (loadingMore.value || finished.value)) return;
|
||
const storeId = await ensurePickUpStoreId();
|
||
if (!(storeId > 0)) {
|
||
uni.showToast({ title: '缺少网点信息', icon: 'none' });
|
||
return;
|
||
}
|
||
if (isLoadMore) {
|
||
loadingMore.value = true;
|
||
} else {
|
||
loading.value = true;
|
||
}
|
||
const { data, code } = await OrderStoreApi.getStaffList(buildParams(storeId));
|
||
if (isLoadMore) {
|
||
loadingMore.value = false;
|
||
} else {
|
||
loading.value = false;
|
||
}
|
||
if (code !== 0) return;
|
||
const resList = Array.isArray(data?.list) ? data.list : [];
|
||
total.value = Number(data?.total || 0);
|
||
sum.value = Number(data?.sum || 0);
|
||
if (isLoadMore) {
|
||
list.value = [...list.value, ...resList];
|
||
} else {
|
||
list.value = resList;
|
||
}
|
||
if (list.value.length >= total.value || resList.length < pageSize.value) {
|
||
finished.value = true;
|
||
}
|
||
};
|
||
|
||
const loadMore = async () => {
|
||
if (finished.value || loadingMore.value || loading.value) return;
|
||
pageNo.value += 1;
|
||
await getList(false, true);
|
||
};
|
||
|
||
const openStoreSheet = () => {
|
||
if (storeList.value.length <= 1) return;
|
||
const itemList = storeList.value.map((s) => getStoreName(s) || '未命名网点');
|
||
uni.showActionSheet({
|
||
itemList,
|
||
success: ({ tapIndex }) => {
|
||
const next = Number(storeList.value?.[tapIndex]?.id || 0);
|
||
if (next > 0 && next !== selectedStoreId.value) {
|
||
selectedStoreId.value = next;
|
||
}
|
||
},
|
||
});
|
||
};
|
||
|
||
onShow(async () => {
|
||
const saved = Number(uni.getStorageSync(STORE_SELECTED_KEY) || 0);
|
||
if (saved > 0 && saved !== selectedStoreId.value) selectedStoreId.value = saved;
|
||
await ensureStoreList();
|
||
const current = Number(selectedStoreId.value || 0);
|
||
if (current > 0) uni.setStorageSync(STORE_SELECTED_KEY, current);
|
||
resetPagination();
|
||
await getList();
|
||
});
|
||
|
||
onPullDownRefresh(async () => {
|
||
try {
|
||
expandedMap.value = {};
|
||
resetPagination();
|
||
await ensureStoreList(true);
|
||
const current = Number(selectedStoreId.value || 0);
|
||
if (current > 0) uni.setStorageSync(STORE_SELECTED_KEY, current);
|
||
await getList(true);
|
||
} finally {
|
||
uni.stopPullDownRefresh();
|
||
}
|
||
});
|
||
|
||
onReachBottom(() => {
|
||
loadMore();
|
||
});
|
||
|
||
let searchTimer = null;
|
||
watch(
|
||
[currentTab, keyword, selectedStoreId],
|
||
() => {
|
||
if (searchTimer) clearTimeout(searchTimer);
|
||
searchTimer = setTimeout(() => {
|
||
resetPagination();
|
||
getList();
|
||
}, 300);
|
||
},
|
||
{ deep: false },
|
||
);
|
||
|
||
watch(
|
||
selectedStoreId,
|
||
(v) => {
|
||
const n = Number(v || 0);
|
||
if (n > 0) uni.setStorageSync(STORE_SELECTED_KEY, n);
|
||
},
|
||
{ deep: false },
|
||
);
|
||
|
||
const goScan = () => {
|
||
uni.reLaunch({ url: '/pages/merchant/scanVerify' });
|
||
};
|
||
|
||
const getOrderItems = (item) => {
|
||
return Array.isArray(item?.items) ? item.items.filter(Boolean) : [];
|
||
};
|
||
|
||
const getMainItem = (item) => {
|
||
return getOrderItems(item)[0] || null;
|
||
};
|
||
|
||
const getExtraItems = (item) => {
|
||
return getOrderItems(item).slice(1);
|
||
};
|
||
|
||
const getItemPic = (goods) => {
|
||
const text = sanitizeText(goods?.picUrl);
|
||
if (!text) return '';
|
||
if (/^https?:\/\//i.test(text)) return text;
|
||
return sheep.$url.cdn(text);
|
||
};
|
||
|
||
const getItemSpec = (goods) => {
|
||
return goods?.spec || '';
|
||
};
|
||
|
||
const getReceiverName = (item) => {
|
||
return String(item?.receiverName || item?.userName || item?.nickname || '').trim();
|
||
};
|
||
|
||
const maskMobile = (mobile) => {
|
||
const digits = String(mobile || '').replace(/\D/g, '');
|
||
if (digits.length < 7) return String(mobile || '').trim();
|
||
if (digits.length === 11) return `${digits.slice(0, 3)}****${digits.slice(7)}`;
|
||
return `${digits.slice(0, 3)}**${digits.slice(-4)}`;
|
||
};
|
||
|
||
const getMaskedReceiverMobile = (item) => {
|
||
const mobile = String(item?.receiverMobile || item?.receiverPhone || item?.mobile || '').trim();
|
||
return mobile ? maskMobile(mobile) : '';
|
||
};
|
||
|
||
const getReceiverMobileDigits = (item) => {
|
||
return String(item?.receiverMobile || item?.receiverPhone || item?.mobile || '').replace(/\D/g, '');
|
||
};
|
||
|
||
const callReceiver = (item) => {
|
||
const phoneNumber = getReceiverMobileDigits(item);
|
||
if (!phoneNumber) {
|
||
uni.showToast({ title: '暂无手机号', icon: 'none' });
|
||
return;
|
||
}
|
||
uni.makePhoneCall({
|
||
phoneNumber,
|
||
fail: () => {
|
||
uni.showToast({ title: '拨打失败', icon: 'none' });
|
||
},
|
||
});
|
||
};
|
||
|
||
const copyOrderNo = (orderNo) => {
|
||
const text = String(orderNo || '').trim();
|
||
if (!text) {
|
||
uni.showToast({ title: '暂无订单号', icon: 'none' });
|
||
return;
|
||
}
|
||
sheep.$helper.copyText(text);
|
||
};
|
||
|
||
const getExpandKey = (item) => {
|
||
return String(item?.orderId || item?.id || '');
|
||
};
|
||
|
||
const isExpanded = (item) => {
|
||
return Boolean(expandedMap.value[getExpandKey(item)]);
|
||
};
|
||
|
||
const toggleExpand = (item) => {
|
||
const key = getExpandKey(item);
|
||
if (!key) return;
|
||
expandedMap.value = {
|
||
...expandedMap.value,
|
||
[key]: !expandedMap.value[key],
|
||
};
|
||
};
|
||
|
||
const getPickUpCode = (item) => {
|
||
return item?.pickUpVerifyCode || item?.pickUpCode || '';
|
||
};
|
||
|
||
const markPicked = async (item) => {
|
||
const ids = Array.isArray(item?.ids) ? item.ids : [];
|
||
if (!ids.length) {
|
||
uni.showToast({ title: '缺少分拣ID', icon: 'none' });
|
||
return;
|
||
}
|
||
uni.showModal({
|
||
title: '提示',
|
||
content: '确认标记为已分拣吗?',
|
||
success: async ({ confirm }) => {
|
||
if (!confirm) return;
|
||
try {
|
||
const { code } = await OrderStoreApi.markSorted(ids);
|
||
if (code !== 0) return;
|
||
resetPagination();
|
||
await getList();
|
||
} catch (error) {
|
||
uni.showToast({ title: '标记失败,请稍后重试', icon: 'none' });
|
||
}
|
||
},
|
||
});
|
||
};
|
||
</script>
|
||
|
||
<style scoped lang="scss">
|
||
.page {
|
||
padding: 24rpx 24rpx 170rpx;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.top-bar {
|
||
border-radius: 24rpx;
|
||
padding: 18rpx 20rpx 20rpx;
|
||
box-sizing: border-box;
|
||
margin-bottom: 18rpx;
|
||
}
|
||
|
||
.store-row {
|
||
padding: 10rpx 4rpx 14rpx;
|
||
border-bottom: 2rpx solid #f1f2f6;
|
||
margin-bottom: 14rpx;
|
||
}
|
||
|
||
.store-left {
|
||
min-width: 0;
|
||
gap: 12rpx;
|
||
}
|
||
|
||
.store-label {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.store-name {
|
||
font-size: 28rpx;
|
||
color: #222;
|
||
font-weight: 600;
|
||
max-width: 520rpx;
|
||
}
|
||
|
||
.store-arrow {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.tabs {
|
||
display: flex;
|
||
gap: 12rpx;
|
||
margin-bottom: 16rpx;
|
||
}
|
||
|
||
.tab {
|
||
padding: 14rpx 22rpx;
|
||
border-radius: 16rpx;
|
||
background: #f2f4f7;
|
||
color: #333;
|
||
font-size: 26rpx;
|
||
}
|
||
|
||
.tabActive {
|
||
background: rgba(37, 86, 236, 0.12);
|
||
color: #2556ec;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.search-row {
|
||
width: 100%;
|
||
}
|
||
|
||
.search-box {
|
||
width: 100%;
|
||
border-radius: 18rpx;
|
||
background: #f6f7fb;
|
||
padding: 6rpx 16rpx;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
:deep(.search-input .uni-easyinput__content) {
|
||
background: transparent !important;
|
||
}
|
||
|
||
.sort-row {
|
||
margin-top: 14rpx;
|
||
padding-top: 14rpx;
|
||
border-top: 2rpx solid #f1f2f6;
|
||
}
|
||
|
||
.sort-switch {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 2rpx;
|
||
min-width: 60rpx;
|
||
padding: 10rpx 20rpx;
|
||
border-radius: 16rpx;
|
||
background: #f1f2f5;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.sort-triangle {
|
||
width: 0;
|
||
height: 0;
|
||
border-left: 12rpx solid transparent;
|
||
border-right: 12rpx solid transparent;
|
||
}
|
||
|
||
.sort-triangle--up {
|
||
border-bottom: 14rpx solid #c5cad4;
|
||
}
|
||
|
||
.sort-triangle--up.sort-triangle--active {
|
||
border-bottom-color: #2556ec;
|
||
}
|
||
|
||
.sort-triangle--down {
|
||
border-top: 14rpx solid #c5cad4;
|
||
}
|
||
|
||
.sort-triangle--down.sort-triangle--active {
|
||
border-top-color: #2556ec;
|
||
}
|
||
|
||
.list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 18rpx;
|
||
}
|
||
|
||
.card {
|
||
border-radius: 24rpx;
|
||
padding: 18rpx 18rpx 20rpx;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.card-hd {
|
||
margin-bottom: 14rpx;
|
||
}
|
||
|
||
.buyer-top {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12rpx;
|
||
padding: 10rpx 12rpx;
|
||
border-radius: 16rpx;
|
||
background: #f7f8fc;
|
||
margin-bottom: 14rpx;
|
||
}
|
||
|
||
.buyer-top__left {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 12rpx;
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.buyer-top__name {
|
||
font-size: 24rpx;
|
||
line-height: 34rpx;
|
||
color: #222;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.buyer-top__mobile {
|
||
font-size: 24rpx;
|
||
line-height: 34rpx;
|
||
color: #7b8494;
|
||
}
|
||
|
||
.status-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10rpx;
|
||
min-width: 0;
|
||
}
|
||
|
||
.status {
|
||
font-size: 24rpx;
|
||
color: #2556ec;
|
||
background: rgba(37, 86, 236, 0.12);
|
||
padding: 6rpx 14rpx;
|
||
border-radius: 14rpx;
|
||
}
|
||
|
||
.statusWait {
|
||
color: #6b4eff;
|
||
background: rgba(107, 78, 255, 0.12);
|
||
}
|
||
|
||
.goods-total {
|
||
font-size: 22rpx;
|
||
color: #8a8a8a;
|
||
}
|
||
|
||
.goods-thumb {
|
||
width: 140rpx;
|
||
height: 140rpx;
|
||
margin-right: 16rpx;
|
||
flex-shrink: 0;
|
||
position: relative;
|
||
}
|
||
|
||
.goods-thumb__img,
|
||
.goods-thumb__empty {
|
||
width: 100%;
|
||
height: 100%;
|
||
border-radius: 18rpx;
|
||
background: #f2f4f7;
|
||
}
|
||
|
||
.goods-thumb__img {
|
||
display: block;
|
||
}
|
||
|
||
.goods-thumb__empty {
|
||
color: #bbb;
|
||
font-size: 22rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 2rpx dashed #e3e6ee;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.name {
|
||
font-size: 28rpx;
|
||
color: #222;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.order-no-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10rpx;
|
||
min-width: 0;
|
||
}
|
||
|
||
.order-no-row__text {
|
||
min-width: 0;
|
||
flex: 0 1 auto;
|
||
}
|
||
|
||
.order-no-row__copy {
|
||
width: 24rpx;
|
||
height: 24rpx;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.order-no-row__copy-icon {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: block;
|
||
}
|
||
|
||
.actions {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 16rpx;
|
||
margin-top: 16rpx;
|
||
padding-top: 16rpx;
|
||
border-top: 2rpx solid #f1f3f7;
|
||
}
|
||
|
||
.btn {
|
||
min-width: 176rpx;
|
||
height: 64rpx;
|
||
padding: 0 26rpx;
|
||
border-radius: 18rpx;
|
||
font-size: 24rpx;
|
||
line-height: 1;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-sizing: border-box;
|
||
font-weight: 600;
|
||
gap: 8rpx;
|
||
}
|
||
|
||
.btnPrimary {
|
||
background: #2556ec;
|
||
color: #fff;
|
||
}
|
||
|
||
.btnOutline {
|
||
border: 2rpx solid rgba(37, 86, 236, 0.6);
|
||
color: #2556ec;
|
||
}
|
||
|
||
.btnGhost {
|
||
min-width: 0;
|
||
padding: 0 20rpx;
|
||
border: 2rpx solid #dbe3f2;
|
||
color: #2556ec;
|
||
background: #f7faff;
|
||
}
|
||
|
||
.fold-box {
|
||
margin-top: 16rpx;
|
||
border-radius: 18rpx;
|
||
background: #f7f8fc;
|
||
border: 2rpx solid #eef1f6;
|
||
overflow: hidden;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.fold-box--active {
|
||
background: #f5f7ff;
|
||
border-color: rgba(37, 86, 236, 0.18);
|
||
box-shadow: 0 8rpx 24rpx rgba(37, 86, 236, 0.06);
|
||
}
|
||
|
||
.fold-trigger {
|
||
padding: 18rpx 20rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.fold-trigger__left {
|
||
display: flex;
|
||
align-items: center;
|
||
min-width: 0;
|
||
gap: 12rpx;
|
||
}
|
||
|
||
.fold-trigger__badge {
|
||
min-width: 36rpx;
|
||
height: 36rpx;
|
||
padding: 0 10rpx;
|
||
border-radius: 999rpx;
|
||
background: rgba(37, 86, 236, 0.12);
|
||
color: #2556ec;
|
||
font-size: 22rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.fold-trigger__text {
|
||
font-size: 25rpx;
|
||
color: #4d5562;
|
||
}
|
||
|
||
.fold-trigger__icon {
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
border-radius: 20rpx;
|
||
background: #fff;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex-shrink: 0;
|
||
border: 2rpx solid #eceff5;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.fold-trigger__icon--active {
|
||
background: rgba(37, 86, 236, 0.1);
|
||
border-color: rgba(37, 86, 236, 0.14);
|
||
}
|
||
|
||
.fold-panel {
|
||
padding: 0 20rpx 18rpx;
|
||
border-top: 2rpx dashed #e6ebf4;
|
||
}
|
||
|
||
.fold-item {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
padding-top: 16rpx;
|
||
}
|
||
|
||
.fold-item + .fold-item {
|
||
margin-top: 16rpx;
|
||
padding-top: 16rpx;
|
||
border-top: 2rpx solid #eceff5;
|
||
}
|
||
|
||
.fold-item__img,
|
||
.fold-item__empty {
|
||
width: 104rpx;
|
||
height: 104rpx;
|
||
border-radius: 14rpx;
|
||
flex-shrink: 0;
|
||
background: #f2f4f7;
|
||
}
|
||
|
||
.fold-item__img {
|
||
display: block;
|
||
}
|
||
|
||
.fold-item__empty {
|
||
color: #bbb;
|
||
font-size: 20rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border: 2rpx dashed #e3e6ee;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.fold-item__info {
|
||
margin-left: 16rpx;
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.fold-item__name {
|
||
font-size: 26rpx;
|
||
color: #222;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.empty {
|
||
text-align: center;
|
||
padding: 80rpx 0;
|
||
}
|
||
|
||
.load-more {
|
||
padding: 30rpx 0 10rpx;
|
||
text-align: center;
|
||
}
|
||
|
||
.load-more__text {
|
||
font-size: 24rpx;
|
||
}
|
||
</style>
|