Commit 07b0b3b9 by cen

fix: 样式

1 parent fce25c1e
......@@ -20,7 +20,7 @@
<view>
<view class="goods-list" :style="{ paddingBottom: orderCardDetail.subOrderList && orderCardDetail.subOrderList.length < 1 ? '0' : '' }" v-if="orderCardDetail.subOrderList && orderCardDetail.subOrderList.length > 0">
<view>
<view v-for="(i, sindex) in orderCardDetail.subOrderList" :key="sindex" class="goods flex justify-between" v-if="orderCardDetail.showAllGoodsListFlag ? true : sindex < 2">
<view v-for="(i, sindex) in orderCardDetail.subOrderList" :key="sindex" class="goods flex justify-between" :class="{ 'no-margin': orderCardDetail.subOrderList.length === 1 }" v-if="orderCardDetail.showAllGoodsListFlag ? true : sindex < 2">
<view class="goods-name text-hide flex">
<view class="point"></view>
{{ i.upgradeGoodsAlias || i.upgradeGoodsName || i.packageName || '' }}
......@@ -524,7 +524,10 @@ export default {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
padding-top: toRpx(12);
margin-bottom: toRpx(16);
&.no-margin {
margin-bottom: 0;
}
.goods-name {
.point {
width: toRpx(12);
......
......@@ -57,7 +57,7 @@
<text class="good-name">商品名称:{{ replaceItemText(item.upgradeGoodsName) || '' }}</text>
<text class="good-price">¥{{ item.price }}</text>
</view>
<view class="flex justify-between align-center mt-12">
<view class="flex justify-between align-center mt-20">
<text class="good-alias">商品别名:{{ replaceItemText(item.upgradeGoodsAlias) || '' }}</text>
</view>
<view class="flex align-center pt-12">
......@@ -79,7 +79,7 @@
</view>
</view>
<!-- 工单信息 -->
<view class="box-shell">
<view class="box-shell pt-32">
<view class="box-shell-title">工单信息</view>
<view class="order-info pt-16">
<view v-for="(item, index) in orderObj" :key="index" class="flex align-center pt-16">
......@@ -130,7 +130,7 @@
<view class="box-shell">
<view class="box-shell-title">客户信息</view>
<view class="order-info pt-16">
<view class="flex align-center pt-16" v-for="(item, index) in customerObj" :key="index">
<view class="flex align-center pt-20" v-for="(item, index) in customerObj" :key="index">
<view class="label">{{ item.label }}</view>
<view class="value" :style="{ color: item.color || '#333' }">
<view v-if="item.arr">
......@@ -166,7 +166,7 @@
<view class="box">
<view class="box-shell-title">{{ orderInfo.selectPayType == 0 ? '客服' : '质保信息' }}</view>
<view class="warranty-list" v-for="(item, index) in warrantyCardList" :key="index">
<view class="warranty flex align-center justify-between pt-8">
<view class="warranty flex align-center justify-between pt-20">
<view class="flex align-center">
<view class="label">质保产品</view>
<view class="value">{{ replaceItemText(item.goodsName) }}</view>
......@@ -176,11 +176,11 @@
质保价格
</view>
</view>
<view class="warranty flex align-center pt-8">
<view class="warranty flex align-center pt-20">
<view class="label">质保期</view>
<view class="value">{{ item.warrantyPeriod }}</view>
</view>
<view class="warranty flex align-start pt-8">
<view class="warranty flex align-start pt-20">
<view class="label">质保编码</view>
<view class="codeImg-box">
<image v-if="item.barCodeUrl" :src="item.barCodeUrl" class="barCodeImg" />
......@@ -190,7 +190,7 @@
</view>
<view class="warranty-list">
<view class="warranty flex align-start pt-8">
<view class="warranty flex align-start pt-20">
<view class="label">{{ orderInfo.selectPayType == 0 ? '客服号' : '质保查询' }}</view>
<view class="value">
<view class="warranty-tips" v-if="warrantyCardVisible">
......@@ -766,6 +766,9 @@ export default {
.pt-16 {
padding-top: toRpx(16);
}
.pt-20 {
padding-top: toRpx(20);
}
.pt-12 {
padding-top: toRpx(12);
}
......@@ -799,6 +802,9 @@ export default {
.mt-12 {
margin-top: toRpx(12);
}
.mt-20 {
margin-top: toRpx(20);
}
.my-16 {
margin: toRpx(16) 0;
}
......@@ -808,6 +814,9 @@ export default {
.py-16 {
padding: toRpx(16) 0;
}
.pt-32 {
padding-top: toRpx(32) !important;
}
.date-box {
display: flex;
align-items: center;
......@@ -932,7 +941,7 @@ export default {
font-size: toRpx(28);
border-radius: toRpx(24);
background: #f5f7fa;
padding: toRpx(24);
padding: toRpx(30) toRpx(24) toRpx(24) toRpx(24);
margin-bottom: toRpx(16);
.good-name {
font-weight: 400;
......
......@@ -522,7 +522,8 @@ export default {
}
.search-box {
padding: toRpx(40) toRpx(48) toRpx(24);
padding: toRpx(40) toRpx(48) toRpx(0);
margin-bottom: toRpx(24);
position: relative;
&::after {
content: '';
......@@ -590,11 +591,10 @@ export default {
.tab-container {
display: flex;
// justify-content: start;
padding: toRpx(0) toRpx(48) toRpx(24);
height: toRpx(80);
margin-bottom: toRpx(20);
padding: toRpx(0) toRpx(48);
margin-bottom: toRpx(24);
.filter-item {
width: toRpx(164);
// width: toRpx(164);
height: toRpx(72);
border-radius: toRpx(16);
background: #fff;
......@@ -602,14 +602,16 @@ export default {
color: #333333;
font-size: toRpx(28);
font-weight: 400;
padding: toRpx(0) toRpx(40);
}
}
.tab-item {
width: toRpx(164);
// width: toRpx(164);
height: toRpx(72);
border-radius: toRpx(16);
margin-right: toRpx(16);
margin-right: toRpx(20);
padding: toRpx(0) toRpx(40);
opacity: 1;
display: flex;
align-items: center;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!