2023-08-19 18:16:13 +00:00
|
|
|
|
<template>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<ContentWrap>
|
|
|
|
|
<!-- 订单信息 -->
|
|
|
|
|
<el-descriptions title="订单信息">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<el-descriptions-item label="订单号: ">{{ formData.no }}</el-descriptions-item>
|
2023-08-22 09:36:47 +00:00
|
|
|
|
<el-descriptions-item label="配送方式: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<dict-tag :type="DICT_TYPE.TRADE_DELIVERY_TYPE" :value="formData.deliveryType!" />
|
2023-08-22 09:36:47 +00:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<!-- TODO 营销活动待实现 -->
|
|
|
|
|
<el-descriptions-item label="营销活动: ">秒杀活动</el-descriptions-item>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<el-descriptions-item label="订单类型: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<dict-tag :type="DICT_TYPE.TRADE_ORDER_TYPE" :value="formData.type!" />
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<el-descriptions-item label="收货人: ">{{ formData.receiverName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="买家留言: ">{{ formData.userRemark }}</el-descriptions-item>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<el-descriptions-item label="订单来源: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<dict-tag :type="DICT_TYPE.TERMINAL" :value="formData.terminal!" />
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<el-descriptions-item label="联系电话: ">{{ formData.receiverMobile }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="商家备注: ">{{ formData.remark }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="支付单号: ">{{ formData.payOrderId }}</el-descriptions-item>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<el-descriptions-item label="付款方式: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<dict-tag :type="DICT_TYPE.PAY_CHANNEL_CODE" :value="formData.payChannelCode!" />
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<!-- <el-descriptions-item label="买家: ">{{ formData.user.nickname }}</el-descriptions-item> -->
|
2023-09-01 12:03:08 +00:00
|
|
|
|
<!-- TODO @puhui999:待实现:跳转会员 -->
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<el-descriptions-item label="收货地址: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
{{ formData.receiverAreaName }} {{ formData.receiverDetailAddress }}
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<el-link
|
2023-09-01 04:04:33 +00:00
|
|
|
|
v-clipboard:copy="formData.receiverAreaName + ' ' + formData.receiverDetailAddress"
|
2023-08-21 14:39:21 +00:00
|
|
|
|
v-clipboard:success="clipboardSuccess"
|
|
|
|
|
icon="ep:document-copy"
|
|
|
|
|
type="primary"
|
|
|
|
|
/>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
|
<!-- 订单状态 -->
|
|
|
|
|
<el-descriptions :column="1" title="订单状态">
|
|
|
|
|
<el-descriptions-item label="订单状态: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<dict-tag :type="DICT_TYPE.TRADE_ORDER_STATUS" :value="formData.status!" />
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label-class-name="no-colon">
|
2023-09-06 03:23:16 +00:00
|
|
|
|
<el-button v-if="formData.status! === 0" type="primary" @click="updatePrice">
|
|
|
|
|
调整价格
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button type="primary" @click="remark">备注</el-button>
|
|
|
|
|
<el-button v-if="formData.status! === 10" type="primary" @click="delivery">
|
|
|
|
|
发货
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button v-if="formData.status! === 10" type="primary" @click="updateAddress">
|
|
|
|
|
修改地址
|
|
|
|
|
</el-button>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label><span style="color: red">提醒: </span></template>
|
|
|
|
|
买家付款成功后,货款将直接进入您的商户号(微信、支付宝)<br />
|
|
|
|
|
请及时关注你发出的包裹状态,确保可以配送至买家手中 <br />
|
|
|
|
|
如果买家表示没收到货或货物有问题,请及时联系买家处理,友好协商
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
2023-08-19 18:16:13 +00:00
|
|
|
|
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<!-- 商品信息 -->
|
|
|
|
|
<el-descriptions title="商品信息">
|
|
|
|
|
<el-descriptions-item labelClassName="no-colon">
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="15">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<el-table :data="formData.items" border>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<el-table-column label="商品" prop="spuName" width="auto">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
{{ row.spuName }}
|
|
|
|
|
<el-tag v-for="property in row.properties" :key="property.propertyId">
|
|
|
|
|
{{ property.propertyName }}: {{ property.valueName }}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2023-08-23 07:04:46 +00:00
|
|
|
|
<el-table-column label="商品原价" prop="price" width="150">
|
|
|
|
|
<template #default="{ row }">{{ floatToFixed2(row.price) }}元</template>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="数量" prop="count" width="100" />
|
2023-08-23 07:04:46 +00:00
|
|
|
|
<el-table-column label="合计" prop="payPrice" width="150">
|
|
|
|
|
<template #default="{ row }">{{ floatToFixed2(row.payPrice) }}元</template>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="售后状态" prop="afterSaleStatus" width="120">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:type="DICT_TYPE.TRADE_ORDER_ITEM_AFTER_SALE_STATUS"
|
|
|
|
|
:value="row.afterSaleStatus"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10" />
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-descriptions :column="6">
|
|
|
|
|
<el-descriptions-item label="商品总额: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
{{ floatToFixed2(formData.totalPrice!) }}元
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="运费金额: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
{{ floatToFixed2(formData.deliveryPrice!) }}元
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="订单调价: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
{{ floatToFixed2(formData.adjustPrice!) }}元
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
2023-08-19 18:16:13 +00:00
|
|
|
|
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label><span style="color: red">商品优惠: </span></template>
|
2023-09-01 04:04:33 +00:00
|
|
|
|
{{ floatToFixed2(formData.couponPrice!) }}元
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label><span style="color: red">订单优惠: </span></template>
|
2023-09-01 04:04:33 +00:00
|
|
|
|
{{ floatToFixed2(formData.discountPrice!) }}元
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item>
|
|
|
|
|
<template #label><span style="color: red">积分抵扣: </span></template>
|
2023-09-01 04:04:33 +00:00
|
|
|
|
{{ floatToFixed2(formData.pointPrice!) }}元
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
2023-08-19 18:16:13 +00:00
|
|
|
|
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<el-descriptions-item v-for="item in 5" :key="item" label-class-name="no-colon" />
|
|
|
|
|
<!-- 占位 -->
|
|
|
|
|
<el-descriptions-item label="应付金额: ">
|
2023-09-01 04:04:33 +00:00
|
|
|
|
{{ floatToFixed2(formData.payPrice!) }}元
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
2023-08-19 18:16:13 +00:00
|
|
|
|
|
2023-08-21 14:39:21 +00:00
|
|
|
|
<!-- TODO 芋艿:需要改改 -->
|
2023-09-01 04:04:33 +00:00
|
|
|
|
<el-descriptions :column="4" title="物流信息">
|
|
|
|
|
<el-descriptions-item label="物流公司: ">
|
|
|
|
|
{{ deliveryExpressList.find((item) => item.id === formData.logisticsId)?.name }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="运单号: ">{{ formData.logisticsNo }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="发货时间: ">
|
|
|
|
|
{{ formatDate(formData.deliveryTime!) }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="物流状态: ">
|
|
|
|
|
<!-- TODO 物流状态怎么获取? -->
|
|
|
|
|
<dict-tag :type="DICT_TYPE.TRADE_ORDER_STATUS" :value="formData.deliveryStatus!" />
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<!-- 占位 4 -->
|
|
|
|
|
<el-descriptions-item v-for="item in 4" :key="item" label-class-name="no-colon" />
|
|
|
|
|
<el-descriptions-item label="物流详情: ">
|
|
|
|
|
<el-timeline>
|
|
|
|
|
<el-timeline-item
|
|
|
|
|
v-for="(express, index) in expressTrackList"
|
|
|
|
|
:key="index"
|
|
|
|
|
:timestamp="formatDate(express.time)"
|
|
|
|
|
>
|
|
|
|
|
{{ express.content }}
|
|
|
|
|
</el-timeline-item>
|
|
|
|
|
</el-timeline>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-descriptions title="订单操作日志">
|
|
|
|
|
<el-descriptions-item labelClassName="no-colon">
|
|
|
|
|
<el-timeline>
|
|
|
|
|
<el-timeline-item
|
2023-09-06 03:23:16 +00:00
|
|
|
|
v-for="(log, index) in formData.logs"
|
2023-09-01 04:04:33 +00:00
|
|
|
|
:key="index"
|
|
|
|
|
:timestamp="formatDate(log.createTime!)"
|
2023-09-02 17:44:22 +00:00
|
|
|
|
placement="top"
|
2023-09-01 04:04:33 +00:00
|
|
|
|
>
|
2023-09-02 17:44:22 +00:00
|
|
|
|
<div class="el-timeline-right-content">
|
|
|
|
|
{{ log.content }}
|
|
|
|
|
</div>
|
|
|
|
|
<template #dot>
|
2023-09-06 03:23:16 +00:00
|
|
|
|
<span
|
2023-09-08 17:44:08 +00:00
|
|
|
|
:style="{ backgroundColor: getUserTypeColor(log.userType!) }"
|
2023-09-06 03:23:16 +00:00
|
|
|
|
class="dot-node-style"
|
|
|
|
|
>
|
2023-09-02 17:44:22 +00:00
|
|
|
|
{{ getDictLabel(DICT_TYPE.USER_TYPE, log.userType)[0] }}
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
2023-09-01 04:04:33 +00:00
|
|
|
|
</el-timeline-item>
|
|
|
|
|
</el-timeline>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
</ContentWrap>
|
2023-08-22 16:43:40 +00:00
|
|
|
|
|
|
|
|
|
<!-- 各种操作的弹窗 -->
|
2023-08-23 07:04:46 +00:00
|
|
|
|
<OrderDeliveryForm ref="deliveryFormRef" @success="getDetail" />
|
|
|
|
|
<OrderUpdateRemarkForm ref="updateRemarkForm" @success="getDetail" />
|
|
|
|
|
<OrderUpdateAddressForm ref="updateAddressFormRef" @success="getDetail" />
|
|
|
|
|
<OrderUpdatePriceForm ref="updatePriceFormRef" @success="getDetail" />
|
2023-08-19 18:16:13 +00:00
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
2023-08-21 14:39:21 +00:00
|
|
|
|
import * as TradeOrderApi from '@/api/mall/trade/order'
|
2023-08-23 07:04:46 +00:00
|
|
|
|
import { floatToFixed2 } from '@/utils'
|
2023-09-01 04:04:33 +00:00
|
|
|
|
import { formatDate } from '@/utils/formatTime'
|
2023-09-02 17:44:22 +00:00
|
|
|
|
import { DICT_TYPE, getDictLabel, getDictObj } from '@/utils/dict'
|
2023-08-31 07:39:13 +00:00
|
|
|
|
import OrderUpdateRemarkForm from '@/views/mall/trade/order/form/OrderUpdateRemarkForm.vue'
|
|
|
|
|
import OrderDeliveryForm from '@/views/mall/trade/order/form/OrderDeliveryForm.vue'
|
|
|
|
|
import OrderUpdateAddressForm from '@/views/mall/trade/order/form/OrderUpdateAddressForm.vue'
|
|
|
|
|
import OrderUpdatePriceForm from '@/views/mall/trade/order/form/OrderUpdatePriceForm.vue'
|
2023-09-01 04:04:33 +00:00
|
|
|
|
import * as DeliveryExpressApi from '@/api/mall/trade/delivery/express'
|
2023-09-07 17:01:50 +00:00
|
|
|
|
import { useTagsViewStore } from '@/store/modules/tagsView'
|
2023-08-19 18:16:13 +00:00
|
|
|
|
|
2023-09-01 12:03:08 +00:00
|
|
|
|
defineOptions({ name: 'TradeOrderDetail' })
|
2023-08-19 18:16:13 +00:00
|
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗
|
2023-09-01 12:03:08 +00:00
|
|
|
|
|
2023-09-08 17:44:08 +00:00
|
|
|
|
/** 获得 userType 颜色 */
|
|
|
|
|
const getUserTypeColor = (type: number) => {
|
2023-09-02 17:44:22 +00:00
|
|
|
|
const dict = getDictObj(DICT_TYPE.USER_TYPE, type)
|
|
|
|
|
switch (dict?.colorType) {
|
|
|
|
|
case 'success':
|
|
|
|
|
return '#67C23A'
|
|
|
|
|
case 'info':
|
|
|
|
|
return '#909399'
|
|
|
|
|
case 'warning':
|
|
|
|
|
return '#E6A23C'
|
|
|
|
|
case 'danger':
|
|
|
|
|
return '#F56C6C'
|
|
|
|
|
}
|
|
|
|
|
return '#409EFF'
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-01 04:04:33 +00:00
|
|
|
|
// 订单详情
|
|
|
|
|
const formData = ref<TradeOrderApi.OrderVO>({
|
2023-09-06 03:23:16 +00:00
|
|
|
|
logs: []
|
2023-08-19 18:16:13 +00:00
|
|
|
|
})
|
2023-08-21 14:39:21 +00:00
|
|
|
|
|
2023-09-08 17:44:08 +00:00
|
|
|
|
/** 各种操作 */
|
2023-08-23 07:04:46 +00:00
|
|
|
|
const updateRemarkForm = ref() // 订单备注表单 Ref
|
2023-09-06 03:23:16 +00:00
|
|
|
|
const remark = () => {
|
|
|
|
|
updateRemarkForm.value?.open(formData.value)
|
|
|
|
|
}
|
2023-09-08 17:44:08 +00:00
|
|
|
|
const deliveryFormRef = ref() // 发货表单 Ref
|
2023-09-06 03:23:16 +00:00
|
|
|
|
const delivery = () => {
|
|
|
|
|
deliveryFormRef.value?.open(formData.value)
|
|
|
|
|
}
|
2023-09-08 17:44:08 +00:00
|
|
|
|
const updateAddressFormRef = ref() // 收货地址表单 Ref
|
2023-09-06 03:23:16 +00:00
|
|
|
|
const updateAddress = () => {
|
|
|
|
|
updateAddressFormRef.value?.open(formData.value)
|
|
|
|
|
}
|
2023-09-08 17:44:08 +00:00
|
|
|
|
const updatePriceFormRef = ref() // 订单调价表单 Ref
|
2023-09-06 03:23:16 +00:00
|
|
|
|
const updatePrice = () => {
|
|
|
|
|
updatePriceFormRef.value?.open(formData.value)
|
2023-08-21 16:38:44 +00:00
|
|
|
|
}
|
2023-09-08 17:44:08 +00:00
|
|
|
|
|
2023-08-21 14:39:21 +00:00
|
|
|
|
/** 获得详情 */
|
2023-09-01 12:03:08 +00:00
|
|
|
|
const { params } = useRoute() // 查询参数
|
2023-08-21 14:39:21 +00:00
|
|
|
|
const getDetail = async () => {
|
|
|
|
|
const id = params.orderId as unknown as number
|
|
|
|
|
if (id) {
|
|
|
|
|
const res = (await TradeOrderApi.getOrder(id)) as TradeOrderApi.OrderVO
|
2023-09-07 17:01:50 +00:00
|
|
|
|
// 没有表单信息则关闭页面返回
|
|
|
|
|
if (res === null) {
|
|
|
|
|
close()
|
|
|
|
|
}
|
2023-09-01 04:04:33 +00:00
|
|
|
|
formData.value = res
|
2023-08-21 14:39:21 +00:00
|
|
|
|
}
|
2023-08-19 18:16:13 +00:00
|
|
|
|
}
|
2023-09-08 17:44:08 +00:00
|
|
|
|
|
|
|
|
|
/** 关闭 tag */
|
2023-09-07 17:01:50 +00:00
|
|
|
|
const { delView } = useTagsViewStore() // 视图操作
|
|
|
|
|
const { push, currentRoute } = useRouter() // 路由
|
|
|
|
|
const close = () => {
|
|
|
|
|
delView(unref(currentRoute))
|
|
|
|
|
push({ name: 'TradeAfterSale' })
|
|
|
|
|
}
|
2023-09-08 17:44:08 +00:00
|
|
|
|
|
2023-09-01 12:03:08 +00:00
|
|
|
|
/** 复制 */
|
|
|
|
|
const clipboardSuccess = () => {
|
|
|
|
|
message.success('复制成功')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 初始化 **/
|
2023-09-01 04:04:33 +00:00
|
|
|
|
const deliveryExpressList = ref([]) // 物流公司
|
|
|
|
|
const expressTrackList = ref([]) // 物流详情
|
2023-08-19 18:16:13 +00:00
|
|
|
|
onMounted(async () => {
|
2023-08-21 14:39:21 +00:00
|
|
|
|
await getDetail()
|
2023-09-01 04:04:33 +00:00
|
|
|
|
deliveryExpressList.value = await DeliveryExpressApi.getSimpleDeliveryExpressList()
|
|
|
|
|
expressTrackList.value = await TradeOrderApi.getExpressTrackList(formData.value.id!)
|
2023-08-19 18:16:13 +00:00
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
:deep(.el-descriptions) {
|
|
|
|
|
&:not(:nth-child(1)) {
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-descriptions__title {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 3px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
background-color: #409eff;
|
|
|
|
|
content: '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-descriptions-item__container {
|
|
|
|
|
margin: 0 10px;
|
|
|
|
|
|
|
|
|
|
.no-colon {
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
content: '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-09-02 17:44:22 +00:00
|
|
|
|
|
|
|
|
|
// 时间线样式调整
|
|
|
|
|
:deep(.el-timeline) {
|
|
|
|
|
margin: 10px 0px 0px 160px;
|
|
|
|
|
|
|
|
|
|
.el-timeline-item__wrapper {
|
|
|
|
|
position: relative;
|
|
|
|
|
top: -20px;
|
|
|
|
|
|
|
|
|
|
.el-timeline-item__timestamp {
|
|
|
|
|
position: absolute !important;
|
|
|
|
|
top: 10px;
|
|
|
|
|
left: -150px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-timeline-right-content {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
min-height: 30px;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
background-color: #f7f8fa;
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
content: ''; /* 必须设置 content 属性 */
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
|
|
|
|
left: 13px; /* 将伪元素水平居中 */
|
|
|
|
|
border-width: 8px; /* 调整尖角大小 */
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-color: transparent #f7f8fa transparent transparent; /* 尖角颜色,左侧朝向 */
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dot-node-style {
|
|
|
|
|
width: 20px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: -5px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-19 18:16:13 +00:00
|
|
|
|
</style>
|