diff --git a/layouts/module/header/HeaderCart.vue b/layouts/module/header/HeaderCart.vue
index 3d697c2..4c18552 100644
--- a/layouts/module/header/HeaderCart.vue
+++ b/layouts/module/header/HeaderCart.vue
@@ -17,7 +17,7 @@
{{ cartCount }}
diff --git a/layouts/module/header/HeaderInfoBar.vue b/layouts/module/header/HeaderInfoBar.vue
index ea3caf4..5c24306 100644
--- a/layouts/module/header/HeaderInfoBar.vue
+++ b/layouts/module/header/HeaderInfoBar.vue
@@ -52,7 +52,11 @@
>
消息
-
@@ -244,16 +248,18 @@ export default {
}
}
.wrap-content-message__tip {
- min-width: 14px;
+ width: 14px;
height: 14px;
- padding: 0 3px;
- line-height: 14px;
font-size: 10px;
color: #ffffff;
- text-align: center;
background: #ff512b;
border-radius: 50%;
margin-left: 4px;
+ &--more {
+ width: unset;
+ padding: 0 3px;
+ border-radius: 7px;
+ }
}
.header-wrap-content--line {
width: 1px;
diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue
index c63409a..2706262 100644
--- a/layouts/module/header/index.vue
+++ b/layouts/module/header/index.vue
@@ -32,7 +32,13 @@
/>
0) {
const formatRecords = records.map((item) => {
const goods = item.products || [{ productImageUrl: "" }];
- const logisticsList = item.logistics.logisticsDataList || [
- { context: "暂无物流信息" },
- ];
+ const logisticsList = item.logistics.logisticsDataList || [];
return {
...item,
cover: goods[0].productImageUrl, // 订单封面
- logisticsContext: logisticsList[0].context, // 物流详细信息
+ logisticsContext:
+ (logisticsList.length > 0 && logisticsList[0].context) ||
+ "暂无物流信息", // 物流详细信息
};
});
this.list = this.list.concat(formatRecords);