Files
kangyuan-mobile/pages/order/detail.vue
T

1139 lines
30 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>
<s-pages title="订单详情" :pink_bg="true">
<!-- 收货地址 -->
<view class="order-address-box flex-row bg24" v-if="state.orderInfo.receiverAreaId > 0">
<view class="cityImg">
<image :src="`${$url}goods/city.png`" mode="scaleToFill" />
</view>
<view class="size32 c0">
<view class="ss-flex ss-col-center">
<text class="address-username">
{{ state.orderInfo.receiverName }}
</text>
<text class="address-phone">{{ state.orderInfo.receiverMobile }}</text>
</view>
<view class="address-detail size32">
{{ state.orderInfo.receiverAreaName }} {{ state.orderInfo.receiverDetailAddress }}
</view>
</view>
</view>
<view
class="detail-goods"
:style="[{ marginTop: state.orderInfo.receiverAreaId > 0 ? '0' : '0' }]"
>
<card_order
class="order-goods"
v-if="state?.orderInfo?.items?.length > 0"
:data="state.orderInfo"
:source="state.source"
:delay-records="state.delayRecords"
:hide-item-after-sale="isAiActionOrder"
type="2"
theme="2"
@getOrderDetail="getOrderDetail"
@openExpress="handleTruckLineExpress"
></card_order>
<PickUpVerify
v-if="Number(state.orderInfo.deliveryType) === 2"
ref="pickUpVerifyRef"
:orderInfo="state.orderInfo"
:systemStore="systemStore"
:source="state.source"
:orderType="state.orderType"
detailStyle="order"
/>
<!-- 价格信息 -->
<view class="order-price-box bg24">
<view class="notice-item ss-flex ss-row-between" v-for="(v, i) in priceArr" :key="i">
<text class="title c0">{{ v.title }}</text>
<view class="ss-flex">
<text class="detail c0" :class="{ 'all-price': v.value == 'payPrice' }"
><span>{{ v.type == 2 ? '-' : '' }}</span
>¥{{ fen2yuan(state.orderInfo[v.value]) }}</text
>
</view>
</view>
<view
class="notice-item all-rpice-item ss-flex ss-m-t-20"
v-if="state.orderInfo.refundPrice > 0"
>
<text class="title">已退款</text>
<text class="detail all-price">¥{{ fen2yuan(state.orderInfo.refundPrice) }}</text>
</view>
</view>
<!-- 订单信息 -->
<view class="notice-box bg24">
<view class="notice-box__content">
<view class="notice-item--center">
<view class="ss-flex ss-flex-1 flex-row ju-between">
<text class="title c0">订单编号</text>
<text class="detail right c0">{{ state.orderInfo.no }}</text>
</view>
<!-- <button class="ss-reset-button copy-btn" @tap="onCopy">复制</button> -->
<view class="copy" @click.stop="onCopy">
<image :src="`${$url}goods/copy2.svg`" mode="scaleToFill" />
</view>
<!-- 订单编号后不再展示物流 icon -->
<!-- <truckLine
:data="state.orderInfo"
:code="Number(isAiStoreOrder ? 2 : 1)"
v-if="state.orderInfo.deliveryTime"
@openExpress="handleTruckLineExpress"
></truckLine> -->
</view>
<view class="notice-item flex-row ju-between">
<text class="title c0">下单时间</text>
<text class="detail right c0">
{{ sheep.$helper.timeFormat(state.orderInfo.createTime, 'yyyy-mm-dd hh:MM:ss') }}
</text>
</view>
<view class="notice-item flex-row ju-between" v-if="state.orderInfo.payTime">
<text class="title c0">支付时间:</text>
<text class="detail right c0">
{{ sheep.$helper.timeFormat(state.orderInfo.payTime, 'yyyy-mm-dd hh:MM:ss') }}
</text>
</view>
<view class="notice-item flex-row ju-between">
<text class="title c0">支付方式</text>
<text class="detail right c0">{{ state.orderInfo.payChannelName || '-' }}</text>
</view>
</view>
</view>
</view>
<su-fixed bottom placeholder bg="bg24" v-if="showBottomBar">
<view class="orderBan flex-column ju-center">
<AiOrderActionBar
v-if="isAiActionOrder"
:status="Number(state.orderInfo.status)"
:disableDelayShipment="isPickUpOrder || !isAiStoreOrder"
:hasDelayedItems="hasDelayedItems"
:canDelayItems="canDelayItems"
:canShipItems="canShipItems"
:logisticsId="state.orderInfo.logisticsId"
:logisticsNo="state.orderInfo.logisticsNo"
:deliveryTime="state.orderInfo.deliveryTime"
:hasLogistics="hasLogistics"
@delay="delayShipment"
@now="nowShipment"
@confirm="confirmReceiveOrder"
@pay="goPay"
@cancel="cancelAiOrder"
@express="goExpressLog"
/>
<card_orderBan
v-else
:data="state.orderInfo"
@downData="getOrderDetail"
type="2"
></card_orderBan>
</view>
</su-fixed>
<ShipmentPopup
ref="nowShipmentPopupRef"
mode="now"
popup-type="center"
:order-no="state.orderInfo.no || ''"
:order-time="formatCreateTime(state.orderInfo.createTime) || ''"
:order-data="state.orderInfo"
:delay-records="state.delayRecords"
@close="closeNowShipmentPopup"
@submit="handleNowShipmentSubmit"
/>
<ShipmentPopup
ref="delayShipmentPopupRef"
mode="delay"
popup-type="center"
:order-no="state.orderInfo.no || ''"
:order-time="formatCreateTime(state.orderInfo.createTime) || ''"
:order-data="state.orderInfo"
:delay-records="state.delayRecords"
@close="closeDelayShipmentPopup"
@submit="handleDelayShipmentSubmit"
/>
<ReceiveItemPopup
ref="receiveItemPopupRef"
popup-type="center"
:order-no="state.orderInfo.no || ''"
:order-data="state.orderInfo"
:delay-records="state.delayRecords"
@close="closeReceiveItemPopup"
@submit="handleReceiveItemSubmit"
/>
<ExpressListPopup
ref="expressListPopupRef"
popup-type="center"
:order-no="state.orderInfo.no || ''"
:order-data="state.orderInfo"
:delay-records="state.delayRecords"
:order-id="resolveAiOrderId(state.orderInfo)"
@close="closeExpressListPopup"
/>
</s-pages>
</template>
<script setup>
import sheep from '@/sheep';
import { onLoad, onShow } from '@dcloudio/uni-app';
import { computed, reactive, ref } from 'vue';
import { fen2yuan, handleOrderButtons } from '@/sheep/hooks/useGoods';
import OrderApi from '@/sheep/api/trade/order';
import {
aiDelayedShipment,
aiPendingShipment,
confirmReceive as aiConfirmReceive,
giftConfirmReceive,
getOrderDetail as getAiOrderDetail,
getOpenOrderDetail,
cancelOrder as cancelAiOrderRequest,
cancelOpenOrder,
getAiOrderDelayRecords,
aiReceiveItem,
} from '@/sheep/api/ai';
import StoreApi from '@/sheep/api/trade/store';
import card_order from '@/components/orderItem/card_order.vue';
import AiOrderActionBar from '@/components/orderItem/AiOrderActionBar.vue';
import ShipmentPopup from '@/components/orderItem/ShipmentPopup.vue';
import ReceiveItemPopup from '@/components/orderItem/ReceiveItemPopup.vue';
import ExpressListPopup from '@/components/orderItem/ExpressListPopup.vue';
import truckLine from '@/components/truckLine/truckLine.vue';
import PickUpVerify from '@/pages/order/pickUpVerify.vue';
const headerBg = sheep.$url.css('/static/img/shop/order/order_bg.png');
const state = reactive({
orderInfo: {},
merchantTradeNo: '', // 商户订单号
comeinType: '', // 进入订单详情的来源类型
orderType: '',
source: '',
delayRecords: [],
});
// ========== 门店自提(核销) ==========
const systemStore = ref({}); // 门店信息
// 复制
const onCopy = () => {
sheep.$helper.copyText(state.orderInfo.no);
};
const formatCreateTime = (value) => {
if (!value) return '';
const s = sheep?.$helper?.timeFormat
? sheep.$helper.timeFormat(value, 'yyyy-mm-dd hh:MM:ss')
: String(value);
return s || '';
};
const pickUpVerifyRef = ref();
const isAiActionOrder = computed(() => {
const orderType = Number(state.orderInfo?.type ?? state.orderType ?? 0);
return (
String(state.source) === 'aishop' ||
String(state.orderInfo?.__source) === 'aishop' ||
orderType === 4 ||
orderType === 5
);
});
const isPickUpOrder = computed(() => {
if (Number(state.orderInfo?.deliveryType) === 2) return true;
return Boolean(
state.orderInfo?.pickUpStoreId ||
state.orderInfo?.pickUpStore ||
state.orderInfo?.pickUpStoreVO ||
state.orderInfo?.pickUpVerifyCode,
);
});
const hasDelayedItems = computed(() => {
if (!isAiStoreOrder.value) return false;
if (isPickUpOrder.value) return false;
const records = Array.isArray(state.delayRecords)
? state.delayRecords
: Array.isArray(state.orderInfo?.delayRecords)
? state.orderInfo.delayRecords
: Array.isArray(state.orderInfo?.delayRecordList)
? state.orderInfo.delayRecordList
: [];
return records.some((record) => Number(record?.status) === 1);
});
const getCurrentDelayRecords = () => {
if (Array.isArray(state.delayRecords) && state.delayRecords.length > 0) return state.delayRecords;
const orderRecords = Array.isArray(state.orderInfo?.delayRecords)
? state.orderInfo.delayRecords
: Array.isArray(state.orderInfo?.delayRecordList)
? state.orderInfo.delayRecordList
: [];
return orderRecords;
};
const canDelayItems = computed(() => {
if (!isAiStoreOrder.value) return false;
if (isPickUpOrder.value) return false;
const delayRecords = getCurrentDelayRecords();
const hasActivated = delayRecords.some((record) => Number(record?.status) === 2);
if (hasActivated) return true;
if (delayRecords.length === 0) {
const totalCount = Number(state.orderInfo?.productCount || state.orderInfo?.totalCount || 0) || 0;
if (totalCount > 0) return true;
}
return false;
});
const canShipItems = computed(() => {
if (!isAiStoreOrder.value) return false;
if (isPickUpOrder.value) return false;
const delayRecords = getCurrentDelayRecords();
if (delayRecords.length === 0) {
const totalCount = Number(state.orderInfo?.productCount || state.orderInfo?.totalCount || 0) || 0;
return totalCount > 0;
}
return delayRecords.some((record) => {
const status = Number(record?.status);
return status === 1 || status === 2;
});
});
const hasLogistics = computed(() => {
const info = state.orderInfo || {};
if (Number(info.logisticsId) > 0) return true;
if (info.logisticsNo && String(info.logisticsNo).trim()) return true;
if (info.deliveryTime) return true;
const items = Array.isArray(info.items) ? info.items : [];
for (const item of items) {
if (Number(item?.logisticsId) > 0) return true;
if (item?.logisticsNo && String(item.logisticsNo).trim()) return true;
if (item?.deliveryTime) return true;
const subItems = Array.isArray(item?.items) ? item.items : [];
for (const sub of subItems) {
if (Number(sub?.logisticsId) > 0) return true;
if (sub?.logisticsNo && String(sub.logisticsNo).trim()) return true;
if (sub?.deliveryTime) return true;
}
}
return false;
});
const showBottomBar = computed(() => {
if (!isAiActionOrder.value) return true;
const status = Number(state.orderInfo?.status);
// 有物流信息(需要展示"查看物流")时,强制显示底部按钮栏
if (hasLogistics.value) return true;
if ([0, 15, 20, 30].includes(status)) return true;
if (!isAiStoreOrder.value) return hasLogistics.value;
if (isPickUpOrder.value) return false;
if (hasDelayedItems.value) return true;
return [10, 15, 50, 70].includes(status);
});
const resolvePickUpStoreId = (data = {}) => {
return Number(
data?.pickUpStoreId ||
data?.pickUpStore?.id ||
data?.pickUpStore?.storeId ||
data?.pickUpStoreVO?.id ||
data?.pickUpStoreVO?.storeId ||
data?.store?.id ||
data?.store?.storeId ||
data?.storeId ||
0,
);
};
const resolveAiOrderId = (data) => {
return data?.id || data?.orderId;
};
const isAiStoreOrder = computed(() => {
return String(state.source) === 'aishop' || String(state.orderInfo?.__source) === 'aishop';
});
const delayShipmentPopupRef = ref();
const nowShipmentPopupRef = ref();
const receiveItemPopupRef = ref();
const expressListPopupRef = ref();
const closeDelayShipmentPopup = () => {};
const closeNowShipmentPopup = () => {};
const closeReceiveItemPopup = () => {};
const closeExpressListPopup = () => {};
const reloadDelayRecords = async () => {
if (!isAiStoreOrder.value) {
state.delayRecords = [];
return;
}
const orderId = resolveAiOrderId(state.orderInfo);
if (!orderId) {
state.delayRecords = [];
return;
}
try {
const delayRes = await getAiOrderDelayRecords({ orderId });
if (delayRes.code === 0 && Array.isArray(delayRes.data)) {
state.delayRecords = delayRes.data;
return;
}
} catch (e) {
}
state.delayRecords = [];
};
const openDelayShipmentPopup = async () => {
const id = resolveAiOrderId(state.orderInfo);
if (!id) {
uni.showToast({
title: '订单信息异常',
icon: 'none',
});
return;
}
try {
await reloadDelayRecords();
} catch (e) {
}
delayShipmentPopupRef.value?.open();
};
const openNowShipmentPopup = () => {
const id = resolveAiOrderId(state.orderInfo);
if (!id) {
uni.showToast({
title: '订单信息异常',
icon: 'none',
});
return;
}
nowShipmentPopupRef.value?.open();
};
const handleDelayShipmentSubmit = async ({ items, close }) => {
const orderId = resolveAiOrderId(state.orderInfo);
if (!orderId || !Array.isArray(items) || items.length === 0) {
return;
}
const { code } = await aiDelayedShipment({
orderId,
items,
});
if (code === 0) {
close?.();
getOrderDetail();
}
};
const handleNowShipmentSubmit = async ({ items, close }) => {
const orderId = resolveAiOrderId(state.orderInfo);
if (!orderId || !Array.isArray(items) || items.length === 0) {
return;
}
const { code } = await aiPendingShipment({
orderId,
items,
});
if (code === 0) {
close?.();
getOrderDetail();
}
};
function delayShipment() {
if (isPickUpOrder.value) {
uni.showToast({
title: '自提订单不支持延迟发货',
icon: 'none',
});
return;
}
if (isAiStoreOrder.value) {
openDelayShipmentPopup();
return;
}
const id = resolveAiOrderId(state.orderInfo);
if (!id) {
uni.showToast({
title: '订单信息异常',
icon: 'none',
});
return;
}
uni.showModal({
title: '延迟发货',
content: '请您确认是否暂时不需要发货,确认后该产品将为您安排延迟发货',
confirmColor: '#FA7E31',
success: async function (res) {
if (!res.confirm) return;
const { code } = await aiDelayedShipment({
id,
status: 50,
});
if (code === 0) {
getOrderDetail();
}
},
});
}
function nowShipment() {
if (isPickUpOrder.value) {
uni.showToast({
title: '自提订单不支持立即发货',
icon: 'none',
});
return;
}
if (isAiStoreOrder.value) {
openNowShipmentPopup();
return;
}
const id = resolveAiOrderId(state.orderInfo);
if (!id) {
uni.showToast({
title: '订单信息异常',
icon: 'none',
});
return;
}
uni.showModal({
title: '立即发货',
content: '请您确认是否需要立即发货,确认后将尽快为您安排发货',
confirmColor: '#FA7E31',
success: async function (res) {
if (!res.confirm) return;
const { code } = await aiPendingShipment({
id,
status: 10,
});
if (code === 0) {
getOrderDetail();
}
},
});
}
const confirmReceiveOrder = async () => {
if (Number(state.orderInfo.status) === 15) {
receiveItemPopupRef.value?.open?.();
return;
}
const id = resolveAiOrderId(state.orderInfo);
if (!id) return;
const req =
Number(state.orderInfo?.type) === 5 || String(state.orderType) === '5'
? giftConfirmReceive
: aiConfirmReceive;
const { code } = await req({ id });
if (code === 0) {
getOrderDetail();
}
};
const handleReceiveItemSubmit = async ({ items }) => {
if (!Array.isArray(items) || items.length === 0) {
uni.showToast({
title: '请选择要确认收货的商品',
icon: 'none',
});
return;
}
const { code } = await aiReceiveItem({ items });
if (code === 0) {
receiveItemPopupRef.value?.close?.();
getOrderDetail();
}
};
const goPay = () => {
const id = resolveAiOrderId(state.orderInfo);
const payOrderId = state.orderInfo?.payOrderId;
if (!id || !payOrderId) {
uni.showToast({
title: '支付信息异常',
icon: 'none',
});
return;
}
sheep.$router.go('/pages/AI/cashierDesk', {
id,
payOrderId,
});
};
const goExpressLog = () => {
const id = resolveAiOrderId(state.orderInfo);
if (!id) {
uni.showToast({
title: '订单信息异常',
icon: 'none',
});
return;
}
// 店铺订单(source=aishop)、入店订单(type=4)、赠送店铺订单(type=5) 一律弹窗查看物流;只有普通商城订单走原生跳转
const orderType = Number(state.orderInfo?.type ?? state.orderType ?? 0);
const isStoreOrGiftOrInStore =
isAiStoreOrder.value || orderType === 4 || orderType === 5;
if (!isStoreOrGiftOrInStore) {
sheep.$router.go('/pages/order/express/log', { id });
return;
}
if (!isPickUpOrder.value) {
expressListPopupRef.value?.open?.();
return;
}
sheep.$router.go('/pages/order/express/log', { id });
};
const handleTruckLineExpress = () => {
const id = resolveAiOrderId(state.orderInfo);
if (!id) {
uni.showToast({
title: '订单信息异常',
icon: 'none',
});
return;
}
// 店铺订单(source=aishop)、入店订单(type=4)、赠送店铺订单(type=5) 一律弹窗查看物流;只有普通商城订单走原生跳转
const orderType = Number(state.orderInfo?.type ?? state.orderType ?? 0);
const isStoreOrGiftOrInStore =
isAiStoreOrder.value || orderType === 4 || orderType === 5;
if (!isStoreOrGiftOrInStore) {
sheep.$router.go('/pages/order/express/log', { id });
return;
}
if (!isPickUpOrder.value) {
expressListPopupRef.value?.open?.();
return;
}
sheep.$router.go('/pages/order/express/log', { id });
};
const cancelAiOrder = () => {
const id = resolveAiOrderId(state.orderInfo);
if (!id) return;
uni.showModal({
title: '提示',
content: '确定要取消订单吗?',
confirmColor: '#FA7E31',
success: async (res) => {
if (!res.confirm) return;
const request =
Number(state.orderInfo?.type) === 5 || String(state.orderType) === '5'
? cancelOpenOrder
: cancelAiOrderRequest;
const result = await request({ id });
if (result.code === 0) await getOrderDetail();
},
});
};
async function getOrderDetail() {
let id = state.orderInfo.id;
// 对详情数据进行适配
let res;
if (state.comeinType === 'wechat') {
// TODO 芋艿:【微信物流】微信场景下
res = await OrderApi.getOrderDetail(id, {
merchant_trade_no: state.merchantTradeNo,
});
} else {
// 开通店铺订单(type=5)优先级最高,独立接口,不影响正常商城订单/店铺订单
const isOpenOrder =
Number(state.orderInfo?.type) === 5 ||
String(state.orderType) === '5';
if (isOpenOrder) {
res = await getOpenOrderDetail({ id });
} else if (String(state.source) === 'aishop') {
res = await getAiOrderDetail({ id });
} else {
res = await OrderApi.getOrderDetail(id);
}
}
if (res.code === 0) {
state.orderInfo = res.data;
handleOrderButtons(state.orderInfo);
// 配送方式:门店自提
const isPickUp = Number(res.data?.deliveryType) === 2;
const pickUpStoreId = resolvePickUpStoreId(res.data);
if (isPickUp && pickUpStoreId > 0) {
const { data } = await StoreApi.getStoreById(pickUpStoreId);
systemStore.value = data || {};
} else {
systemStore.value = {};
}
if (state.orderInfo.deliveryType === 2 && state.orderInfo.payStatus) {
pickUpVerifyRef.value && pickUpVerifyRef.value.markCode(res.data.pickUpVerifyCode);
}
// 店铺订单:延迟记录独立拉取
if (isAiStoreOrder.value) {
const orderId = resolveAiOrderId(state.orderInfo);
if (orderId) {
try {
const delayRes = await getAiOrderDelayRecords({ orderId });
if (delayRes.code === 0 && Array.isArray(delayRes.data)) {
state.delayRecords = delayRes.data;
} else {
state.delayRecords = [];
}
} catch (e) {
state.delayRecords = [];
}
} else {
state.delayRecords = [];
}
} else {
state.delayRecords = [];
}
} else {
sheep.$router.back();
}
}
onShow(async () => {
//onShow中获取订单列表,保证跳转后页面为最新状态
await getOrderDetail();
});
onLoad(async (options) => {
let id = 0;
if (options.id) {
id = options.id;
}
// TODO 芋艿:【微信物流】下面两个变量,后续接入
state.comeinType = options.comein_type;
if (state.comeinType === 'wechat') {
state.merchantTradeNo = options.merchant_trade_no;
}
if (options.type !== undefined) {
state.orderType = options.type;
}
if (options.source !== undefined) {
state.source = options.source;
}
state.orderInfo.id = id;
});
const priceArr = ref([
{
title: '商品金额',
value: 'totalPrice',
type: 1,
},
{
title: '随机优惠',
value: 'randomDiscountPrice',
type: 1,
},
{
title: '消费金抵扣',
value: 'consumptionPrice',
type: 2,
},
{
title: '运费',
value: 'deliveryPrice',
type: 1,
},
{
title: '实付金额',
value: 'payPrice',
type: 1,
},
]);
</script>
<style lang="scss" scoped>
.score-img {
width: 36rpx;
height: 36rpx;
margin: 0 4rpx;
}
.apply-btn {
width: 140rpx;
height: 50rpx;
border-radius: 25rpx;
font-size: 24rpx;
border: 2rpx solid #dcdcdc;
line-height: normal;
margin-left: 16rpx;
}
.state-box {
color: rgba(#fff, 0.9);
width: 100%;
background: v-bind(headerBg) no-repeat,
linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
background-size: 750rpx 100%;
box-sizing: border-box;
.state-img {
width: 60rpx;
height: 60rpx;
margin-right: 20rpx;
}
}
.order-address-box {
background-color: #fff;
border-radius: 12rpx;
margin: 20rpx 32rpx 24rpx 32rpx;
padding: 24rpx 30rpx 24rpx 20rpx;
font-size: 32rpx;
box-sizing: border-box;
color: #1b1b21;
.address-username {
margin-right: 20rpx;
}
.address-detail {
margin-top: 20rpx;
}
}
.detail-goods {
border-radius: 10rpx;
padding: 0 32rpx;
.order-list {
margin-bottom: 20rpx;
background-color: #fff;
.order-card {
padding: 20rpx 0;
.order-sku {
font-size: 24rpx;
font-weight: 400;
color: rgba(153, 153, 153, 1);
width: 450rpx;
margin-bottom: 20rpx;
.order-num {
margin-right: 10rpx;
}
}
.tag-btn {
margin-left: 16rpx;
font-size: 24rpx;
height: 36rpx;
color: var(--ui-BG-Main);
border: 2rpx solid var(--ui-BG-Main);
border-radius: 14rpx;
padding: 0 4rpx;
}
}
}
}
// 订单信息。
.notice-box {
background: #fff;
border-radius: 12rpx;
margin-bottom: 24rpx;
.notice-box__head {
font-size: 30rpx;
font-weight: 500;
color: rgba(51, 51, 51, 1);
line-height: 80rpx;
border-bottom: 1rpx solid #dfdfdf;
padding: 0 25rpx;
}
.notice-box__content {
padding: 20rpx;
.self-pickup-box {
width: 100%;
.self-pickup--img {
width: 200rpx;
height: 200rpx;
margin: 40rpx 0;
}
}
}
.notice-item,
.notice-item--center {
display: flex;
align-items: center;
line-height: normal;
margin-bottom: 36rpx;
.title {
font-size: 28rpx;
color: #3b3b3b;
}
.detail {
font-size: 28rpx;
color: #323232;
flex: 1;
}
}
}
.copy-btn {
width: 100rpx;
line-height: 50rpx;
border-radius: 25rpx;
padding: 0;
background: rgba(238, 238, 238, 1);
font-size: 22rpx;
font-weight: 400;
color: rgba(51, 51, 51, 1);
}
// 订单价格信息
.order-price-box {
background-color: #fff;
border-radius: 12rpx;
padding: 20rpx;
margin-bottom: 24rpx;
.notice-item {
line-height: 70rpx;
.title {
font-size: 28rpx;
color: #3b3b3b;
}
.detail {
font-size: 28rpx;
color: #323232;
font-family: OPPOSANS;
}
}
.all-rpice-item {
justify-content: flex-end;
align-items: center;
.title {
font-size: 26rpx;
font-weight: 500;
color: #3b3b3b;
line-height: normal;
}
}
}
.all-price {
color: #ee0a24 !important;
}
// 底部
.footer-box {
height: 170rpx;
width: 100%;
box-sizing: border-box;
border-radius: 10rpx;
padding-right: 20rpx;
.cancel-btn {
width: 160rpx;
height: 60rpx;
background: #eeeeee;
border-radius: 30rpx;
margin-right: 20rpx;
font-size: 26rpx;
font-weight: 400;
color: #333333;
}
.pay-btn {
width: 160rpx;
height: 60rpx;
font-size: 26rpx;
border-radius: 30rpx;
font-weight: 500;
color: #fff;
}
}
.cityImg {
width: 48rpx;
min-width: 48rpx;
height: 48rpx;
margin-top: 16rpx;
margin-right: 16rpx;
image {
width: 100%;
height: 100%;
}
}
.order-goods {
padding: 24rpx 20rpx;
box-sizing: border-box;
background-color: #fff;
margin-bottom: 24rpx;
border-radius: 12rpx;
}
.right {
text-align: right;
}
.copy {
width: 32rpx;
height: 32rpx;
margin-left: 14rpx;
image {
width: 100%;
height: 100%;
}
}
.orderBan {
height: 100rpx;
width: 100%;
padding: 0 24rpx;
box-sizing: border-box;
box-shadow: 0px -4px 30px 0px rgba(0, 0, 0, 0.1);
}
.delay-popup {
width: 680rpx;
max-height: 78vh;
background: #ffffff;
border-radius: 24rpx;
padding: 32rpx 24rpx;
box-sizing: border-box;
overflow: hidden;
}
.delay-popup__header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12rpx;
}
.delay-popup__title {
font-size: 34rpx;
font-weight: 600;
color: #333333;
}
.delay-popup__order-no {
margin-top: 8rpx;
font-size: 22rpx;
line-height: 32rpx;
color: #999999;
word-break: break-all;
}
.delay-popup__order-time {
margin-top: 4rpx;
font-size: 22rpx;
line-height: 32rpx;
color: #999999;
}
.delay-popup__close {
width: 56rpx;
height: 56rpx;
border-radius: 50%;
background: #f3f4f6;
line-height: 56rpx;
text-align: center;
font-size: 36rpx;
color: #666666;
}
.delay-popup__desc {
font-size: 24rpx;
color: #999999;
margin-bottom: 24rpx;
}
.delay-popup__content {
max-height: 760rpx;
}
.delay-popup__item {
display: flex;
padding: 20rpx 0;
border-bottom: 1rpx solid #f2f2f2;
}
.delay-popup__item-image {
width: 144rpx;
height: 144rpx;
border-radius: 12rpx;
flex-shrink: 0;
margin-right: 20rpx;
background: #f5f5f5;
}
.delay-popup__item-main {
flex: 1;
min-width: 0;
}
.delay-popup__item-name {
font-size: 28rpx;
line-height: 40rpx;
color: #333333;
}
.delay-popup__item-sku {
margin-top: 10rpx;
font-size: 24rpx;
line-height: 34rpx;
color: #999999;
}
.delay-popup__item-footer {
margin-top: 20rpx;
}
.delay-popup__item-count {
font-size: 24rpx;
color: #666666;
}
.delay-popup__actions {
display: flex;
align-items: center;
gap: 20rpx;
margin-top: 32rpx;
}
.delay-popup__btn {
flex: 1;
height: 84rpx;
line-height: 84rpx;
text-align: center;
border-radius: 42rpx;
font-size: 28rpx;
font-weight: 500;
}
.delay-popup__btn--ghost {
background: #f2f3f5;
color: #333333;
}
.delay-popup__btn--primary {
background: linear-gradient(135deg, #fa8735 0%, #fe3b48 100%);
color: #ffffff;
}
.now-shipment-empty {
padding: 40rpx 24rpx;
text-align: center;
font-size: 26rpx;
color: #999999;
}
</style>