|
|
@@ -234,10 +234,26 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- ==================== 结账弹窗 ==================== -->
|
|
|
- <NModal v-model:show="settleDialogVisible" preset="dialog" title="订单结账" style="width:520px;" :show-icon="false" :mask-closable="false">
|
|
|
- <NTabs v-model:value="settleType">
|
|
|
- <NTabPane name="0" tab="结账">
|
|
|
+ <!-- ==================== 结账弹窗(增加菜品清单) ==================== -->
|
|
|
+ <NModal v-model:show="settleDialogVisible" preset="dialog" title="订单结账" style="width:600px;" :show-icon="false" :mask-closable="false">
|
|
|
+ <!-- 菜品清单(可折叠) -->
|
|
|
+ <div class="settle-dish-list-wrap">
|
|
|
+ <div class="settle-dish-list-header" @click="settleDishListExpanded = !settleDishListExpanded">
|
|
|
+ <span class="header-title">菜品清单({{ orderedList.length }}项)</span>
|
|
|
+ <span class="header-toggle">{{ settleDishListExpanded ? '收起' : '展开' }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="settleDishListExpanded" class="settle-dish-list-body">
|
|
|
+ <div v-for="(item, idx) in orderedList" :key="idx" class="settle-dish-item">
|
|
|
+ <span class="dish-name">{{ item.dishName }}</span>
|
|
|
+ <span class="dish-qty">×{{ item.quantity }}</span>
|
|
|
+ <span class="dish-price">¥{{ formatMoney(itemTotal(item)) }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Tab 切换 -->
|
|
|
+ <NTabs v-model:value="settleType" style="margin-top:16px;">
|
|
|
+ <NTabPane name="0" tab="普通结账">
|
|
|
<div class="settle-normal">
|
|
|
<span>订单金额</span>
|
|
|
<strong>¥{{ formatMoney(currentOrderTotal) }}</strong>
|
|
|
@@ -390,28 +406,99 @@
|
|
|
</template>
|
|
|
</NModal>
|
|
|
|
|
|
- <!-- ==================== 订单详情弹窗 ==================== -->
|
|
|
- <NModal v-model:show="orderInfoDialogVisible" preset="card" title="订单详情" style="width:600px;max-width:90vw;" :segmented="{ content: true }">
|
|
|
+ <!-- ==================== 订单详情弹窗(类似 H5) ==================== -->
|
|
|
+ <NModal v-model:show="orderInfoDialogVisible" preset="card" title="订单详情" style="width:700px;max-width:94vw;" :segmented="{ content: true }">
|
|
|
<NSpin :show="orderInfoLoading">
|
|
|
<div v-if="orderInfoDetail" class="order-info-content">
|
|
|
+ <!-- 基本信息 -->
|
|
|
<div class="order-info-header">
|
|
|
- <NTag :type="orderStatusTagType(orderInfoDetail.orderStatus)" size="medium">
|
|
|
- {{ orderStatusLabel(orderInfoDetail.orderStatus) }}
|
|
|
- </NTag>
|
|
|
- <span class="order-info-no">{{ orderInfoDetail.orderNo }}</span>
|
|
|
- <span class="order-info-total">总计:¥{{ formatMoney(orderInfoDetail.totalAmount) }}</span>
|
|
|
+ <div class="info-row">
|
|
|
+ <span class="label">订单号</span>
|
|
|
+ <span class="value">{{ orderInfoDetail.orderNo }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="info-row">
|
|
|
+ <span class="label">包房</span>
|
|
|
+ <span class="value">{{ orderInfoDetail.roomName }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="info-row">
|
|
|
+ <span class="label">订单状态</span>
|
|
|
+ <NTag :type="orderStatusTagType(orderInfoDetail.orderStatus)" size="small">
|
|
|
+ {{ orderStatusLabel(orderInfoDetail.orderStatus) }}
|
|
|
+ </NTag>
|
|
|
+ </div>
|
|
|
+ <div class="info-row">
|
|
|
+ <span class="label">总金额</span>
|
|
|
+ <span class="value amount">¥{{ formatMoney(orderInfoDetail.totalAmount) }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="orderInfoDetail.settleType && orderInfoDetail.settleType !== '0'" class="info-row">
|
|
|
+ <span class="label">结账方式</span>
|
|
|
+ <span class="value">{{ orderInfoDetail.settleType === '1' ? '折扣' : '优惠' }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="orderInfoDetail.discountRate && orderInfoDetail.settleType === '1'" class="info-row">
|
|
|
+ <span class="label">折扣比例</span>
|
|
|
+ <span class="value">{{ orderInfoDetail.discountRate }}%</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="orderInfoDetail.discountAmount" class="info-row">
|
|
|
+ <span class="label">优惠金额</span>
|
|
|
+ <span class="value">¥{{ formatMoney(orderInfoDetail.discountAmount) }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="orderInfoDetail.payableAmount" class="info-row">
|
|
|
+ <span class="label">实收金额</span>
|
|
|
+ <span class="value amount">¥{{ formatMoney(orderInfoDetail.payableAmount) }}</span>
|
|
|
+ </div>
|
|
|
+ <div v-if="orderInfoDetail.settleTime" class="info-row">
|
|
|
+ <span class="label">结账时间</span>
|
|
|
+ <span class="value">{{ formatDateTime(orderInfoDetail.settleTime) }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 菜品明细(原始下单) -->
|
|
|
+ <div v-if="orderInfoDetail.detailList?.length > 0" class="order-info-section">
|
|
|
+ <div class="section-title">菜品明细</div>
|
|
|
+ <div class="dish-list">
|
|
|
+ <div v-for="(item, idx) in orderInfoDetail.detailList" :key="item.id || idx" class="dish-item">
|
|
|
+ <span class="dish-name">{{ item.dishName }}</span>
|
|
|
+ <span class="dish-qty">×{{ item.quantity }}</span>
|
|
|
+ <span class="dish-price">¥{{ formatMoney(item.amount) }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 加菜明细 -->
|
|
|
+ <div v-if="orderInfoDetail.addDishList?.length > 0" class="order-info-section">
|
|
|
+ <div class="section-title add-title">加菜明细</div>
|
|
|
+ <div class="dish-list">
|
|
|
+ <div v-for="(item, idx) in orderInfoDetail.addDishList" :key="item.id || idx" class="dish-item">
|
|
|
+ <span class="dish-name">{{ item.dishName }}</span>
|
|
|
+ <span class="dish-qty">×{{ item.quantity }}</span>
|
|
|
+ <span class="dish-price">¥{{ formatMoney(item.amount) }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div v-if="orderInfoDetail.detailList?.length > 0" class="order-info-items">
|
|
|
- <div v-for="(item, idx) in orderInfoDetail.detailList" :key="item.id || idx" class="order-info-item">
|
|
|
- <span class="order-info-item-index">[{{ idx + 1 }}]</span>
|
|
|
- <span class="order-info-item-name">{{ item.dishName }}</span>
|
|
|
- <span class="order-info-item-qty">×{{ item.quantity }}</span>
|
|
|
- <span class="order-info-item-price">¥{{ formatMoney(item.amount) }}</span>
|
|
|
+
|
|
|
+ <!-- 退菜明细 -->
|
|
|
+ <div v-if="orderInfoDetail.reduceDishList?.length > 0" class="order-info-section">
|
|
|
+ <div class="section-title reduce-title">退菜明细</div>
|
|
|
+ <div class="dish-list">
|
|
|
+ <div v-for="(item, idx) in orderInfoDetail.reduceDishList" :key="item.id || idx" class="dish-item">
|
|
|
+ <span class="dish-name">{{ item.dishName }}</span>
|
|
|
+ <span class="dish-qty">×{{ item.quantity }}</span>
|
|
|
+ <span class="dish-price reduce-price">-¥{{ formatMoney(Math.abs(item.amount)) }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-else class="order-info-empty">
|
|
|
+
|
|
|
+ <!-- 无菜品提示 -->
|
|
|
+ <div v-if="!orderInfoDetail.detailList?.length && !orderInfoDetail.addDishList?.length && !orderInfoDetail.reduceDishList?.length" class="order-info-empty">
|
|
|
暂无菜品
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- 底部操作按钮 -->
|
|
|
+ <div class="order-info-footer">
|
|
|
+ <NButton v-if="orderInfoDetail.orderStatus === 'ORDERING'" type="success" @click="goToSettleFromDetail">
|
|
|
+ 去结账
|
|
|
+ </NButton>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</NSpin>
|
|
|
</NModal>
|
|
|
@@ -502,6 +589,7 @@ const orderInfoDetail = ref(null)
|
|
|
const settleType = ref('0')
|
|
|
const settleDiscountRate = ref(100)
|
|
|
const settleDiscountAmount = ref(0)
|
|
|
+const settleDishListExpanded = ref(false) // 菜品清单是否展开
|
|
|
|
|
|
const currentOrderTotal = computed(() => {
|
|
|
return orderedList.value.reduce((total, item) => total + itemTotal(item), 0)
|
|
|
@@ -630,6 +718,8 @@ function loadCurrentOrder(roomId) {
|
|
|
if (res.code === 200) {
|
|
|
const data = res.data || null
|
|
|
currentOrder.value = data
|
|
|
+ // 设置订单状态标志
|
|
|
+ hasCurrentOrder.value = !!data
|
|
|
const detailList = data && data.detailList ? data.detailList : []
|
|
|
const sorted = [...detailList].sort((a, b) => {
|
|
|
const sortA = Number(a.dishSort || 999999)
|
|
|
@@ -818,25 +908,33 @@ function formatPrice(value) {
|
|
|
|
|
|
// ==================== 查看订单 ====================
|
|
|
function goToOrderPage() {
|
|
|
- getCurrentOrder(route.query.roomId).then((res) => {
|
|
|
- if (res.code === 200 && res.data) {
|
|
|
- // 有订单,切换到订单页面模式
|
|
|
- currentOrder.value = res.data
|
|
|
- const detailList = res.data.detailList ? res.data.detailList : []
|
|
|
- const sorted = [...detailList].sort((a, b) => {
|
|
|
- const sortA = Number(a.dishSort || 999999)
|
|
|
- const sortB = Number(b.dishSort || 999999)
|
|
|
- return sortA - sortB
|
|
|
- })
|
|
|
- orderedList.value = sorted.map(item => toOrderedItem(item, item.quantity || 0, 0))
|
|
|
- loadOrderImages()
|
|
|
- viewMode.value = 'order'
|
|
|
+ console.log('[查看订单] roomId:', route.query.roomId)
|
|
|
+ if (!hasCurrentOrder.value) {
|
|
|
+ message.warning('暂无订单')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // 打开订单详情弹窗(类似 H5)
|
|
|
+ orderInfoLoading.value = true
|
|
|
+ orderInfoDetail.value = null
|
|
|
+ orderInfoDialogVisible.value = true
|
|
|
+ getOrderDetail(currentOrder.value.id).then((res) => {
|
|
|
+ console.log('[查看订单] API响应:', res)
|
|
|
+ if (res.code === 200) {
|
|
|
+ orderInfoDetail.value = res.data || null
|
|
|
+ console.log('[查看订单] orderInfoDetail:', orderInfoDetail.value)
|
|
|
+ console.log('[查看订单] detailList:', orderInfoDetail.value?.detailList)
|
|
|
+ console.log('[查看订单] addDishList:', orderInfoDetail.value?.addDishList)
|
|
|
+ console.log('[查看订单] reduceDishList:', orderInfoDetail.value?.reduceDishList)
|
|
|
}
|
|
|
else {
|
|
|
- message.info('暂无订单')
|
|
|
+ console.error('[查看订单] API返回非200:', res)
|
|
|
+ message.error(res.msg || '加载订单详情失败')
|
|
|
}
|
|
|
- }).catch(() => {
|
|
|
- message.error('加载订单失败')
|
|
|
+ orderInfoLoading.value = false
|
|
|
+ }).catch((error) => {
|
|
|
+ console.error('[查看订单] 加载失败:', error)
|
|
|
+ message.error(error?.message || '加载订单详情失败')
|
|
|
+ orderInfoLoading.value = false
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -935,7 +1033,8 @@ function confirmSettle() {
|
|
|
else {
|
|
|
settleInfo.settleType = 'NORMAL'
|
|
|
}
|
|
|
- submitOrderData('CHECKOUT', settleInfo, false)
|
|
|
+ // 后端期望 settleFlag='1' 表示结账
|
|
|
+ submitOrderData('1', settleInfo, false)
|
|
|
}
|
|
|
|
|
|
// ==================== 下单 ====================
|
|
|
@@ -1032,16 +1131,17 @@ function confirmOrderSubmit() {
|
|
|
|
|
|
function submitOrderData(settleFlag, settleInfo = {}, requireChanged = false, orderInfo = {}) {
|
|
|
const changedList = changedDetailList.value
|
|
|
- const detailList = settleFlag === 'CHECKOUT' && changedList.length === 0 ? [] : submitDetailList.value
|
|
|
+ // 后端 settleFlag: '0'=下单/加菜/退菜, '1'=结账, '2'=仅刷新金额
|
|
|
+ const detailList = settleFlag === '1' && changedList.length === 0 ? [] : submitDetailList.value
|
|
|
if (requireChanged && changedList.length === 0) {
|
|
|
message.warning('请先选择菜品')
|
|
|
return
|
|
|
}
|
|
|
- if (settleFlag === 'CHECKOUT' && !hasCurrentOrder.value && changedList.length === 0) {
|
|
|
+ if (settleFlag === '1' && !hasCurrentOrder.value && changedList.length === 0) {
|
|
|
message.warning('请先选择菜品')
|
|
|
return
|
|
|
}
|
|
|
- if (settleFlag !== 'CHECKOUT' && detailList.length === 0) {
|
|
|
+ if (settleFlag !== '1' && detailList.length === 0) {
|
|
|
message.warning('请先选择菜品')
|
|
|
return
|
|
|
}
|
|
|
@@ -1059,14 +1159,25 @@ function submitOrderData(settleFlag, settleInfo = {}, requireChanged = false, or
|
|
|
submitting.value = false
|
|
|
settleDialogVisible.value = false
|
|
|
confirmOrderDialogVisible.value = false
|
|
|
- // 刷新房间信息,但不加载订单数据,保持点菜界面
|
|
|
- loadRoom(route.query.roomId)
|
|
|
- // 清空已选菜品列表,回到初始点菜状态
|
|
|
- orderedList.value = []
|
|
|
- dishSearchName.value = ''
|
|
|
- activeTypeId.value = 'all'
|
|
|
- loadCategoryList()
|
|
|
- loadDishList()
|
|
|
+
|
|
|
+ // 如果是结账操作(settleFlag='1'),完成后自动返回订单列表页
|
|
|
+ if (settleFlag === '1') {
|
|
|
+ // 延迟返回,确保 toast 显示完毕
|
|
|
+ setTimeout(() => {
|
|
|
+ backRoomList()
|
|
|
+ }, 500)
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ // 非结账操作(下单/加菜),刷新房间信息和当前订单
|
|
|
+ loadRoom(route.query.roomId)
|
|
|
+ loadCurrentOrder(route.query.roomId)
|
|
|
+ // 清空本轮新增的菜品列表(changedDetailList),但保留 orderedList(已点菜品)
|
|
|
+ changedDetailList.value = []
|
|
|
+ dishSearchName.value = ''
|
|
|
+ activeTypeId.value = 'all'
|
|
|
+ loadCategoryList()
|
|
|
+ loadDishList()
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
message.error(res.msg || '操作失败')
|
|
|
@@ -1128,6 +1239,17 @@ function viewCurrentOrder() {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+// 从订单详情弹窗跳转到结账
|
|
|
+function goToSettleFromDetail() {
|
|
|
+ orderInfoDialogVisible.value = false
|
|
|
+ // 确保有当前订单状态(从订单详情跳转到结账)
|
|
|
+ hasCurrentOrder.value = true
|
|
|
+ // 延迟打开结账弹窗,确保详情弹窗已关闭
|
|
|
+ setTimeout(() => {
|
|
|
+ openSettleDialog()
|
|
|
+ }, 100)
|
|
|
+}
|
|
|
+
|
|
|
const orderStatusTagTypeMap = {
|
|
|
ORDERING: 'warning',
|
|
|
CHECKED_OUT: 'success',
|
|
|
@@ -1978,72 +2100,197 @@ onBeforeUnmount(() => {
|
|
|
color: #909399;
|
|
|
}
|
|
|
|
|
|
-/* ==================== 订单详情弹窗 ==================== */
|
|
|
+/* ==================== 订单详情弹窗(类似 H5) ==================== */
|
|
|
+.order-info-content {
|
|
|
+ max-height: 60vh;
|
|
|
+ overflow-y: auto;
|
|
|
+}
|
|
|
+
|
|
|
.order-info-header {
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
+ flex-direction: column;
|
|
|
gap: 12px;
|
|
|
- padding: 12px 16px;
|
|
|
+ padding: 16px;
|
|
|
background: #f8f9fa;
|
|
|
- border-radius: 6px;
|
|
|
- margin-bottom: 16px;
|
|
|
+ border-radius: 8px;
|
|
|
+ margin-bottom: 20px;
|
|
|
}
|
|
|
|
|
|
-.order-info-no {
|
|
|
- font-size: 13px;
|
|
|
- color: #909399;
|
|
|
+.info-row {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+
|
|
|
+.info-row .label {
|
|
|
+ color: #888;
|
|
|
+ min-width: 80px;
|
|
|
+}
|
|
|
+
|
|
|
+.info-row .value {
|
|
|
+ color: #333;
|
|
|
+ font-weight: 500;
|
|
|
+ text-align: right;
|
|
|
}
|
|
|
|
|
|
-.order-info-total {
|
|
|
- margin-left: auto;
|
|
|
+.info-row .value.amount {
|
|
|
+ color: #ea580c;
|
|
|
+ font-weight: 700;
|
|
|
font-size: 16px;
|
|
|
- font-weight: 600;
|
|
|
- color: #f56c6c;
|
|
|
}
|
|
|
|
|
|
-.order-info-items {
|
|
|
+.order-info-section {
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.section-title {
|
|
|
+ font-size: 15px;
|
|
|
+ font-weight: 700;
|
|
|
+ color: #222;
|
|
|
+ padding-bottom: 8px;
|
|
|
+ border-bottom: 2px solid #ea580c;
|
|
|
+ margin-bottom: 12px;
|
|
|
+}
|
|
|
+
|
|
|
+.section-title.add-title {
|
|
|
+ border-bottom-color: #2563eb;
|
|
|
+}
|
|
|
+
|
|
|
+.section-title.reduce-title {
|
|
|
+ border-bottom-color: #ef4444;
|
|
|
+}
|
|
|
+
|
|
|
+.dish-list {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
gap: 8px;
|
|
|
- max-height: 300px;
|
|
|
- overflow-y: auto;
|
|
|
}
|
|
|
|
|
|
-.order-info-item {
|
|
|
+.dish-item {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- gap: 8px;
|
|
|
- padding: 8px 12px;
|
|
|
+ padding: 10px 12px;
|
|
|
background: #fafafa;
|
|
|
- border-radius: 4px;
|
|
|
-}
|
|
|
-
|
|
|
-.order-info-item-index {
|
|
|
- font-size: 12px;
|
|
|
- color: #909399;
|
|
|
+ border-radius: 6px;
|
|
|
}
|
|
|
|
|
|
-.order-info-item-name {
|
|
|
+.dish-item .dish-name {
|
|
|
flex: 1;
|
|
|
font-size: 14px;
|
|
|
- color: #303133;
|
|
|
+ color: #333;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
-.order-info-item-qty {
|
|
|
+.dish-item .dish-qty {
|
|
|
font-size: 13px;
|
|
|
- color: #606266;
|
|
|
+ color: #999;
|
|
|
+ margin: 0 12px;
|
|
|
+ min-width: 40px;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
|
|
|
-.order-info-item-price {
|
|
|
+.dish-item .dish-price {
|
|
|
font-size: 14px;
|
|
|
font-weight: 600;
|
|
|
- color: #f56c6c;
|
|
|
+ color: #ea580c;
|
|
|
+ min-width: 100px;
|
|
|
+ text-align: right;
|
|
|
+}
|
|
|
+
|
|
|
+.dish-item .reduce-price {
|
|
|
+ color: #ef4444;
|
|
|
}
|
|
|
|
|
|
.order-info-empty {
|
|
|
text-align: center;
|
|
|
color: #999;
|
|
|
padding: 40px 0;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-info-footer {
|
|
|
+ margin-top: 20px;
|
|
|
+ padding-top: 16px;
|
|
|
+ border-top: 1px solid #eee;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+}
|
|
|
+
|
|
|
+/* ==================== 结账弹窗菜品清单 ==================== */
|
|
|
+.settle-dish-list-wrap {
|
|
|
+ border: 1px solid #e0e0e0;
|
|
|
+ border-radius: 8px;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
+
|
|
|
+.settle-dish-list-header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 12px 16px;
|
|
|
+ background: #f5f7fa;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: background 0.2s;
|
|
|
+}
|
|
|
+
|
|
|
+.settle-dish-list-header:hover {
|
|
|
+ background: #ebeef5;
|
|
|
+}
|
|
|
+
|
|
|
+.header-title {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #333;
|
|
|
+}
|
|
|
+
|
|
|
+.header-toggle {
|
|
|
+ font-size: 13px;
|
|
|
+ color: #409eff;
|
|
|
+}
|
|
|
+
|
|
|
+.settle-dish-list-body {
|
|
|
+ max-height: 240px;
|
|
|
+ overflow-y: auto;
|
|
|
+ border-top: 1px solid #e0e0e0;
|
|
|
+}
|
|
|
+
|
|
|
+.settle-dish-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 10px 16px;
|
|
|
+ border-bottom: 1px solid #f0f0f0;
|
|
|
+}
|
|
|
+
|
|
|
+.settle-dish-item:last-child {
|
|
|
+ border-bottom: none;
|
|
|
+}
|
|
|
+
|
|
|
+.settle-dish-item .dish-name {
|
|
|
+ flex: 1;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #333;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
+
|
|
|
+.settle-dish-item .dish-qty {
|
|
|
+ font-size: 13px;
|
|
|
+ color: #999;
|
|
|
+ margin: 0 12px;
|
|
|
+ min-width: 40px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.settle-dish-item .dish-price {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #ea580c;
|
|
|
+ min-width: 100px;
|
|
|
+ text-align: right;
|
|
|
}
|
|
|
|
|
|
/* ==================== 响应式 ==================== */
|