Skip to content

Commit 34542ca

Browse files
author
puhui999
committed
【优化】客服订单卡片样式优化
1 parent 416df14 commit 34542ca

File tree

2 files changed

+17
-52
lines changed

2 files changed

+17
-52
lines changed

src/views/mall/promotion/kefu/components/message/OrderMessageItem.vue

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div :key="getMessageContent.id" class="order-list-card-box mt-14px">
1414
<div class="order-card-header flex items-center justify-between p-x-20px">
1515
<div class="order-no">订单号:{{ getMessageContent.no }}</div>
16-
<div :class="formatOrderColor(getMessageContent)" class="order-state font-26">
16+
<div :class="formatOrderColor(getMessageContent)" class="order-state font-16">
1717
{{ formatOrderStatus(getMessageContent) }}
1818
</div>
1919
</div>
@@ -26,7 +26,7 @@
2626
:title="item.spuName"
2727
/>
2828
</div>
29-
<div class="pay-box mt-30px flex justify-end pr-20px">
29+
<div class="pay-box flex justify-end pr-20px">
3030
<div class="flex items-center">
3131
<div class="discounts-title pay-color"
3232
>共 {{ getMessageContent?.productCount }} 件商品,总金额:
@@ -108,23 +108,23 @@ function formatOrderStatus(order: any) {
108108
background-color: #e2e2e2;
109109
110110
.order-card-header {
111-
height: 80px;
111+
height: 28px;
112112
113113
.order-no {
114-
font-size: 26px;
114+
font-size: 16px;
115115
font-weight: 500;
116116
}
117117
}
118118
119119
.pay-box {
120120
.discounts-title {
121-
font-size: 24px;
121+
font-size: 16px;
122122
line-height: normal;
123123
color: #999999;
124124
}
125125
126126
.discounts-money {
127-
font-size: 24px;
127+
font-size: 16px;
128128
line-height: normal;
129129
color: #999;
130130
font-family: OPPOSANS;
@@ -134,34 +134,6 @@ function formatOrderStatus(order: any) {
134134
color: #333;
135135
}
136136
}
137-
138-
.order-card-footer {
139-
height: 100px;
140-
141-
.more-item-box {
142-
padding: 20px;
143-
144-
.more-item {
145-
height: 60px;
146-
147-
.title {
148-
font-size: 26px;
149-
}
150-
}
151-
}
152-
153-
.more-btn {
154-
color: #999999;
155-
font-size: 24px;
156-
}
157-
158-
.content {
159-
width: 154px;
160-
color: #333333;
161-
font-size: 26px;
162-
font-weight: 500;
163-
}
164-
}
165137
}
166138
167139
.warning-color {

src/views/mall/promotion/kefu/components/message/ProductItem.vue

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -110,33 +110,26 @@ const skuString = computed(() => {
110110
</script>
111111

112112
<style lang="scss" scoped>
113-
.score-img {
114-
width: 36px;
115-
height: 36px;
116-
margin: 0 4px;
117-
}
118-
119113
.ss-order-card-warp {
114+
max-width: 60%;
120115
padding: 20px;
121116
border-radius: 10px;
122117
background-color: #e2e2e2;
123118
124119
.img-box {
125-
width: 164px;
126-
height: 164px;
120+
width: 80px;
121+
height: 80px;
127122
border-radius: 10px;
128123
overflow: hidden;
129124
130125
.order-img {
131-
width: 164px;
132-
height: 164px;
126+
width: 80px;
127+
height: 80px;
133128
}
134129
}
135130
136131
.box-right {
137132
flex: 1;
138-
// width: 500px;
139-
// height: 164px;
140133
position: relative;
141134
142135
.tool-box {
@@ -147,13 +140,13 @@ const skuString = computed(() => {
147140
}
148141
149142
.title-text {
150-
font-size: 28px;
143+
font-size: 16px;
151144
font-weight: 500;
152-
line-height: 40px;
145+
line-height: 20px;
153146
}
154147
155148
.spec-text {
156-
font-size: 24px;
149+
font-size: 16px;
157150
font-weight: 400;
158151
color: #999999;
159152
min-width: 0;
@@ -165,15 +158,15 @@ const skuString = computed(() => {
165158
}
166159
167160
.price-text {
168-
font-size: 24px;
161+
font-size: 16px;
169162
font-weight: 500;
170163
font-family: OPPOSANS;
171164
}
172165
173166
.total-text {
174-
font-size: 24px;
167+
font-size: 16px;
175168
font-weight: 400;
176-
line-height: 24px;
169+
line-height: 16px;
177170
color: #999999;
178171
margin-left: 8px;
179172
}

0 commit comments

Comments
 (0)